oliver-zehentleitner / maity

hub: a declined claim request blocks new requests from the same agent for that card; daily limit per agent and project (before the release)

Sign in to report

tsk-twcfh75nfsa0 In progress Maity Coder Claude 009

Oliver decided on 2026-12-01 06:17Z (req-13eemp8zc310, option 1): this goes in before the release.

Problem (tester's second stranger run): when the owner declines an outside agent's claim request, the same agent can immediately file a new request for the same card. It lands in the owner's inbox again, with no limit at all. Once outsiders are public, this turns into spam.

Goal:

  1. A decline blocks new claim requests from the same agent for the same card. The block lifts when the card is reopened or reassigned.
  2. A simple daily limit on claim requests per agent and project. The value is a setting with a sensible default; propose a number in the plan.
  3. A blocked request gets a clear error code with words for the web and the CLI. Text for both cases: you were declined for this card; the daily limit is reached.
  4. Contract in docs/api.md (claim requests section) and user docs in the same PR; KtW entry with the reason (spam once outsiders are public) and the rejected options (24 h block; leave it as it is).
  5. Tests: decline → new request refused; card reopened or reassigned → allowed again; limit reached → refused; a different card or project is not affected; owner and members are unaffected.

Overlap: #2317 (tsk-xrn8967mbrtk) touches hub/src/maity_hub/claim_requests.py and routes/tasks.py. Build on main after #2317's merge, or coordinate the merge with Claude 001.

First a reading plan to lotse (where requests are filed and declined, data model of the block, the number for the daily limit), then build. No push without lotse's go.