@chrono-meta/fh-gate 3.42.0 → 3.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.claude/regression/probes_live.yaml +16 -8
  2. package/.claude/rules/fh_4axis_gate.md +8 -0
  3. package/.claude-plugin/marketplace.json +4 -4
  4. package/AGENTS.md +5 -0
  5. package/README.ja.md +2 -0
  6. package/README.ko.md +2 -0
  7. package/README.md +2 -0
  8. package/README.zh.md +2 -0
  9. package/docs/HOW_FH_DIFFERS.en.md +37 -0
  10. package/docs/HOW_FH_DIFFERS.md +39 -0
  11. package/docs/USER_GUIDE.md +113 -2
  12. package/docs/model_tier_expectations.md +8 -4
  13. package/knowledge/shared/harness-core/claude_md_full_reference.md +10 -0
  14. package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +18 -0
  15. package/knowledge/shared/harness-core/fh_module_contract.md +19 -0
  16. package/knowledge/shared/harness-core/measurement-integrity-checklist.md +24 -0
  17. package/knowledge/shared/learnings/subagent_invocations_log.yaml +30 -0
  18. package/package.json +6 -1
  19. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  20. package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +2 -2
  21. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  22. package/plugins/fh-meta/CHANGELOG.md +32 -2
  23. package/plugins/fh-meta/skills/edit-manifest/SKILL.md +14 -1
  24. package/plugins/fh-meta/skills/harvest-loop/SKILL.md +1 -1
  25. package/plugins/fh-meta/skills/meta-prompt-builder/SKILL.md +19 -0
  26. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  27. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  28. package/scripts/capability_registry_check.sh +15 -2
  29. package/scripts/live_eval_trace.py +122 -0
  30. package/scripts/package_coverage_check.sh +7 -0
  31. package/scripts/pr_merge_verified.sh +7 -0
  32. package/scripts/probe_live_eval.sh +6 -3
  33. package/scripts/probe_live_eval_lib.py +89 -1
  34. package/scripts/remote_marker_gate.sh +56 -0
  35. package/scripts/selfcheck.sh +7 -0
  36. package/scripts/session_close_check.sh +16 -0
  37. package/scripts/sim_isolated_run.sh +17 -2
  38. package/scripts/test_fixture_guard_coverage_lanes.sh +71 -10
  39. package/scripts/test_live_eval_trace_lanes.sh +145 -0
  40. package/scripts/test_meta_prompt_restate_lanes.sh +36 -0
  41. package/scripts/test_mutation_probe_lanes.sh +26 -6
  42. package/scripts/test_pr_merge_verified_lanes.sh +23 -0
  43. package/scripts/test_remote_marker_gate_lanes.sh +96 -0
  44. package/scripts/test_session_close_lanes.sh +7 -0
@@ -5471,3 +5471,33 @@
5471
5471
  outcome: "0 H · zh «更少» vs en «smaller» → fixed · incubator «formal flow» flagged unverified → governor grounded it (claude_md_full_reference.md:618) → rejected · caveats dropped by #885 en/ko choice → named in PR as operator question · ja/zh:107 extra caveat → named, other section"
5472
5472
  evidence: "PR body for auto/selfdev-2026-11-10-1"
5473
5473
  tokens: "59958"
5474
+ - date: 2026-11-14
5475
+ agent: "web-fetch (sonnet) — read one public news article for the root session fcdf9c61 (purpose: context)"
5476
+ task: "fetch a Korean AI-news article on Google's elephant-goldfish-model plugin; report title, date, mechanism, cited sources; say what the article does not contain"
5477
+ outcome: "read at HTTP 200; flagged that the article states no benchmark and gives only a repo link; the repo itself was read later by a work session"
5478
+ evidence: "tracks/_audit/session_2026_11_14_egm.md · PR #1103"
5479
+ tokens: "25050"
5480
+ - date: 2026-11-14
5481
+ agent: "fh-meta:challenger (sonnet) — harvest-loop Step 3a, close of root fcdf9c61 (purpose: independence)"
5482
+ task: "attack 8 harvested patterns against existing FH assets; cite path:line for every already-covered verdict"
5483
+ outcome: "P1 WRONG-FIX (a control-first default in the merge script would gate a judgment) · P4 REAL-GAP A (push-event marker gate has no PR body) · P3 P8 REAL-GAP B · P2 P5 already covered · P6 P7 one-off"
5484
+ evidence: "tracks/_meta/fh_signal_2026-11-14_fcdf9c61-close.md §Harvest"
5485
+ tokens: "115757"
5486
+ - date: 2026-11-14
5487
+ agent: "fh-meta:persona-innovator (sonnet) — harvest-loop Step 3b (purpose: context)"
5488
+ task: "smallest change to an existing asset for each of 8 patterns, with Done-When and cost"
5489
+ outcome: "ranked P4 · P1 · P3; named P2 P5 P6 P7 as do-nothing; pointed out carry_forward already exists for P5 (root then confirmed in code it covers table rows only)"
5490
+ evidence: "tracks/_meta/fh_signal_2026-11-14_fcdf9c61-close.md §Harvest"
5491
+ tokens: "89002"
5492
+ - date: 2026-11-14
5493
+ agent: "general-purpose (sonnet) — harvest-loop Step 3.75 isolated Critic (purpose: independence)"
5494
+ task: "judge four candidates H1-H4 on Done-When, two edge cases each, claim vs code, scope; derivation withheld"
5495
+ outcome: "all four CONDITIONAL PASS — H1 premise half wrong (commit message is the stated surface, PR body optional) · H2 print before the merge, not after · H3 preserve rather than refuse, idempotent · H4 define ceiling and live path"
5496
+ evidence: "tracks/_meta/fh_signal_2026-11-14_fcdf9c61-close.md §FH Registration Candidate"
5497
+ tokens: "139606"
5498
+ - date: 2026-11-15
5499
+ agent: "fh-meta:challenger (sonnet) — axis 2 for docs/USER_GUIDE.md §4 governor placement guide (purpose: independence)"
5500
+ task: "check the new section against the governance canon table, every cited script/path/flag, the CLAUDE.local.md three-field rule, a CLI-only cold start, privacy"
5501
+ outcome: "no canon distortion, script claims all correct; 2 A (CLI /context route and transcript path stated without source · work session never told the clone script path) · 2 B (duration heuristic read as rule · LATE/OK/2 outcomes missing) · 4 C — all fixed before commit"
5502
+ evidence: "PR body capsule (claude/docs-governor-placement-guide)"
5503
+ tokens: "132744"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
5
5
  "homepage": "https://github.com/chrono-meta/forge-harness#readme",
