You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webhook,worker,store): permission-gate cancel, memory acks, and command supersession (#13) (#49)
Drive-by commenters could steer queued work: the cancel command tombstoned
queued reviews at the route (pre-gate), memory acknowledgements replied
ungated, and a command review superseded queued reviews at durable insert —
all before anyone checked the commander's write access.
Now every mutating or acknowledging command lane passes the worker's write
gate first:
- cancel rides a new adapter-only CancelReviews task; the tombstone happens
in the worker after the gate, and below-write commanders get the decline
body instead
- remember/forget acknowledgements carry the commander and decline below
write; status and clarification replies stay ungated
- insert-time supersession is auto-review-only: command reviews supersede
older queued reviews post-gate via supersede_queued_except, sparing the
commanding task itself
Re-lands the intent of fix/issue-13-command-gates (pre-durable-store)
adapted to the SQLite queue from #2.
Signed-off-by: Val Alexander <bunsthedev@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments