@chrono-meta/fh-gate 3.16.0 → 3.17.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 (60) hide show
  1. package/.claude-plugin/marketplace.json +4 -4
  2. package/AGENTS.md +27 -0
  3. package/CATALOG.md +60 -0
  4. package/CLAUDE.md +5 -0
  5. package/README.ja.md +2 -2
  6. package/README.ko.md +2 -2
  7. package/README.md +2 -2
  8. package/README.zh.md +2 -2
  9. package/docs/OUTPUT_EVIDENCE.md +1 -1
  10. package/docs/codex-compat.md +24 -0
  11. package/knowledge/shared/harness-core/checkout_layer_drift.md +301 -0
  12. package/knowledge/shared/learnings/subagent_invocations_log.yaml +25 -0
  13. package/package.json +11 -1
  14. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  15. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  16. package/plugins/fh-meta/CHANGELOG.md +42 -0
  17. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  18. package/plugins/fh-preprep/skills/preprep/SKILL.md +5 -0
  19. package/plugins/fh-preprep/skills/preprep/lane_font_embed.py +235 -0
  20. package/plugins/fh-preprep/skills/preprep/ooxml/gate.py +67 -5
  21. package/plugins/fh-preprep/skills/preprep/ooxml/test_gate_exitcodes.py +136 -0
  22. package/plugins/fh-preprep/skills/preprep/preprep.py +16 -1
  23. package/plugins/fh-preprep/skills/preprep/presentation_checklist.md +108 -6
  24. package/plugins/fh-preprep/skills/preprep/safe_install.py +22 -3
  25. package/plugins/fh-preprep/skills/preprep/surfaces.example.yaml +11 -0
  26. package/plugins/fh-preprep/skills/preprep/test_lane_font_embed.py +117 -0
  27. package/plugins/fh-preprep/skills/preprep/test_safe_install_app_xml.py +77 -0
  28. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  29. package/scripts/count_check.sh +46 -14
  30. package/scripts/daily_report.sh +17 -1
  31. package/scripts/env_layer_fingerprint.sh +309 -0
  32. package/scripts/gate_bootstrap_ephemeral.sh +248 -0
  33. package/scripts/governor_board.sh +841 -0
  34. package/scripts/map_postprocess.py +89 -4
  35. package/scripts/multibyte_bracket_lint.sh +135 -0
  36. package/scripts/outbound_pr_gate.sh +12 -0
  37. package/scripts/package_coverage_check.sh +34 -0
  38. package/scripts/selfcheck.sh +245 -0
  39. package/scripts/session_close_check.sh +96 -1
  40. package/scripts/stale_ref_scan.py +2 -1
  41. package/scripts/test_count_check_decl_lanes.sh +176 -0
  42. package/scripts/test_env_layer_fingerprint_lanes.sh +192 -0
  43. package/scripts/test_gate_bootstrap_ephemeral_lanes.sh +262 -0
  44. package/scripts/test_locale_invariance_lanes.sh +581 -0
  45. package/scripts/test_map_postprocess_lanes.sh +84 -4
  46. package/scripts/test_marker_crossfamily_lanes.sh +5 -1
  47. package/scripts/test_marker_defense_lanes.sh +5 -1
  48. package/scripts/test_marker_standpoint_lanes.sh +5 -1
  49. package/scripts/test_marker_thirdparty_lanes.sh +5 -1
  50. package/scripts/test_multibyte_bracket_lint_lanes.sh +107 -0
  51. package/scripts/test_outbound_pr_gate_lanes.sh +133 -0
  52. package/scripts/test_preprep_drift_anchor.sh +34 -9
  53. package/scripts/test_preprep_drift_anchor_lanes.sh +64 -2
  54. package/scripts/test_session_close_chain_lanes.sh +45 -0
  55. package/scripts/test_stale_ref_close_lanes.sh +197 -0
  56. package/scripts/test_stale_ref_scan_lanes.sh +6 -1
  57. package/scripts/test_worktree_reclaim_lanes.sh +267 -1
  58. package/scripts/worktree_reclaim.sh +246 -11
  59. package/templates/.git-hooks/pre-commit +108 -27
  60. package/templates/settings.PreToolUse.snippet.json +54 -1
@@ -11,25 +11,25 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "3.16.0",
14
+ "version": "3.17.0",
15
15
  "description": "New in 2.2.0: BREAKING (gate): chamber step 6 now reads ACTUAL.md, not BUDGET.md — an in-flight chamber run whose actual cost sits in BUDGET.md blocks until the ACTUAL: line moves to tracks/_chamber/<slug>/ACTUAL.md (the runner prints the path). Why: BUDGET.md's pre-verdict hash IS the ordering witness, and step 6 hard-blocked until that same file changed, so every run that reached COMPLETE necessarily mutated a witnessed artifact and verify returned TAMPERED — the chamber's promotion condition was unsatisfiable by construction, not by strictness. Two roles (immutable witness / post-verdict calibration sink) had collided in one file; each was correct alone, so neither side's code showed the conflict. Also: ko-tech-writer Step 2/4-b scans are now calibration-backed (known-pair fixtures + reproducible command, shipped) — discrimination is proven, 'zero residue' is explicitly NOT; chamber lane suite 12 -> 33 including the runner x witness seam no test covered; chamber_run.sh now teaches the two-commit discipline (gate hashes and verdict hash must land in separate commits/PRs — it previously advised the opposite). New in 2.1.0: BREAKING (gate): `crossfamily: declined` in an Axes 2-3 marker now requires grounds naming a record path that RESOLVES on disk — bare `declined`, and `declined` justified by author judgment, are blocked at commit. Remedy: cite where the operator decision lives (e.g. `.. — operator declined sidecars, per knowledge/shared/rules/operational_adaptation.md`), or use `DEGRADED_PANEL_UNUSED` if a panel was reachable and you chose not to recruit it — which is what author judgment actually is. `declined` was the only enum value with no grounds requirement; a cross-family review then broke the first (vocabulary-grep) fix three ways — self-validating on the value's own token, vacuous keyword passes, and over-blocking real declinations in natural prose — so the check asserts a resolvable record instead of words. Also: standpoint axis gains `tier1b` (a STATIC read of a target repo, executed nothing) plus a decide-in-order procedure, after blind floor-tier sims graded pure cold-reads as `tier2` three rounds running; steel-quench Wave 1's sixth angle (gate-locality) gains the output-template row it never had, so a mandatory angle stops being structurally unreportable; verify-bidirectional gains category 5 (prescriptive doctrine statement); Sister Asset Protocol gains an active-adoption trigger; new resident doctrine — Mechanization Boundary, Local Execution First, Skeleton-not-Muscle, Expedition track, and this package's versioning policy. Hub meta-operations toolkit — 35 skills + 7 agents. New in 2.0.1: harness-doctor cadence hook, portability lint wired into pre-commit, branch_claim.sh claim-count-vs-tree-count warning, louder confidentiality-scan fail-open notice, fh-gate.sh missing-package.json survival, identity ① reclassified 🟢 (cross-harness adapters + relay argument channel). New in 1.4.53: `fh-codex-doctor` (npm bin) — Codex adapter drift scanner; reads the documented M1/M2/M3 skill tier map + skill/agent source and reports codex-native/adapter-required/claude-native/unclassified per unit, wired into `npm test`/`prepublishOnly` (fail-closed on unclassified Claude-native primitives). New in 1.4.49: steel-quench gains Step 0.6 Verdict-Invariance Probe (groundedness axis — a load-bearing judged gate's verdict must track behavior, not rubric phrasing; measured flip-count over cross-family paraphrases; arXiv:2605.06161 Policy Invariance anchor); multi_model_sidecar_strategy §Vendor-native harness (a model is strongest in its own vendor CLI — Claude/CC, GPT/codex, Gemini/Antigravity; a universal router degrades all of them, so it stays an autocomplete/QA sidecar, never orchestration); predelete_check.sh fail-closed rewrite; memory-hygiene A-TMA anchor. New in 1.4.48: phantom-quench + steel-quench gain external frontier anchors (arXiv:2607.02052 package-hallucination; arXiv:2607.02057 prompt-coverage-adequacy); README model-flat claim reframed from a per-release point-curve to structural invariants (operation flattens across tiers; depth tier-order fixed within a generation). New in 1.4.47: onboarding step ① surfaces the Mode D companion-store session-start load in the auto-read salience anchor (previously only in the local binding + rules, so a greeting could skip the load). New in 1.4.46: context-doctor command-output axis (route to rtk/proxy for verbose CLI stdout, complementing .claudeignore; risk-gated to token-scarce envs). New in 1.4.41: context-doctor 2026 trigger vocab (context engineering/rot/collapse) + phantom-citation hardening; hub measurement-integrity-checklist (cross-model measurement pre-flight: display-name pin/reps≥3/discriminating probe). New in 1.4.40: install-wizard queryable-wiki scaffold (INDEX + session-start read + R/W/C ingest). New in 1.4.39: auto-decorrelation (cross-family verifier sidecar recruitment) + video-ingest (capability-routed video ingestion). New in 1.4.x: verify-axis check-class taxonomy (mandatory-pass/measured/judged), no-reinvention Tier-0 inventory, 7-class failure taxonomy, Destructive-Op Gate, Wave-T (Temper), tier-floor governance, Mode D Model Notice, FC consent lane, default-Sonnet guidance. New in 1.3.0: public-surface-audit, field-harvest Mode B auto-trigger, 4-axis gate scope ext. Validated cross-CLI: Claude Code, Codex, Gemini.",
16
16
  "source": "./plugins/fh-meta"
17
17
  },
18
18
  {
19
19
  "name": "fh-commons",
20
- "version": "3.16.0",
20
+ "version": "3.17.0",
21
21
  "description": "Project-agnostic utility skills — 6 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer · persona-cast) + 7 agents (quench-challenger + the web-review cast: designer · ux-writer · fe-dev · be-dev · qa · a11y). Domain-independent utilities transplantable into any project.",
22
22
  "source": "./plugins/fh-commons"
23
23
  },
24
24
  {
25
25
  "name": "fh-qp",
26
- "version": "3.16.0",
26
+ "version": "3.17.0",
27
27
  "description": "QP (Quality Platform) — the generic edition of a field QA harness's Prepare→Automation→Regression loop as an FH plugin: 4 skills (qp router · qp-plan · qp-run · qp-regress) + qp_tools.sh (target-class · adapter-probe · mask · surface-reach · mtm-check · run-verbs, typed exit codes) + a zero-domain-constant profile slot + 29 known-pair lanes. Drives web targets through the session's Playwright MCP and desktop targets through computer-use MCP (mobile deferred); calls a registered qasp typed capability when one exists (strictest-wins) — none is registered today, so the MCP fallback is the first edition. Verdict contract: a MACHINE closure requires a recorded assertion; a failed first step is attributed BLOCKED, not FAIL; surface_reach counts every TC in the denominator. Born as chamber run #18 (EMIT, 2026-09-05).",
28
28
  "source": "./plugins/fh-qp"
29
29
  },
30
30
  {
31
31
  "name": "fh-preprep",
32
- "version": "3.16.0",
32
+ "version": "3.17.0",
33
33
  "description": "preprep — a presentation-preparation harness. 1 skill. One CLI over 17 lanes (7 built-in + 10 module) that reads a declared surface manifest and checks a talk's assets against each other: canonical terms, jargon glosses, retired vocabulary, inter-slide dependencies, pacing, get/put round-trips, adjacent duplication, slide relations, geometry, attribute consistency, fonts, diagrams, slide refs, and screen-parity between manuscript and deck. Verdict contract: exit 0 pass / 1 findings / 2 cannot-judge — a surface that could not be read is UNMEASURED, never 0. Promoted out of fh-commons 2026-09-13 after the skill grew past one role (routing / lane modules / fixtures).",
34
34
  "source": "./plugins/fh-preprep"
35
35
  }
package/AGENTS.md CHANGED
@@ -105,6 +105,33 @@ Because non-Claude runtimes do not auto-load Claude path rules, apply these rule
105
105
  Anchors the check accepts: a URL · arXiv/DOI · `WebSearch`/`WebFetch` · `출처` · `원문 확인` ·
106
106
  `서베이`. Override is `FH_NOVELTY_OK=1`, and it appends to `tracks/_meta/.novelty_override_log`.
107
107
  ⚠️ The check sees only that an anchor **exists**, never that it supports the claim.
108
+ 1-b. **Before you trust the gate at all: check that this checkout is WIRED.** 🟥 Every "the hook
109
+ blocks this" sentence in `CLAUDE.md` and in item 1 above is true **only in a checkout where
110
+ `core.hooksPath` points at `templates/.git-hooks`.** Git tracks the hook files; it does **not**
111
+ carry that config value. Measured 2026-09-21, same commit, two checkouts: **15 layers compared,
112
+ only 4 READ layers matched — all 11 ENFORCE/EVIDENCE/PATTERN layers were opposite.** The same
113
+ commit passed silently in one and was blocked by Axis 2+3 in the other; what differed was the
114
+ wiring, not the code.
115
+ 🟥 **The dangerous direction is the quiet one**: a gate that PASSED and a gate that NEVER RAN
116
+ print the same thing — nothing. A third direction is quieter still: with the pattern layer
117
+ absent the confidentiality scan still runs and still goes green, while company-name and
118
+ real-name classes are simply `UNSCANNED`.
119
+
120
+ ```
121
+ bash scripts/env_layer_fingerprint.sh # PRESENT/ABSENT/UNMEASURED per layer, no values
122
+ bash scripts/gate_bootstrap_ephemeral.sh --check # rc=1 while anything is missing
123
+ bash scripts/gate_bootstrap_ephemeral.sh --apply # wires hooksPath + UTF-8 locale
124
+ ```
125
+
126
+ Three things are needed and only two are mechanizable: ⓐ the `core.hooksPath` wiring ⓑ a
127
+ **UTF-8 locale** (under `LC_CTYPE=POSIX` all four non-vacuity legs of an honest Korean marker
128
+ are rejected as "vacuous" — over-blocking, the opposite failure) ⓒ the two gitignored evidence
129
+ files, which **a human writes**. 🟥 The bootstrap script deliberately does **not** create
130
+ markers — auto-generating evidence is closing the gate with a forgery.
131
+ ⚠️ `scripts/fh_node_check.sh` cannot warn you here: it travels the same gitignored channel as
132
+ the `settings*.json` it would read, so on an unwired node the detector is absent too.
133
+ Detail: `knowledge/shared/harness-core/checkout_layer_drift.md` §8.
134
+
108
135
  2. **Company residency:** raw company source, secrets, hostnames, internal names, stack traces, and
109
136
  unredacted findings never leave the local machine, including to same-family cloud models. Only a
110
137
  sanitized summary may leave; exceptions require explicit operator approval and a gitignored note.
package/CATALOG.md CHANGED
@@ -30,6 +30,11 @@ is, for any session that does not already know its filename, indistinguishable f
30
30
  override. Carries the calibrated where-it-is-not table and reproduction commands.
31
31
  - `knowledge/shared/harness-core/agents_md_runtime_details.md` — #codex, #agents-md, #entrypoint.
32
32
  Runtime detail for the non-Claude entry point.
33
+ - `knowledge/shared/harness-core/checkout_layer_drift.md` — #checkout-drift, #gate-wiring,
34
+ #silent-degrade. 같은 커밋이 두 체크아웃에서 다른 판정을 내는 이유 — READ 층은 git 으로 오고
35
+ ENFORCE·EVIDENCE·PATTERN 층은 안 온다. 두 체크아웃 실측 15행, 세 갈림 방향, 그리고 이 측정이
36
+ **주장하지 않는 것**. 계기 = `scripts/env_layer_fingerprint.sh`. **드리프트나 «게이트 통과»를
37
+ 근거로 쓰기 전에 읽어라.**
33
38
  - `knowledge/shared/harness-core/harness_terminal_correlation_and_recommendations.md` —
34
39
  #correlation, #terminal, #recommendations.
35
40
  - `knowledge/shared/rules/knowledge_layer_seam.md` — #seam, #org-knowledge, #unwired. Names FH's own
@@ -149,6 +154,61 @@ is, for any session that does not already know its filename, indistinguishable f
149
154
 
150
155
  <!-- Add entries in reverse date order (newest at top) -->
151
156
 
157
+ ### 2026-09-21 (4) | forge-harness | #gate-wiring, #ephemeral-clone, #floor-vs-equality, #instrument-tracks-subject
158
+ **File:** `scripts/gate_bootstrap_ephemeral.sh` · `scripts/test_gate_bootstrap_ephemeral_lanes.sh` · `knowledge/shared/harness-core/checkout_layer_drift.md` · `scripts/selfcheck.sh` · `package.json`
159
+ 드리프트 실측(PR #775)의 **다음 칸**: 층이 없는 걸 알았으니, 그중 **무엇을 여기서 세울 수 있고 무엇이 구조적으로 못 서는가**. 클라우드 컨테이너 클론에서 `core.hooksPath` 한 줄만 조작해 축별로 재고, 결론은 예상과 반대였다 — **네 축 전부 통과시켰다**(`✅ ALL AXES PASSED`). 훅은 한 줄도 안 고쳤고 느슨하게 만든 곳도 없다.
160
+ - **컨트롤이 갈렸다**: 같은 스테이징에서 훅 미배선 → `rc=0` **게이트 출력 한 줄도 없음**, 배선 → `🚫 BLOCKED`. 「통과했다」와 「안 돌았다」가 터미널에서 구분 안 된다는 §4-ⓐ 의 재현.
161
+ - **통과에 필요한 셋**: ① `core.hooksPath` 배선 ② 비공허성 바닥을 넘을 수 있는 낱말 셈 ③ gitignored 증거 둘(마커·매니페스트)을 **사람이** 쓰는 것.
162
+ - 🟥 **계기가 두 번 과차단했고, 둘 다 이 컨테이너에서 「구조적으로 안 보이는」 자리였다.** ⓐ `core.hooksPath` 를 **문자열로** 비교해, 같은 훅을 절대경로로 잡아 둔 체크아웃을 「남의 값」으로 읽었다 — 절대형은 워크트리 우회가 없는 **더 안전한** 설정인데 「미배선」으로 렌더했다. 여기선 그 값이 **비어 있어** 분기 자체를 못 탄다. ⓑ 비공허성 판정을 **등식**으로 쟀다 — 훅은 바닥 비교(`-lt 6`)이고 훅 자신이 *"monotonic, which is all a floor needs"* 라 적어 뒀으므로 **초과는 결함이 아니고 미달만 결함**인데, 토큰 안을 쪼개는 셈을 가진 기계에서 11 토큰 줄이 12 로 세어지는 것만으로 `BROKEN` 이 떴다. 둘 다 운영자 맥의 실물 실행이 잡았다.
163
+ - 🟥 **더 깊은 자리 — 계기가 훅과 「다른 것을 재고」 있었다.** 초판은 `wc -w` 로 셌는데 **#780 이 머지되며 훅의 여섯 자리가 `tr`/`grep` 바이트 분리로 바뀌었다.** 그 순간 어긋남이 생겼고 방향은 조용한 초록이 아니라 **거짓 빨강**이었다 — POSIX 에서 훅의 다리는 통과하는데 계기만 「한글 0 낱말」로 막는다. ⇒ `_words()` 가 훅과 **같은 파이프라인**을 쓴다(복제가 아니라 추적). 잠금은 주석이 아니라 **관계 레인 L15** — 훅 쪽에서 그 파이프라인이 사라지면 이 스크립트를 이름으로 지목하며 빨개진다. ⚠️ #784 는 **문자 길이** 축이라 무관함을 확인하고 안 담았다.
164
+ - **구조적으로 못 닫는 셋(이름으로)**: ⓐ 기밀성 패턴 층 — 실제 리터럴을 담아 gitignored 라 클론에 **올 수 없다**, 스캔은 defaults-only 로 돌고 초록을 낸다 ⓑ 마커·매니페스트 provenance — `tracks/**` 가 휘발해 주간 감사·`below_floor_scan` 재검증 큐에 **안 들어간다**(살아남는 채널은 커밋 메시지 — 실측: 세 필드를 실으니 `remote_marker_gate.sh` PASS) ⓒ ⓐ축 — 다른 계열 CLI 부재로 `DEGRADED_SINGLE_FAMILY` 가 정직한 최대값.
165
+ - **계기**: `gate_bootstrap_ephemeral.sh --check/--apply` — ENFORCE 미배선(무음 통과)과 바닥 파손(과차단)을 **반대 방향의 고장 둘**로 각각 찍고 하나라도 남으면 `rc=1`. 🟥 **증거는 안 만든다** — 자동 생성은 게이트를 가짜로 닫는 것이라 `fh_4axis_gate.md` 가 금지한다.
166
+ - **레인 19**. 플랫폼 없이 회귀를 고정하려고 **셈법을 갈아끼운다**(`mkshim` → 파이프라인의 `tr`): L14 초과 셈 → BROKEN 아님 · L14b 미달 셈 → BROKEN(검사를 꺼서 초록이 된 게 아님) · L14c 공허까지 넘기는 셈 → `rc=10`(수리의 **fail-open** 방향) · L14d 되돌림. 배선 축은 L11/L11b, 부작용 부재 L8, 전역 config 불가침 L9, 되돌림 L10.
167
+ - ⚠️ **그 레인 묶음이 한 번 「공허하게 초록」이었다** — `mkshim` 정의가 첫 사용보다 아래 있어 `command not found` 로 빈 PATH 가 들어갔고, 진짜 셈법으로 돌면서 「통과」로 찍혔다. 자기 실행 출력을 읽다가 잡았다. **레인이 초록인 것과 레인이 무언가를 잰 것은 다르다.**
168
+ - ⚠️ **L5 는 의미가 뒤집혔다** — 종전 「POSIX → BROKEN」 이 #780 이후 「POSIX → rc=0」 이 됐다. 차단 방향은 L14b 로 옮겼다. 레인의 의미가 뒤집힌 것과 커버리지가 준 것은 다르므로 적어 둔다.
169
+ - **한계**: n=1 컨테이너 하루. 「게이트가 돈다」이지 「검증됐다」가 아니다 — 옮긴 마커와 지어낸 마커는 여전히 바이트가 같다.
170
+ - Tags: `gate-wiring` `ephemeral-clone` `floor-vs-equality` `instrument-tracks-subject` `known-pair` `remote-node` `fake-close-prohibition`
171
+
172
+ ### 2026-09-21 (3) | forge-harness | #charlen, #locale, #fail-open, #known-pair, #recurrence-lock
173
+ **File:** `templates/.git-hooks/pre-commit` · `scripts/test_locale_invariance_lanes.sh` · 마커 스위트 4종
174
+ #780 이 남긴 「다음 건」. 같은 로케일 클래스의 **반대 방향**이다 — `wc -w` 는 한글을 0 낱말로 읽어 **과차단**했는데, `${#var}` 와 `wc -m` 은 한글을 **바이트**로 읽어 약 3 배로 크레딧한다 → **fail-OPEN**. 10 자짜리 한글 근거가 30 바이트로 세어져 `-lt 20` 하한을 공짜로 넘는다. 즉 **영어로 쓴 같은 길이의 근거는 막히는데 한글 근거는 통과한다.**
175
+ - **한 칸만 뒤집는 known-pair**(`validate_standpoint_leg`, 한글 10 자 근거): `old/POSIX` **0(통과)** · `old/UTF-8` 1 · `new/POSIX` **1** · `new/UTF-8` 1. ASCII 컨트롤은 네 칸 모두 0 — 계기가 한글에만 반응함을 같은 실행에서 보인다.
176
+ - **문턱값 재교정이 필요 없다**: `_charlen` 은 UTF-8 기계에서 `${#var}` 와 **같은 수**(한글 포함, 코퍼스 6 실측). 그래서 #780 과 **같은 불변식**을 쓴다 — 바뀌는 것은 바이트 로케일뿐. 🟥 PR #780 본문이 *"방향이 반대라 이 PR 의 불변식을 깨고 8 개 레그의 문턱값 재교정이 필요하다"* 고 적었는데 **그 예측은 틀렸다**; 실측이 정정했다.
177
+ - 🟥 **손으로 센 열거가 또 하나를 놓쳤다**: `${#var}` 만 grep 해서 «8 곳» 이라 적었는데, `wc -m` 자리(evidence= 본문 두께)가 같은 결함을 갖고 있어 **실제는 9 곳**이었다. `${#arr[@]}` 4 곳은 배열 길이라 로케일 무관 — 대상이 아니고, 레인이 그 구분을 직접 판별한다. **잠금은 목록이 아니라 «0 곳인가»(L14f)** 다.
178
+ - 🟥 **고치자 마커 스위트 넷이 두 로케일 모두에서 빨개졌다** — 레인이 훅의 **일부만** 소싱하는데 `_charlen` 을 같이 안 뽑아서 «command not found» 로 **조용히 다른 판정**이 났다. 로케일 레인은 이걸 **구조적으로 못 잡는다**(갈리지 않고 양쪽이 똑같이 틀린다). 넷을 고치고, 관계 자체를 박는 레인(L14g)을 세웠다.
179
+ - 🟥 **그 L14g 가 처음에 이빨이 없었고, 되돌림 프로브가 잡았다**: `set -o pipefail` 아래에서 `sed … | grep -q` 는 grep 이 첫 히트에 빠지며 sed 를 SIGPIPE 로 죽여 **파이프라인이 141** 을 내고, `|| continue` 가 걸려 레그가 통째로 건너뛰어진다. 길이에 따라 갈리는 **경합**이라 일부만 세어지고 레인은 초록으로 남았다. **L13c 가 잡은 함정의 같은 날 재발** — `grep -c` 로 바꿔 입력을 끝까지 읽게 했다.
180
+ - **앵커**: 레인 22 → **29**(L14·L14b·L14c·L14d·L14e·L14f·L14g). 되돌림 프로브 둘(하한 되돌림 → fail-open 복귀 / 의존 추출 제거 → L14g 적발), 컨트롤 셋, 전수 잠금 하나, 문턱값 불변 하나. L14f·L14g 는 **각각 변이로 빨개지는 것을 확인**했다 — 초록만 보고 넘기지 않았다.
181
+ - Tags: `charlen` `locale` `fail-open` `known-pair` `recurrence-lock` `pipefail` `enumeration-misses-one`
182
+
183
+ ### 2026-09-21 | forge-harness | #checkout-drift, #gate-wiring, #instrument-calibration, #known-pair, #remote-node
184
+ **File:** `scripts/env_layer_fingerprint.sh` · `scripts/test_env_layer_fingerprint_lanes.sh` · `knowledge/shared/harness-core/checkout_layer_drift.md` · `CLAUDE.md` · `scripts/selfcheck.sh`
185
+ 클라우드 클론에서 돈 세션이 **운영자 맥 체크아웃과의 드리프트**를 실측했다. FH 는 읽는 층과 막는 층이 다른 수송로로 다니고 git 은 앞의 것만 나른다 — 같은 커밋 `a9e9b29` 에서 **15개 층 중 READ 4개만 같고 ENFORCE·EVIDENCE·PATTERN 11개가 전부 반대**였다(맥: 훅 둘 다 `EXEC_FH` · 마커 491 · tracks 17,387 · 로컬 전용 파일 11종 전부 PRESENT / 클론: 전부 ABSENT). 실물 확인: 이 클론에서 FH 자산 커밋은 **무음 성공**하고, `git config core.hooksPath templates/.git-hooks` **한 줄**만 잡자 같은 커밋이 Axis 2+3·Axis 4 로 차단됐다 — 바뀐 것은 코드가 아니라 배선이다.
186
+ - **위험한 방향은 «여기 초록·저기 빨강»**: 게이트가 *통과한 것*과 *안 돈 것*은 터미널 출력이 **둘 다 무음**이라 구분이 안 간다. 반대 방향(EVIDENCE 부재로 차단)은 시끄러워서 상대적으로 안전하다.
187
+ - **제일 조용한 세 번째 방향**: PATTERN 층이 비면 기밀성 스캔은 *돌지만* `defaults` 만 싣고 회사명·실명 클래스가 UNSCANNED 인 채 초록이 난다. 🟧 배너는 뜨고 차단은 안 한다 — 그 degrade 방향은 옳다(하드 차단하면 모든 새 클론의 첫 커밋이 막혀 `PUBLIC_SURFACE_OK` 를 반사행동으로 훈련시킨다).
188
+ - **계기**: `env_layer_fingerprint.sh` — PRESENT/ABSENT/**UNMEASURED** 세 값만, 값은 안 싣는다(PR·스레드에 붙이는 산출물이라 유출이 곧 §Pre-Publish 위반). READ 층이 내장 대조군이고, 거기가 비면 드리프트가 아니라 **rc=2 계기 오류**다. 레인 8개(known-pair·digest 분리·유출 금지·계기오류·되돌림·tracked-FP).
189
+ - **자기 지적**: `fh_node_check.sh` 는 바닥이 없다고 알려 줄 탐지기인데 **이 환경에서 뜨지도 않는다** — 등록이 `settings*.json`(전부 gitignored)에 살아서 탐지기가 바닥과 같은 수송로를 탄다.
190
+ - **한계**: 맥 쪽은 계기를 직접 돌린 게 아니라 같은 경로 프로브를 1:1 로 옮긴 것이라 **digest 대조는 아직 불가**. n=2 체크아웃 1회. 맥 회신은 홈 경로·호스트명·매핑 트랙 이름 12개를 치환한 상태.
191
+ - Tags: `checkout-drift` `gate-wiring` `known-pair` `instrument-calibration` `remote-node` `silent-degrade`
192
+
193
+ ### 2026-09-21 | forge-harness | #locale, #gate-wiring, #instrument-calibration, #known-pair, #cleanroom-audit
194
+ **File:** `templates/.git-hooks/pre-commit` · `scripts/test_locale_invariance_lanes.sh` · `scripts/daily_report.sh` · `scripts/selfcheck.sh` · `package.json`
195
+ 주간 클린룸 감사 1회차(갓 클론한 컨테이너 = 「동료의 기계」). 4축 게이트의 비공허성 바닥이 **로케일에 의존**하고 있었다. 훅 주석이 그 선택의 근거로 *"Word count is locale-independent."* 를 적고 있었는데 **그 문장이 거짓**이다 — `wc -w` 는 `LC_CTYPE` 로 공백을 가르므로 `LANG` 이 안 걸린 기계(베어 컨테이너·CI 러너의 기본값)에서 한글 근거 줄이 **0 낱말**로 읽힌다. 같은 커밋 `a9e9b29`, 같은 트리, `LC_ALL` 만 바꿔 **마커 레인 22건이 FAIL↔PASS 로 뒤집혔다**(`LC_ALL=POSIX` → `SELFCHECK: FAIL` 61행 / `LC_ALL=C.UTF-8` → 13행, 새로 생긴 FAIL 0). 즉 계기를 **그것이 갖지 않은 속성 때문에 골랐다.**
196
+ - **방향이 셋이고, 셋째가 제일 위험하다**: ⓐ 과차단(정상 마커가 차단 — 시끄러움) · ⓑ **무음 침묵**(`Q1-one-slot-only-warns` 가 WARN→QUIET — 바닥에서 먼저 죽어 advisory 가지에 도달하지 못한다) · ⓒ **fail-OPEN** — 브래킷 안의 멀티바이트(`[:—-]` · `[^:—-]*`)는 POSIX 에서 **바이트 집합**이라 「①」의 선두 바이트(0xE2)에 걸리고, `D9-copy-of-soul-blocks`(①영혼 줄 복붙 검출)가 BLOCK→**PASS** 로 샜다. **막아야 할 것이 통과한다.**
197
+ - **고침**: 낱말 수는 ASCII 공백으로 쪼개 `LC_ALL=C` 로 세고(두 로케일 동일, **UTF-8 기계에서는 옛 `wc -w` 와 같은 수라 문턱값이 안 움직인다**), 멀티바이트는 브래킷이 아니라 **교차(alternation)** 로 적는다.
198
+ - **앵커**: `test_locale_invariance_lanes.sh` — 레인 10(계기 교정 2 · 셈법 불변 · 문턱값 불변 · 적대 로케일에서 마커 스위트 4개 · **되돌림 프로브 2**(낱말 수 → 과차단 복귀 / 브래킷 → fail-open 복귀) · 컨트롤 2). UTF-8 로케일이 없는 기계에서는 **rc=2 계기 오류** — 대조군 없는 초록은 측정이 아니다.
199
+ - **둘째 결함, 같은 클래스**: `daily_report.sh --self-test` 의 픽스처가 `git config user.email` 로 신원을 고정하려 했는데 **`GIT_AUTHOR_*` 환경변수가 그것을 이긴다** — 자동화 환경은 그걸 미리 export 해 둔다. known-positive 가 죽었고 known-negative 는 **여전히 초록**이었다(아무것도 안 잡히면 「다른 author 는 안 잡는다」도 참이다). 명시 override + 계기-교정 행 추가로 8/2 → **10/0**.
200
+ - **환경 표면화(고치지 않음)**: 이 컨테이너는 **root** 라 `chmod 000` 이 안 먹어서 fail-closed 계열 레인(읽기불가 타깃 · 백업 디렉터리 쓰기불가 · 로그 불가)이 **구조적으로 미측정**이다. 레인들이 스스로 「미측정, 통과 아님」/「lane invalid」로 적고 있어 거짓 초록은 아니다 — 이름으로 남긴다.
201
+ - **커밋 게이트 실물 재확인**: 이 클론에서 FH 자산 커밋 → 무음 성공. `git config core.hooksPath templates/.git-hooks` 한 줄 → 같은 커밋이 Axis 2+3·Axis 4 로 차단. PATTERN 층 부재로 기밀성 스캔은 `defaults` 만 싣고 🟧 배너와 함께 초록. 15개 층 중 READ 4칸만 PRESENT(PR #775 의 실측을 손으로 독립 재현).
202
+ - **2회차 — 같은 클래스의 site 둘 더** (드리프트 갈래가 `6584beb` 위에서 실측해 PR 코멘트로 보고, 이쪽에서 독립 재현 후 접어 넣음). ⓐ `validate_soul_check_leg` 의 `[^[:alnum:]«]*` — `[:alnum:]` 이 POSIX 에서 **ASCII 전용**이라 「«」 도 ASCII 도 없는 **순한글 ①영혼 줄**이 통째로 먹힌다. 방향이 둘: 정상 한글 마커 차단(ⓐ) + **영혼 줄이 멀쩡한데 `DEGRADED_NO_SOUL` 을 적은 거짓 주장이 통과**(ⓒ). 🟥 이 결함은 **낱말 세기 수리 뒤에야 관측 가능하다** — 그 전에는 셈법이 먼저 죽어 원인이 안 갈렸다. ⓑ `axes-run` ⓔ 포착의 `[^ⓕ]*` — 브래킷 안 「ⓕ」가 바이트 집합이라 ⓔ 값이 E2 로 시작하면(정본이 권하는 `→…` 포인터 형태) 포착이 빈칸이 되고 **채워진 필드가 «none» 으로 차단**된다.
203
+ - **가린 것이 픽스처였다**: `test_marker_soul_check_lanes` 를 적대 로케일에서 통째로 돌려도 초록이 난다 — 그 스위트의 유일한 영혼 픽스처가 `«` 와 `rc=0` 을 달고 있어 부정 클래스가 거기서 멈추기 때문이다. **결함이 아니라 팔이 없었다.** 「«」 도 ASCII 도 없는 팔(L11/L11b/L11c)을 `test_locale_invariance_lanes.sh` 에 따로 세웠다. 레인 10 → **16**(L11·L11b·L11c·L12·L12b·L12c, 되돌림 2 + 컨트롤 2 추가). 되돌림 네 칸이 정확히 1/0/0/1 로 갈린다.
204
+ - **접은 뒤 실측**: 마커 스위트 8개(`soul_check`·`soul_tenet`·`affected`·`oracle`·`axes_run`·`crossfamily`·`standpoint`·`first_use`)를 POSIX·C.UTF-8 양쪽에서 완주, **16/16 rc=0**, 새로 생긴 FAIL 0.
205
+ - **3회차 — 고무도장 가드의 곱선따옴표**(`“[^”]{2,}”`, `validate_marker_floor`). 같은 브래킷 클래스고 같은 공정성 결함이다 — 운영자 발화를 **한글 따옴표로** 인용하면 LANG 없는 기계에서 «인용이 없다» 로 읽혀 막히고, 띄같은 영어 인용은 통과한다. 측정: `“그대로 진행해”` → POSIX BLOCK / C.utf8 pass, ASCII 컨트롤과 인용-없음 known-negative 는 둘 다 평평. 해결은 `“.{2,}”`(브래킷 제거) — ⚠️ 명시된 잔여: 바이트 로케일에서 ≥2 가 바이트로 세져 한 글자짜리 한글 인용이 통과한다(한 글자 폭, 오늘의 전면 거부보다는 좁다).
206
+ - 🟥 **그 자리는 2026-06-13 에 이미 지적됐고 «live test 로 반박됐다»고 기록됐다**(이 파일 `#rubber-stamp-guard` 항목의 *"B1 curly-quote locale block refuted by live test"*). 반박이 틀렸던 것이 아니라 **팔이 하나뿐이었다** — UTF-8 이 걸린 기계에서만 재보면 이 결함은 구조적으로 안 보인다. «실제로 돌렸다» 가 «두 팔을 돌렸다» 를 대신하지 못한다는 사례다.
207
+ - **L13c 가 자기 레인의 버그를 잡았다**: `set -o pipefail` 아래에서 `레그 | grep -q` 는 레그가 1 을 내면 grep 의 성공과 무관하게 파이프라인이 1 이 되어 **네 칸이 전부 pass 로 읽혔다.** 기대값이 BLOCK 인 known-negative 를 넣었기 때문에 드러났다 — 양성 팔만 있었으면 공허한 초록이 났다.
208
+ - **엑대시 자리(`:906`·`:1324`)는 이제 측정됐다**: 실제 enum 값 11 개로 값 추출·근거 추출 둘 다 **11/11 SAME**. 구조적 이유도 있다 — 값이 항상 ASCII enum 이라 부정 클래스가 한글 선두 바이트를 만나기 전에 구분자에 도달한다. 단, «이 11 개 형태에서 안 갈린다» 이지 «그 정규식이 안전하다» 가 아니다.
209
+ - ~~**다음 건으로 남긴 것**: `${#var}` … **8 곳**~~ 🟥 **정정 + 닫힘(같은 날 별건)** — 손으로 센 «8 곳» 이 **틀렸다. 실제 9 곳**이었다: `wc -m` 자리 하나(evidence= 본문 두께 검사)가 `${#var}` 만 grep 한 열거에서 빠져 있었다. **손으로 센 열거가 또 한 번 하나를 놓친 것**이고, 그래서 이번 잠금은 목록이 아니라 «0 곳인가» 다. 상세는 아래 `#charlen` 항목.
210
+ - Tags: `locale` `gate-wiring` `known-pair` `instrument-calibration` `cleanroom-audit` `silent-degrade` `fail-open`
211
+
152
212
  ### 2026-07-26 | forge-harness · forge-wiki · llmwiki-template · llmwiki-qa | #gate-locality, #sync-guard, #instrument-calibration, #sister-asset, #cross-corpus-provenance, #wiki-consolidation
153
213
  **File:** scripts/gate_pathspec_check.sh · scripts/sync_guard_check.sh · templates/.git-hooks/pre-commit · templates/regression_guard.sh · templates/CLAUDE.md · plugins/fh-meta/skills/dialogue-harvest/SKILL.md · plugins/fh-meta/skills/frontier-digest/SKILL_detail.md · knowledge/shared/harness-core/loop_engineering.md
154
214
  FH self-dev session (PR #182 merged; 7 PRs merged across 4 repos). Three defects, each found by measurement rather than review, each closed with a calibrated regression anchor. **(1) Gate-locality, 4th recurrence**: the pre-commit gate and regression_guard both matched the literal `SKILL\.md`, which the string `SKILL_detail.md` does not contain — 17 files / 208,710 B / **27.7% of the skill-spec surface**, 16 of 17 carrying fenced code, entirely ungated. It leaked twice for real (371c04f, e661931 — single-file edits to a *grounding-audit skill's own* behavioral spec). Worst property: `salience-splitter` widened the hole every time it moved content out of SKILL.md, so coverage shrank as the diet succeeded. An adversarial pass argued name-by-name coverage cannot close the class in principle; the resulting **enumeration sweep found a real uncovered file on its first run** (`dialogue-harvest/calibration_pair.md`), and the fix was escalated from a name list to a directory scope. **(2) One-way sync silently overwrote session cards twice** (v9 7,567 B → v8 5,299 B; v10 likewise). Not carelessness — *induced*: the session-start rule says read the mirror first, so the mirror becomes where agents write. The close-checker missed it because "card-last violated" measures timestamp **order**, not overwrite. Fixed with a destination-newer abort (both callers), a mechanically-injected MIRROR COPY banner, and a 7-pair anchor; live calibration caught three self-defects in the fix itself — over-blocking (the exact failure the handoff warned would train the override reflex), a half-fix leaving sync_file open, and banner churn that re-transferred 265 files per run and destroyed the log as an instrument. **(3) dialogue-harvest first real corpus** exposed that single-author input makes provenance labels free; answered with **Step 4-b cross-corpus provenance** (absorbed / held-unused / **declined**), which immediately showed a 44 KB transcript in-house since 06-27 with **zero citations in 29 days** — containing the very kill-switch clause the same day's sister audit had just confirmed FH lacked.
package/CLAUDE.md CHANGED
@@ -583,6 +583,11 @@ Every new `SKILL.md` must clear a **6-item bar** (role-duplication via `/asset-p
583
583
 
584
584
  **기계층 — 무엇이 실제로 막는지 나눠서 말한다(2026-08-04 실측).** `git commit` 은 `templates/.git-hooks/pre-commit` 이 **하드 차단**한다: 축이 전부 PASS 할 때까지 커밋이 안 되고, 아래 상세가 로드되지 않아도 훅이 막는다 — 이 산문은 훅 위의 살리언스 층이지 유일 floor 가 아니다. 다만 **훅은 클라이언트측이고 `--no-verify` 로 우회된다**(§Integration branch 가 이미 그렇게 말한다 — 두 곳이 어긋나 보이던 것을 여기서 맞춘다). **그리고 서버측 검증엔 남은 잔여가 있다(2026-08-12 재확인 — `contexts=[]` 서술은 stale, 정정됨)**: `main` 은 `enforce_admins: true` 로 **푸시 경로**(PR 경유)를 강제하고, legacy `required_status_checks.contexts` 는 **`["validate", "new-code-anchor"]`** 다(2026-09-17 두 층 직독 — rulesets 층은 `non_fast_forward` 하나뿐) — `validate` 잡(`.github/workflows/validate.yml`, 메타데이터·`selfcheck.sh` 배선 레인)과 `new-code-anchor` 가 실제 **필수 체크**다. ⚠️ **`validate` 는 Axis 1 이 아니다** — Axis 1(`regression-guard.yml` → `templates/regression_guard.sh`)은 **여전히 필수 체크가 아니다**(빨개도 머지를 못 막는다). 🟥 **다만 «돌지도 않는다» 는 2026-09-17 부로 거짓이다 — 정정.** 이 줄은 «그 워크플로의 `paths:` 가 `SKILL.md`·`.claude/rules/*.md`·`CLAUDE.md`·`templates/*.md` 만 보므로 `knowledge/`·`docs/`·`AGENTS.md`·`scripts/**`·에이전트 정의만 바뀐 PR 에는 Axis 1 자체가 돌지도 않는다» 고 적고 있었는데, **`paths:` 는 2026-08-29(`d5fceac`, #552)에 4축 대상 클래스 전부를 덮도록 넓어졌고**(추가분 = `knowledge/**/*.md` · `docs/*.md` · `AGENTS.md` · `scripts/**` · `templates/.git-hooks/*` · `plugins/*/agents/*.md` · `.claude/agents/**/*.md` · `README*.md` · `CHEATSHEET.md` · `CATALOG.md` · `.github/workflows/*.yml` · `.claude/registry/*.md` · `package.json` — 기존 `SKILL.md`·`.claude/rules/*.md`·`CLAUDE.md`·`templates/*.md`·`templates/regression_guard.sh` 위에) 이 문장만 19일간 안 따라갔다. 실측: `scripts/`·`package.json`·`bin/` 만 바뀐 PR #745 에서 Axis 1 이 **실제로 돌아 통과**했다(run 35227853301, `REGRESSION_GUARD_RESULT=pass`). 🟥 **그리고 그 낡은 문장이 같은 날 기록 셋(커밋 메시지·마커·매니페스트)으로 그대로 전파됐다** — 상주층의 낡은 주장은 읽는 세션이 «확인» 대신 «인용» 하는 순간 번진다([[feedback_half_fix_propagation_boundary]] · 정정면 = PR #745 코멘트). 남는 갭은 이제 «안 돈다» 가 아니라 **«돌지만 필수가 아니다»** 하나다. `validate` 쪽 남은 갭은 `strict: false`: 그 체크는 PR 브랜치에 푸시할 때마다 재실행되지만(오픈 시점 한정이 아니다), 그 뒤 main 이 움직여도 재검증을 강제하지 않으므로 **초록으로 남아 있는 체크가 실제로 병합되는 최신 트리를 본 적이 없을 수 있다.** 즉 서버가 강제하는 건 *체크가 초록인가*지 *그 체크가 지금의 main 을 봤는가*가 아니다. Axes 2–3(마커)·Axis 4(매니페스트)는 그 파일들이 `tracks/**` 로 gitignored 라 CI 가 **구조적으로 볼 수조차 없다**. 🟥 **그 사각이 실제로 뚫렸다(2026-09-14 실측, 2/2)** — 원격 자율 노드(`claude/*` 브랜치, 클라우드 세션)는 체크아웃이 휘발해서 마커가 **아무 데도 안 남는다**. 머지된 `claude/` 접두사 PR 전수 **#675·#716 둘 다** FH 자산을 바꾸고 마커 없이 **초록으로** 들어왔다. ⇒ `scripts/remote_marker_gate.sh` 가 **그 채널에 한해** «마커 3필드(`axes-run`·`crossfamily`·`standpoint`)가 커밋 기록에 실려 왔나» 를 `validate` 에서 막는다(레인 14 · 되돌림 프로브 포함). 보통 브랜치는 pre-commit 이 이미 관할하므로 **SKIP** 이다 — 만족 불가능한 이중 요구는 override 를 훈련시킨다. 🟥 **닫은 것은 «조용한 부재» 하나다**: 검사는 형식만 보고(값의 진위도 enum 멤버십도 안 본다 — enum 정본은 저작 노드의 훅이다), 옮긴 마커와 지어낸 마커는 여전히 바이트가 같다. 정직한 표현은 "하드 차단"이 아니라 "**가용한 가장 강한 층**"이다. **미해결 잔여**: `strict` 를 켜는 것도, Axis 1 을 필수 체크로 거는 것도 운영자 결정이다(막 flaky 레인을 하나 기록한 참이라, 과차단이 override 를 습관화시키는 쪽으로 기울 수 있다). 🟢 «그 `paths:` 를 넓히는 것» 은 2026-08-29 에 이미 닫혔다 — 위 정정 참조.
585
585
 
586
+ 🟥 **그리고 그 채널 밖에도 같은 사각이 있다 — «훅이 막는다»는 이 파일의 모든 문장은 훅이 **배선된** 체크아웃에서만 참이다.** `templates/.git-hooks/pre-commit` 은 tracked 라 어느 클론에나 오지만 `core.hooksPath` 는 git 이 나르는 값이 아니다. 실측 2026-09-21, 같은 커밋 `a9e9b29`, 두 체크아웃(운영자 맥 ↔ 클라우드 클론): **15개 층 중 READ 4개만 같고 ENFORCE·EVIDENCE·PATTERN 11개가 전부 반대**였다. 같은 커밋이 한쪽에서는 무음 통과하고, `git config core.hooksPath templates/.git-hooks` **한 줄**을 잡자 Axis 2+3·Axis 4 로 차단됐다 — 바뀐 것은 코드가 아니라 배선이다. 🟥 **위험한 방향은 «여기 초록·저기 빨강» 쪽이다**: 게이트가 *통과한 것*과 *안 돈 것*은 터미널 출력이 **둘 다 무음**이라 구분되지 않는다. 그리고 세 번째 방향이 제일 조용하다 — PATTERN 층이 비면 기밀성 스캔은 돌지만 `defaults` 만 싣고 회사명·실명 클래스가 UNSCANNED 인 채 **초록이 난다**(🟧 배너는 뜨고 차단은 안 한다 — 오버라이드가 gitignored 라 하드 차단하면 모든 새 클론의 첫 커밋이 막혀 `PUBLIC_SURFACE_OK` 를 반사행동으로 훈련시킨다). ⇒ 층 대조는 **`bash scripts/env_layer_fingerprint.sh`** — PRESENT/ABSENT/UNMEASURED 만 내고 값은 안 싣는다(`--digest` 는 양쪽에서 찍어 붙이는 한 줄). 🟥 **계기지 게이트가 아니다** — 어떤 훅도 안 부른다. 기계화한 것은 «층이 있나» 라는 **채널**이지 «그래서 커밋해도 되나» 라는 **결론**이 아니다(§Mechanization Boundary). ⚠️ 같은 이유로 `fh_node_check.sh` 는 **이 환경에서 뜨지도 않는다** — 바닥이 없다고 알려 줄 탐지기 자신이 `settings*.json`(전부 gitignored)과 같은 수송로를 탄다.
587
+ 🟢 **그 다음 칸이 2026-09-21 에 측정됐다 — 「층이 없다」는 「게이트가 못 돈다」가 아니다.** 같은 클라우드 클론에서 `core.hooksPath` 한 줄만 잡으니 **네 축 전부 통과**했다(훅 무수정). 필요한 것은 셋뿐이다 — ① 그 배선 ② **UTF-8 로케일**(`LC_CTYPE=POSIX` 에서는 정직한 한글 마커의 비공허성 다리 넷이 전부 「공허」로 차단된다 — 코드 쪽 수리는 PR #780) ③ gitignored 증거 둘을 **사람이** 쓰는 것. ⇒ **`bash scripts/gate_bootstrap_ephemeral.sh --check|--apply`** — ENFORCE 미배선(무음 통과)과 LOCALE 파손(과차단)을 반대 방향의 고장 둘로 찍고 하나라도 남으면 rc=1. 🟥 **증거는 안 만든다**(마커 자동 생성 = 가짜로 닫기, 4축 정본이 금지). 축별 표·구조적 잔여 셋·한계는 `checkout_layer_drift.md` §8.
588
+ 🟥 **그리고 이 문단 자체는 측정에서 분리되지 않았다 — 실패로 라벨한다(2026-09-21, 플로어 티어 블라인드, act 모드, reps=3/팔, 사전등록 봉인).** ARM(이 문단 있음) **3/3** 이 «훅이 배선 안 됨»을 첫 항목으로 지목했는데, CONTROL(`main`, 이 문단 없음)도 **3/3** 이다. 사전등록한 반증 조건 — «CONTROL ≥ ARM 이면 기여 0» — 이 **그대로 충족됐다.** ⚠️ 동시에 계기가 오염됐다: CONTROL 팔이 자기 근거로 *«메모리에 적어둔 …»* 을 적었다 — `sim_isolated_run.sh` 는 레포 트리와 settings 는 격리하지만 **사용자/팀 메모리는 격리하지 않고**, 거기에 같은 사실이 이미 적혀 있었다. 🟥 **오염을 이유로 판정을 되돌리지 않는다** — 오염은 왜 분리가 불가능했는지를 설명할 뿐 이 문단을 구제하지 않는다. 남는 라벨은 둘 다다: ① 기여 측정 0 · ② 재측정 필요(메모리만 비우고 프로젝트 CLAUDE.md 는 살리는 팔이 러너에 없다 — 명시된 잔여). 이 문단을 남기는 이유는 옳고 싸기 때문이지 뜨는 것이 확인됐기 때문이 아니다 — §Onboarding 의 door-language 주석과 **같은 형태**다.
589
+ > **Detail**: `knowledge/shared/harness-core/checkout_layer_drift.md` — 네 층의 수송로 표, 두 체크아웃 실측 15행, 세 갈림 방향(ⓐ여기초록·저기빨강 / ⓑ그 반대 / ⓒ양쪽 초록인데 커버리지 다름), 그리고 이 측정이 **주장하지 않는 것**(맥 쪽은 계기를 직접 돌린 게 아니라 같은 경로 프로브를 1:1 로 옮긴 것 · n=2 · digest 대조는 아직 불가) — **드리프트를 근거로 쓰기 전에 읽어라.**
590
+
586
591
  > **상세 정본**: `.claude/rules/fh_4axis_gate.md` — 4축 정의·마커 필수 필드·경량 예외·substantive carve-out·target-tier sim 게이트·Mode D 모델 공지·cross-family 보완. **`paths:` 로 *일부* FH 자산 경로에 스코핑돼 있어 그 파일들을 *읽을 때* 자동 로드된다 — 로드 조건이지 게이트 적용 범위가 아니다** (공식 트리거는 read — `code.claude.com/docs/en/memory.md` §Path-specific rules).
587
592
  > (2026-07-20 분리. **파일 char 실측**: 이 절 자체가 76,706자 중 **10,331자(13.5%)**로 단일 최대였다. 그 분리 + 같은 세션의 중복 3건 제거 + New-Skill 게이트 편입까지 **합산**해 파일은 **76,706 → 67,611 (순감 9,095자, 11.9%)** — 합산치이지 이 절 하나의 성과가 아니다 — 이건 파일 크기지 `/context` 상주 실측이 아니다(계기≠대상, [[feedback_resident_memory_measured_fresh_toplevel]]: 상주는 톱레벨 새 세션 `/context` 로만 잰다 — 미측정). 트리거가 *파일*이고 *기계 백스톱*이 있어 1순위 후보였다. 같은 이유로 **비가역 게이트 3종은 이동 불가** — 의도 트리거라 경로 스코핑하면 fail-open 이 된다.)
588
593
  > **의무**: 이 요약에는 **축 이름·마커 필수 필드·경량 예외 기준이 없다.** 4축을 실제로 실행하거나 마커를 쓰기 전에 위 파일을 **반드시 직접 읽어라** — 안 읽고 마커를 쓰면 필드를 지어내게 된다(2026-07-20 Sonnet sim 이 스스로 지목한 실패 모드).
package/README.ja.md CHANGED
@@ -436,8 +436,8 @@ Claude Code は作業の複雑さでモデルを自動選択しません — こ
436
436
  | [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) | スキルとパターンの貢献方法 |
437
437
  | [`tracks/_contrib/`](tracks/_contrib/README.md) | **同意レーン** — 非識別化した作業セッションを共有; レポが運用者たちにまたがって複利で積み上がる |
438
438
 
439
- > **FH 論文**: v1.0.1 方法論 · [Zenodo](https://zenodo.org/records/22542168) (DOI
440
- > 10.5281/zenodo.22542168) · cs.SE companion v1.2.2、プレプリント公開 ·
439
+ > **FH 論文**: v1.0.2 方法論 · [Zenodo](https://zenodo.org/records/22843702) (DOI
440
+ > 10.5281/zenodo.22843702) · cs.SE companion v1.2.2、プレプリント公開 ·
441
441
  > [Zenodo](https://zenodo.org/records/22674575) (DOI 10.5281/zenodo.22674575) ·
442
442
  > [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) (v2 は 2026-09-09 公開 — §6.7 を追加し、タイトルの主張を格下げ。Zenodo v1.2.2 も同日に同一内容で公開され、両者は一致する) · cs.AI companion は
443
443
  > 準備中。これら、独立した収束的研究、そしてそれぞれの但し書き:
package/README.ko.md CHANGED
@@ -424,8 +424,8 @@ Claude Code 는 작업 복잡도로 모델을 자동 선택하지 않습니다.
424
424
  | [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) | 스킬과 패턴 기여 방법 |
425
425
  | [`tracks/_contrib/`](tracks/_contrib/README.md) | **동의 레인** — 비식별화된 작업 세션 공유. 레포가 운영자들에 걸쳐 복리로 쌓임 |
426
426
 
427
- > **FH 논문**: v1.0.1 방법론 · [Zenodo](https://zenodo.org/records/22542168) (DOI
428
- > 10.5281/zenodo.22542168) · cs.SE companion v1.2.2, 프리프린트 공개 ·
427
+ > **FH 논문**: v1.0.2 방법론 · [Zenodo](https://zenodo.org/records/22843702) (DOI
428
+ > 10.5281/zenodo.22843702) · cs.SE companion v1.2.2, 프리프린트 공개 ·
429
429
  > [Zenodo](https://zenodo.org/records/22674575) (DOI 10.5281/zenodo.22674575) ·
430
430
  > [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) (v2 는 2026-09-09 등재 — §6.7 신설 · 제목의 주장 등급강등. Zenodo v1.2.2 도 같은 날 같은 내용으로 발행돼 두 예치가 일치한다) · cs.AI companion
431
431
  > 준비 중. 이것들과 독립적인 수렴 연구, 그리고 각각의 주의사항:
package/README.md CHANGED
@@ -415,8 +415,8 @@ and the phrase that triggers it:
415
415
  | [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) | How to contribute skills and patterns |
416
416
  | [`tracks/_contrib/`](tracks/_contrib/README.md) | **Consent lane** — share a de-identified work session; the repo compounds across operators |
417
417
 
418
- > **FH papers**: v1.0.1 methodology · [Zenodo](https://zenodo.org/records/22542168) (DOI
419
- > 10.5281/zenodo.22542168) · cs.SE companion v1.2.2, preprint ·
418
+ > **FH papers**: v1.0.2 methodology · [Zenodo](https://zenodo.org/records/22843702) (DOI
419
+ > 10.5281/zenodo.22843702) · cs.SE companion v1.2.2, preprint ·
420
420
  > [Zenodo](https://zenodo.org/records/22674575) (DOI 10.5281/zenodo.22674575) ·
421
421
  > [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) (v2 announced 2026-09-09 — adds Sec. 6.7 and downgrades the title's claim; Zenodo v1.2.2 was published the same day with the same content, so the two deposits agree) · cs.AI companion in
422
422
  > preparation. Those, the independent convergent work, and the caveats on each:
package/README.zh.md CHANGED
@@ -403,8 +403,8 @@ Claude Code 不会按任务复杂度自动选择模型 —— 这个要你设置
403
403
  | [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) | 如何贡献技能与模式 |
404
404
  | [`tracks/_contrib/`](tracks/_contrib/README.md) | **同意通道** —— 分享一个去标识化的工作会话;仓库在众多操作者之间复利累积 |
405
405
 
406
- > **FH 论文**:v1.0.1 方法论 · [Zenodo](https://zenodo.org/records/22542168)(DOI
407
- > 10.5281/zenodo.22542168)· cs.SE companion v1.2.2,预印本公开 ·
406
+ > **FH 论文**:v1.0.2 方法论 · [Zenodo](https://zenodo.org/records/22843702)(DOI
407
+ > 10.5281/zenodo.22843702)· cs.SE companion v1.2.2,预印本公开 ·
408
408
  > [Zenodo](https://zenodo.org/records/22674575)(DOI 10.5281/zenodo.22674575)·
409
409
  > [arXiv:2609.04218](https://arxiv.org/abs/2609.04218)(v2 于 2026-09-09 公布 — 新增 §6.7 并下调标题主张;Zenodo v1.2.2 于同日以相同内容发布,两处存档一致)· cs.AI companion
410
410
  > 筹备中。这些、独立的收敛性工作,以及每一项的注意事项:
@@ -35,7 +35,7 @@
35
35
 
36
36
  | Artifact | Reference |
37
37
  |---|---|
38
- | Paper v1.0.1 — methodology | Zenodo DOI [`10.5281/zenodo.22542168`](https://zenodo.org/records/22542168) (all versions: `10.5281/zenodo.20397565`) — 2-layer design, 6-axis framework, 4-agent orchestration, compounding loop, with empirical evidence. **arXiv: rejected at moderation (2026-09-06)**; v1.0.1 is the corrected version (11 of 17 reference entries in v1.0 did not match the works cited — see the erratum in the record). Do not read the rejection as an assessment of the methodology, and do not read v1.0.1 as re-reviewed: it has not been resubmitted |
38
+ | Paper v1.0.2 — methodology | Zenodo DOI [`10.5281/zenodo.22843702`](https://zenodo.org/records/22843702) (all versions: `10.5281/zenodo.20397565`) — 2-layer design, 6-axis framework, 4-agent orchestration, compounding loop, with empirical evidence. **arXiv: v1.0 was rejected at moderation (2026-09-06)** — 11 of 17 reference entries did not match the works cited (see the erratum in the record); v1.0.1 corrected those entries and v1.0.2 withdrew four claims the body had already qualified — **but only in the sections its changelog names: the v1.0.2 deposit's abstract, conclusion and Table 1 were left unrevised and still carry the withdrawn wording** (Table 1 still reports the multi-model consensus as `100% (4 / 4 top recommendations, 3 frontier models)` and the deployments row as `Independent practitioner deployments confirmed`; the abstract still reads `three independent deployments`, the one word that release's own withdrawal notice says it withdrew). v1.0.3 propagates that withdrawal into all three, and v1.0.3 is not public. **v1.0.3 was resubmitted 2026-09-19 (`submit/8101851`) and is on hold at moderation** — it has not been announced, so nothing of this paper is publicly posted on arXiv. v1.0.4 (2026-09-20) corrects a self-citation in v1.0.3 that pointed at a superseded version DOI, and has not been submitted. Do not read the rejection as an assessment of the methodology, and do not read any version after v1.0 as re-reviewed: none has cleared moderation |
39
39
  | cs.SE companion — governance-gate methodology | **preprint, publicly posted** · Zenodo DOI [`10.5281/zenodo.22674575`](https://zenodo.org/records/22674575) (v1.2.2; the record's description carries the per-version change notes — v1.2 added the replication section and withdrew two previously reported results; v1.2.1 propagates that withdrawal into the abstract and the conclusion, which v1.2 had left unrevised; v1.2.2 adds Sec. 6.7 and downgrades the title and abstract accordingly; all versions `10.5281/zenodo.20680080` · CC-BY-4.0) · [`arXiv:2609.04218`](https://arxiv.org/abs/2609.04218) (cs.SE; submitted 2026-07-01, announced 2026-09). **v2 announced 2026-09-09** and is on the public record: it carries the v1.2.2 content, adds §6.7 (an independent-session re-test of ground-truth recall under condition-blind scoring, which **does not replicate** §6.2's strict-recall contrast — the two conditions come out one strict hit apart in 24), downgrades the title's last clause from *Evidence* to *a Test of*, and turns the abstract's closing claim into a **hypothesis**. 🟢 **The two deposits agree as of 2026-09-15 — but the earlier ✅ on this line was false for six days, and how it went wrong is the part worth keeping.** The **PDFs** always agreed (`766,831 B`, md5 `6fd229ea77b1bc439d6b266adbcf4cba`, unchanged throughout). The **abstracts did not**: arXiv v2 ends *"so process design as the dominant factor **remains a hypothesis, not a result of this paper**"*, while the Zenodo description still carried *"the results are consistent with the thesis that review-process design … **is the dominant factor**"* and omitted the §6.7 non-replication sentence entirely — while the *same record's* change-notes paragraph described §6.7 correctly, so the record contradicted itself. Measured 2026-09-15 by diffing both live surfaces string-by-string (leading 400 chars not contained; similarity 0.792; the divergence isolated to the closing claim). **Repaired 2026-09-15T23:36:32Z** by replacing paragraph 1 of the Zenodo description with the arXiv v2 abstract verbatim; verified on the **published** record API afterwards, not the form: DOI `10.5281/zenodo.22674575` unchanged, version count still 5 (**no new DOI minted**), metadata keys 13 with creators/license/keywords(8)/related(4)/version all surviving, file checksum unchanged, description 4,222 chars in 5 paragraphs, and six content assertions passing.
40
40
  🟥 **Why the earlier check missed it, stated so it is not repeated**: it verified that the description *"was re-read after publication and none changed"* — i.e. it asked **"did this field change?"** when the question that mattered was **"does this field match the new PDF?"**. A field can be perfectly unchanged and perfectly wrong. The control was pointed at the wrong proposition, which is why it returned a confident ✅. |
41
41
  | cs.AI companion — "Governance Dividend" | in preparation |
@@ -118,6 +118,30 @@ M3 skills (`goal-quench` Phase-3 Stop hook, `harness-pr-reviewer` CC session con
118
118
  ### 4. No token accounting
119
119
  Codex token usage is billed in the Codex CLI quota and is **not** recorded in any FH session log or orchestrator measurement. Cross-family runs (Gemini/Codex) are invisible to FH's token-budget tooling by construction.
120
120
 
121
+ ### 6. 🟥 The gate may not be wired in your checkout — and a gate that never ran looks exactly like one that passed
122
+ Every "the hook blocks this" statement in FH's docs is true only where `core.hooksPath` points at
123
+ `templates/.git-hooks`. Git tracks the hook files; it does **not** carry that config value. Measured
124
+ 2026-09-21, same commit, two checkouts: **15 layers compared, only the 4 READ layers matched — all 11
125
+ ENFORCE/EVIDENCE/PATTERN layers were opposite.** A third direction is quieter still: with the pattern
126
+ layer absent the confidentiality scan still runs and still goes **green**, while company-name and
127
+ real-name classes are silently `UNSCANNED`.
128
+
129
+ ```bash
130
+ bash scripts/env_layer_fingerprint.sh # PRESENT/ABSENT/UNMEASURED per layer, no values
131
+ bash scripts/gate_bootstrap_ephemeral.sh --check # rc=1 while anything is missing
132
+ bash scripts/gate_bootstrap_ephemeral.sh --apply # wires hooksPath + a UTF-8 locale
133
+ ```
134
+
135
+ A UTF-8 locale is part of it, not a nicety: under `LC_CTYPE=POSIX` all four non-vacuity legs of an
136
+ honest Korean marker are rejected as "vacuous" — over-blocking, the opposite failure. The third
137
+ requirement is the two gitignored evidence files, and **a human writes those**; the bootstrap script
138
+ deliberately does not create markers, because auto-generating evidence is closing the gate with a
139
+ forgery. ⚠️ `scripts/fh_node_check.sh` cannot warn you here — it travels the same gitignored channel
140
+ as the `settings*.json` it would read, so on an unwired node the detector is absent too.
141
+
142
+ Canonical: `AGENTS.md` §Mandatory Non-Claude Checklist item **1-b** ·
143
+ `knowledge/shared/harness-core/checkout_layer_drift.md` §8.
144
+
121
145
  ### 5. Cross-family sibling note (Gemini)
122
146
  The sibling pattern for Gemini is `gemini -p "$(cat <skill+artifact>)"`. Outside a trusted directory Gemini requires `--skip-trust` (or `GEMINI_CLI_TRUST_WORKSPACE=true`). Gemini's headless output may bracket identifiers (`[ID]:`) where Codex does not — parse tolerantly.
123
147