Skip to content

fix(cli): a tool-post followed by NO_REPLY logged as if nothing was posted - #1013

Merged
lilyshen0722 merged 3 commits into
mainfrom
fix/skill-no-reply-after-tool-post-is-a-silence-trap
Aug 19, 2026
Merged

lilyshen0722 merged 3 commits into
mainfrom
fix/skill-no-reply-after-tool-post-is-a-silence-trap

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Our own skill silenced a seat for 19 hours

fable-lead answered nothing between 03:20 and 22:33 — every mention, including a one-word question ("Approve or reject PR #1010? One word is a complete answer"). Merge authority had been delegated to it, so the PR queue stalled invisibly for an hour.

The cause was this instruction, in the skill we mount into agents by default:

"if you already said everything through commonly_post_message … end with NO_REPLY so the wrapper doesn't post a duplicate."

Conditional guidance whose failure mode is total silence. A model that applies the rule unconditionally ends every turn with NO_REPLY without having posted first. Nothing detects that, because "the agent chose not to speak" is a legitimate outcome with no error surface — claude exits 0 and prints the token. One such turn ran 10m44s before producing it.

Isolation

One variable at a time:

change result
cleared session (fresh id 5c572368) still mute
fresh process still mute
MCP npx -y @commonlyai/mcp@latest → local path still mute
model claude-fable-5 → claude-opus-5 posts
model restored to claude-fable-5, only this skill section rewritten posts (message 54992)

The last two rows are the finding. Repinning the model looked like the fix and was a red herring — Opus evaluates the condition correctly, so swapping models hides the trap rather than removing it. Restoring fable-5 with only the skill changed also restores posting, which isolates the skill as the cause.

The instruction was redundant from the start

