Repository navigation
Description
Problem & intent
The interim-notification filter (hooks/mods/interim.ts, PRs #218 and #230) drops a subagent's interim task notification at the main session's prompt.submit. It decides by matching engine-owned strings and behaviour exactly:
- the interim
<note>and the waiting placeholder<result>; - the hand-back contract reminder and its countermand in the agent's transcript;
- the
<output-file>link to that transcript; - how
$.session.messages({ as: 'api' })shows a notice that came in mid-turn: folded into the running call'stool_resultunder the[SYSTEM NOTIFICATION - NOT USER INPUT]frame.
An engine upgrade can change any of these. A changed wording fails safe: the filter stops matching and lets everything through. A change of meaning under the same strings could make it drop something real. Your human partner's bar is that a deliberate message or a subagent report must never be lost to this filter. So the filter is re-verified on every Claude Code engine version.
This is a standing ticket. It stays deferred between upgrades. Each upgrade adds one comment, and the filter is updated here when the audit says so.
What to do on each engine upgrade
- Let real sessions run on the new version for a few hours, with subagents parking on background work.
- Run
tests/mods/interim-audit/run.sh <upgrade time, UTC>(tests/mods: interim-audit, the interim filter's audit over local transcripts #234; the README explains the three reports). It reads transcripts only and spends no model calls. Run it while the engine's temp task files still exist, because the provenance check follows<output-file>links. - Read it:
other dropped prompts: 0: no hook but the filter dropped anything.with a problem: 0: every interim drop was a pure placeholder, the engine wrote it, an earlier notice existed where one is required, and the report arrived later or the agent is still working.- Every let-in notice is "by design". A
SHOULD HAVE DROPPEDline, or interim notices still arriving with zero drops, means the engine changed a string. Diff the new engine's copies against the constants ininterim.ts: the placeholder (nTs), the interim note (oRt), the frame (o8e), the reminder and countermand, and the{ as: 'api' }projection. Then update the filter and its tests.
- Comment the version, the window, the drop count, the problem count and any change made.
Constraints
- Every check in the filter fails open. A fix to keep up with the engine may cost wakes, never a report.
- If the audit shows something real was dropped, disable the filter at once (remove
registerInterim(on)fromhooks/mods/register.tsxand bump the version) before diagnosing.
Success criteria
Per engine version: an audit comment on this ticket, zero wrongly dropped prompts, and the filter updated when the engine's strings changed.
Open questions
None.
Decision log
- 2026-10-18: Registered after a 12-hour live audit on 2.1.302 found 118 interim drops across 17 agents, 0 wrongly dropped, and 0 other dropped prompts. The residuals the filter accepts are listed in
hooks/mods/README.mdand in the interim section ofdocs/doperpowers/TECH-DEBT.md. - Chosen over a scheduled daily audit: what can break the filter is an engine change, so the engine version is the trigger.
History
- 2026-10-18, baseline audit: engine 2.1.302 (plugin 7.165.0 to 7.171.1), window 2026-10-17T19:00 to 2026-10-18T07:35 UTC. 118 interim drops across 9 sessions and 17 agents; with a problem 0; other dropped prompts 0. 15 of the 17 agents' reports arrived; the other 2 were still working. Let-in notices were by design, or came from sessions still on a plugin without the filter; the 4 mid-turn misses were fixed in 7.171.1 (mods/interim: count a notice the engine folded into a tool result (7.171.1) #230).
Moved from board ticket 92 on the retired board service, 2026-11-19. A board #<n> reference here names a ticket on that service.
Board note: standing: rerun tests/mods/interim-audit on each engine upgrade; last audited 2.1.302 on 2026-10-18 (118 drops, 0 wrong)
Activity
SSFSKIM commentedon Nov 20, 2026
[board] deferred: standing: rerun tests/mods/interim-audit on each engine upgrade; last audited 2.1.302 on 2026-10-18 (118 drops, 0 wrong)