@chrono-meta/fh-gate 3.44.0 → 3.45.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 (89) hide show
  1. package/.claude/rules/fh_4axis_gate.md +50 -608
  2. package/.claude-plugin/marketplace.json +4 -4
  3. package/CATALOG.md +21 -0
  4. package/CHEATSHEET.md +7 -1
  5. package/docs/codex-compat.md +1 -1
  6. package/knowledge/shared/harness-core/fh_4axis_gate_detail.md +679 -0
  7. package/knowledge/shared/harness-core/fh_integration_contract.md +1 -1
  8. package/knowledge/shared/harness-core/fh_module_contract.md +106 -3
  9. package/knowledge/shared/harness-core/heavy_skill_to_cartridge.md +185 -0
  10. package/knowledge/shared/learnings/subagent_invocations_log.yaml +209 -0
  11. package/package.json +17 -1
  12. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  13. package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +9 -8
  14. package/plugins/fh-commons/skills/ko-tech-writer/SKILL_detail.md +20 -0
  15. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  16. package/plugins/fh-meta/CHANGELOG.md +95 -0
  17. package/plugins/fh-meta/skills/auto-decorrelation/SKILL.md +13 -0
  18. package/plugins/fh-meta/skills/install-wizard/SKILL_detail.md +4 -0
  19. package/plugins/fh-meta/skills/steel-quench/SKILL_detail.md +2 -1
  20. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  21. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  22. package/scripts/agy_launch_guard.sh +117 -1
  23. package/scripts/below_floor_scan.sh +30 -0
  24. package/scripts/codex_launch_guard.sh +38 -2
  25. package/scripts/correction_moments.py +23 -2
  26. package/scripts/fh-gate.sh +612 -14
  27. package/scripts/fh-goal.sh +56 -12
  28. package/scripts/fh-run.sh +1 -1
  29. package/scripts/fh_gate_exec.sh +272 -0
  30. package/scripts/fh_session_load.sh +17 -0
  31. package/scripts/finding_fleet.sh +2 -1
  32. package/scripts/finding_verifier.sh +2 -1
  33. package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/README.md +16 -0
  34. package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/scripts/check_refs.py +12 -0
  35. package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/scripts/test_check_refs.py +24 -0
  36. package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/skills/tidy-notes/SKILL.md +16 -0
  37. package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/skills/tidy-notes/fh-module.yaml +20 -0
  38. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/SKILL.md +25 -0
  39. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/hooks/hooks.json +7 -0
  40. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/check_links.py +25 -0
  41. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/publish.sh +9 -0
  42. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/publish_guard.py +6 -0
  43. package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/setup.sh +5 -0
  44. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/SKILL.md +25 -0
  45. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/hooks/hooks.json +10 -0
  46. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/check_refs.py +12 -0
  47. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/guard_push.py +9 -0
  48. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/install.sh +6 -0
  49. package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/ship.sh +9 -0
  50. package/scripts/heavy_skill_smell.py +311 -0
  51. package/scripts/job_heartbeat.py +186 -0
  52. package/scripts/live_eval_matrix.py +128 -0
  53. package/scripts/live_eval_trace.py +176 -1
  54. package/scripts/package_coverage_check.sh +18 -0
  55. package/scripts/prepush_guard_check.sh +8 -0
  56. package/scripts/probe_live_eval.sh +32 -0
  57. package/scripts/probe_live_eval_lib.py +8 -2
  58. package/scripts/selfcheck.sh +111 -0
  59. package/scripts/selfcheck_shard_weights.txt +2 -0
  60. package/scripts/sidecar_calibrate.sh +7 -5
  61. package/scripts/sim_isolated_run.sh +20 -0
  62. package/scripts/test_agy_launch_guard_lanes.sh +120 -0
  63. package/scripts/test_below_floor_scan_lanes.sh +85 -0
  64. package/scripts/test_codex_launch_guard_lanes.sh +45 -0
  65. package/scripts/test_correction_moments_lanes.sh +37 -0
  66. package/scripts/test_fh_gate_absorb_lanes.sh +255 -0
  67. package/scripts/test_fh_gate_defaults_lanes.sh +169 -0
  68. package/scripts/test_fh_gate_exec_lanes.sh +244 -0
  69. package/scripts/test_fh_gate_fusion_lanes.sh +202 -0
  70. package/scripts/test_fh_gate_regressions.sh +92 -1
  71. package/scripts/test_fh_goal_change_detection_lanes.sh +103 -3
  72. package/scripts/test_finding_pipeline_lanes.sh +35 -1
  73. package/scripts/test_guard_anchor_override_env_lanes.sh +84 -0
  74. package/scripts/test_heavy_skill_smell_lanes.sh +160 -0
  75. package/scripts/test_job_heartbeat_lanes.sh +96 -0
  76. package/scripts/test_live_eval_construct_lanes.sh +29 -6
  77. package/scripts/test_live_eval_matrix_lanes.sh +53 -0
  78. package/scripts/test_live_eval_trace_lanes.sh +112 -5
  79. package/scripts/test_name_boundary_locale_lanes.sh +36 -5
  80. package/scripts/test_prepush_marker_lookup_lanes.sh +143 -0
  81. package/scripts/test_probe_live_eval_lanes.sh +43 -0
  82. package/scripts/test_regression_guard_sibling_lanes.sh +52 -1
  83. package/scripts/test_sidecar_calibrate_lanes.sh +1 -1
  84. package/scripts/test_sim_isolated_run_lanes.sh +43 -0
  85. package/scripts/universal_guard_check.sh +8 -0
  86. package/templates/.claude/rules/mcp_tool_gating.md +27 -0
  87. package/templates/.git-hooks/pre-push +60 -3
  88. package/templates/regression_guard.sh +8 -4
  89. package/templates/settings.LaneGap.snippet.json +27 -0
@@ -113,26 +113,26 @@ model: sonnet
113
113
  | **S15** | 라틴 문자 뒤 조사 띄어쓰기 (수확 N9) | `S15` — 그림·차트 블록과 코드 펜스 안은 제외 | 「Claude Code 는」 → 「Claude Code는」, 「Slack 은」 → 「Slack은」. 코드 스팬·표기 예시 인용은 제외 | judged, candidate (origin A) — 출처 같은 파일 §1-b N9, 6건 이상, 보정 T6 (정규식은 가장 깨끗하나 쌍은 AI 스윕) |
114
114
  | **S16** | 같은 대상의 이명·어휘 계열 불일치 (수확 N6) | 정규식 없음. **용어표 대조**: 후보 낱말쌍을 목록화하고 문서 전체에서 각 변형의 빈도를 센다(`rg -oi '자가 채점|자기 채점' "$F" | sort | uniq -c` 처럼(🟥 눈 판정 보조일 뿐 레인이 없다) 변형을 `|` 로 묶어 개수가 아닌 «몇 가지가 섞였나»를 본다). 화면과 대본, 또는 같은 장 안에서 갈리면 우선 후보 | 뜻별로 한 변형으로 단일화하고 용어표에 정본을 적는다 (「자가 채점」 → 「자기 채점」, 「컨텍스트」 → 「맥락」, 「이슈/버그」 → 「버그」). 🟥 **매체가 자유롭게 쓰는 음차(컨텍스트·프롬프트)는 이명이 아니다** — 한 문서 안에서 갈릴 때만 본다. 「검사 11 vs 테스트 30」 같은 계열 분포는 판정 재료일 뿐이다. **자산 사이 대조(2026-11-15 운영자 교정)**: 같은 내용의 파생 자산(장표·대본·요약본)이 있으면 그쪽의 변형 분포도 같이 센다 — 장표는 「테스트」로 옮겨 갔는데 원고만 「검사」로 남은 꼴이 결함이다(Step 4-c 5번과 같은 축, 그쪽은 문구, 이쪽은 낱말). 🟥 **일괄 치환하지 않는다 — 뜻으로 가른다.** 그 쌍에서 운영자는 «바꾼 것을 되돌려 실패를 확인하는» 문맥의 「검사」만 「테스트」로 바꾸고, 게이트·훅·타입 검사를 가리키는 「검사」는 남겼다. 변형마다 어느 뜻으로 쓰였는지 먼저 가르고, 갈린 뜻별로 정본을 적는다 | judged (origin R + 커밋; 자산 사이 대조는 origin O, 쌍 1건) — 출처 같은 파일 §1-b N6, 10건, 리뷰어 지적이 3장에 복제돼 있던 사례. 레인 없음 |
115
115
  | **S17** | 어순: 목적어가 앞에서 주어를 밀어냄 (수확 N1) | **UNCALIBRATED — 기계 패턴 없음, 눈.** 수확이 시도한 정규식은 양성이 1건뿐이라 그 한 문장에 맞춘 것이다(일반화 안 됨) | 주어를 앞으로, 쉼표로 목적어절을 떼어 놓는다 (「통과를 막고 서는 게이트를 방법론들이 만듭니다」 → 「방법론들이, 통과를 막고 서는 게이트를 만듭니다」 · 「가치가 커지는 것이 네 가지 있다고 저희는 봅니다」 → 「저희는 가치가 커지는 것이 네 가지 있다고 보고 있습니다」 — 주어가 문장 끝으로 밀린 꼴이다. 🟥 «목적어가 주어를 밀어냄»과 같은 부류인지는 쌍 하나로 확정하지 않았다 — 같은 어순 축에 함께 두고 쌍이 쌓이면 가른다) | judged (origin O, 운영자 지시 2건 — 꼴이 둘) — 🟥 **희귀하지만 운영자가 직접 지시한 클래스**: 첫 출처는 단일 운영자 지시 1건(120장 전수 스캔에서 같은 패턴 1건뿐, 리뷰어의 단독 지적 0건), 둘째는 2026-11-13 기술문서 개고에서 운영자가 «주어가 맨 뒤에 있다»고 직접 짚은 쌍이다. 이 사실보다 강하게 적지 않는다. 출처 같은 파일 §1-b N1 · §4 N1 · `SKILL_detail.md §Step-2-provenance` |
