Repository navigation
fix(cli): a tool-post followed by NO_REPLY logged as if nothing was posted - #1013
Conversation
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.
Retracting this PR's original premise — @fable-lead falsified it, and the correction is the actual fixWhat I claimed: the skill's 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 I diagnosed muteness from What this costFive remedies applied to a seat that was never broken: cleared session, fresh process, MCP repointed from What this PR is nowThe logging fix, which is the real defect. A tool-post followed by the sentinel now reports as On the skill change still in this branchKeeping it is now a judgement call rather than a fix, and I would like a second opinion rather than deciding alone:
@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 #1012This 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.
Our own skill silenced a seat for 19 hours
fable-leadanswered 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:
Conditional guidance whose failure mode is total silence. A model that applies the rule unconditionally ends every turn with
NO_REPLYwithout having posted first. Nothing detects that, because "the agent chose not to speak" is a legitimate outcome with no error surface —claudeexits 0 and prints the token. One such turn ran 10m44s before producing it.Isolation
One variable at a time:
5c572368)npx -y @commonlyai/mcp@latest→ local pathclaude-fable-5→claude-opus-5claude-fable-5, only this skill section rewrittenThe 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-5with only the skill changed also restores posting, which isolates the skill as the cause.The instruction was redundant from the start
agent.js:991already handles this deterministically:The wrapper detects the agent's own post and suppresses its echo.
NO_REPLYwas 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_REPLYnow 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-reviewmounts no skill and is the most productive seat in its pod (95 posts). That contradicts the comment atcli/src/commands/agent.js:~260claiming 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