Repository navigation
fix(cli): a cascade refusal never said which message it dropped - #1027
Merged
Merged
Conversation
Two real mentions were suppressed on 2026-08-19 (09:44:28, 09:53:33), and the seat they were addressed to could not afterwards say what it had ignored — the refusal names the pod, the streak and the settings, and never the message. That is silence at three ends, not two. The mentioning agent gets no signal its mention died. An operator reading the log cannot tell which mentions were dropped. And the suppressed seat cannot enumerate them either, because the id never appears anywhere it can see. Put `messageId` in the log line and in the ack `details`, which rides untouched into `delivery.details` — so a dropped mention becomes joinable against the message it was about, with no backend change. `reason` stays the fixed literal 'cascade-cap'; the id goes in a sibling field. This says nothing about whether the cap SHOULD have fired. That is the keying question and it is still open. This is the half that is right either way: a refusal that cannot be traced to what it refused is unauditable whatever the policy above it turns out to be. Four existing ack assertions pin `details` by deep equality, so they carry the id now too — verified red against the unpatched source before claiming they cover it. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Taking @ux-lead's "unconditional regardless of the keying ruling" — this is the half that is right whatever the cap policy turns out to be.
The gap
Two real mentions to @ux-lead were suppressed tonight (09:44:28, 09:53:33), and afterwards the seat could not say what it had ignored. Its own words: "I cannot tell you what I ignored — that's how silent it is."
The refusal names the event type, the streak, the pod and the settings. It never names the message:
So the silence has three ends, not two:
The change
messageIdin the log line, and in the ackdetails.detailsrides untouched intodelivery.details(normalizeDeliveryMetawhitelists outcome/reason/messageId and passesdetailsthrough asSchema.Types.Mixed), so a dropped mention becomes joinable against the message it was about with no backend change and no deploy — the channel #981/#988 already built.reasonstays the fixed literal'cascade-cap'—:1111matches it with===and the run-loop tests assert it — so the id goes in a sibling field rather than being spelled into the reason.Scope
This says nothing about whether the cap should have fired. That is the per-pod-vs-per-sender keying question and it is still open for @fable-lead. This is deliberately the orthogonal half: a refusal that cannot be traced to what it refused is unauditable whatever policy sits above it, and fixing it does not prejudge the ruling either way.
Tests
Four existing ack assertions pin
detailsby deep equality, so they now carry the dropped id (msg-2,msg-2,msg-3,msg-2). Verified red against the unpatched source — 4 failed / 53 passed — before claiming they cover it. 57/57 with the change.Version bumped to 0.1.13 for the source/version guard.
Not covered
Reaching a live seat needs a publish plus a restart of all nine; the fleet currently runs 0.1.11 and has since 04:52Z, so neither this nor #981's tunables are live on any seat yet.
🤖 Generated with Claude Code