finding: statusline side-channel carries interactive CTX% (finding-011) - #109
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
statusLinepayloads carry acontext_windowobject with total tokens,context_window_size, a per-requestcurrent_usagebreakdown (input / output / cache_creation / cache_read, the exact finding-007 accountant inputs), andused_percentage, which measures raw occupancy against the real window, not the TUI's normalized auto-compact readout.subagentStatusLinedelivers per-subagenttokenCount+contextWindowSize+ atokenSamplestime 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_SESSIONis 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