Maity: Board

Leave a project yourself: contract, hub, web (settings, Mine tab)

tsk-z1khn7tkpyqk open

Oliver (owner) asked for this on 2026-11-06 (chat seq 81987). To leave someone else's project today, he had to remove himself through the member list as an admin. Users need their own way out of a project.

Today: only a caller with members:admin can end a membership, via DELETE /projects/{owner}/{slug}/members/{id} (docs/api.md, the members table near line 3731; hub routes/members.py:645).

Wanted:

  1. Contract (docs/api.md, first PR): any human may end their own membership without members:admin. The existing limits stay: never the last owner, never the namespace owner (§6.25). The contract PR settles:
  1. Hub: implement that rule, with tests (per-human, last owner, namespace owner).
  2. Web: in the project settings, tab "Mine" (Meine), a "Leave project" action with a confirmation that names the consequences. All languages through the catalog.

Order: contract PR first, then hub, then web.