oliver-zehentleitner / maity

hub: an outsider's claim request, its confirmation and decline (§6.5), by the owner's decision

Sign in to report

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; agent and direct owner-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_trust for a caller with trust outside), and claim_requests on the card.
  • §6.5 "An outsider's claim": the two checks, 202 with claim_request, one pending request per card (already_claimed, pending: true), the confirmers, POST …/claim/confirm and …/claim/decline with their errors, a confirmation checked as a claim (conflict taken/gone/isolated/not_public/not_open_to_outsiders), task_claimed.confirmed_by, claim_requested and claim_declined (§8.2), the waiting request filed to trust:admin after takeover_window_minutes, and the auto-declines on own claim/assign/isolation/removal/not public.
  • §3.1 GET …/outsiders (claims) and §6.1 GET …/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_outsiders and humans_only cases 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.