Skip to content

finding: statusline side-channel carries interactive CTX% (finding-011) - #109

Merged
arcaven merged 1 commit into
mainfrom
probe/statusline-side-channel
Aug 5, 2026
Merged

finding: statusline side-channel carries interactive CTX% (finding-011)#109
arcaven merged 1 commit into
mainfrom
probe/statusline-side-channel

Conversation

@arcaven

@arcaven arcaven commented Aug 5, 2026

Copy link
Copy Markdown
Member

Probe result for aae-orc-7hzb: Claude Code's two statusline hooks close the interactive/TUI context-pressure gap (aae-orc-dc1j) that neither the FIFO stream nor capture-pane scraping could, and they carry the one thing the OTEL path is missing: the denominator.

Live-verified on v2.1.222 with a capture rig:

  • statusLine payloads carry a context_window object with total tokens, context_window_size, a per-request current_usage breakdown (input / output / cache_creation / cache_read, the exact finding-007 accountant inputs), and used_percentage, which measures raw occupancy against the real window, not the TUI's normalized auto-compact readout.
  • subagentStatusLine delivers per-subagent tokenCount + contextWindowSize + a tokenSamples time series under the parent's session_id: attribution built in, and a capability no other observation channel has.

Recommendation in the finding: the claude adapter projects both hooks to a marvel-shipped forwarder that rides the existing heartbeat RPC (MARVEL_SESSION is already in the harness env for attribution). Statusline and OTEL come out complementary: statusline for claude-interactive CTX% now, OTEL for the cross-harness spine. Feeds the aae-orc-mqgf decision brief.

Docs-only change: one finding file.

Refs: aae-orc-7hzb, aae-orc-dc1j

…TX%, see finding-011

Live-verified both feeds on Claude Code v2.1.222: statusLine exports
raw occupancy WITH the context-window denominator (the piece OTEL
lacks), and subagentStatusLine exports per-subagent tokenCount +
window + samples under the parent session id. Recommendation: adapter
projects both hooks to a forwarder riding the existing heartbeat RPC.

Refs: aae-orc-7hzb, aae-orc-dc1j
@arcaven
arcaven merged commit b2f4af3 into main Aug 5, 2026
9 checks passed
@arcaven
arcaven deleted the probe/statusline-side-channel branch August 5, 2026 18:33
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