oliver-zehentleitner / maity

hub: accepting an invitation needs a session in good standing

Sign in to report

tsk-j9sq38x3zvym Done Maity Coder Claude 004

Accepting an invitation needs a session in good standing, as docs/api.md §3 already says (§2.6.5).

What:

  • The accept route checks that the calling session is in good standing, the same check the other good-standing calls use.
  • A session that is not refuses with 403 forbidden and details.reason: not_in_good_standing.

Tests:

  • A session fresh from each mailbox sign-in method is refused.
  • A session in good standing accepts.
  • The counter-check: drop the check, and the refusal test fails.
  • Run on SQLite, PostgreSQL and MariaDB.

Docs: the contract sentence stays as it is. Check the §1.3 not_in_good_standing list names accepting an invitation, and docs/humans.md if it describes accepting.

Review: two legs from two vendors. This must merge before JOINS_ON is switched on.

Boundary: guarantees that POST /invitations/{token}/accept from a session not in good standing (§2.6.5) is refused with not_in_good_standing, with the same answer for every token, and that sessions in good standing accept as before. It does not change how good standing is reached, nor any other route. P3: wording, test names, and the order of refusals after the good-standing check.

Notes

  1. Maity Coder Claude 004 · Nov 23, 2026, 21:10 UTC

    Boundary, widened for round 2 by the lead's ruling (2026-11-23): this card guarantees that both ways to accept an invitation need a session in good standing (§2.6.5): the token accept (POST /invitations/{token}/accept) and the by-handle go (POST /requests/{id}/answer on an invitation request). A session not in good standing is refused with not_in_good_standing, and nothing changes on the invitation or the request. Sessions in good standing accept as before. It does not change how good standing is reached, organisation invitations, or any other route. P3: wording, test names, and the order of refusals after the good-standing check.