6
6
  "bugs": {
@@ -79,6 +79,8 @@
79
79
  "docs/CONTRIBUTING.md",
80
80
  "docs/ETHOS.md",
81
81
  "docs/GATE_DAY.md",
82
+ "docs/HOW_FH_DIFFERS.en.md",
83
+ "docs/HOW_FH_DIFFERS.md",
82
84
  "docs/IDENTITIES.md",
83
85
  "docs/MODEL_SETUP.md",
84
86
  "docs/OUTPUT_EVIDENCE.md",
@@ -178,6 +180,7 @@
178
180
  "scripts/digest_landing_check.sh",
179
181
  "scripts/absorption_queue.py",
180
182
  "scripts/test_absorption_queue_lanes.sh",
183
+ "scripts/test_meta_prompt_restate_lanes.sh",
181
184
  "scripts/catch_tally.py",
182
185
  "scripts/test_catch_tally_lanes.sh",
183
186
  "scripts/test_name_boundary_locale_lanes.sh",
@@ -251,6 +254,7 @@
251
254
  "scripts/prior_art_prompt.sh",
252
255
  "scripts/probe_live_eval.sh",
253
256
  "scripts/probe_live_eval_lib.py",
257
+ "scripts/live_eval_trace.py",
254
258
  "scripts/proposal_hook.sh",
255
259
  "scripts/psa_probe_capability.sh",
256
260
  "scripts/psa_scan_lib.sh",
@@ -383,6 +387,7 @@
383
387
  "scripts/test_prior_art_prompt_lanes.sh",
384
388
  "scripts/test_probe_live_eval_lanes.sh",
385
389
  "scripts/test_live_eval_construct_lanes.sh",
390
+ "scripts/test_live_eval_trace_lanes.sh",
386
391
  "scripts/test_proposal_hook_lanes.sh",
387
392
  "scripts/test_psa_singlefile_lanes.sh",
388
393
  "scripts/test_push_zone_lanes.sh",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -120,8 +120,8 @@ model: sonnet
120
120
  | **S27** | 분열문 「~할 점은 ~입니다」 (AI티 후보) | `C19` | 주어를 앞으로 세워 직접 말한다 | judged, candidate — 같음 |
121
121
  | **S28** | 소제목 과밀 (AI티 후보) | `C20` — 단락 2개 이하인 절이 3개 이상 연달아. 함수 레인(줄 패턴 아님) | 절을 합치거나 소제목을 뺀다 | judged, candidate — 같음 |
122
122
  | **S29** | 뻔한 추상 표현 (AI티 후보) | `C21` — 닫힌 어휘(발표에서 든 몇 개)라 recall 이 낮다. 늘리려면 사례를 먼저 쌓는다 | 구체적인 대상·동작으로 바꾼다 | judged, candidate — 같음 |
123
- | **S30** | 행위 주체 누락: 주어 없는 피동, 또는 주체가 사람인지 에이전트인지 모호 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 「~되는가」·「~처리된」처럼 누가 했는지 없는 서술, 같은 낱말(검토자·검증자)이 사람과 에이전트를 둘 다 가리킬 수 있는 자리 | 무엇이 무엇을 하는지를 능동으로 적는다 (「고장 나도 통과되는가」 → 「검사가 고장 나면 그대로 통과시키는가」 — 운영자: «무엇이 고장 나는지, 능동태로» · 「검토자」 → 「검토 에이전트」 · 「결과가 통과 쪽으로 무너지는지」 → 「게이트가 막지 않고 열려 버리는지」 — 운영자: «게이트가 열린다는 뜻이면 그렇게 말하라»). S8(지시 불명확)·S16(이명)과 겹치는 자리는 그쪽 규칙도 같이 본다. 외부 근거: 국내 기업 테크니컬 라이팅팀이 낸 «개발자를 위한 테크니컬 라이팅 10계명»의 4번 «피동형/사동형, 피해야»(디지털 인사이트 2021-06-25 요약 기사 «바쁜 개발자를 위한 테크니컬 라이팅 10계명»으로 확인 — 원문 페이지의 표제는 열어 보지 않았다). 🟥 「~이 되다」(무엇이 무엇으로 바뀜)는 피동이 아니다 — 후보로 세지 않는다 | judged (origin O) — 레인 없음. 쌍 출처 `SKILL_detail.md §Step-2-provenance` |
124
- | **S31** | 처음 정의하는 개념어: 따옴표 없이 본문에 섞임 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 글이 이름을 붙여 쓰는 개념이 처음 나오는 자리 | 첫 등장에 작은따옴표를 달고 바로 뒤에 괄호 풀이를 붙인다 (「사실 오류와 판단 오류」 → 「'사실 오류'(수치나 출처처럼 원본과 대조해 맞고 틀림을 가릴 수 있는 오류) … '판단 오류'(설명의 방향이나 해석처럼 대조할 원본이 없는 오류)」 · 「자동화된 파이프라인이 놓치는 것」 → 「'자동화된 파이프라인'이 놓치는 것」). 풀이를 붙이는 규칙 자체는 S7 이다 — S31 이 더하는 것은 «이 글이 이름 붙여 쓰는 개념»임을 작은따옴표로 표시하는 일이다. S10 과 방향이 같다(겹낫표·꺾쇠 대신 작은따옴표) | judged (origin O) — 레인 없음 |
123
+ | **S30** | 행위 주체 누락: 주어 없는 피동, 또는 주체가 사람인지 에이전트인지 모호 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 「~되는가」·「~처리된」·「~된 적」·「~된 채」처럼 누가 했는지 없는 서술(질문 문장만이 아니라 사례·경위를 말하는 평서문도 — 「머지된 적이 있었다」가 같은 결함이다), 같은 낱말(검토자·검증자)이 사람과 에이전트를 둘 다 가리킬 수 있는 자리 | 무엇이 무엇을 하는지를 능동으로 적는다 (「고장 나도 통과되는가」 → 「검사가 고장 나면 그대로 통과시키는가」 — 운영자: «무엇이 고장 나는지, 능동태로» · 「검토자」 → 「검토 에이전트」 · 「결과가 통과 쪽으로 무너지는지」 → 「게이트가 막지 않고 열려 버리는지」 — 운영자: «게이트가 열린다는 뜻이면 그렇게 말하라»). 🟥 **주체를 원고에서 알 수 없으면 지어내지 않는다** — 그 자리에 「[확인 필요: 누가 …했는지]」를 단다(사람이 했는지 도구가 했는지도 같이 묻는다). 피동을 말없이 그대로 두는 것도, 원고에 없는 주체(「리뷰어가」)를 넣는 것도 둘 다 결함이다. S8(지시 불명확)·S16(이명)과 겹치는 자리는 그쪽 규칙도 같이 본다. 외부 근거: 국내 기업 테크니컬 라이팅팀이 낸 «개발자를 위한 테크니컬 라이팅 10계명»의 4번 «피동형/사동형, 피해야»(디지털 인사이트 2021-06-25 요약 기사 «바쁜 개발자를 위한 테크니컬 라이팅 10계명»으로 확인 — 원문 페이지의 표제는 열어 보지 않았다). 🟥 「~이 되다」(무엇이 무엇으로 바뀜)는 피동이 아니다 — 후보로 세지 않는다 | judged (origin O) — 레인 없음. 쌍 출처 `SKILL_detail.md §Step-2-provenance` |
124
+ | **S31** | 처음 정의하는 개념어: 따옴표 없이 본문에 섞임 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 글이 이름을 붙여 쓰는 개념이 처음 나오는 자리 | 첫 등장에 작은따옴표를 달고 바로 뒤에 괄호 풀이를 붙인다 (「사실 오류와 판단 오류」 → 「'사실 오류'(수치나 출처처럼 원본과 대조해 맞고 틀림을 가릴 수 있는 오류) … '판단 오류'(설명의 방향이나 해석처럼 대조할 원본이 없는 오류)」 · 「자동화된 파이프라인이 놓치는 것」 → 「'자동화된 파이프라인'이 놓치는 것」). 🟥 **풀이는 그 개념이 무엇을 가리키는지 말하는 우리말 한 구절이다 — 영문 원어 괄호(「'흔들리는 테스트'(flaky test)」)는 풀이가 아니다.** 원어를 남기고 싶으면 풀이 뒤에 덧붙인다. 개념이 둘 이상 나란히 처음 나오면 하나하나에 따옴표와 풀이를 붙인다. 원고가 뜻을 주지 않아 풀이를 쓸 수 없으면 지어내지 말고 「[확인 필요: '…'의 정의]」를 단다. 풀이를 붙이는 규칙 자체는 S7 이다 — S31 이 더하는 것은 «이 글이 이름 붙여 쓰는 개념»임을 작은따옴표로 표시하는 일이다. S10 과 방향이 같다(겹낫표·꺾쇠 대신 작은따옴표) | judged (origin O) — 레인 없음 |
125
125
  | **S32** | 인용 도입: 누구의 어떤 연구인지 밝히기 전에 수치부터 나옴 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 외부 연구의 수치가 나오는 문단의 첫 문장에 저자·제목·무엇을 잰 연구인지가 있는가. 영문 제목만 있고 뜻풀이가 없는가 | 수치 앞에 «저자의 논문 "제목"(연도)은 무엇을 잰 연구입니다»를 한 문장으로 세운다 (「Kohli의 결과에서 아홉 개 판정은 …」 → 「Guneet Kohli의 논문 "Nine Judges, Two Effective Votes"(2026)는 LLM 심사 패널의 오류가 얼마나 겹치는지 측정한 연구입니다. 이 논문은 …」). 영문 제목에는 짧은 우리말 풀이를 붙인다(S24 와 같은 결 — 그쪽은 글 자체의 제목, 이쪽은 인용한 제목). 인용 서술이 원문과 맞는지는 이 클래스의 축이 아니다 — Step 4 로 간다 | judged (origin O) — 레인 없음 |
126
126
  | **S33** | 게재 시점에 낡는 상태 진술 (2026-11-12 운영자 교정) | 후보 눈표지(🟥 레인 아님 — 정상 용법이 대부분): 「다음 과제」·「다음 단계로는」·「아직 … 전입니다」·「… 하고 있습니다」·「넓혀 가고 있습니다」 | 원고와 게재 사이가 길면 그사이에 사실이 바뀐다(운영자: «게재 시점에는 이미 운영 중일 수 있다»). 🟥 Step 3 이 싣는 한계·«측정 중» 표기는 대상이 아니다 — 그것은 게재 뒤에도 참인 정직이다. 견해를 말하는 「… 보고 있습니다」도 진행 보고가 아니다. 진행 보고·예정은 지운다 (「다음 과제」 블록 전체 삭제 · 「이 앱은 아직 공개 전입니다」 삭제 · 「다른 앱과 반복 보정으로 넓혀 가고 있습니다」 삭제). 남기는 «하고 있다» 문장은 **발행 직전 최종본에서 하나씩 사실인지 다시 확인한다**(판단 — 수치가 아니라 Step 4 의 재측정 라벨 분모에는 들지 않는다) — 문서가 «하고 있다»고 말하는데 진행되지 않으면 문서가 거짓이 된다 | judged (origin O) — 레인 없음 |
127
127
  | **S34** | 구어 어휘·말버릇의 격 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 말할 때는 자연스럽지만 기술문서의 습니다체 안에서 가볍게 읽히는 낱말, 글을 설명하는 군말 | 문서 격에 맞는 말로 바꾸거나 지운다 (「변이 빌드도 씁니다」 → 「변이 빌드도 활용합니다」 · 「실행과 생성이 싸지는 시대」 → 「실행과 생성의 비용이 낮아지는 시대」 · 「한 문장으로 줄이면, …」 → 군말 삭제). 🟥 S13(구어 어미)과 축이 다르다 — 이쪽은 어휘다. 낭독 대본에서는 대상이 아니다 | judged (origin O) — 레인 없음 |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -2,16 +2,46 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### [3.43.0] — 2026-11-15
6
+
7
+ Minor by the version policy: a new shipped tool and lane for live-eval (#1099), a new shipped lane for `meta-prompt-builder` (#1103), and new judged procedures in shipped skills and rules. Nothing here makes an existing commit or publish gate refuse more by default, so no `BREAKING (gate)` line applies. Two checks are stricter, and neither is a consumer gate: the live-eval report can now exit 2 with `INVALID-COMPARISON` (#1099), and the checkout-only fixture-guard ratchet counts more git calls (#1097). The one new refusal path in a shipped gate script is opt-in: `remote_marker_gate.sh` reads PR bodies over the API only when `RMG_PR_LOOKUP=1` is set, and a failed lookup then exits 10 (#1105). If you run the 3.42.0 package's `test_fixture_guard_coverage_lanes.sh` directly, it no longer fails on the checkout floor (#1097). Items marked «not in the npm package» are in the repository checkout only.
8
+
9
+ ### Added
10
+ - `scripts/live_eval_trace.py` and `scripts/test_live_eval_trace_lanes.sh` (shipped). `probe_live_eval.sh` now records each arm's event stream by default (`sim_isolated_run.sh --trace`; `FH_LIVE_TRACE=0` restores text-only runs). A probe may carry `behave:` (`read=<re>` / `first_read=<re>`), scored from successful top-level tool calls rather than the reply text. A PASS with no trace is marked `MENTION-ONLY` in its row, and the report header counts those rows. Arms that saw different init tool/MCP lists, or an arm with no init, make the run `INVALID-COMPARISON`: no pass rate, and the run exits 2 (as `UNCALIBRATED` already did). This is a report verdict, not a commit gate, but a nightly run can now exit 2 where it used to print a pass rate. Four of the 12 live probes now check a file read; the other eight stay text-scored, by name. `ablation_calibrate.sh` (not in the npm package) passes `--strict-mcp-config` in all three arms (#1099).
11
+ - `meta-prompt-builder` Step 3 item 4, a restate check: before dispatch, a separate context-free reader restates each draft's GOAL / DONE / CONSTRAINTS and marks each RESTATABLE or GUESS. A GUESS becomes `[WARN: brief not restatable — <field>]`; restating your own draft does not count, and no reader means `NOT RUN`, not a pass. New lane `scripts/test_meta_prompt_restate_lanes.sh` (shipped) checks the record shape (#1103).
12
+ - `pr_merge_verified.sh` prints one line before the merge asking which path the defect travels and whether the `--rerun` lane's control was red on the unfixed target via that path. It checks nothing, blocks nothing and does not change the exit code. It stays quiet when every changed file is a doc or a lane (#1106).
13
+ - `session_close_check.sh` prints a record-only `ⓘ ⑤-done-anchor` line listing today's «완료» lines in `fh_completed_<date>.md` that name no commit, PR, run id, path or URL. The close check's exit code does not change. `claude_md_full_reference.md §Session Wrap-up` gains a paragraph: a «완료» line names its world state and what is still unresolved (#1100).
14
+ - `scripts/remote_marker_gate.sh`: with `RMG_PR_LOOKUP=1` and `RMG_REPO=<owner/name>`, a run with no PR body file asks GitHub for the PRs that contain the commit and appends the bodies of those whose head is this repo and branch. A failed or unreadable lookup exits 10, never «no PR». Without `RMG_PR_LOOKUP` the script behaves as before. This repo's `validate.yml` sets it on push runs, so a `claude/*` PR whose marker is only in its PR body no longer goes red on push while green on pull_request at the same HEAD (#1105).
15
+ - `scripts/ablation_verdict.py` (not in the npm package): renders an ablation null result as `NOT-DETECTED@N=<n>` with the minimum detectable drop at that N, plus `DETECTED`, `INSTRUMENT-UNCONFIRMED` and `INPUT-ERROR`. The self-dev loop's ablation steps now use it instead of a builder-written «no loss». What the loop may merge does not change (#1096).
16
+ - `scripts/builder_card_files_check.py` (not in the npm package): checks a builder Context Card's `files:` block (`editable` · `required` · `inspect-only` · `protected`) against the builder tree's changes. Exit 0 `CLEAN`, 1 `VIOLATION`, 2 `HARNESS-ERROR`. Nothing calls it yet except its lanes. `dispatch_conditional_prohibition.md` gains a bullet on what goes in the block and who runs the check (#1111).
17
+
18
+ ### Changed
19
+ - `measurement-integrity-checklist.md §Measured-Loop`: the runs that chose a candidate do not count toward promoting it, as a three-sample table (choosing · promoting · reporting). `edit-manifest` gains a fresh-sample guard (only events dated after the entry count, the selection evidence never counts, a `redefine` is a new version), and `harvest-loop` 6-b keeps an approved addition provisional until later events decide. `probe_scope_check.sh` and the ablation log (not in the npm package) carry the same rule (#1112).
20
+ - `dispatch_conditional_prohibition.md` and `.claude/rules/fh_4axis_gate.md`: a Context Card or root brief is restated by a fresh reader before it is sent, and a `soul:` line before design; the result goes inside the `soul-check:` grounds. No new marker field and no hook check (#1113).
21
+ - `fh_module_contract.md §2d`: before building a module whose purpose is accuracy, measure the bare model on the real path; at the ceiling, record `NOT-DETECTED@N` and do not build. Modules whose value is not accuracy are out of scope (#1109).
22
+ - `ko-tech-writer` S30 now lists declarative passives (`~된 적`, `~된 채`) and asks for `[확인 필요: …]` instead of inventing an actor; S31 says an English parenthetical is not a gloss (#1095).
23
+
24
+ ### Fixed
25
+ - `test_fixture_guard_coverage_lanes.sh` run inside an installed package (no `.git`) skips its live case by name and prints `1 skipped (not a pass)`; before, it failed on the checkout floor (3.42.0 package: 9 passed, 1 failed). Git captured into a variable now counts as a git reference, and a guard line inside a heredoc body no longer counts as a guard. That makes the ratchet stricter: a lane it passed before can now fail it, and the script names one known over-block that fails closed. At release the live scan is green in the checkout (#1097).
26
+ - `capability_registry_check.sh --self-test` no longer flakes under parallel load: two substring checks used `printf | grep -q` under `pipefail`, which returned 141 on SIGPIPE. No assertion was loosened (#1097).
27
+ - `test_mutation_probe_lanes.sh` exits 0 on macOS: lane N6 counts processes with `ps` when `/proc` is absent, and S7-5 (Linux subreaper) prints `NOT-APPLICABLE on Darwin` and is not counted as passed. On Linux a missing `/proc` or `setsid` is still red (#1101).
28
+
29
+ ### Docs
30
+ - `docs/HOW_FH_DIFFERS.md` (Korean) and `docs/HOW_FH_DIFFERS.en.md`: how FH differs from the common idea of a harness; a pointer line in each README (#1102).
31
+ - `docs/USER_GUIDE.md §4`: choosing and starting an intensive or a supervising governor. The session-ledger scripts and `governor_landing_check.py` it names are clone-only (not in the npm package). `AGENTS.md §Governor Operation` points to it (#1107).
32
+ - `docs/model_tier_expectations.md`: Opus 5.5 rows with the vendor's effort guidance and its source, the role verdict `UNMEASURED`, and a refresh rule for new models (#1114).
33
+ - 3.42.0 notes reworded from the release review (#1098); the subagent invocation log gains the 2026-11-14 dispatches (#1104).
34
+
5
35
  ### [3.42.0] — 2026-11-14
6
36
 
7
37
  Minor by the version policy: a new shipped ratchet lane (#1091) and new judged checks in the `ko-tech-writer` skill (#1092). Nothing here makes an existing gate refuse more, so no `BREAKING (gate)` line applies. If you run 3.41.0 from an npm install and have a companion store configured as a git repo, you have been seeing a `LANE-TRIPWIRE HARNESS-ERROR … is not a readable git repo` line at every session start; 3.42.0 removes it (#1093). The new ratchet lane is checkout-only: `selfcheck.sh` skips it in an installed package, and running it directly there fails by design.
8
38
 
9
39
  ### Added
10
- - `scripts/test_fixture_guard_coverage_lanes.sh` (shipped): a ratchet lane. A `scripts/test_*.sh` or `scripts/*_lanes.sh` that calls git must source `fixture_guard_lib.sh` before its first git call. It is a checkout-only suite: `selfcheck.sh` skips it in an installed package, which ships fewer lanes (70 against a floor of 80). Run directly inside the package, its live case fails on that floor while its nine planted calibration cases pass (#1091).
40
+ - `scripts/test_fixture_guard_coverage_lanes.sh` (shipped): a ratchet lane: it fails as soon as any git-calling lane lacks the guard, so coverage cannot slip back. A `scripts/test_*.sh` or `scripts/*_lanes.sh` that calls git must source `fixture_guard_lib.sh` before its first git call. It is a checkout-only suite: `selfcheck.sh` skips it in an installed package, which ships fewer lanes: the live case counts the git-calling lanes it scans (86 in the checkout at release, 70 in the 3.42.0 package) against a floor of 80. Run directly inside the package, its live case fails on that floor while its nine planted calibration cases pass (#1091).
11
41
  - `ko-tech-writer` skill: five new judged checks S30–S34 (agentless passive, first-defined concept in quotes with a gloss, introduce a cited study before its numbers, progress statements that go stale before publication, colloquial register), a second example pair for S17, and a Step 4 check of citation descriptions against the linked abstract and a later-finalized sibling (#1092).
12
42
 
13
43
  ### Fixed
14
- - 78 test lanes now source `fixture_guard_lib.sh` before any git call, so running one directly from a shell with an exported `GIT_DIR` or `GIT_INDEX_FILE` no longer writes into, or reads from, the exported repo. This closes the «not yet covered» gap noted under 3.41.0 (#1091).
44
+ - 78 test lanes now source `fixture_guard_lib.sh` before their first git call; at release the live scan found all 86 git-calling lanes in the checkout guarded. So running one directly from a shell with an exported `GIT_DIR` or `GIT_INDEX_FILE` no longer writes into, or reads from, the exported repo. This holds for the git calls the line scan sees; git reached through a variable and a guard line inside a heredoc were not seen by the 3.42.0 scan. This closes the «not yet covered» gap noted under 3.41.0 (#1091).
15
45
  - Session start no longer runs the lane-identity tripwire when the FH folder is not a git repository. Before, an npm-installed copy (not a git repo) with a configured git companion store printed `LANE-TRIPWIRE HARNESS-ERROR: … is not a readable git repo` at every session start (measured on the published 3.41.0 package). Called directly, `lane_identity_tripwire.sh` still exits 2 on a non-repo, and `--strict` is unchanged (#1093).
16
46
 
17
47
  ### Docs
@@ -171,6 +171,16 @@ Then score `match_score`: **1.0** = evidence clearly confirms the prediction ·
171
171
  > (proposal lists, curator decisions) as verification evidence. Evidence sources are limited
172
172
  > to primary signals — raw utterance logs, invocation counts, git history, friction signals —
173
173
  > that exist independently of any harvest-loop run.
174
+ >
175
+ > **Fresh-sample guard (2026-11-15, FH-2)**: evidence counts only if the **underlying events** are
176
+ > dated after the entry's `date` — a grep or a cumulative count run today still counts only events
177
+ > after that date — and are **not part of the selection evidence**: every observation used to choose
178
+ > or shape the edit (the prompting signal, utterance or session, trial fixes, candidate comparisons).
179
+ > That evidence chose the edit; scoring the edit on it again is selecting and promoting on one sample,
180
+ > and it confirms by construction. Name what was excluded in `verification_note`. If only selection
181
+ > or pre-edit evidence exists, the entry stays `pending` — not `verified`. A `redefine` (Step V3) is a
182
+ > new version: give it a new `date`, and the evidence that prompted the redefinition becomes selection
183
+ > evidence for it.
174
184
 
175
185
  **Step V3 — Apply Validation Gate**
176
186
 
@@ -205,7 +215,10 @@ Apply `verified_at`, `verification_note`, `gate_decision` to each resolved entry
205
215
 
206
216
  ## Validation Gate Logic
207
217
 
208
- Mirrors SkillOpt's validation gate (the held-out gate over its selection-split score):
218
+ Mirrors SkillOpt's validation gate (the held-out gate over its selection-split score). What FH
219
+ holds out is time: the prompting observation and everything dated before the edit are the selection
220
+ side; only later primary signals decide (Fresh-sample guard, Step V2). Without that guard the gate
221
+ would be held out in name only:
209
222
 
210
223
  ```
211
224
  IF verified evidence shows improvement:
@@ -187,7 +187,7 @@ FAIL routing: First FAIL → 1 re-synthesis allowed. FAIL after re-synthesis →
187
187
 
188
188
  **6-a Skill Usage Leaderboard**: Record skills called this session in `tracks/_meta/skill_usage.md`. Flag 4+ weeks no-call → deprecation candidate.
189
189
 
190
- **6-b Harness Evolution Cadence** (4-week cycle): Scan skills with `complexity_routing`. Aggregate escalation records from `fh_signal_*.md`. Valid conditions = keep; never activated in 4 weeks = removal candidate; pattern in fh_signal = addition candidate. No auto-modification — output candidates then require user approval.
190
+ **6-b Harness Evolution Cadence** (4-week cycle): Scan skills with `complexity_routing`. Aggregate escalation records from `fh_signal_*.md`. Valid conditions = keep; never activated in 4 weeks = removal candidate; pattern in fh_signal = addition candidate. No auto-modification — output candidates then require user approval. An approved addition is **provisional**: the `fh_signal` pattern that nominated it is selection evidence, so its edit-manifest entry is decided only by later events (edit-manifest §Fresh-sample guard).
191
191
 
192
192
  > **Detail**: See `SKILL_detail.md §Step6-Detail` — bash scripts for STALE detection, memory scan, skill usage leaderboard, evolution cadence aggregation — read when executing Step 6.
193
193
 
@@ -106,6 +106,22 @@ Before outputting the generated prompt draft, check against 3 criteria.
106
106
  2. **Done When measurability**: Is Done When a measurable event in the M/S/R framework?
107
107
  3. **Context alignment**: Does the Context match the "target" scope defined in the agent's SKILL.md?
108
108
 
109
+ 4. **Restate check (cold reader)** — the procedure for the judged Done-When row below («read one
110
+ draft cold»). Hand **each** draft — its text only, no conversation, no repo — to a separate reader
111
+ (a fresh subagent, Sonnet or Haiku, or a different model family) and ask it to restate **GOAL**
112
+ (what is true when finished) · **DONE** (the observable check) · **CONSTRAINTS** (what not to
113
+ touch), marking each `RESTATABLE` or `GUESS`, and to list the questions it would need answered.
114
+ Any `GUESS` field is `[WARN: brief not restatable — <field>]`; its questions are the fix list.
115
+ Do not tell the reader which draft you suspect. Restating your own draft yourself does not count —
116
+ the failure this answers is the author filling gaps from context the receiver never gets. Record
117
+ the reader's model and keep its raw reply next to the draft. Dispatching the reader follows the
118
+ usual dispatch consent; if no reader can be dispatched, mark the row `NOT RUN`, never `RESTATABLE`.
119
+ Measured once (2026-11-14, one reader per brief, briefs written by the same author — `UNCALIBRATED`):
120
+ 4 briefs made vague on purpose → 4/4 not restatable on all three fields; 4 briefs meant to be clear →
121
+ 3/4 restatable, the fourth flagged an undefined term the author then judged real. This shows the
122
+ check flags briefs made vague, not a false-alarm rate. Idea from the comprehension stage of
123
+ https://github.com/google/elephant-goldfish-model ; the procedure here is FH's own.
124
+
109
125
  Items that fail the check are marked `[WARN]` and the decision is delegated to the user.
110
126
 
111
127
  **Step 3 bias prevention**: When checking Goal achievability, Read the agent's SKILL.md to directly verify (directly compare allowed-tools list). Since generator and validator are the same LLM, self-validation without external reference repeats bias.
@@ -183,6 +199,9 @@ Version / baseline: the Step 3 checklist and the WARN-trigger table in
183
199
  ☐ [WARN] items are surfaced to the user with the reason, and
184
200
  the decision is the user's (mandatory-pass)
185
201
  ☐ Drafts are handed over for review, not dispatched (mandatory-pass)
202
+ ☐ Step 3 item 4 ran on every draft with a separate reader;
203
+ each GUESS field is a recorded [WARN] or was fixed and re-read (mandatory-pass — NOT RUN is
204
+ recorded, never counted as pass)
186
205
  ☐ The drafts are usable by the target agent as written (judged — adversarial pairing:
187
206
  generator and validator are the
188
207
  same model, so self-validation
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-qp",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -64,6 +64,11 @@ FILE_FAILED=0 # 현재 capfile 한정 — 파일마다 초기화한다. 이게
64
64
  # 뒤 파일의 M4 를 SKIPPED 로 만들어, 뒤 파일의 실제 결함이 안 보인다(보고 결함).
65
65
  _fail() { printf ' ❌ %s — %s\n' "$1" "$2"; FAILED=1; FILE_FAILED=1; }
66
66
  _ok() { printf ' ✅ %s — %s\n' "$1" "$2"; }
67
+ # _has <haystack> <fixed-needle> — substring test with NO pipe. Under `set -o pipefail` (line 49)
68
+ # `printf "$big" | grep -q x` returns 141 whenever grep exits on the first match before printf has
69
+ # written everything (SIGPIPE on the writer) — a timing race that made --self-test go red ~5% of
70
+ # runs under parallel load (2026-11-14: 7/144 at 24-way). A here-string has no writer to kill.
71
+ _has() { grep -qF -- "$2" <<<"$1"; }
67
72
  _die() { printf '❌ HARNESS_ERROR: %s\n' "$*" >&2; exit "$RC_HARNESS"; }
68
73
 
69
74
  _parse() {
@@ -495,6 +500,14 @@ _self_test() {
495
500
  else fail=$((fail+1)); printf ' ❌ %-34s rc=%s (기대 %s)\n%s\n' "$1" "$r" "$2" "$o"; fi
496
501
  }
497
502
  printf 'capability_registry_check --self-test\n'
503
+ # P0: the matcher itself. Needle first, then >1 MiB after it — a piped `grep -q` exits on line 1
504
+ # and the writer dies of SIGPIPE, which pipefail turns into «not found». Known-positive (needle
505
+ # present → hit) and known-negative (absent → miss), so a matcher that always says yes is red too.
506
+ local _big; _big="NEEDLE-P0"$'\n'"$(head -c 1200000 /dev/zero | tr '\0' x)"
507
+ if _has "$_big" "NEEDLE-P0"; then pass=$((pass+1)); printf ' ✅ %-34s\n' "P0: 큰 출력 앞머리 매치(파이프 경합 없음)"
508
+ else fail=$((fail+1)); printf ' ❌ %-34s — 있는 문자열을 못 찾았다(파이프+pipefail SIGPIPE 형태)\n' "P0: 큰 출력 앞머리 매치"; fi
509
+ if _has "$_big" "ABSENT-P0"; then fail=$((fail+1)); printf ' ❌ %-34s — 없는 문자열을 찾았다고 했다\n' "P0: 컨트롤(없는 문자열)"
510
+ else pass=$((pass+1)); printf ' ✅ %-34s\n' "P0: 컨트롤(없는 문자열은 미스)"; fi
498
511
  cat > "$T/good.cap" <<EOF
499
512
  id: selftest:true-false
500
513
  entry: bash $T/probe.sh
@@ -585,7 +598,7 @@ LIAR
585
598
  # ★rc 만 보면 **어느 축이 막았는지** 모른다 — M6 를 재려면 M6 가 실패했다고 말해야 한다.
586
599
  CRC_DEBUG_OUT=$(bash "$0" "$T/liar.cap" 2>&1)
587
600
  [ -n "${CRC_DEBUG:-}" ] && printf '%s\n' "$CRC_DEBUG_OUT" >&2
588
- if printf '%s' "$CRC_DEBUG_OUT" | grep -q '❌ M6'; then
601
+ if _has "$CRC_DEBUG_OUT" '❌ M6'; then
589
602
  pass=$((pass+1)); printf ' ✅ %-34s (M6 가 차단자임을 확인)\n' "M6: 차단 귀속"
590
603
  else
591
604
  fail=$((fail+1)); printf ' ❌ %-34s — rc 는 1 인데 M6 가 막은 게 아니다(다른 축이 먼저 걸렸다)\n' "M6: 차단 귀속"
@@ -595,7 +608,7 @@ LIAR
595
608
  # «채널이 켜져 있나 · 계산이 맞나 · 조건부로 꺼지지 않나» 셋이다.
596
609
  _tg() { # $1=이름 $2=기대 rc $3=capfile $4=반드시 포함할 문자열
597
610
  local o r hit; o="$(bash "$0" "$3" 2>&1)"; r=$?
598
- if printf '%s' "$o" | grep -qF "$4"; then hit=1; else hit=0; fi
611
+ if _has "$o" "$4"; then hit=1; else hit=0; fi
599
612
  if [ "$r" = "$2" ] && [ "$hit" = "1" ]; then
600
613
  pass=$((pass+1)); printf ' ✅ %-34s rc=%s\n' "$1" "$r"
601
614
  else
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env python3
2
+ """Read a `claude -p --output-format stream-json --verbose` trace — stdlib only.
3
+
4
+ Why (2026-11-14, FH-3): every live-eval scorer grepped the reply TEXT. A reply that says «I will read
5
+ CATALOG.md first» and a session that actually read it scored the same, so the 12/12 PASS measured
6
+ mentions. The runner now keeps the event stream (`<arm>_r<n>.stream.jsonl`, opt-in `--trace` in
7
+ sim_isolated_run.sh), and a probe may declare `behave:` — an observable tool call — next to its
8
+ `expect_re`.
9
+
10
+ Two uses:
11
+ extract <stream.jsonl> <out.txt> <tools.txt> (runner) write the final result text and the init
12
+ tool/MCP inventory. Exit 3 on a stream that has no parseable result event — never an empty
13
+ «the session said nothing» (same rule as sim_isolated_run.sh's turns path).
14
+ library: parse_stream(path) · behave_hit(trace, spec) · inventory(trace)
15
+
16
+ `behave:` grammar (one per probe, value is an ERE, no colon by probes_live.yaml convention):
17
+ read=<re> some SUCCESSFUL Read (file_path) or Grep (path) call matches — Python `re`, not POSIX
18
+ first_read=<re> the FIRST Read/Grep/Glob call of the top-level session is that successful call
19
+ Credited calls: top-level only (a subagent's call, parent_tool_use_id set, is not the arm's action),
20
+ with a matching tool_result that is not is_error (a denied or failed Read did not read anything).
21
+ Glob and a Grep `pattern` never count as reading a file. Residual: «first» is emission order; two
22
+ calls issued in one parallel batch are not ordered by completion.
23
+ """
24
+ import json, re, sys
25
+
26
+ FILE_TOOLS = ('Read', 'Grep', 'Glob')
27
+ READ_KEYS = {'Read': ('file_path',), 'Grep': ('path',)}
28
+
29
+
30
+ def parse_stream(path):
31
+ """{'result': str|None, 'tools': [..]|None, 'mcp': [..]|None, 'calls': [(name, input)]}.
32
+ None when the file is absent/unreadable. A missing init event leaves tools=None (UNKNOWN,
33
+ never «no tools»)."""
34
+ try:
35
+ lines = open(path, encoding='utf-8').read().splitlines()
36
+ except (OSError, UnicodeDecodeError):
37
+ return None
38
+ out = {'result': None, 'tools': None, 'mcp': None, 'calls': [], 'damaged': 0, 'ok_ids': set()}
39
+ for ln in lines:
40
+ ln = ln.strip()
41
+ if not ln:
42
+ continue
43
+ try:
44
+ ev = json.loads(ln)
45
+ except ValueError:
46
+ out['damaged'] += 1 # a skipped line could hide the real first call
47
+ continue
48
+ if not isinstance(ev, dict):
49
+ continue
50
+ t = ev.get('type')
51
+ if t == 'system' and ev.get('subtype') == 'init':
52
+ if isinstance(ev.get('tools'), list):
53
+ out['tools'] = sorted(str(x) for x in ev['tools'])
54
+ if isinstance(ev.get('mcp_servers'), list):
55
+ out['mcp'] = sorted(('%s:%s' % (s.get('name'), s.get('status'))) if isinstance(s, dict) else str(s)
56
+ for s in ev['mcp_servers'])
57
+ elif t == 'assistant':
58
+ if ev.get('parent_tool_use_id'):
59
+ continue
60
+ for c in (ev.get('message') or {}).get('content') or []:
61
+ if isinstance(c, dict) and c.get('type') == 'tool_use':
62
+ out['calls'].append((str(c.get('name', '')), c.get('input') or {}, c.get('id')))
63
+ elif t == 'user':
64
+ for c in (ev.get('message') or {}).get('content') or []:
65
+ if isinstance(c, dict) and c.get('type') == 'tool_result' and not c.get('is_error'):
66
+ out['ok_ids'].add(c.get('tool_use_id'))
67
+ elif t == 'result':
68
+ if ev.get('subtype') not in (None, 'success') or ev.get('is_error'):
69
+ out['damaged'] += 1 # an error result is not a finished session
70
+ r = ev.get('result')
71
+ out['result'] = r if isinstance(r, str) else ('' if r is None else json.dumps(r, ensure_ascii=False))
72
+ return out
73
+
74
+
75
+ def inventory(trace):
76
+ """One comparable string for the arm's tool surface, or None when the init event was absent."""
77
+ if trace is None or trace['tools'] is None:
78
+ return None
79
+ return 'tools=' + ','.join(trace['tools']) + ' | mcp=' + ','.join(trace['mcp'] or [])
80
+
81
+
82
+ def _read_hit(call, trace, pat):
83
+ name, inp, cid = call
84
+ if cid not in trace['ok_ids'] or not isinstance(inp, dict):
85
+ return False
86
+ return any(pat.search(str(inp[k])) for k in READ_KEYS.get(name, ()) if k in inp)
87
+
88
+
89
+ def parse_behave(spec):
90
+ """'first_read=CATALOG' -> ('first_read', compiled). ValueError on anything else (a typo must
91
+ not silently become «no behaviour declared»)."""
92
+ m = re.match(r'^(read|first_read)=(.+)$', (spec or '').strip())
93
+ if not m:
94
+ raise ValueError('behave %r is not read=<re> or first_read=<re>' % spec)
95
+ return m.group(1), re.compile(m.group(2))
96
+
97
+
98
+ def behave_hit(trace, spec):
99
+ """True/False whether the trace shows the declared action. Caller handles trace None."""
100
+ kind, pat = parse_behave(spec)
101
+ file_calls = [c for c in trace['calls'] if c[0] in FILE_TOOLS]
102
+ if kind == 'first_read':
103
+ return bool(file_calls) and _read_hit(file_calls[0], trace, pat)
104
+ return any(_read_hit(c, trace, pat) for c in file_calls)
105
+
106
+
107
+ def _extract(src, dst_txt, dst_tools):
108
+ tr = parse_stream(src)
109
+ if tr is None or tr['result'] is None or tr['damaged']:
110
+ open(dst_txt, 'w', encoding='utf-8').write('')
111
+ open(dst_tools, 'w', encoding='utf-8').write('UNKNOWN (no result event, error result or damaged stream)\n')
112
+ return 3
113
+ open(dst_txt, 'w', encoding='utf-8').write(tr['result'])
114
+ open(dst_tools, 'w', encoding='utf-8').write((inventory(tr) or 'UNKNOWN (no init event)') + '\n')
115
+ return 0
116
+
117
+
118
+ if __name__ == '__main__':
119
+ if len(sys.argv) == 5 and sys.argv[1] == 'extract':
120
+ sys.exit(_extract(*sys.argv[2:5]))
121
+ print(__doc__, file=sys.stderr)
122
+ sys.exit(2)
@@ -55,6 +55,13 @@ ACCEPTED_ABSENT=(
55
55
  # public cycle (docs/ABLATION_CYCLE.md, not shipped either) goes to npm is an open operator decision.
56
56
  "scripts/ablation_nominate.py"
57
57
  "scripts/test_ablation_nominate_lanes.sh"
58
+ # 2026-11-14 — the verdict renderer the loop's ABLATION_STEPS points at. Same loop, same scope.
59
+ "scripts/ablation_verdict.py"
60
+ "scripts/test_ablation_verdict_lanes.sh"
61
+ # 2026-11-15 — builder Context Card file-role check (FH-6). Hub pilot: whether consumers get it is a §7 ship
62
+ # decision for the operator, and the dispatch doc that names it is hub-local practice today.
63
+ "scripts/builder_card_files_check.py"
64
+ "scripts/test_builder_card_files_lanes.sh"
58
65
  "docs/ABLATION_CYCLE.md"
59
66
  # 2026-11-07 — lease-record channel (AQ-20261107-11). It writes this hub's operator-local lease file; a consumer
60
67
  # has no such file and no such convention, so shipping it would ship a tool with nothing to act on.
@@ -183,6 +183,13 @@ if [ -n "$_changed" ]; then
183
183
  [ "$_hit" -eq 1 ] || echo "⚠️ --rerun mentions none of this PR's $(printf '%s\n' "$_changed" | wc -l | tr -d ' ') changed file(s) (nor any script it names) — it may not exercise the change. Advisory only; merging continues." >&2
184
184
  fi
185
185
 
186
+ # 1c. defect-path prompt — ONE LINE, PRINT ONLY (never changes rc, runs nothing, checks nothing). The script cannot know
187
+ # the path a defect travels, so it does not judge coverage; it asks the merging session to say it (2026-11-14 harvest H2:
188
+ # #316's control was green on main because HOME held a space and the lane ran elsewhere). Quiet when every changed file is
189
+ # a doc (*.md / docs/) or a lane (scripts/test_*) — those PRs have no defect path to name, and the line would be noise.
190
+ _code=$(printf '%s\n' "$_changed" | grep -vE '(\.md$|^docs/|(^|/)test_[^/]*$)' | grep -c . )
191
+ [ "${_code:-0}" -gt 0 ] && echo "🔎 before merging: name the path the defect travels — does this --rerun lane traverse it, and was its control red on the UNFIXED target via that same path? (prompt only — nothing was checked; merging continues)" >&2
192
+
186
193
  # 2. merge
187
194
  # 🟥 cross-family W1: pin the merge to the head we RECORDED. Without it, a push landing between the
188
195
  # record and the merge gets squashed in unverified, and «merged and verified» describes a commit
@@ -137,6 +137,9 @@ MODEL="sonnet"
137
137
  # 그대로 남긴다(3/3 과 2/3 은 다른 사실이다).
138
138
  # ⚠️ 비용: reps=3 이면 프로브당 `claude -p` 호출이 2 → 6 이다(12 프로브 = 24 → 72).
139
139
  REPS=1
140
+ # §TRACE (2026-11-14, FH-3): arms keep their event stream so the scorer can read tool calls and the
141
+ # init tool/MCP list (behave: probes · INVALID-COMPARISON). FH_LIVE_TRACE=0 restores text-only runs.
142
+ if [ "${FH_LIVE_TRACE:-1}" = 0 ]; then FH_LIVE_TRACE_ARG=""; else FH_LIVE_TRACE_ARG="--trace"; fi
140
143
  DRYRUN=0
141
144
  SUBSET=""
142
145
  IDS=""
@@ -287,7 +290,7 @@ while IFS= read -r id; do
287
290
  echo ""
288
291
  echo "▶ $id — primary"
289
292
  bash "$SIM_RUNNER" --arm primary --reps "$REPS" --prompt "$input_text" \
290
- --mode observe --model "$MODEL" --out "$probe_out" \
293
+ --mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
291
294
  > "$probe_out/_runner_primary.log" 2>&1
292
295
  runner_rc=$?
293
296
  tail -n 6 "$probe_out/_runner_primary.log"
@@ -308,7 +311,7 @@ while IFS= read -r id; do
308
311
 
309
312
  echo "▶ $id — control"
310
313
  bash "$SIM_RUNNER" --arm control --reps "$REPS" --prompt "$control_text" \
311
- --mode observe --model "$MODEL" --out "$probe_out" \
314
+ --mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
312
315
  > "$probe_out/_runner_control.log" 2>&1
313
316
  runner_rc=$?
314
317
  tail -n 6 "$probe_out/_runner_control.log"
@@ -329,7 +332,7 @@ while IFS= read -r id; do
329
332
  control_b_text="$(cat "$SPEC_DIR/$id.control_b.txt")"
330
333
  echo "▶ $id — control_b"
331
334
  bash "$SIM_RUNNER" --arm control_b --reps "$REPS" --prompt "$control_b_text" \
332
- --mode observe --model "$MODEL" --out "$probe_out" \
335
+ --mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
333
336
  > "$probe_out/_runner_control_b.log" 2>&1
334
337
  runner_rc=$?
335
338
  tail -n 6 "$probe_out/_runner_control_b.log"