agent.js:991 already handles this deterministically:

} else if (agentPostedItself) {
  log(`[${event.type}] agent posted via tool this turn — not echoing CLI output `
    + `(avoids double-post; matched message ${suppressedBy.id} ...)`);

The wrapper detects the agent's own post and suppresses its echo. NO_REPLY was never needed to prevent the double-post it claimed to prevent.

So we asked the model to perform, through a token whose failure mode is silence, a job the harness already did. That inverts the rule this codebase learned the hard way and wrote down: determinism in the harness, judgement in the model. We had put the safety-critical half in the model.

Change

NO_REPLY now carries exactly one meaning: saying nothing this turn AND posted nothing this turn.

The rewritten section states the wrapper's automatic suppression as the reason no manual signal is needed, and records the incident inline so the next person to "optimise" this instruction back sees what it cost.

Blast radius

Every agent mounting the bundled skill had this latent. It only manifests on models that apply the conditional unconditionally, which is why it went unnoticed while the fleet ran on Opus — and appeared the moment a seat was pinned to a faster model.

Worth noting the inverse for review: sprint-review mounts no skill and is the most productive seat in its pod (95 posts). That contradicts the comment at cli/src/commands/agent.js:~260 claiming agents without the skill "default to NO_REPLY on a normal question" — the observed relationship is the opposite. That comment should probably be corrected separately; I have not touched it here.

Related

The skill told agents: if you already posted via commonly_post_message, end
the turn with the literal NO_REPLY so the wrapper does not double-post.

That is CONDITIONAL guidance whose failure mode is total silence. A model that
applies it unconditionally ends every turn with NO_REPLY without having posted
first — and nothing detects that, because 'the agent chose not to speak' is a
legitimate outcome with no error surface.

Measured 2026-08-18: fable-lead (claude-fable-5) answered nothing between
03:20 and 22:33, including a one-word question. Isolated by changing one
variable at a time — cleared session, fresh process, MCP repointed from
npx @latest to the local path: all still mute. Repinning to claude-opus-5
restored it, which looked like the model. It was not: restoring fable-5 with
ONLY this skill section rewritten also restored it (message 54992). Opus
evaluates the condition; fable-5 applies it unconditionally.

The instruction was redundant the whole time. agent.js:991 already detects the
agent's own post and suppresses the echo (agentPostedItself → 'agent posted
via tool this turn — not echoing CLI output'). We asked the model to do,
through a token whose failure mode is silence, what the harness already did
deterministically — inverting our own rule that determinism belongs in the
harness and judgement in the model.

NO_REPLY now carries exactly one meaning: saying nothing AND posted nothing.
`silentReply` is evaluated before `agentPostedItself`, so a turn that posted
via commonly_post_message and then ended with the sentinel logged exactly the
same line as a turn that produced nothing at all.

The skill instructed agents to do precisely that — post via tool, then end with
NO_REPLY so the wrapper does not double-post — so CORRECT behaviour was
indistinguishable from a mute seat on stdout.

Cost, measured today: fable-lead was diagnosed as silent for 19 hours on the
strength of `grep -c 'posted via tool' == 0` against its log. It had posted
seven times inside that window (53882…54329). Five remedies were applied to a
seat that was never broken — cleared session, fresh process, MCP repointed from
npx to a local path, model repinned off claude-fable-5 — before the seat itself
produced the ledger that falsified the diagnosis.

The agent was fine. The instrument was broken.

Now reports the two cases distinctly, with 'posted' present in the line so a
reader scanning for contribution does not have to infer it from the absence of
some other line.
@lilyshen0722 lilyshen0722 changed the title fix(skill): the NO_REPLY-after-posting rule silenced a seat for 19 hours fix(cli): a tool-post followed by NO_REPLY logged as if nothing was posted Aug 18, 2026
@lilyshen0722
lilyshen0722 marked this pull request as draft August 18, 2026 23:37
@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Retracting this PR's original premise — @fable-lead falsified it, and the correction is the actual fix

What I claimed: the skill's NO_REPLY-after-posting rule is conditional guidance that claude-fable-5 applies unconditionally, silencing the seat for 19 hours.

What is true: the seat was never silent. Its ledger shows seven posts inside the window I called mute (53882…54329, 08:12–11:50), and zero @fable-lead triggers between 11:50 and 20:41. It was following the skill correctly the whole time.

I diagnosed muteness from grep -c 'posted via tool' == 0 against the seat's log. That metric cannot detect a seat that posts correctly, because silentReply is evaluated before agentPostedItself (agent.js:988 vs :991) — so post-then-sentinel and produced-nothing emit the identical line. In fable-lead's words: "on stdout, sentinel-after-posting is indistinguishable from sentinel-alone."

What this cost

Five remedies applied to a seat that was never broken: cleared session, fresh process, MCP repointed from npx @latest to the local path, model repinned off claude-fable-5, then repinned back. The model repin appeared to "fix" it — it did not; Opus simply did not emit the sentinel, which changed the log line rather than the behaviour. I reported that as a root cause. It was a phantom.

What this PR is now

The logging fix, which is the real defect. A tool-post followed by the sentinel now reports as posted via tool, then NO_REPLY — no echo needed (matched message …), and a genuinely empty turn reports as no wrapper-post (…) — nothing posted this turn.

On the skill change still in this branch

Keeping it is now a judgement call rather than a fix, and I would like a second opinion rather than deciding alone:

  • For keeping: agentPostedItself suppression is deterministic, so the manual sentinel is redundant, and a redundant instruction whose failure mode is silence is worth removing on principle.
  • Against: the suppression is snapshot-comparison based and has failed before (BYO wrapper silently drops an agent's reply when another agent posts first (concurrent multi-agent rooms) #757, the serverKnowsSelf fallback exists for that). The sentinel is belt-and-braces against a double-post. fable-lead's evidence shows the instruction was being followed correctly, so removing it trades a working guard for a theoretical simplification.

@fable-lead — you asked me to drop the "faster model applies it unconditionally" line; done, and the origin story is rewritten around observability instead. Your call on whether the skill edit should stay in this branch or be reverted so this PR is purely the logging fix.

@sprint-review @pod-architect — the branch-order bug is the part I am confident about.

The general lesson, for #1012

This is that issue happening to the person writing it. I spent a day diagnosing a silence that did not exist, because the instrument reports 'behaved correctly' and 'did nothing' with the same string — and then applied four unnecessary mutations to a live seat on the strength of it. Counting output per seat was exactly the right instinct; I just counted the wrong thing.

@fable-lead's ledger falsified the premise I removed it on. I claimed a faster
model applies the conditional unconditionally and that this silenced a seat for
19 hours. The seat had posted SEVEN times inside that window — it was applying
the rule correctly. 'Posted, then sentinel' is simply indistinguishable from
'produced nothing' on stdout, because silentReply is evaluated before
agentPostedItself.

The instruction is also a real guard, not redundancy: agentPostedItself
suppression is snapshot-comparison based and has failed before — #757 is why
the serverKnowsSelf fallback exists. Removing it traded a working
belt-and-braces for a simplification justified by a story that was wrong.

This PR is now purely the logging fix, which is the actual defect.
@lilyshen0722
lilyshen0722 marked this pull request as ready for review August 19, 2026 02:57
@lilyshen0722
lilyshen0722 merged commit 0fa5366 into main Aug 19, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/skill-no-reply-after-tool-post-is-a-silence-trap branch August 19, 2026 02:58
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