116
- | **S18** | 문장 이음매 끊김: 짧게 끊다 연결어·주어 연결을 잃음 (수확 N11) | **기계 패턴 없음 — 판단 전용.** 「연결어가 없는 문장」은 정규식으로 안 갈린다(증거 없는 패턴을 짓지 않는다). 눈: 소리 내어 읽다 문장 사이에서 멈추는 자리, 앞 문장의 주어·화제가 다음 문장에서 갑자기 바뀌는 자리 | 연결어(그런데·그래서·이어서)와 주어 연결을 복원한다 (「QA는 오랫동안 "…"를 물어 왔습니다. 검증 대상이 … 넘어오면서 질문이 뒤집혔습니다.」 → 「…라는 질문을 다뤄 왔습니다. 그런데 검증할 대상이 … 바뀌면서, 질문도 "…"로 바뀌었습니다.」). 🟥 **S1 과의 조정**: S1 이 줄표 이어붙임을 문장으로 나누라는 것은 **연결어를 버려도 된다는 허가가 아니다.** 나눈 뒤 두 문장이 «그런데/그래서»로 이어지는지 다시 읽는다. S1 의 문장 길이 압력은 이음매 복원보다 약한 제약이다 — Step 4-b 의 길이 게이트와 부딪히면 이 클래스가 이긴다(길이 게이트를 닫기 전에 이 클래스로 한 번 되읽는다) | judged (origin O) — 수확 «추가 운영자 교정» N11. S1 규율의 부작용 축(과교정). **«덜 고치기» 방향의 규칙** |
117
- | **S19** | 과순화: 번역투를 피하려 만든 비유·순우리말이 뜻을 흐림 (수확 N12) | **기계 패턴 없음 — 판단 전용.** 비유어 목록을 닫을 수 없다 | 업계에서 통하는 평범한 말로 되돌린다 (「이 글은 네 걸음으로 갑니다」 → 「이 글은 네 장으로 구성했습니다」, 「다음 걸음으로」 → 「다음 글에서는」). 판정: 처음 읽는 독자가 한 번에 뜻을 잡는가. 못 잡으면 순화를 취소한다. 같은 판정으로 보는 이웃 꼴(2026-11-15 운영자 교정): 순화가 아니어도 **우리말 낱말의 뉘앙스가 뜻과 어긋나는** 자리 — 「지어낼 수는 없고」 → 「만들어 낼 수는 없고」(«지어내다»는 «없는 것을 꾸며 낸다»로 읽힌다) | judged (origin O) — 수확 N12; 뉘앙스 꼴은 2026-11-15 운영자 쌍 1건. 번역투 제거 방향이 만든 과교정이므로 S1~S17 을 적용한 직후 **이 클래스로 한 번 되읽는다** |
118
- | **S20** | TMI 자기 단서: 독자 문서에 약점·내부 감사 문구를 앞세움 (수확 N13) | **기계 패턴 없음 — 판단 전용** (Step 3 의 문장 단위 기준을 적용). 후보 눈표지: 「밝혀 둡니다」·「싣지 않습니다」·수치 바로 뒤에 붙는 단서 문장 연속 | 독자의 다음 행동·판단을 바꾸지 않는 단서는 지운다. 강점·실측을 앞에, 한계는 짧게 뒤에. (「동료 심사를 거친 논문이 아니라는 점은 먼저 밝혀 둡니다」 같은 문장, 수치 뒤 단서 세 문장). 같은 축의 짧은 꼴(2026-11-16 운영자 교정): 낱말 자체가 이미 뜻을 담는데 수식어로 한 번 더 말하는 단서 — 「동료 심사를 거치지 않은 공개 프리프린트」 → 「프리프린트」 | judged (origin O) — 수확 N13. Step 3 와 같은 축을 더 세게 적용. 🟥 논지를 받치는 정직(한계 절·소표본)은 지우지 않는다 — 지우는 것은 **자기감사 말투** |
116
+ | **S18** | 문장 이음매 끊김: 짧게 끊다 연결어·주어 연결을 잃음 (수확 N11) | **기계 패턴 없음 — 판단 전용.** 「연결어가 없는 문장」은 정규식으로 안 갈린다(증거 없는 패턴을 짓지 않는다). 눈: 소리 내어 읽다 문장 사이에서 멈추는 자리, 앞 문장의 주어·화제가 다음 문장에서 갑자기 바뀌는 자리 | 연결어(그런데·그래서·이어서)와 주어 연결을 복원한다 (「QA는 오랫동안 "…"를 물어 왔습니다. 검증 대상이 … 넘어오면서 질문이 뒤집혔습니다.」 → 「…라는 질문을 다뤄 왔습니다. 그런데 검증할 대상이 … 바뀌면서, 질문도 "…"로 바뀌었습니다.」). 🟥 **S1 과의 조정**: S1 이 줄표 이어붙임을 문장으로 나누라는 것은 **연결어를 버려도 된다는 허가가 아니다.** 나눈 뒤 두 문장이 «그런데/그래서»로 이어지는지 다시 읽는다. S1 의 문장 길이 압력은 이음매 복원보다 약한 제약이다 — Step 4-b 의 길이 게이트와 부딪히면 이 클래스가 이긴다(길이 게이트를 닫기 전에 이 클래스로 한 번 되읽는다). 2026-11-18 운영자 고쳐 쓰기: 끊긴 문장 사이에 「다만」 · 「또한」을 넣어 이음매를 되살렸다 | judged (origin O) — 수확 «추가 운영자 교정» N11 + 2026-11-18 운영자 고쳐 쓰기 1건. S1 규율의 부작용 축(과교정). **«덜 고치기» 방향의 규칙** |
117
+ | **S19** | 과순화: 번역투를 피하려 만든 비유·순우리말이 뜻을 흐림 (수확 N12) | **기계 패턴 없음 — 판단 전용.** 비유어 목록을 닫을 수 없다 | 업계에서 통하는 평범한 말로 되돌린다 (「이 글은 네 걸음으로 갑니다」 → 「이 글은 네 장으로 구성했습니다」, 「다음 걸음으로」 → 「다음 글에서는」). 판정: 처음 읽는 독자가 한 번에 뜻을 잡는가. 못 잡으면 순화를 취소한다. 같은 판정으로 보는 이웃 꼴(2026-11-15 운영자 교정): 순화가 아니어도 **우리말 낱말의 뉘앙스가 뜻과 어긋나는** 자리 — 「지어낼 수는 없고」 → 「만들어 낼 수는 없고」(«지어내다»는 «없는 것을 꾸며 낸다»로 읽힌다) · 「실험의 수치」 → 「실험의 측정 결과」(2026-11-18 — «수치»는 숫자 값만 가리키는데 가리킨 것은 결과 전체였다) | judged (origin O) — 수확 N12; 뉘앙스 꼴은 운영자 쌍 2건(2026-11-15 · 11-18 각 1건). 번역투 제거 방향이 만든 과교정이므로 S1~S17 을 적용한 직후 **이 클래스로 한 번 되읽는다** |
118
+ | **S20** | TMI 자기 단서: 독자 문서에 약점·내부 감사 문구를 앞세움 (수확 N13) | **기계 패턴 없음 — 판단 전용** (Step 3 의 문장 단위 기준을 적용). 후보 눈표지: 「밝혀 둡니다」·「싣지 않습니다」·수치 바로 뒤에 붙는 단서 문장 연속 | 독자의 다음 행동·판단을 바꾸지 않는 단서는 지운다. 강점·실측을 앞에, 한계는 짧게 뒤에. (「동료 심사를 거친 논문이 아니라는 점은 먼저 밝혀 둡니다」 같은 문장, 수치 뒤 단서 세 문장). 같은 축의 짧은 꼴(2026-11-16 운영자 교정): 낱말 자체가 이미 뜻을 담는데 수식어로 한 번 더 말하는 단서 — 「동료 심사를 거치지 않은 공개 프리프린트」 → 「프리프린트」. 같은 축의 다른 꼴(2026-11-18 운영자 교정): **독자 이해를 바꾸지 않는 내부 코드** — 문장이 이미 «통과했다 / 실패했다 / 멈췄다»를 말하고, 독자가 그 값을 확인 · 재현에 쓰지 않을 때만 괄호로 덧붙인 종료 코드(「(종료 코드 6)」)를 지운다. 🟥 남긴다: 출처 번호(PR · 이슈 · 커밋 — Step 4 가 요구하는 근거다) · 문장이 가르지 않는 여러 실패를 가르는 코드 · 명령 예시 · 문제 해결 표 · API/스키마 참조의 ID. 내부 조어가 본문에 새는 축은 S21 이다 — 이쪽은 «이미 말한 결과의 되풀이»만 본다 | judged (origin O) — 수확 N13 + 2026-11-18 운영자 쌍 1건(그 문서에서는 결과를 되풀이한 코드만 정리). Step 3 와 같은 축을 더 세게 적용. 🟥 논지를 받치는 정직(한계 절·소표본)은 지우지 않는다 — 지우는 것은 **자기감사 말투** |
119
119
  | **S21** | 내부 용어가 독자 본문에 샘 (수확 N14) | `S21` | 외부 독자 말로 바꾼다. 수확 목록: 팔(arm) · 계기 · 초록(=통과) · 공격 배터리 · 라운드 · 결박 · 정규화 · 이긴 기록 · 열화 방향 렌즈 (「시험 하네스」는 S22 에서 한 번만 센다). 2026-11-12 운영자 교정으로 **계열**(모델 family)을 더한다 — 「다른 계열 모델」 → 「다른 회사의 모델」(그 글에서는 계열과 만든 회사가 일치했다. 한 회사가 여러 계열을 내는 맥락이면 «만든 곳이 다른 모델»처럼 뜻에 맞게 푼다). 인용한 논문이 그 단위로 잰 자리(«같은 계열 쌍»)만 첫 등장에 풀이를 붙여 남긴다. 바꾸면 수치의 뜻이 달라진다. 🟥 **레인(C13)은 문맥 없이 뜻이 하나뿐인 합성어(공격 배터리·이긴 기록·열화 방향 렌즈)만 잡는다.** 결박(물리적 구속·보안 문서의 해시 결박)·팔·계기·초록·라운드·정규화·계열은 일상어와 겹쳐 레인에 넣지 않았다 — S7(내부 조어)처럼 눈으로 본다. 히트는 후보다 | judged (origin O) — 수확 N14 는 낱말 목록이지 before→after 쌍이 아니다(«계열»만 2026-11-12 운영자 쌍 1건). C13 레인은 «만든 예문으로 판별되는지»만 보증한다(분포 밖 오탐률 미측정) |
120
120
  | **S22** | 「시험」 → 「테스트」 (수확 N15) | `S22` | 소프트웨어 맥락의 「시험 하네스」(수확)와 같은 꼴의 「시험 환경·결과·케이스·코드·자동화·통과」(추론 — 수확에 없음)는 「테스트」로. 🟥 붙여 쓴 합성어(임상시험·자격시험·모의시험)는 레인이 안 잡는다. 띄어 쓴 「수능 시험 결과」 같은 정당한 용법은 **잡힌다 — 알려진 과차단**(C9 와 같은 처리). 히트는 후보다 | judged (origin O) — 수확 N15 는 «시험 → 테스트» 한 줄뿐이고 쌍이 없다. C14 레인은 만든 예문으로 판별만 보증한다. 「시험해」·「시험했」은 «시도하다» 뜻이 흔해 레인에서 뺐다 |
121
- | **S23** | 외국식 표현 (수확 N16) | **기계 패턴 없음 — 판단 전용.** (경동사 «내다» 변종 「'통과'를 냈다」·「판정을 내는」만 레인 `C15` 가 후보로 표시 — 🟥 UNCALIBRATED, 예상 과차단은 «내다» 가 제출 뜻인 정상 용법(「'신청서'를 냈습니다」) — 「판정을 내리다」는 이 패턴에 안 걸린다) 수확의 세 사례는 서로 다른 이유라 하나의 패턴으로 안 묶인다 | 한국어 관용으로 바꾼다 (「잽니다」 → 「측정합니다」). 같은 부류로 기록된 것: 「실험의 결과는 이렇습니다」(영어 구조 직역) · 「문제의식은 짧습니다」(«생각이 짧다»로 읽힘 — 수확에 after 없음). 2026-11-15 운영자 쌍: 「독립이 회복되지 않는다」 → 「독립성이 보장되지 않는다」(영문 인용 «recover independence»의 축자 번역 — 인용을 우리말로 옮길 때 동사를 뜻으로 고른다) · 「가드의 거절이 옳았습니다」 → 「가드가 맞게 작동했습니다」(명사 주어 + «옳다» 평가 구조를 동작 서술로) · 「남는 것이 건전할 때까지」 → 「새 결함이 더 나오지 않을 때까지」(추상 평가어를 관측 가능한 종료 조건으로). 자기 점검: 그 문장이 영어로 먼저 떠올랐나 | judged (origin O) — 수확 N16 after 쌍 1건 + 2026-11-15 운영자 쌍 3건(한 번의 통독 — 독립 확인 네 번이 아니다). 세 쌍도 이유가 서로 달라 패턴으로 묶지 않는다 |
121
+ | **S23** | 외국식 표현 (수확 N16) | **기계 패턴 없음 — 판단 전용.** (경동사 «내다» 변종 「'통과'를 냈다」·「판정을 내는」만 레인 `C15` 가 후보로 표시 — 🟥 UNCALIBRATED, 예상 과차단은 «내다» 가 제출 뜻인 정상 용법(「'신청서'를 냈습니다」) — 「판정을 내리다」는 이 패턴에 안 걸린다) 수확의 세 사례는 서로 다른 이유라 하나의 패턴으로 안 묶인다 | 한국어 관용으로 바꾼다 (「잽니다」 → 「측정합니다」). 같은 부류로 기록된 것: 「실험의 결과는 이렇습니다」(영어 구조 직역) · 「문제의식은 짧습니다」(«생각이 짧다»로 읽힘 — 수확에 after 없음). 2026-11-15 운영자 쌍: 「독립이 회복되지 않는다」 → 「독립성이 보장되지 않는다」(영문 인용 «recover independence»의 축자 번역 — 인용을 우리말로 옮길 때 동사를 뜻으로 고른다) · 「가드의 거절이 옳았습니다」 → 「가드가 맞게 작동했습니다」(명사 주어 + «옳다» 평가 구조를 동작 서술로) · 「남는 것이 건전할 때까지」 → 「새 결함이 더 나오지 않을 때까지」(추상 평가어를 관측 가능한 종료 조건으로). 2026-11-18 운영자 쌍: 「실수도 서로 닮기 쉽습니다」 → 「비슷한 실수를 하기 쉽습니다」(«닮다»는 사람 · 얼굴에 쓰는 말이라 실수에 붙이면 비유 직역으로 읽힌다). 후보(교차 계열 패턴 주입 통독이 찾음 — candidate): 「사건」(incident 직역) → 뜻에 따라 「사고」 또는 「사례」 · 「가드레일을 깔아 두는」 → 「세워 두는」 · 「수정을 지키는 테스트」 → 「검증하는 테스트」 · 「마찰이 늘고」 → 「확인 부담이 커지고」. 자기 점검: 그 문장이 영어로 먼저 떠올랐나 | judged (origin O) — 수확 N16 after 쌍 1건 + 2026-11-15 운영자 쌍 3건 + 2026-11-18 운영자 쌍 1건(통독 두 번 — 쌍끼리 독립 확인이 아니다). 쌍마다 이유가 달라 패턴으로 묶지 않는다 · 모델 후보 4건은 클래스 근거로 세지 않는다 |
122
122
  | **S24** | 제목: 한국어판 + 원제 병기 (수확 N17) | 체크리스트 항목 — 패턴 없음 | 영문 원제가 있는 글은 제목에 한국어판을 쓰고 원제를 병기한다. 발행 전 제목 줄에서 확인 | judged (origin O) — 수확 N17. 문체 클래스가 아니라 발행 체크 |
123
123
  | **S25** | 가운뎃점 `·` 밀도 (AI티 후보) | `--scan` 의 `C17` — 한 줄에 3개 이상. 정본 패턴은 스크립트 레인 하나뿐이다(코드블록에 두 번째 사본을 두지 않는다) | 나열은 쉼표·「와/과」로 풀고, 낱말 쌍을 묶는 정상 용법(「입력·출력」)은 남긴다. ⚠️ 점이 둘 이하인 번호 묶음(「3·4장」)은 이 레인 밖이고 S11 ②에서 본다 | judged, candidate — 구성한 쌍으로만 보정(실문서 정밀도 UNMEASURED) |
124
124
  | **S26** | 대조형 「X가 아니라 Y입니다」 문말 (AI티 후보) | `C18` — 문장 끝이 「입니다·이다」인 것만. 중간에서 풀리는 대조(「…가 아니라 …로 봅니다」)는 일부러 안 잡는다 | 긍정문 하나로 줄이거나, 대조가 독자의 오해를 막는 자리만 남긴다 | judged, candidate — 같음 |
125
125
  | **S27** | 분열문 「~할 점은 ~입니다」 (AI티 후보) | `C19` | 주어를 앞으로 세워 직접 말한다 | judged, candidate — 같음 |
126
126
  | **S28** | 소제목 과밀 (AI티 후보) | `C20` — 단락 2개 이하인 절이 3개 이상 연달아. 함수 레인(줄 패턴 아님) | 절을 합치거나 소제목을 뺀다 | judged, candidate — 같음 |
127
127
  | **S29** | 뻔한 추상 표현 (AI티 후보) | `C21` — 닫힌 어휘(발표에서 든 몇 개)라 recall 이 낮다. 늘리려면 사례를 먼저 쌓는다 | 구체적인 대상·동작으로 바꾼다 | judged, candidate — 같음 |
128
- | **S30** | 행위 주체 누락: 주어 없는 피동, 또는 주체가 사람인지 에이전트인지 모호 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 「~되는가」·「~처리된」·「~된 적」·「~된 채」처럼 누가 했는지 없는 서술(질문 문장만이 아니라 사례·경위를 말하는 평서문도 — 「머지된 적이 있었다」가 같은 결함이다), 같은 낱말(검토자·검증자)이 사람과 에이전트를 둘 다 가리킬 수 있는 자리 | 무엇이 무엇을 하는지를 능동으로 적는다 (「고장 나도 통과되는가」 → 「검사가 고장 나면 그대로 통과시키는가」 — 운영자: «무엇이 고장 나는지, 능동태로» · 「검토자」 → 「검토 에이전트」 · 「결과가 통과 쪽으로 무너지는지」 → 「게이트가 막지 않고 열려 버리는지」 — 운영자: «게이트가 열린다는 뜻이면 그렇게 말하라»). 🟥 **주체를 원고에서 알 수 없으면 지어내지 않는다** — 그 자리에 「[확인 필요: 누가 …했는지]」를 단다(사람이 했는지 도구가 했는지도 같이 묻는다). 피동을 말없이 그대로 두는 것도, 원고에 없는 주체(「리뷰어가」)를 넣는 것도 둘 다 결함이다. S8(지시 불명확)·S16(이명)과 겹치는 자리는 그쪽 규칙도 같이 본다. 외부 근거: 국내 기업 테크니컬 라이팅팀이 낸 «개발자를 위한 테크니컬 라이팅 10계명»의 4번 «피동형/사동형, 피해야»(디지털 인사이트 2021-06-25 요약 기사 «바쁜 개발자를 위한 테크니컬 라이팅 10계명»으로 확인 — 원문 페이지의 표제는 열어 보지 않았다). 🟥 「~이 되다」(무엇이 무엇으로 바뀜)는 피동이 아니다 — 후보로 세지 않는다 | judged (origin O) — 레인 없음. 쌍 출처 `SKILL_detail.md §Step-2-provenance` |
128
+ | **S30** | 행위 주체 누락: 주어 없는 피동, 또는 주체가 사람인지 에이전트인지 모호 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 「~되는가」·「~처리된」·「~된 적」·「~된 채」처럼 누가 했는지 없는 서술(질문 문장만이 아니라 사례·경위를 말하는 평서문도 — 「머지된 적이 있었다」가 같은 결함이다), 같은 낱말(검토자·검증자)이 사람과 에이전트를 둘 다 가리킬 수 있는 자리 | 무엇이 무엇을 하는지를 능동으로 적는다 (「고장 나도 통과되는가」 → 「검사가 고장 나면 그대로 통과시키는가」 — 운영자: «무엇이 고장 나는지, 능동태로» · 「검토자」 → 「검토 에이전트」 · 「결과가 통과 쪽으로 무너지는지」 → 「게이트가 막지 않고 열려 버리는지」 — 운영자: «게이트가 열린다는 뜻이면 그렇게 말하라» · 2026-11-18 운영자 고쳐 쓰기: 「판단이 아니라」 → 「AI가 그때그때 내리는 판단이 아니라」 — «판단»의 주체가 비어 있었다). 🟥 **주체를 원고에서 알 수 없으면 지어내지 않는다** — 그 자리에 「[확인 필요: 누가 …했는지]」를 단다(사람이 했는지 도구가 했는지도 같이 묻는다). 피동을 말없이 그대로 두는 것도, 원고에 없는 주체(「리뷰어가」)를 넣는 것도 둘 다 결함이다. S8(지시 불명확)·S16(이명)과 겹치는 자리는 그쪽 규칙도 같이 본다. 외부 근거: 국내 기업 테크니컬 라이팅팀이 낸 «개발자를 위한 테크니컬 라이팅 10계명»의 4번 «피동형/사동형, 피해야»(디지털 인사이트 2021-06-25 요약 기사 «바쁜 개발자를 위한 테크니컬 라이팅 10계명»으로 확인 — 원문 페이지의 표제는 열어 보지 않았다). 🟥 「~이 되다」(무엇이 무엇으로 바뀜)는 피동이 아니다 — 후보로 세지 않는다 | judged (origin O) — 운영자 쌍 3건(11-12) + 고쳐 쓰기 1건(11-18). 레인 없음. 쌍 출처 `SKILL_detail.md §Step-2-provenance` |
129
129
  | **S31** | 처음 정의하는 개념어: 따옴표 없이 본문에 섞임 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 글이 이름을 붙여 쓰는 개념이 처음 나오는 자리 | 첫 등장에 작은따옴표를 달고 바로 뒤에 괄호 풀이를 붙인다 (「사실 오류와 판단 오류」 → 「'사실 오류'(수치나 출처처럼 원본과 대조해 맞고 틀림을 가릴 수 있는 오류) … '판단 오류'(설명의 방향이나 해석처럼 대조할 원본이 없는 오류)」 · 「자동화된 파이프라인이 놓치는 것」 → 「'자동화된 파이프라인'이 놓치는 것」). 🟥 **풀이는 그 개념이 무엇을 가리키는지 말하는 우리말 한 구절이다 — 영문 원어 괄호(「'흔들리는 테스트'(flaky test)」)는 풀이가 아니다.** 원어를 남기고 싶으면 풀이 뒤에 덧붙인다. 개념이 둘 이상 나란히 처음 나오면 하나하나에 따옴표와 풀이를 붙인다. 원고가 뜻을 주지 않아 풀이를 쓸 수 없으면 지어내지 말고 「[확인 필요: '…'의 정의]」를 단다. 풀이를 붙이는 규칙 자체는 S7 이다 — S31 이 더하는 것은 «이 글이 이름 붙여 쓰는 개념»임을 작은따옴표로 표시하는 일이다. S10 과 방향이 같다(겹낫표·꺾쇠 대신 작은따옴표) | judged (origin O) — 레인 없음 |
130
130
  | **S32** | 인용 도입: 누구의 어떤 연구인지 밝히기 전에 수치부터 나옴 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 외부 연구의 수치가 나오는 문단의 첫 문장에 저자·제목·무엇을 잰 연구인지가 있는가. 영문 제목만 있고 뜻풀이가 없는가 | 수치 앞에 «저자의 논문 "제목"(연도)은 무엇을 잰 연구입니다»를 한 문장으로 세운다 (「Kohli의 결과에서 아홉 개 판정은 …」 → 「Guneet Kohli의 논문 "Nine Judges, Two Effective Votes"(2026)는 LLM 심사 패널의 오류가 얼마나 겹치는지 측정한 연구입니다. 이 논문은 …」). 영문 제목에는 짧은 우리말 풀이를 붙인다(S24 와 같은 결 — 그쪽은 글 자체의 제목, 이쪽은 인용한 제목). 인용 서술이 원문과 맞는지는 이 클래스의 축이 아니다 — Step 4 로 간다 | judged (origin O) — 레인 없음 |
131
131
  | **S33** | 게재 시점에 낡는 상태 진술 (2026-11-12 운영자 교정) | 후보 눈표지(🟥 레인 아님 — 정상 용법이 대부분): 「다음 과제」·「다음 단계로는」·「아직 … 전입니다」·「… 하고 있습니다」·「넓혀 가고 있습니다」 | 원고와 게재 사이가 길면 그사이에 사실이 바뀐다(운영자: «게재 시점에는 이미 운영 중일 수 있다»). 🟥 Step 3 이 싣는 한계·«측정 중» 표기는 대상이 아니다 — 그것은 게재 뒤에도 참인 정직이다. 견해를 말하는 「… 보고 있습니다」도 진행 보고가 아니다. 진행 보고·예정은 지운다 (「다음 과제」 블록 전체 삭제 · 「이 앱은 아직 공개 전입니다」 삭제 · 「다른 앱과 반복 보정으로 넓혀 가고 있습니다」 삭제). 남기는 «하고 있다» 문장은 **발행 직전 최종본에서 하나씩 사실인지 다시 확인한다**(판단 — 수치가 아니라 Step 4 의 재측정 라벨 분모에는 들지 않는다) — 문서가 «하고 있다»고 말하는데 진행되지 않으면 문서가 거짓이 된다 | judged (origin O) — 레인 없음 |
132
132
  | **S34** | 구어 어휘·말버릇의 격 (2026-11-12 운영자 교정) | **기계 패턴 없음 — 판단 전용.** 눈: 말할 때는 자연스럽지만 기술문서의 습니다체 안에서 가볍게 읽히는 낱말, 글을 설명하는 군말 | 문서 격에 맞는 말로 바꾸거나 지운다 (「변이 빌드도 씁니다」 → 「변이 빌드도 활용합니다」 · 「실행과 생성이 싸지는 시대」 → 「실행과 생성의 비용이 낮아지는 시대」 · 「한 문장으로 줄이면, …」 → 군말 삭제). 🟥 S13(구어 어미)과 축이 다르다 — 이쪽은 어휘다. 낭독 대본에서는 대상이 아니다. 「씁니다 → 활용합니다」는 S35(뜻 흔들림)의 «쓰다» 꼴이기도 하다 | judged (origin O) — 레인 없음 |
133
133
  | **S35** | 낱말 뜻 흔들림: 한 문서 안에서 같은 낱말이 두 뜻으로 쓰임 (2026-11-16 운영자 교정) | **절차 (a)→(b)**. (a) 기계: `python3 scripts/ko_tech_writer_calibrate.py --senses "$F"` 가 가벼운 동사·명사의 등장을 **활용형까지** 줄번호 · 문맥과 함께 늘어놓는다(지금 낱말 = 쓰다 · 세다 · 재다 · 기계. 정규식 하나가 「쓰던 · 쓰면 · 쓰고 · 쓰되」를 놓친 사례에서 출발했다). 쓰다 · 기계는 어간 일치(과다 나열 — 쓸모 · 쓴맛도 나온다), 세다 · 재다는 어미 목록이라 **목록 밖 활용형은 조용히 빠진다** — 출력의 `coverage:` 줄이 그렇게 적는다. 0건은 «없음»이 아니다. 레인 `C22` 가 활용형 픽스처 재현율과 겹치는 낱말(쓰레기 · 세계 · 재료 …) 0건을 잰다. (b) 판단: 사람 또는 모델이 낱말마다 등장을 뜻별로 묶고, **소수 뜻**을 표시한다. 🟥 (b)는 레인이 없다 — 이 클래스는 «검출»을 주장하지 않는다. 합성어(글쓰기 · 공작기계)와 표면이 같은 동형어(재고 · 셀 · 쓴맛)는 (a)가 못 가르거나 일부러 넣는다 — (b)의 몫이다. 보다 · 잡다 · 돌리다 · 받다 · 남기다 · 수리 같은 낱말은 아직 (a)에 없다 — 활용형 픽스처를 먼저 짓고 C22 가 초록일 때 더한다 | 한 낱말에 한 뜻을 남기고, 다른 뜻은 구체적인 낱말로 바꾼다. 운영자 쌍(예시이지 규칙이 아니다): **쓰다** — 글쓰기 뜻만 남기고, 사용 뜻은 사용 · 적용 · 활용 · 인용 · 운용으로(S34 의 「씁니다 → 활용합니다」와 같은 꼴) · **세다 / 재다** — 세다는 실제로 셀 때만, 값은 측정, 기준을 충족했다는 판정은 인정 · 판단으로(S23 의 「잽니다 → 측정합니다」와 연결 · 「통과로 세지 않았다」 → 「통과가 아니라 미측정으로 남겼다」) · **기계** — 문서가 «판단 없는 코드»로 정의해 놓고 «기계가 만든 산출물»에서 AI 를 가리킴 → 정의한 뜻으로만 쓰고 AI 는 AI 로 쓴다. 정의보다 먼저 나온 등장도 같이 본다 | judged — (a) 단계에 레인 C22 가 있지만 늘어놓기 도구라 «잔여 0»이 성립하지 않는다(정상 등장도 늘 나온다). 통과 = (a)를 돌렸고 나온 낱말마다 뜻 묶기를 마쳤다. C22 는 만든 픽스처 기준이고 실문서 재현율은 UNMEASURED · origin O, 쌍 3건(한 번의 통독) — `SKILL_detail.md §Step-2-provenance` |
134
134
 
135
- > **후보 메모 — 번호를 받지 않은 관찰 (2026-11-15 ~ 16)**. 쌍이 하나뿐이거나 모델이 찾은 것이라 클래스로 세우지 않았다. 재발하면 그때 번호를 받는다.
135
+ > **후보 메모 — 번호를 받지 않은 관찰 (2026-11-15 ~ 18)**. 쌍이 하나뿐이거나 모델이 찾은 것이라 클래스로 세우지 않았다. 재발하면 그때 번호를 받는다.
136
136
  > - **표 열의 형태 맞춤** (origin O, 쌍 1건): 명사구로 끝나는 열에서 한 행만 완결 문장(「…합니다」)으로 끝났고, 운영자가 명사구로 고치라고 했다. 「입력이 없으면 멈춥니다」 → 「입력이 없을 때 정지」 꼴. 같은 열의 다른 행 끝을 먼저 보고, 그 형태에 맞춘다. (2026-11-16 패턴 주입 통독에서 같은 꼴이 더 나왔다 — 모델이 찾은 것이라 운영자 쌍 수는 그대로 1건.)
137
137
  > - **참조 하나에 가리킴 하나** (origin O, 쌍 1건, 2026-11-16): 한 주장에 위치 표시를 둘 겹쳐 달았다 — 「3.2절에서 소개합니다(부록 A)」 → 두 번째 가리킴을 뺀다. 독자가 갈 곳을 하나로 정한다.
138
138
  > - **습니다체 안의 동형어** (candidate — 교차 계열 검토가 찾음, 운영자 쌍 아님): 「감사」는 «audit»과 «고마움»이 같은 글자라, 「(무엇을) 감사합니다」가 습니다체 문장 끝에 오면 «고맙습니다»로 먼저 읽힌다. 목적어를 앞에 두거나 「점검합니다」·「감사를 수행합니다」로 바꾼다. 낭독 레지스터의 동음이의 축(Step 5-s 의 B′)과 같은 부류인지는 확인하지 않았다. 2026-11-16 에 역할 표 두 곳에서 같은 꼴이 다시 나왔다(역시 모델이 찾음 — 여전히 candidate).
@@ -337,6 +337,7 @@ bash scripts/test_ko_tech_writer_lanes.sh # ← 이 한 줄이 보정이
337
337
  필수로 남긴다. 미발견은 "미확인"이지 "없음"이 아니다.
338
338
 
339
339
  기록에 없는 실적·사례는 1차 출처(저장소·PR·로그)를 직접 조회해 확인하고 나서 싣는다.
340
+ - **범위 낱말은 그 범위만큼의 근거를 요구한다 (2026-11-18 운영자 교정, origin O 쌍 1건).** 「지원하는 · 어디서나 · 모든 · 항상 · 어떤 …에서도」처럼 범위를 정하는 말이 붙은 주장은, 근거가 그 범위를 덮는지 본다 — 덮지 않으면 근거가 닿는 데까지 줄인다. 운영자 쌍: 「저희가 지원하는 가장 낮은 등급의 모델(Sonnet)」 → 「Sonnet급 모델」(«지원 범위의 바닥»이라는 사실은 없었다). 후보(모델이 찾음): 표 칸의 「어디서나 옮겨 적용할 수 있는」이 같은 문서의 한계 절과 어긋남 → 「실행 환경과 무관하게 옮겨 적용할 수 있도록 설계한」. 먼저 같은 문서의 한계 절과 맞대어 본다. Step 4-b 와의 관계: 4-b 가 전칭 어휘(모두 · 전부 …)를 **찾고**, 이 확인은 그 후보와 「지원 · 어디서나 · 항상」이 붙은 주장에 대해 **근거가 그 범위를 덮는지** 묻는다 — 같은 낱말이 둘 다에 걸리면 4-b 후보 목록 하나로 같이 판정한다.
340
341
  - **출처 역추적이 필요하면** `/phantom-quench` 로 라우팅한다. **인용 서술(누가 몇 명으로 무엇을 쟀다)도 링크된 원문 초록과 대조한다** — 문체 콜드리드는 이 축을 보지 않는다(실례: `SKILL_detail.md §Step-2-provenance` 의 2026-11-13 인용 정정). **인용한 논문은 제목이 아니라 초록으로 해석한다** — 제목의 낱말을 독자 분야의 뜻으로 읽으면 틀린다(2026-11-16 실례: 제목의 «commit gate»를 Git 커밋으로 읽었는데, 초록은 상태를 바꾸는 행동의 실행을 뜻했다. 교차 계열 사실 검토가 잡았다). 🟥 **차트 검증 스킬은 «있다»고
341
342
  전제하지 마라 — 그러나 «없다»고도 적지 마라.** 이 줄의 이전 판은 「`dataviz` 스킬은 이 레포에
342
343
  없다」고 적었는데 **그 명제는 거짓이다** — `dataviz` 는 런타임이 공급하는 **번들 스킬로 실재**한다
@@ -419,10 +420,10 @@ bash scripts/test_ko_tech_writer_lanes.sh # ← 이 한 줄이 보정이
419
420
  실측(2026-11-15): 한 원고에 초심자 콜드리드를 여러 번 새로 띄웠고 매번 새 A 가 나왔다(라운드별
420
421
  건수는 이 기록에 없다).
421
422
  - **운영자 교정이 한 라운드 들어오면, 교정을 «낱말»이 아니라 «부류»로 추상화해 문서 전체를 한 번 더
422
- 훑는다 (잠정, n=1 — 원고 하나 · 실행 한 번 · 나온 지적은 참·거짓 미대조).** 교정 쌍마다 «이 쌍은 어떤 꼴의 한 사례인가»를 한 줄로 적고(예: «한 낱말이 두 뜻» · «목적어가
423
+ 훑는다 (잠정, 실행 2 / 원고 1 — 둘째 실행만 반영 수 기록).** 교정 쌍마다 «이 쌍은 어떤 꼴의 한 사례인가»를 한 줄로 적고(예: «한 낱말이 두 뜻» · «목적어가
423
424
  빠져 자동사로 읽히는 타동사» · «정의보다 먼저 나온 용어» · «표 열 형태 불일치»), 그 부류 목록을 주고 검토자
424
425
  하나에게 **문서 전체**를 읽힌다. 고친 문단만 다시 읽는 콜드리드와 겨냥이 다르다 — 운영자가 짚은 자리 밖의
425
- 같은 꼴을 찾으려는 것이다(부류 없이 다시 읽힌 대조 팔은 없다). 찾은 것은 원문과 대조한 뒤에만 반영한다. 근거(n=1 — 원고 하나, 실행 한 번):
426
+ 같은 꼴을 찾으려는 것이다(부류 없이 다시 읽힌 대조 팔은 없다). 찾은 것은 원문과 대조한 뒤에만 반영한다. 근거(실행 2 / 원고 1):
426
427
  `SKILL_detail.md §Step-5-seeded-pass`.
427
428
  - **교차 계열 한국어 검토를 쓸 때의 모델 선택 (잠정, n=1)**: `SKILL_detail.md §Step-5-crossfamily-ko` —
428
429
  같은 검토 묶음에서 두 Gemini 모델의 지적 품질이 크게 갈린 관찰이다(측정 아님). 읽고 나서 고른다.
@@ -4,6 +4,21 @@
4
4
 
5
5
  ## §Step-2-provenance
6
6
 
7
+ > **2026-11-18 추가분의 출처 (같은 원고의 셋째 운영자 통독)**: 운영자 지적 4건 — 그중 하나는 운영자가 문단을 직접 고쳐 쓴 것이라 쌍이 셋(수치 · 다만/또한 · 판단의 주체) 나왔다(운영자 쌍 합계 6: 교정 3 · 고쳐 쓰기 3) + «이 코멘트를 응용해서 문서 전체에서 개선할 부분을 찾고, 스킬과 하네스에도 반영할 것이 있는지 챙겨 달라»는 요청. 쌍은 교정 지점의 짧은 구절로 줄였고 고유명사 · 회사 맥락은 없다.
8
+ >
9
+ > | 반영 자리 | origin | 쌍 수 | 쌍 |
10
+ > |---|---|---|---|
11
+ > | S23 비유 직역 | O | 1 | 「실수도 서로 닮기 쉽습니다」 → 「비슷한 실수를 하기 쉽습니다」 |
12
+ > | S19 뉘앙스 꼴 (고쳐 쓰기) | O | 1 | 「실험의 수치」 → 「실험의 측정 결과」 |
13
+ > | S18 이음매 (고쳐 쓰기) | O | 1 | 끊긴 문장 사이에 「다만」 · 「또한」 |
14
+ > | Step 4 범위 낱말 | O | 1 | 「지원하는 가장 낮은 등급의 모델」 → 「…급 모델」(운영자: 사실과 어긋남) |
15
+ > | S20 결과를 되풀이한 내부 코드 | O | 1 | 「(종료 코드 6)」 같은 괄호 코드 — 운영자 «꼭 언급해야 할까» → 문장이 이미 말하는 결과를 되풀이한 코드 전부 삭제 |
16
+ > | S30 판단의 주체 (고쳐 쓰기) | O | 1 | 「판단이 아니라」 → 「AI가 그때그때 내리는 판단이 아니라」 |
17
+ > | Step 4 범위 낱말 — 후보 | 모델 | — | 표의 「어디서나 옮겨 적용할 수 있는」이 한계 절과 어긋남 → 「실행 환경과 무관하게 옮겨 적용할 수 있도록 설계한」 |
18
+ > | S23 후보 넷 | 모델 | — | 사건 → 뜻에 따라 사고 또는 사례 / 가드레일을 깔아 두는 → 세워 두는 / 수정을 지키는 테스트 → 검증하는 테스트 / 마찰이 늘고 → 확인 부담이 커지고 |
19
+ > 🟥 **모델 후보는 패턴 주입 통독(§Step-5-seeded-pass 둘째 실행)에서 나왔다 — 운영자 쌍이 아니므로 클래스 근거로 세지 않는다.**
20
+ > 레인은 짓지 않았다. 「(종료 코드 N)」 꼴은 정규식으로 잡히지만 명령 예시 · 문제 해결 표처럼 남겨야 할 자리와 겉모양이 같아, 쌍 1건으로 레인을 세우면 과차단이 된다.
21
+
7
22
  > **2026-11-16 추가분의 출처 (같은 원고의 다음 판, 운영자 통독 1회)**: 운영자 요청은 «이 샘플의 낱말만 가르는 게 아니라 그건 예시로 두고 다양한 패턴의 글을 분석하고 작성하게»였다. 그래서 낱말 목록이 아니라 **절차**(S35 의 (a) 늘어놓기 → (b) 뜻 묶기)와 **예방**(Step 1 의 용어표)으로 올렸다. 쌍은 교정 지점의 짧은 구절이고 고유명사 · 회사 맥락은 없다.
8
23
  >
9
24
  > | 반영 자리 | origin | 쌍 수 | 쌍 |
@@ -148,6 +163,11 @@ Gemini 3.8 Flash · Gemini 4 Hydrogen)가 읽었지만 «쓰다 · 세다 · 기
148
163
  같은 지시문을 다른 원고에 돌려 본 적이 없고, 부류 없이 같은 모델에게 «전체를 다시 읽어라»만 준 대조 팔도 없다.
149
164
  그래서 «부류 주입이 효과를 냈다»가 아니라 «부류를 주고 읽혔더니 운영자 자리 밖에서 같은 꼴이 더 나왔다»까지만 말한다.
150
165
 
166
+ **둘째 실행 — 2026-11-18 (같은 원고 · 운영자 교정 4건 → 부류 4개 지시문 · Hydrogen 한 번).** 같은 부류의 꼴이 21곳 더
167
+ 나왔고, 그 세션은 원문과 대조해 19곳을 반영했다고 보고했다(21곳 중 · 이 문서의 저자는 다시 세지 않았다 · 반영은 운영자 확인이 아니라 그 세션의 원문 대조다).
168
+ 첫째 실행과 달리 이번엔 반영률이 있다. 🟥 그래도 n=2 는 **같은 원고**의 두 번이다 — 다른 원고 · 부류 없는 대조 팔은
169
+ 여전히 없다. 말할 수 있는 것은 «같은 원고에서 두 번 다 운영자 자리 밖의 같은 꼴을 찾았고, 둘째엔 그 세션이 대부분을 반영했다»까지다.
170
+
151
171
  ## §Step-5s-provenance
152
172
 
153
173
  > **출처와 그 한계 (읽고 인용해라)**: 이 절의 축은 2026-08-09 낭독 렌즈 필드런의 **교정판**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.44.0",
3
+ "version": "3.45.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -2,6 +2,101 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### [3.45.0] — 2026-11-20
6
+
7
+ Minor by the version policy: fh-gate gains an execution layer, a review pass that follows `/code-review`'s method, a history-aware «elephant» pass and `/code-review` itself as an opt-in reviewer (#1147, #1156). There are also new shipped tools and lanes (`live_eval_matrix.py`, `heavy_skill_smell.py`, `job_heartbeat.py`), a new `FH_AGY_ISOLATION=no-tools-agent` route, and judged procedure changes in shipped skills and canon.
8
+
9
+ **fh-gate defaults, stated plainly.** A caller who sets nothing gets the 3.44.0 review, with three exceptions: the default Claude model is now `claude-sonnet-5-5` (#1142), and file names with non-ASCII characters (#1142) or with quotes, backslashes or tabs (#1146) are now reviewed. Otherwise:
10
+ - the reviewer is `fh-legacy` on every backend;
11
+ - the elephant pass is off;
12
+ - the execution layer is off.
13
+
14
+ Terms: the *goldfish* pass is a reviewer that sees only the diff and the files, never the author's explanation. The *elephant* pass also sees the task description and the files' git history. *fh-legacy* is the original angle pass. Grades: A blocks, B means proceed with care (PENDING), C is a note.
15
+
16
+ Each new layer is opt-in: `FH_REVIEWER=code-review` (claude backend only) or `FH_REVIEWER=fh`, `FH_GATE_ELEPHANT=auto|on`, `FH_GATE_EXEC=on`. Why: whether a headless `/code-review` call, or the `fh` pass, returns the structured object the gate needs on every runner is UNMEASURED, and `FH_GATE_EXEC=on` runs the repository's own lane scripts.
17
+
18
+ Three changes make a shipped gate refuse more by default; see their `BREAKING (gate):` entries:
19
+ - the pre-push Load-Bearing gate reads each pushed branch's own marker (#1119; FH-checkout pushes of gate files only);
20
+ - `fh-goal` and `fh-gate` fail closed when any changed file name holds a newline (#1146);
21
+ - `codex_launch_guard.sh` refuses a stdin that does not end in time, or is closed, instead of waiting forever or starting codex with an empty prompt (#1158).
22
+
23
+ Items marked «not in the npm package» are in the repository checkout only.
24
+
25
+ ### Added
26
+ - fh-gate review layers, all opt-in (#1147, #1156):
27
+ - `FH_GATE_EXEC=on` runs `scripts/fh_gate_exec.sh` (shipped) in a copy of the tree. It makes no model call, but the lanes it runs may use the network or secrets the way your CI does:
28
+ - E0 runs FH's pipefail early-exit class scanner against the change; a new site it flags is B. The scanner is not in the npm package, so from npm E0 prints `NOT RUN (scanner not shipped here)` and only E1 runs.
29
+ - E1 runs the change's target lanes. A lane this change turns red is graded A (BLOCKED); a lane already red before the change is C; a lane that did not finish or could not run is B.
30
+ - It runs the repository's own lane scripts: use it only where the change is trusted. The copy is not a sandbox.
31
+ - `FH_REVIEWER=code-review` (claude backend only) calls the built-in `/code-review` (medium at `quick`, high at `full`) with a JSON schema. Its tools are not read-only: `/code-review` needs git's read commands, and `git diff/log/show --output=<file>` writes a file, so a reviewed change that talks the model into it could write a file of its choosing. Use it on trusted changes only. The call runs without the runner's command-file variables (`GITHUB_ENV`, `GITHUB_PATH`, `GITHUB_OUTPUT`, `GITHUB_STATE`, `GITHUB_STEP_SUMMARY`); that removes the direct reference only — the files can still be found and written, so it does not make this path safe. Its findings are carried as reported: Important → B, Nit and Pre-existing → C.
32
+ - `FH_REVIEWER=fh` runs a «goldfish» pass modelled on the phase structure of `/code-review` as shipped in Claude Code 2.1.328, written in FH's words:
33
+ - eight finder angles;
34
+ - one CONFIRMED / PLAUSIBLE / REFUTED vote per candidate;
35
+ - at most 10 findings at `full`, 8 at `quick`;
36
+ - it never receives `FH_TASK_DESCRIPTION`, in its prompt or in its process environment.
37
+ - on the claude backend it gets only Read · Glob · Grep: no shell, no MCP server, no skill (`--tools`, `--strict-mcp-config`, `--disable-slash-commands`; the change and the target content are in its prompt). A Claude Code too old for these flags fails the call (exit 10). On codex it runs in `codex exec -s read-only`, codex's sandbox. The elephant pass below is the same.
38
+ - `FH_GATE_ELEPHANT=auto` (on at `full`) or `on` adds an «elephant» pass:
39
+ - it gets the task description and the touched files' git history;
40
+ - it looks only for a past fix re-opened, a recorded decision undone or the task contradicted;
41
+ - it can only make the verdict stricter.
42
+ - Shared rules:
43
+ - Any failure of the opt-in passes exits 10.
44
+ - When a pass that reads the change diff runs (an opt-in reviewer, or the elephant), a diff that cannot be computed is a B. With `fh-legacy` and the elephant off, it is only named on the reviewer line.
45
+ - The elephant under `fh-legacy` keeps the 120 s default timeout; the 900 s default applies only to `code-review` and `fh`.
46
+ - Output gains `FH_GATE_REVIEWER` · `FH_GATE_ELEPHANT` · `FH_GATE_E0` · `FH_GATE_E1` · `FH_GATE_LAYERS_NOT_BUILT`, and a `source:` per finding. Verdicts, exit codes 0/1/2/3/10/11/12 and the record keep their meaning.
47
+ - In `cross` mode with `FH_REVIEWER=code-review`, the codex leg runs the goldfish pass, labelled `fallback`.
48
+ - Lanes (shipped): `test_fh_gate_defaults_lanes.sh` · `test_fh_gate_exec_lanes.sh` · `test_fh_gate_fusion_lanes.sh` · `test_fh_gate_absorb_lanes.sh`.
49
+ - `FH_AGY_ISOLATION=no-tools-agent` in `agy_launch_guard.sh` (shipped), for a machine where company repositories are readable. Its callers (`finding_fleet.sh`, `finding_verifier.sh`, `sidecar_calibrate.sh`) and the `auto-decorrelation` and `steel-quench` docs name the new route. In order:
50
+ 1. It refuses before agy starts when the prompt, an argument, the agy binary path or the working folder names a company-repo root. An unconfigured list is refused.
51
+ 2. It writes a `tools: []` agent definition under a unique name and runs agy with it and `--output-format stream-json`.
52
+ 3. It voids any run whose stream shows a tool step other than `manage_task`, or that does not end in one SUCCESS result: exit 4, nothing on stdout.
53
+ 4. It removes the definition.
54
+
55
+ The `container` / `os-user` / `remote-os-user` routes are unchanged. (#1140)
56
+ - `scripts/live_eval_matrix.py` (shipped): a probe × date matrix across nightly live-eval reports, with always-pass / never-pass / mixed / too-few lists. Record only; UNCALIBRATED and FAILED-TO-RUN rows count as not scored. (#1082)
57
+ - Live-eval behaviour profile (record only). The nightly report gains, per probe, arm and rep, the arm's top-level tool calls in four bins (explore · edit · test-run · other), counted by `live_eval_trace.py profile`. The bins are a heuristic calibrated on 17 real calls (edit and test-run on fixtures only). A rep with no stream says `trace=MISSING`, never 0. (#1133)
58
+ - `knowledge/shared/harness-core/heavy_skill_to_cartridge.md` and `scripts/heavy_skill_smell.py` (shipped). A guide for splitting a skill that carries its own gates and hooks into craft / checks / floor. The checker flags seven smell families and is advisory: exit 0 when it read everything, 2 when it could not, never 1. (#1135)
59
+ - `scripts/job_heartbeat.py` (shipped), wired into the session-start load. Per installed FH nightly job (`com.forge-harness.*` launchd jobs; silent where there are none), it lists the last 3 days with no output; days inside a row of `tracks/_meta/job_pauses.tsv` print as «paused (recorded)». It never judges a gap; always exit 0. (#1154)
60
+ - Cartridge loader (not in the npm package; the shipped `heavy_skill_to_cartridge.md` and install-wizard detail name it): `scripts/cartridge_loader.py` / `.sh`, a SessionStart hook. It injects the entry text of the cartridges the operator lists in `.claude/cartridges.enabled`, each pinned by a tree hash. No list means nothing is injected. (#1137)
61
+ - `scripts/fh_techwriter_sync_check.sh` (not in the npm package): names the files where the published fh-techwriter copy differs from FH's own export of ko-tech-writer (DRIFT · MISSING · EXTRA). Record only. (#1139)
62
+ - `scripts/scoreboard_render.py` (not in the npm package): renders a measurement scoreboard only from sealed, quoted records, and lists everything else as excluded with its reason. (#1143, #1144)
63
+
64
+ ### Changed
65
+ - fh-gate, fh-goal and fh-run: the default Claude model moves from `claude-sonnet-4-6` to `claude-sonnet-5-5`. Verdict rules and exit codes are unchanged. (#1142)
66
+ - `action.yml`: the `timeout` input defaults to empty and becomes `FH_TIMEOUT` only when given; it is read through an env var, not a `${{ }}` in the shell. With no `timeout`, the gate uses its own default for the review it runs: 120 s for `fh-legacy`, 900 s for an opted-in `code-review` or `fh` reviewer. Callers who set `timeout` are unchanged. (#1156)
67
+ - BREAKING (gate): `templates/.git-hooks/pre-push` (shipped), the Load-Bearing Change Gate.
68
+ - Scope: it binds only when the push carries load-bearing gate files and the repository has a `tracks/_meta` folder (an FH checkout).
69
+ - What changed: every branch the push updates needs its own marker, named exactly `.axes_23_passed_<slug>_YYYY-MM-DD.marker` and carrying a `crossfamily:` line, read from where pre-commit writes it (the main checkout's `tracks/_meta` when you push from a worktree).
70
+ - Why: before, it took the newest marker of any branch, so a main-checkout push could pass on another branch's marker.
71
+ - What now blocks: a push whose branch has no marker of its own, or whose marker name another local branch shares.
72
+ - Remedy: record the marker for the branch you push, or use the logged `PUBLIC_SURFACE_OK=1` exception.
73
+ - Repositories without `tracks/_meta` are not newly blocked. (#1119)
74
+ - `fh_module_contract.md` (shipped):
75
+ - §2d: the declared purpose picks the measurement axis. Role and interaction modules get a persona simulation with three arms (bare / skill-only / module). (#1136)
76
+ - §2e: a module that verifies names its near-miss request kinds and refuses them with exit 2 and «NOT checked», never 0 or 1, with one lane per kind. (#1141)
77
+ - `ko-tech-writer` (shipped): scope words (지원하는 · 어디서나 · 모든 · 항상) need evidence for that scope. S20 drops a bracketed exit code only when the sentence already states the result. Operator examples are added to S18 · S19 · S23 · S30. (#1134)
78
+ - `.claude/rules/fh_4axis_gate.md` (shipped) is a thin resident layer: 59 KB → 20 KB. It is written to keep every hook-enforced requirement; the pre-registered probe of that was INSTRUMENT-UNCONFIRMED (its control also scored full). The previous body moved to `knowledge/shared/harness-core/fh_4axis_gate_detail.md`, byte-identical below a new header. `templates/regression_guard.sh` (shipped) credits that move as a sibling pair. (#1145)
79
+ - `templates/.claude/rules/mcp_tool_gating.md` (shipped) gains step 6 for npx/uvx servers, which is advisory: a pinned version is not a dependency freeze. (#1132)
80
+ - Live-eval `INVALID-COMPARISON` now starts with the elements not present in every arm («not in every arm: tools=…; mcp=…; plugins=…»). Verdict and rc are unchanged. (#1152)
81
+ - `sim_isolated_run.sh` (shipped) prints a run-level tally, and `RUN: FAILED-TO-RUN` when no rep was captured or ended empty; exit code unchanged. (#1138)
82
+ - The self-dev nightly report ends with a tier tally (not in the npm package; measuring only). (#1153)
83
+
84
+ ### Fixed
85
+ - BREAKING (gate): `scripts/codex_launch_guard.sh` (shipped since 3.44.0), which FH scripts start codex through.
86
+ - What changed: it reads the prompt from stdin with an idle limit (`FH_GUARD_STDIN_IDLE_S`, default 60 s) and a total limit (`FH_GUARD_STDIN_MAX_S`, default 600 s).
87
+ - Why: it used to read stdin with `cat`. A stdin that stays open and never ends — an agent's background shell hands its commands one — made it wait forever, and everything that started codex through it with it (measured: a selfcheck stuck 2 h 30 min in the `sidecar_calibrate.sh` lane).
88
+ - What now blocks: a stdin silent past the idle limit or not ended by the total limit, a limit outside 1–86400, a read error, or a closed stdin (`<&-`, which used to start codex with an empty prompt). Each is a refusal by name: exit 3, codex not started, nothing partial passed on.
89
+ - Remedy: pipe in a prompt that ends, or run the caller with `< /dev/null` when the prompt is an argument. `sidecar_calibrate.sh` now does this for its probes. (#1158)
90
+ - BREAKING (gate): `fh-goal` and `fh-gate` (shipped bins) read changed files NUL-delimited. Before, a name with a quote made `fh-goal`'s `xargs` abort, and it reported «no changed files» with exit 0, so fh-gate never ran. `fh-gate` used to only warn about names with a quote, backslash or tab; now it reviews them. In both, a change in which any name holds a newline exits 10: when every name does («every changed file name holds a newline … Failing closed»), and also when such a name sits beside others, since a verdict on the rest would cover only part of the change and read as the whole (a security review before the 3.45.0 tag reproduced PASS / exit 0 with the newline-named file unreviewed). Remedy: rename the file, or pass the files to review explicitly. (#1146)
91
+ - `fh-gate` and `fh-goal` review files with non-ASCII names. They used to be quoted with octal escapes and could not be opened; a Korean-only change exited 10 with «nothing was reviewed». (#1142)
92
+ - The guard anchors `universal_guard_check.sh` and `prepush_guard_check.sh` (shipped) unset every override the hooks read before building their sandbox. A commit made with `PUBLIC_SURFACE_OK=1` no longer turns them red for an unrelated reason. (#1118)
93
+ - `fh-gate --help` and the Action's `backend` description name the 3.45.0 defaults (fh-legacy; `FH_GATE_EXEC=on` runs the repository's own scripts; the opt-in layers are set in the step env), and lane D9 pins the help line (this release).
94
+ - `test_finding_pipeline_lanes.sh` (shipped) runs its stub pipelines from its own temp folder. A checkout that lists its own root in `.claude/rules/.company-roots` no longer turns 7 lanes red, and the codex guard still refuses a launch from the checkout (L128, L129). (#1155)
95
+ - `below_floor_scan.sh` (shipped): from a git worktree it reads the main checkout's markers, or says NOT READ, instead of printing «0 total» from the worktree's empty folder. (#1151)
96
+ - `correction_moments.py` (shipped): a long prompt that repeats 3+ times, such as a scheduled trigger, is no longer counted as an operator correction. (#1150)
97
+ - Clean-room audit rounds 8–9: two lanes that reported an absence about sound subjects now find the row by elimination or name the premise. A LaneGap snippet template now ships with the lane that reads it. (#1062)
98
+ - `state_claim_recheck_hook.sh` (not in the npm package) also reads the lease archive and tags its lines as expired. (#1148)
99
+
5
100
  ### [3.44.0] — 2026-11-17
6
101
 
7
102
  Minor by the version policy: new shipped guards and a remote runner for the cross-family sidecars (#1123, #1125, #1127), a new `--senses` listing and lane in `ko-tech-writer` (#1128), and judged procedure changes in shipped skills and canon. One change makes an existing path refuse more by default — FH scripts now start `agy` only through `agy_launch_guard.sh`, so a gemini fleet member you ran on purpose fails as refused until it runs isolated; see the `BREAKING (gate):` entry for the remedy (#1123). The same change makes `finding_fleet.sh` stop with exit 1 before any member runs when it cannot create or prove its agy shim (for example a read-only or noexec `/tmp`), so a codex-only fleet on such a machine stops too (#1123). Two other refusals are new and narrower: a codex arm is refused when its prompt, arguments or working folder name a configured company-repo root (#1127), and `sidecar_wait.sh` now reports a sidecar that rejected its model as `HARNESS-ERROR` instead of `COMPLETE` (#1127). The live-eval report can now exit 2 (`INVALID-COMPARISON`) when its arms loaded different plugin sets — a report verdict, not a commit or publish gate (#1121). This repository's own required `validate` check now proves every selfcheck shard passed without the GitHub API (#1130) — repository CI only, nothing shipped changes.
@@ -67,6 +67,19 @@ fails). Being
67
67
  discovered below makes agy a *candidate*, not a recruit: on the host, without the marker, it is not
68
68
  recruitable. Lanes: `scripts/test_agy_launch_guard_lanes.sh`.
69
69
 
70
+ **On this machine, for public material only: `FH_AGY_ISOLATION=no-tools-agent`** (2026-11-19). This is the one
71
+ marker the guard partly checks instead of taking on trust. Measured with canaries: a custom agent whose
72
+ definition says `tools: []` made 0 file reads in 4 of 4 runs, while a control with the same body read
73
+ both canaries; settings keys and `permissions.deny` did not stop reads. On this route the guard:
74
+ - refuses when the prompt, an argument or the working folder names a company-repo root (codex guard's
75
+ list; an unconfigured list is refused);
76
+ - writes a `tools: []` agent definition under a unique name into `~/.gemini/agents`, runs agy with it,
77
+ and removes the definition;
78
+ - reads every run's stream-json and **voids** the run (exit 4, nothing printed) on any tool step other
79
+ than `manage_task`, another agent, or a stream it cannot parse.
80
+
81
+ A void cannot un-send what a tool already read, which is why company paths are refused before the start.
82
+
70
83
  **The route FH ships for agy: a separate OS user on another machine** — `scripts/agy_remote_run.sh` (the `container` / `os-user` markers remain for an isolated environment you built yourself, and the guard cannot check those).
71
84
  Set `FH_AGY_BIN=<repo>/scripts/agy_remote_run.sh` and `FH_AGY_ISOLATION=remote-os-user` (the guard honours
72
85
  that value only for this runner). Configuration is environment-only (`FH_AGY_REMOTE` = ssh target,
@@ -591,6 +591,10 @@ fi
591
591
  # skill's own Per-item-approval principle). Ask BEFORE running the python:
592
592
  # "Register the SessionStart hooks (floor check · env-delta · companion load) into
593
593
  # .claude/settings.json? (Y/N)
594
+ # [only when templates/settings.CartridgeLoader.snippet.json exists — a hub checkout, not the npm
595
+ # package:] This also registers the cartridge loader. It injects nothing until you write
596
+ # .claude/cartridges.enabled yourself (example: templates/cartridges.enabled.example) — it
597
+ # loads only admitted snapshots you list.
594
598
  # On N: you get no turn-0 mechanical signal — floor gaps, env changes and companion freshness
595
599
  # fall back to session prose, and some of FH's intended features will not run as designed.
596
600
  # The decline is recorded and a one-line per-session reminder will note the state
@@ -365,7 +365,8 @@ fi
365
365
  # (intermittent hang class, ~50% observed 2026-06-11); -p auto-approves tool execution,
366
366
  # so feed only trusted artifacts — never untrusted external content. 🟥 Its tools also READ the
367
367
  # machine and send what they print to the cloud model: start it only through
368
- # scripts/agy_launch_guard.sh, which refuses unless FH_AGY_ISOLATION=container|os-user — never on a
368
+ # scripts/agy_launch_guard.sh, which refuses unless FH_AGY_ISOLATION=container|os-user (or no-tools-agent,
369
+ # a tools: [] agent with every run checked — public material only) — never on a
369
370
  # host where company repositories are readable (auto-decorrelation §Step 2). Serial by design
370
371
  # (worst case ~6 min if the hang class fires on every call) — do NOT copy the T1-T4
371
372
  # `VAR=$(...) &` pattern: it assigns inside a background subshell.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.44.0",
3
+ "version": "3.45.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.44.0",
3
+ "version": "3.45.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -23,12 +23,127 @@
23
23
  # marker only if every read fails. Never on the host that holds company repositories, and never because
24
24
  # of `--sandbox`.
25
25
  #
26
+ # NO-TOOLS AGENT (2026-11-19, on this machine). FH_AGY_ISOLATION=no-tools-agent is the one marker the guard
27
+ # can partly CHECK rather than take on trust. Measured 2026-11-19 with canaries: a custom agent whose
28
+ # definition says `tools: []` made 0 file reads in 4 of 4 runs, while a control with the same body and no
29
+ # `tools` line read both canaries; settings keys and `permissions.deny` did not stop reads, and `init.tools`
30
+ # lists 60 tools either way (not a signal). `manage_task` (agy's own task list) still ran. So on this route:
31
+ # 1. refuse unless the prompt (stdin), the arguments and the working folder carry no company-repo root —
32
+ # the matcher is codex_launch_guard.sh's, and an UNCONFIGURED list is refused here, not warned;
33
+ # 2. refuse a caller's own --agent or any output format but text (a caller's `--output-format text` is
34
+ # dropped — this route prints the result text; FH's fleet and verifier pass it);
35
+ # 3. write an FH-owned definition with `tools: []` under a unique name into the folder agy discovers
36
+ # (FH_AGY_AGENTS_DIR, default ~/.gemini/agents — measured: `agy agents` lists definitions from
37
+ # ~/.gemini/agents and ~/.gemini/config/agents only, not from the working folder), run agy with
38
+ # --agent <it> --output-format stream-json, and remove the definition when the run ends;
39
+ # 4. read the whole stream and VOID the run (exit 4, nothing on stdout) when a line does not parse, the
40
+ # init event names another agent, a step is neither user_input nor agent_response nor a tool step whose
41
+ # tool_name AND tool_info.name are both exactly manage_task (any state — ACTIVE, DONE or ERROR), an event
42
+ # is not init / step_update / result, or no successful result arrives — naming the step or tool. Only a
43
+ # run that passes prints the result text on stdout. Deny by default: 13 probe runs saw manage_task,
44
+ # read_file, search_web and write_file, which is not every tool agy has.
45
+ # 🟥 A void cannot un-send: what a forbidden tool read has already gone to the cloud model. That is why step 1
46
+ # refuses company paths before the start, and why this route is for public material only.
47
+ #
26
48
  # Usage: bash scripts/agy_launch_guard.sh <agy-binary> [agy arguments...]
27
- # Exit: 3 = refused, agy was not started · 2 = usage · otherwise agy's own exit code
49
+ # Exit: 3 = refused, agy was not started · 2 = usage · 4 = no-tools-agent run voided (stdout empty)
50
+ # · otherwise agy's own exit code
28
51
  set -uo pipefail
29
52
  [ $# -ge 1 ] || { echo "usage: agy_launch_guard.sh <agy-binary> [agy arguments...]" >&2; exit 2; }
30
53
  case "${FH_AGY_ISOLATION-}" in
31
54
  container|os-user) exec "$@" ;;
55
+ no-tools-agent)
56
+ _here="$(cd "$(dirname "$0")" && pwd -P)"
57
+ _refuse() { echo "AGY-REFUSED: $1 — agy was not started (FH_AGY_ISOLATION=no-tools-agent)." >&2; exit 3; }
58
+ # The caller's own `--output-format text` is dropped (this route prints the result text anyway — FH's
59
+ # fleet and verifier pass it); any other output format or an --agent is refused.
60
+ _args=(); _skip=0
61
+ for _a in "${@:2}"; do
62
+ if [ "$_skip" = 1 ]; then
63
+ _skip=0; [ "$_a" = text ] && continue
64
+ _refuse "the caller asked for --output-format $_a; this route prints text only"
65
+ fi
66
+ case "$_a" in
67
+ --output-format) _skip=1 ;;
68
+ --output-format=text) ;;
69
+ --output-format=*) _refuse "the caller asked for $_a; this route prints text only" ;;
70
+ --agent|--agent=*) _refuse "the caller passed $_a; this route sets the agent itself" ;;
71
+ *) _args+=("$_a") ;;
72
+ esac
73
+ done
74
+ [ "$_skip" = 0 ] || _refuse "--output-format has no value"
75
+ set -- "$1" ${_args[@]+"${_args[@]}"}
76
+ [ -f "$_here/codex_launch_guard.sh" ] || _refuse "codex_launch_guard.sh (the company-path matcher) is missing beside this guard"
77
+ _w="$(mktemp -d "${TMPDIR:-/tmp}/fh_agy_nt.XXXXXX")" || _refuse "no temp dir"
78
+ _def=""
79
+ trap 'rm -rf "$_w"; [ -n "$_def" ] && rm -f "$_def"' EXIT
80
+ if [ -t 0 ]; then : > "$_w/prompt"; else cat > "$_w/prompt"; fi
81
+ _chk="$(bash "$_here/codex_launch_guard.sh" /usr/bin/true "$@" < "$_w/prompt" 2>&1)"; _crc=$? # the agy path itself too
82
+ [ "$_crc" -eq 0 ] || _refuse "the company-path check refused or failed: $(printf '%s' "$_chk" | tr '\n' ' ' | cut -c1-200)"
83
+ case "$_chk" in *"no company roots configured"*) _refuse "no company-repo roots are configured, so the prompt could not be checked" ;; esac
84
+ _dir="${FH_AGY_AGENTS_DIR:-$HOME/.gemini/agents}"
85
+ mkdir -p "$_dir" || _refuse "cannot create the agents folder $_dir"
86
+ _name="fh-notools-$(od -An -N6 -tx1 /dev/urandom | tr -d ' \n')"
87
+ [ "${#_name}" -eq 23 ] || _refuse "could not make a unique agent name"
88
+ _def="$_dir/$_name.md"
89
+ [ ! -e "$_def" ] || _refuse "an agent definition named $_name already exists"
90
+ printf -- '---\nname: %s\ndescription: FH tool-less agent (written by agy_launch_guard.sh, removed after the run)\ntools: []\n---\nYou have no tools. Answer from the prompt text only.\n' "$_name" > "$_def" \
91
+ || _refuse "cannot write the agent definition"
92
+ "$1" "${@:2}" --agent "$_name" --output-format stream-json < "$_w/prompt" > "$_w/stream" 2> "$_w/err"; _arc=$?
93
+ rm -f "$_def"; _def=""
94
+ _v="$(python3 - "$_w/stream" "$_name" "$_w/response" <<'PY'
95
+ import json, sys
96
+ path, name, out = sys.argv[1], sys.argv[2], sys.argv[3]
97
+ def void(why): print("VOID " + why); sys.exit(0)
98
+ init = result = None
99
+ try: lines = open(path, encoding="utf-8").read().splitlines()
100
+ except (OSError, UnicodeDecodeError) as e: void("stream unreadable (%s)" % type(e).__name__)
101
+ for n, raw in enumerate(lines, 1):
102
+ if not raw.strip(): void("line %d is blank" % n) # deny by default: agy does not print blank lines
103
+ try: d = json.loads(raw)
104
+ except ValueError: void("line %d is not JSON" % n)
105
+ if not isinstance(d, dict): void("line %d is not an object" % n)
106
+ ev = d.get("event")
107
+ body = d.get(ev) if isinstance(ev, str) else None
108
+ if not isinstance(body, dict): void("line %d has no event body" % n)
109
+ if ev == "init":
110
+ if init is not None: void("a second init event on line %d" % n)
111
+ init = body
112
+ if body.get("agent") != name: void("init names agent %r, not %s" % (body.get("agent"), name))
113
+ elif ev == "step_update":
114
+ if init is None: void("a step before the init event (line %d)" % n)
115
+ st = body.get("step_type")
116
+ if st in ("user_input", "agent_response"): continue
117
+ if st == "tool":
118
+ # agy 1.5.11 names a tool step twice: step_update.tool_name and step_update.tool_info.name (13 probe
119
+ # runs, 2026-11-19). Both must say manage_task; a missing or different one voids — whatever the
120
+ # state (ACTIVE, DONE or ERROR: a tool that started has run).
121
+ info = body.get("tool_info")
122
+ n1, n2 = body.get("tool_name"), (info.get("name") if isinstance(info, dict) else None)
123
+ if n1 == "manage_task" and n2 == "manage_task": continue
124
+ void("tool step %s (index %s, state %s)" % ("/".join(sorted({str(n1), str(n2)})), body.get("step_index"), body.get("state")))
125
+ void("step of type %r (index %s; keys %s)" % (st, body.get("step_index"), ",".join(sorted(body))))
126
+ elif ev == "result":
127
+ if result is not None: void("a second result event on line %d" % n)
128
+ result = body
129
+ else:
130
+ void("unknown event %r on line %d" % (ev, n))
131
+ if init is None: void("no init event")
132
+ if result is None: void("no result event")
133
+ if result.get("status") != "SUCCESS": void("result status %r" % result.get("status"))
134
+ resp = result.get("response")
135
+ if not isinstance(resp, str): void("result has no response text")
136
+ open(out, "w", encoding="utf-8").write(resp)
137
+ print("OK")
138
+ PY
139
+ )"
140
+ case "$_v" in
141
+ OK) cat "$_w/response"; exit "$_arc" ;;
142
+ VOID*) echo "AGY-VOID: ${_v#VOID } — the run was discarded (agy rc=$_arc). Anything a tool read has already been sent; this route takes public material only." >&2
143
+ [ -s "$_w/err" ] && tail -3 "$_w/err" >&2
144
+ exit 4 ;;
145
+ *) echo "AGY-VOID: the stream check did not run (${_v:-no output}) — the run was discarded (agy rc=$_arc)." >&2; exit 4 ;;
146
+ esac ;;
32
147
  remote-os-user)
33
148
  # Honoured for ONE route only: the target must be FH's remote runner beside this guard, which runs
34
149
  # agy as a separate OS user on another machine and itself refuses without a fresh canary receipt.
@@ -45,5 +160,6 @@ esac
45
160
  echo " agy runs shell and file tools and sends their output to a cloud model, so it must not run where"
46
161
  echo " company repositories are readable. Run it in a container or a separate OS user that sees only the"
47
162
  echo " frozen inputs, then set FH_AGY_ISOLATION=container|os-user there — or use a tool-less API call."
163
+ echo " On this machine, for public material only: FH_AGY_ISOLATION=no-tools-agent (a tools: [] agent, every run checked)."
48
164
  } >&2
49
165
  exit 3
@@ -23,7 +23,37 @@ MARKER_DIR="$REPO_ROOT/tracks/_meta"
23
23
  PENDING=0
24
24
  TOTAL=0
25
25
 
26
+ # Worktree redirect (2026-11-20 weekly audit): tracks/ is gitignored, so a git worktree has no
27
+ # markers of its own and the scan printed «0 total, 0 pending» rc 0 while the main checkout held
28
+ # 4 markers — «not read» rendered as «clean». The pre-commit hook WRITES markers to EVIDENCE_ROOT
29
+ # (the main checkout, via --git-common-dir), so with no root argument a worktree reads exactly
30
+ # there — the same rule, so writer and reader agree. If that place has no tracks/_meta, say
31
+ # NOT READ (rc unchanged — a CI worktree must not turn red). An explicit root is never redirected;
32
+ # a main checkout and a fresh clone are unchanged. The common dir is resolved to an absolute path
33
+ # from the cwd (git prints it relative to the cwd, not to the top level) and must be a `.git`
34
+ # directory, so a bare repo, --separate-git-dir or a submodule never names an unrelated parent.
35
+ WT_NOTE=""
36
+ if [ -z "${1:-}" ]; then
37
+ _gcd=$(git rev-parse --git-common-dir 2>/dev/null); _rc=$?
38
+ if [ "$_rc" -eq 0 ] && [ -n "$_gcd" ]; then
39
+ _gcd=$(cd "$_gcd" 2>/dev/null && pwd -P) || _gcd=""
40
+ _here=$(cd "$REPO_ROOT" 2>/dev/null && pwd -P) || _here="$REPO_ROOT"
41
+ if [ -n "$_gcd" ] && [ "$(basename "$_gcd")" = .git ]; then
42
+ _hub=$(dirname "$_gcd")
43
+ if [ "$_hub" != "$_here" ]; then
44
+ if [ -d "$_hub/tracks/_meta" ]; then
45
+ MARKER_DIR="$_hub/tracks/_meta"
46
+ WT_NOTE=" (git worktree — read the main checkout's tracks/_meta, where the pre-commit hook writes markers)"
47
+ else
48
+ WT_NOTE=" (git worktree — the main checkout has no tracks/_meta: markers NOT READ, the counts below are not a clean result)"
49
+ fi
50
+ fi
51
+ fi
52
+ fi
53
+ fi
54
+
26
55
  echo "── below-floor marker scan: $MARKER_DIR ──"
56
+ [ -n "$WT_NOTE" ] && echo "$WT_NOTE"
27
57
 
28
58
  if [ ! -d "$MARKER_DIR" ]; then
29
59
  echo " (no tracks/_meta directory — nothing to scan)"
@@ -22,7 +22,7 @@
22
22
  # UNCONFIGURED. No list, or an empty one: codex runs and the guard prints «CODEX-GUARD: no company roots
23
23
  # configured — not checked» on stderr. That is said out loud, never shown as clean.
24
24
  #
25
- # Usage: bash scripts/codex_launch_guard.sh <codex-binary> [codex arguments...] (prompt on stdin)
25
+ # Usage: bash scripts/codex_launch_guard.sh <codex-binary> [codex arguments...] (prompt on stdin; see STDIN below)
26
26
  # Exit: 3 = refused (codex not started; stderr starts «HARNESS-ERROR: CODEX-REFUSED») · 2 = usage
27
27
  # · otherwise codex's own exit code (a codex exit of 3 is told apart by the missing CODEX-REFUSED line)
28
28
  set -uo pipefail
@@ -31,7 +31,43 @@ _here="$(cd "$(dirname "$0")" && pwd -P)"
31
31
  _rootsfile="${FH_COMPANY_ROOTS_FILE:-$_here/../.claude/rules/.company-roots}"
32
32
  _tmp="$(mktemp "${TMPDIR:-/tmp}/fh_codex_prompt.XXXXXX")" || { echo "HARNESS-ERROR: codex_launch_guard cannot create a temp file — codex not started" >&2; exit 3; }
33
33
  trap 'rm -f "$_tmp"' EXIT
34
- if [ -t 0 ]; then : > "$_tmp"; else cat > "$_tmp"; fi
34
+ # STDIN. A terminal means no prompt (nothing is read). Anything else is read until it ends — but not forever:
35
+ # a stdin that sends nothing new for FH_GUARD_STDIN_IDLE_S seconds (default 60), or has not ended after
36
+ # FH_GUARD_STDIN_MAX_S seconds in all (default 600), is a refusal — never a partial or empty prompt passed on,
37
+ # never a hang. An agent's background shell hands its children a stdin that stays open and never ends;
38
+ # measured 2026-11-20, a plain `cat` here waited 2 h 30 min and, after the guard was killed, still held the
39
+ # caller's output pipe open. Each limit is a whole number of seconds from 1 to 86400 (unset or empty = the
40
+ # default); anything else is refused.
41
+ if [ -t 0 ]; then : > "$_tmp"
42
+ else
43
+ _idle="${FH_GUARD_STDIN_IDLE_S:-60}"; _max="${FH_GUARD_STDIN_MAX_S:-600}"
44
+ for _lim in "FH_GUARD_STDIN_IDLE_S=$_idle" "FH_GUARD_STDIN_MAX_S=$_max"; do
45
+ _v="${_lim#*=}"
46
+ case "$_v" in ''|*[!0-9]*) _v=x ;; *) [ "${#_v}" -le 5 ] && [ "$((10#$_v))" -ge 1 ] && [ "$((10#$_v))" -le 86400 ] || _v=x ;; esac
47
+ [ "$_v" = x ] && { echo "HARNESS-ERROR: CODEX-REFUSED — ${_lim%%=*}='${_lim#*=}' is not a whole number of seconds from 1 to 86400; codex was not started." >&2; exit 3; }
48
+ done
49
+ python3 -c '
50
+ import os, select, sys, time
51
+ idle, total = int(sys.argv[1], 10), int(sys.argv[2], 10); out = sys.stdout.buffer
52
+ end = time.monotonic() + total
53
+ try:
54
+ while True:
55
+ left = end - time.monotonic()
56
+ if left <= 0: sys.exit(125)
57
+ if not select.select([0], [], [], min(idle, left))[0]:
58
+ sys.exit(125 if time.monotonic() >= end else 124)
59
+ b = os.read(0, 65536)
60
+ if not b: break
61
+ out.write(b)
62
+ except OSError: sys.exit(5)
63
+ ' "$_idle" "$_max" > "$_tmp"
64
+ case $? in
65
+ 0) ;;
66
+ 124) echo "HARNESS-ERROR: CODEX-REFUSED — stdin is open but sent nothing for ${_idle} s and never ended (an agent background shell does this); codex was not started. Pipe the prompt in, or run with < /dev/null." >&2; exit 3 ;;
67
+ 125) echo "HARNESS-ERROR: CODEX-REFUSED — stdin had not ended after ${_max} s in all; codex was not started. Pipe in a prompt that ends, or run with < /dev/null." >&2; exit 3 ;;
68
+ *) echo "HARNESS-ERROR: CODEX-REFUSED — codex_launch_guard could not read the prompt from stdin; codex was not started." >&2; exit 3 ;;
69
+ esac
70
+ fi
35
71
  _verdict="$(FH_GUARD_PROMPT="$_tmp" FH_GUARD_ROOTS_FILE="$_rootsfile" python3 - "${@:2}" <<'PY'
36
72
  import os, re, sys
37
73
  def roots():