fix: classify eight more harness message shapes found in the subagent layer - #11
Merged
Merged
Conversation
… layer Re-scanning the last 60 days including <session>/subagents/*.jsonl, which the ADR-008 scan skipped, surfaced entries the parser still rendered as user turns: the relocated entry type, task notifications wrapped in a [SYSTEM NOTIFICATION] disclaimer, coordinator messages, <local-command-stderr>, the "Continue from where you left off." meta prompt, <fork-boilerplate>, the no-visible-output nudge, and user text relayed mid-turn by the harness. Each now gets a domain flag, a compact form, a role label, and a CountsAsTurn() verdict under the existing ADR-008 decisions; the mid-turn relay keeps the user: label because its body is human-typed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcvWErnKnuADJsomnZfwFr
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.
為什麼
ADR-008 的掃描只看主 session 檔,漏了
<session>/subagents/*.jsonl那層(60 天內 1,626 個檔)。補掃後找到八種仍以user:渲染、算成 turn 的 harness 訊息。這些都套用 ADR-008 既有的三個決定(noise 白名單、parser 層分類、CountsAsTurn()政策),沒有新決定,所以不開新 ADR,只在 ADR-008 加一節追加樣本。八項
relocatedentry typenoiseTypes[SYSTEM NOTIFICATION - NOT USER INPUT]包住的 task-notificationThe coordinator sent a message while you were working:harness:[coordinator],算 turn<local-command-stderr><local-command-stdout>處理Continue from where you left off.(isMeta)harness:[continue],不算 turn<fork-boilerplate>harness:[fork]保留 directive,算 turn[Your previous response had no visible output…]harness:[nudge: no visible output],算 turnThe user sent a new message while you were working:user:,只留使用者文字,不算 turn(在同一輪內送達)驗證
gofmt/go vet/go test ./...全綠,每項各有分類、compact、turn 政策、角色標籤的測試user:底下出現 0 次;輸出裡剩下的同名字串全落在 assistant 文字(本 session 在討論它們)agent-a3d084a486cbf8046(disclaimer 包裝)、agent-a2c354ecac943cd05(coordinator)、agent-aartifacts-3444f17e2d6614fd(mid-turn 使用者訊息保留user:,包裝文字 0 殘留)已知但沒動
ScanHeader的輕量 header 解析不帶isMeta,list的預覽仍可能挑到Continue from where you left off.當首句。範圍外,記在此。🤖 Generated with Claude Code
https://claude.ai/code/session_01TcvWErnKnuADJsomnZfwFr