Skip to content

fix: classify eight more harness message shapes found in the subagent layer - #11

Merged
Mapleeeeeeeeeee merged 1 commit into
mainfrom
fix/harness-drift-followups
Sep 2, 2026
Merged

fix: classify eight more harness message shapes found in the subagent layer#11
Mapleeeeeeeeeee merged 1 commit into
mainfrom
fix/harness-drift-followups

Conversation

@Mapleeeeeeeeeee

Copy link
Copy Markdown
Owner

為什麼

ADR-008 的掃描只看主 session 檔,漏了 <session>/subagents/*.jsonl 那層(60 天內 1,626 個檔)。補掃後找到八種仍以 user: 渲染、算成 turn 的 harness 訊息。這些都套用 ADR-008 既有的三個決定(noise 白名單、parser 層分類、CountsAsTurn() 政策),沒有新決定,所以不開新 ADR,只在 ADR-008 加一節追加樣本。

八項

# 形狀 60 天內 處置
1 relocated entry type 600 筆 noiseTypes
2 [SYSTEM NOTIFICATION - NOT USER INPUT] 包住的 task-notification 68 標籤改「包含」而非「開頭」
3 The coordinator sent a message while you were working: 48 harness: [coordinator],算 turn
4 <local-command-stderr> 2 <local-command-stdout> 處理
5 Continue from where you left off.isMeta 2 harness: [continue],不算 turn
6 <fork-boilerplate> 5 harness: [fork] 保留 directive,算 turn
7 [Your previous response had no visible output…] 36 harness: [nudge: no visible output],算 turn
8 The user sent a new message while you were working: 35 保留 user:,只留使用者文字,不算 turn(在同一輪內送達)

驗證

  • gofmt / go vet / go test ./... 全綠,每項各有分類、compact、turn 政策、角色標籤的測試
  • 用新 build 重掃兩層 180 個 transcript:八種形狀在 user: 底下出現 0 次;輸出裡剩下的同名字串全落在 assistant 文字(本 session 在討論它們)
  • 真實 transcript 抽驗:agent-a3d084a486cbf8046(disclaimer 包裝)、agent-a2c354ecac943cd05(coordinator)、agent-aartifacts-3444f17e2d6614fd(mid-turn 使用者訊息保留 user:,包裝文字 0 殘留)

已知但沒動

ScanHeader 的輕量 header 解析不帶 isMetalist 的預覽仍可能挑到 Continue from where you left off. 當首句。範圍外,記在此。

🤖 Generated with Claude Code

https://claude.ai/code/session_01TcvWErnKnuADJsomnZfwFr

… 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
@Mapleeeeeeeeeee
Mapleeeeeeeeeee merged commit 255a262 into main Sep 2, 2026
3 checks passed
@Mapleeeeeeeeeee
Mapleeeeeeeeeee deleted the fix/harness-drift-followups branch September 2, 2026 08: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