Skip to content

fix: every pending Inbox card can be rejected or dismissed - #97

Merged
alexeybe1kin merged 1 commit into
mainfrom
fix/inbox-cards-rejectable
Nov 13, 2026
Merged

alexeybe1kin merged 1 commit into
mainfrom
fix/inbox-cards-rejectable

Conversation

@alexeybe1kin

Copy link
Copy Markdown
Collaborator

Hunt toolgate-2 F14. The owner channel allowed reject/dismiss only for unavailable reasons None, expired, unsupported_subject and publication_unavailable, and decide_request checked the verification origin before any decision. A card with arguments_unavailable, invalid_publication, invalid_action or invalid_origin could be neither approved nor closed, and stayed in the Inbox for good when it had no expiry.

Now a no (rejected or dismissed) closes any pending card. A yes still needs reviewable and an intact origin, and decide_request still checks origin and expiry for approval.

Tests (tests/test_owner_channel.py): withheld arguments, tampered origin and a legacy malformed binding are each still refused on approve (409) and now close on reject/dismiss. 12 of them fail on main.

Local: owner channel 21 passed; the 21 approval/request test files: 275 passed, 1 failed (test_process_death_after_effect_leaves_durable_unknown, which fails the same way on main on this PC because its subprocess cannot import toolgate). ruff ok, types ok.

Rejecting or dismissing grants nothing, so it no longer depends on the card
being reviewable or its origin being intact. A card whose arguments, origin
or publication cannot be shown used to stay in the Inbox for good (hunt
toolgate-2 F14). Approving still needs a reviewable card with an intact
origin.
@alexeybe1kin
alexeybe1kin merged commit 721e71a into main Nov 13, 2026
4 checks passed
@alexeybe1kin
alexeybe1kin deleted the fix/inbox-cards-rejectable branch November 13, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant