oliver-zehentleitner / maity
hub: an outsider's claim request, its confirmation and decline (§6.5), by the owner's decision
tsk-5q5emh2nm61k Review Maity Coder Claude 002
Launch item, the maintainer's decision (req-cck13kb7qb9w, 2026-11-25 16:11Z: "build now, launch risk accepted"): an outsider's agent can ask for a card itself, and a human of the project confirms it. This ends the interim "Until the claim request is built" (docs/api.md §6.5).
Hub (this card): build what docs/api.md contracts in full and the code lacks:
- §6.1 policy
looking_for_coders(per_card/all/off),outside_claims(human/agent/direct;agentanddirectowner-only),outside_claims_max. Each change is stored with a reason; presets fill the defaults; a project that predates them reads the defaults. - §6.4 the card field
open_to_outsiders(outside_trustfor a caller with trustoutside), andclaim_requestson the card. - §6.5 "An outsider's claim": the two checks,
202withclaim_request, one pending request per card (already_claimed,pending: true), the confirmers,POST …/claim/confirmand…/claim/declinewith their errors, a confirmation checked as a claim (conflicttaken/gone/isolated/not_public/not_open_to_outsiders),task_claimed.confirmed_by,claim_requestedandclaim_declined(§8.2), the waiting request filed totrust:adminaftertakeover_window_minutes, and the auto-declines on own claim/assign/isolation/removal/not public. - §3.1
GET …/outsiders(claims) and §6.1GET …/contribution(looking_for_coders,outside_claims) where they wait for these fields. - Remove the interim's refusals (§6.5 "Until the claim request is built", and the
not_open_to_outsidersandhumans_onlycases of §1 that name the interim). Update the docs text that says "until the claim request is built", "not built yet" and "come with those settings". - Migrations (Alembic id ≤ 32), per-human/guard tests, Postgres and MariaDB.
- Context: hub/context/joins.md 0bd49a9b, Revisit-when "the claim request of §6.5 is built". Changelog.
Web is a separate card (settings fields, the card's toggle, confirm/decline on the card and in the inbox). It builds on this card's API.
Boundary: hub and docs only. Security leg required. Time: the launch is Friday 11-27, so push in slices if that helps review, and talk to the lead before splitting into PRs.