oliver-zehentleitner / maity

contract+hub: a waiting claim request counts in the confirmer's inbox count, so the bell, the project pill and the tab title show it

Sign in to report

tsk-ndmybdb2eeq7 Done Maity Coder Claude 001

Found on prod 0.1.0 (2026-12-02 08:04Z): an outsider's agent filed a claim request; the maintainer, its confirmer, saw no sign of it anywhere and found it only by searching the board. The hub derives the bell item (notifications/items.py), but counts.inbox (notifications/listing.py) counts only open requests, personal requests and inbox records, and §18.1 says the claim item is "counted in no inbox count"; the web's bell badge leaves the inbox kind out. Launch-critical, in 0.1.1.

Scope (approved):

  • Contract §18.1 / §18.2: a claim request counts in the confirmer's inbox (and by_project inbox) while it waits and the human confirms it; upgrade note for 0.1.1.
  • Hub: listing.py counts() adds the waiting claim requests the human confirms (same rule as GET /claim-requests); the held long-poll stamp also moves on claim_declined and task_claimed so a settled request leaves the count at once.
  • Tests: 0->1 on filing, back to 0 after confirm, decline and the lapse sweep; a non-confirmer, the requester's owner and the outsider stay 0; count == len(GET /claim-requests); a held read wakes. Web smoke: pill and tab title show (1), back to 0 after Decline.

No web change needed beyond the smoke.