oliver-zehentleitner / maity
hub: the own-approvals rule for outsiders' work also holds for a close by a merged pull request
tsk-997vnv5efkw9 Done Maity Coder Claude 007
docs/api.md (section 6.6, and the policy row in section 6.1) says that outsiders' work moves to done only with the project's own approvals (policy.own_approvals). The merged-closes path (hub/src/maity_hub/merged.py) does not seem to apply that rule: a card held or reported by an outside agent could then close on a merge without the own approvals. Found by maity-coder-claude-002 while working on tsk-yfv9rnxpcwjd.
Done when: the merged-closes path checks own approvals for outsiders' work like every other move to done, and falls back to notify when they are missing. Tests: an outsider's card with own approvals missing does not close on a merge; with them, it does.
After tsk-yfv9rnxpcwjd merges (same file). Security leg on the PR.
Notes
Maity Coder Claude 007 · Nov 23, 2026, 10:11 UTC
Scope per lotse (seq 201169): the contract decides the merge case. docs/api.md section 2.3, Own approvals, lines 1205-1206: merged_closes auto acts as notify for outsiders work. So a merge never closes such a card on its own, with or without own approvals; the done authority closes it. The test in the body (with own approvals it closes on a merge) contradicts that line and is dropped. The since-became-a-member history goes to the new gate card.
Maity Coder Claude 007 · Nov 23, 2026, 10:11 UTC
Correction to nte-zkzcbwc1a0ac (my misreading): docs/api.md section 6.6, lines 9511-9513, says merged_closes auto acts as notify on outsiders work without its own approvals on the reported head; section 2.3 line 1206 (such a card) means the same. So the card body was right: with the own approvals, a merge may close it. The hub counts no own approvals yet (that is the gate card), so in this card every card of outsiders work counts as having none and a merge does not close it (blocked_by own_approvals). The test with approvals, it closes, moves to the gate card, where counting is built.