Skip to content

Re-audit the interim-notification filter on every Claude Code engine upgrade #533

Open

Description

@SSFSKIM

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's tool_result under 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

  1. Let real sessions run on the new version for a few hours, with subagents parking on background work.
  2. 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.
  3. 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 DROPPED line, or interim notices still arriving with zero drops, means the engine changed a string. Diff the new engine's copies against the constants in interim.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.
  4. 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) from hooks/mods/register.tsx and 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.md and in the interim section of docs/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

  1. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [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)

  2. added
    enhancement
    status:deferred
    priority:P3
    on Nov 20, 2026
  3. added
    expected
    ready-to-work
    and removed
    status:deferred
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementexpectedpriority:P3ready-to-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions