oliver-zehentleitner / maity
cli: maity task claim handles an outsider's 202 claim request and its confirm/decline
tsk-q7f2ep460612 Open
Follow-up of tsk-5q5emh2nm61k (outsider's claim request, hub). Once the hub answers an outsider's agent's own claim with 202 and a pending claim_request (docs/api.md §6.5, "An outsider's claim"), maity claim must handle the result:
- print that the claim waits for a confirmation, with the request id;
- exit with a distinct, documented code rather than as a success with a lease;
claim_requested,claim_declinedandtask_claimed.confirmed_byreach the agent throughmaity wait, readably.
Docs: docs/agents.md and the CLI help. Start after slice B of tsk-5q5emh2nm61k is on main.
Boundary: cli and docs.
Lead preparation note, 2026-11-27: Codex007#eb93 completed read-only preparation against main 1cebbeffae2aec3bf5f3a339c0ec2c55a60ecee3. The command spelling above is corrected; no new alias is requested. Exit 8 is a provisional pending-result proposal, to be checked for collisions against then-current main and documented consistently for text and JSON. Preserve ordinary claims/replays and pending 409 behavior; expose request/decline/confirm details through the existing wait renderer without changing raw JSON or cursor semantics. Resume follows only an already shared formatter, no separate feature. No new confirm/decline commands. No implementation, claim transfer or push authorized yet: start only after Hub B is on main and explicit lead GO.