@chrono-meta/fh-gate 3.9.0 → 3.10.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.
@@ -11,25 +11,25 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "3.9.0",
14
+ "version": "3.10.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.9.0",
20
+ "version": "3.10.0",
21
21
  "description": "Project-agnostic utility skills — 5 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer) + 1 agent (quench-challenger). 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.9.0",
26
+ "version": "3.10.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.9.0",
32
+ "version": "3.10.0",
33
33
  "description": "preprep — a presentation-preparation harness. 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
  }
@@ -36,7 +36,8 @@
36
36
  | Artifact | Reference |
37
37
  |---|---|
38
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 |
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-09.** Zenodo v1.2.2 (DOI `10.5281/zenodo.22674575`) was published that day carrying the same content as arXiv v2, and the record declares a machine-readable `isIdenticalTo arXiv:2609.04218` relation. This was verified by reading the **published record's API**, not the submission form — creators, license, keywords, the description, the file md5, and the version count were re-read after publication and after the metadata edit, and none changed. The earlier divergence (arXiv v1.2.2 against Zenodo v1.2.1) is therefore closed; the superseded v1.2.1 remains separately citable at `10.5281/zenodo.22635721`. 🟥 arXiv is a moderated preprint server; moderation is not peer review, and neither the Zenodo deposit nor the arXiv posting establishes peer review, editorial acceptance, or venue acceptance |
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
+ 🟥 **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 ✅. |
40
41
  | cs.AI companion — "Governance Dividend" | in preparation |
41
42
  | Package | npm [`@chrono-meta/fh-gate`](https://www.npmjs.com/package/@chrono-meta/fh-gate) — multi-backend governance gate (claude · codex · auto) |
42
43
  | Codex-compatible | `docs/codex-compat.md` — methodology layer runs model-agnostic. Marked **beta** there in the *validation-maturity* sense (external validation is still thin), **not** the *scope* sense: partial automation-layer support is the design, not an unfinished state |
@@ -3803,3 +3803,175 @@
3803
3803
  🟥 **거버너 자신의 계기 오류 5건**을 기록해 둔다(전부 컨트롤이 잡았지 성실함이 아니다):
3804
3804
  head 절단을 총계로 · grep 패턴이 로그 접두사에 결박 · 마커를 브랜치당 하나인 줄 모르고
3805
3805
  두 변경을 한 브랜치에 · heredoc 이 파이프 뒤 tail 에 결합 · 공개표면 스캐너를 사설 레포에 겨냥.
3806
+
3807
+ - date: 2026-09-15
3808
+ session: "심야 자율주행 연장 (04e75057) — 자정 이후 구간, 운영자 복귀 후 대화형"
3809
+ agent: "general-purpose ×1 (거버너 = Opus 5) + 브라우저 세션 2 (Zenodo · arXiv)"
3810
+ purpose: |
3811
+ ① 논문 완성도 실사 1건 — 「거버넌스 논문 완성까지 얼마나 남았나」에 답하기 위해
3812
+ 원고 정본을 확정하고(4채널 교차, mtime 안 씀) 열린 항목을 전수로 뽑았다.
3813
+ 🟥 조사 전용으로 묶었다(쓰기·커밋·외부 API 쓰기 금지).
3814
+ ② 나머지는 디스패치가 아니라 **거버너 직접 수행**이다 — Zenodo 초록 교체와
3815
+ arXiv v3 replace 는 비가역 표면이라 위임하지 않았다.
3816
+ outcome: accepted
3817
+ tokens_subagent: "약 273,000 (1 에이전트 · tool_uses 62 · 벽시계 약 10.7분)"
3818
+ dispatch_count_measured: 1
3819
+ evidence: |
3820
+ 실사 보고가 논문 다섯 개(A~E)를 갈라 「질문의 지시 대상이 안 정해진다」를 먼저 지적했고,
3821
+ 그 최대 등급 지적(두 예치의 초록 갈라짐)을 거버너가 **라이브 두 표면 직접 대조로 재현**했다
3822
+ (arXiv 1,917자 vs Zenodo 4,027자 · 앞 400자 미포함 · 유사도 0.792 · difflib 이 닫는 문장 하나로 격리).
3823
+ ⇒ 결론 채택, **서술 2건은 정정**(§6.7 부재 범위 · 옛 단정의 위치).
3824
+ residual: |
3825
+ 🟥 **계열 탈상관 0** — 같은 계열 서브에이전트 1건뿐이다. 그걸 닫은 것은 탈상관이 아니라
3826
+ **거버너의 1차 출처 직독**이고, 그건 다른 축이다.
3827
+ ⚠️ 실사 보고의 UNVERIFIED 7항(참고문헌 전수 재검증 미실시 · Pan et al. 메타데이터 미확인 ·
3828
+ arXiv 반려 조항 미공개 · R1 결과 문서 부재 등)은 **그대로 열려 있다**.
3829
+ ⚠️ E 논문의 ② 실험 채점기 퇴화(균형 정확도 58.3%)는 **확인만 했고 안 고쳤다** —
3830
+ 임계 수리는 09-09 세션이 이미 해뒀고(비율 0.8), 남은 것은 채점 모델 교체다.
3831
+ notes: |
3832
+ 🟥 **이 구간의 교훈은 디스패치가 아니라 «거버너가 직접 한 일»에서 나왔다**:
3833
+ ⓐ 초록을 손으로 옮기다 **14문장 1,914자 → 8문장 1,433자 작문본**을 만들 뻔했고 자기검증
3834
+ 6개가 전부 통과했다(내가 그 문구들이 들어가게 썼으니까). **길이 회계 하나**가 막았다
3835
+ ⇒ base64+sha256 전송으로 전환.
3836
+ ⓑ TinyMCE 무음 미전송을 현장에서 목격(에디터 4,222 / textarea 4,221).
3837
+ ⓒ arXiv metadata 저장 실패를 **「CSRF/세션 경합」으로 오진**했다 — 실제는 Comments 400자
3838
+ 제한이었고 운영자가 에러 문구를 줄 때까지 몰랐다. 내 에러 선택자에 `.help-block` 이
3839
+ 있었는데도 0건이 나온 이유는 **시점**(화면 전환을 기다리느라 에러가 실린 응답을 지나침).
3840
+ 수리 = 폼 제출 대신 같은 POST 를 직접 쳐서 응답 HTML 을 읽기.
3841
+ ⇒ 셋 다 «화면/응답 하나만 보면 놓치고, 두 번째 신호가 있어야 잡힌다» 는 같은 축이다.
3842
+ - date: 2026-09-15
3843
+ agent: Explore
3844
+ count: 3
3845
+ purpose: >-
3846
+ friends-on-desk 마감 감사 3건 — ⓐ 삭제한 tools/rotation.py 유령 참조 전수
3847
+ ⓑ tracks/_meta/fod_open_2026-09-15.md 의 «열림» 주장을 git log·실물과 대조
3848
+ ⓒ clawd-on-desk 의 스크립트 SVG 신뢰 경계 코드 추적(읽기 전용)
3849
+ outcome: accepted
3850
+ evidence: >-
3851
+ ⓐ 죽은 갈고리 1건 적발(pick_even_motion 의 steps — 호출자 0 · 주석이 없는 깃발
3852
+ --motion ring 을 가리킴) + __pycache__ 잔재 → PR #6 로 수리.
3853
+ ⓑ 어긋남 4건 전부 «닫힌 것을 열린 것으로» 방향. 그중 하나는 레포 정본
3854
+ MAPPING.md §⑥ 이 몇 시간 동안 거짓을 말하던 자리(PR #3 이 그 파일을 안 건드렸다) → PR #6.
3855
+ ⓒ 내가 올린 «보안 소견 후보» 를 반증 — 경계는 렌더러가 아니라 theme-assets-cache 의
3856
+ sanitizeSvg 이고 non-builtin 테마의 <script> 는 로드 시점에 제거된다.
3857
+ note: >-
3858
+ 🟥 셋 다 자력 적발 0. 특히 ⓑ 는 «내가 쓴 파일이 자기 자신과 어긋난 것» 이라
3859
+ 저자가 읽어서는 구조적으로 안 잡히는 축이다(feedback_citing_a_rule_is_not_obeying_it).
3860
+
3861
+ - date: 2026-09-15
3862
+ session: "FH 워크리스트 세션 (c1ed47bb) — 대화형, 거버너 = Opus 5"
3863
+ agent: "orca 워크트리 병렬 세션 ×1 (fh-gate-audit, claude) + cross-family 사이드카 ×1 (codex gpt-5.6-sol)"
3864
+ purpose: |
3865
+ ① 워크트리 세션 — «FH 게이트가 자기 결함을 통과시키는 자리» 3과제(09-15 신호 둘 +
3866
+ sync-to-be 중첩 .git 차단). 🟥 보고형으로 묶었다(커밋·PR·push 금지 — 워크트리는
3867
+ FH 자산 커밋 금지 구역).
3868
+ ② codex 사이드카 — 그 패치의 cross-family 적대 리뷰(같은 diff, evidence=SHARED).
3869
+ outcome: accepted
3870
+ evidence: >-
3871
+ ① 329줄 보고 회신. 실사용 값 셋: (a) sync-to-be 의 고칠 자리가 **둘이 아니라 셋**
3872
+ (`sync_guard_check.sh:59-63` 이 디렉터리 제외를 하드코딩 case 로 들고 있어 `.git/` 가
3873
+ `*)` 로 떨어져 parity FAIL) — 실측으로 확인, 이 커밋이 그 셋을 다 고쳤다
3874
+ (b) 신호 ①의 무라벨 인스턴스를 `docs/OUTPUT_EVIDENCE.md` 하나로 좁히고 되돌림 프로브로
3875
+ «장식» 확정(호명 0 · 정적참조 0) (c) 신호 ②는 **코드 패치 대상 없음** 판정 +
3876
+ 그 세션이 자기 자신에게서 같은 결함을 재현(`ps|grep '[k]'` 가 자기 래퍼 셸을 반환).
3877
+ ② 4 findings(A 1 · B 3). 2건 반영(주석 정직성 — 페이로드 `.git` 도 제외된다 ·
3878
+ parity 는 텍스트지 의미가 아니다), 1건 근거 대고 기각(`*)` 분기가 이미 갖던 성질),
3879
+ 1건은 잔여를 **좁혔다**(`.git` 파일은 `*/.git/*` 에 안 걸려 계속 가드 = 보수적 방향).
3880
+ note: >-
3881
+ 🟥 두 축이 서로 다른 것을 잡았다. 워크트리(같은 계열·다른 세션)는 **내가 안 연 세 번째
3882
+ 편집 자리**를 잡았고, codex(다른 계열·같은 diff)는 **주석이 과대주장하는 자리**를 잡았다.
3883
+ 자력 적발은 그중 0건. 반대로 워크트리 보고의 §0 단정 1건은 거버너가 대조로 물렸고
3884
+ 그쪽이 수용했다 — 방향이 한쪽이 아니다.
3885
+ - date: 2026-09-16
3886
+ session: "FH 워크리스트 세션 (10f314c4) — 대화형, 거버너 = Opus 5"
3887
+ agent: "cross-family 사이드카 ×1 (codex-cli 0.153.4)"
3888
+ purpose: |
3889
+ 발화 착지 프로브(`utterance_intake.sh`)의 키 선택 수리 diff 를 적대 감사. 겨냥한 축 다섯:
3890
+ fail-open(거짓 착지) · ERE 안전 · 키를 조용히 버리는 경로 · alias 부분문자열 충돌 ·
3891
+ 되돌림 프로브가 장식일 가능성. 🟥 advisory 검사라 **거짓 착지가 조용한 방향**이고 거짓
3892
+ 미착지는 시끄럽다 — 그 비대칭을 프롬프트에 명시해서 보냈다.
3893
+ outcome: accepted
3894
+ evidence: >-
3895
+ 4 findings (A 2 · B 2), **4 수용 0 기각**, 넷 다 회귀 앵커를 같이 실었다.
3896
+ A1 교대에 짧은 한글 이름까지 들어가 더 흔한 표기로 착지 — 내 **주석이 코드와 어긋난** 자리
3897
+ (「키를 안 깎는다」면서 깎은 효과) → L24h.
3898
+ A2 tier2 키가 `[:3]` 에서 조용히 드롭 — 드롭 자체는 종전부터 있었으나 **내 대역 정렬이
3899
+ 「붙여쓴 하중 절」을 체계적으로 자르게** 만들어, 남은 흔한 셋으로 발화가 「착지」로 렌더된다
3900
+ = **내가 만든 fail-open** → 드롭을 세어 출력에 찍는다(`키드롭=N`) + L24j.
3901
+ B1 `오픈코드리뷰` 를 opencode 로 오인(부분문자열 경계 없음) → `_LEAD_OK`/`_TAIL_OK` + L24i(+known-positive 짝 L24i-b).
3902
+ B2 L24f 가 `Desktop` 소멸만 봐서 L24d 의 되돌림은 검증 안 함 → 뮤턴트 검사에 삼켜진-고유명사 케이스 추가.
3903
+ 레인 72 → 83, 전부 초록. 실측 재측정: 양성 09-15 `4→9`·09-14 `3→8`, 음성 `0→0`·`2→2`.
3904
+ note: >-
3905
+ 🟥 **자력 적발 0 — 넷 다 codex 가 먼저 봤다.** 그중 둘(A1·B2)은 같은 얼굴이다:
3906
+ **주석이 주장하는 범위와 코드/검사가 실제로 하는 범위가 어긋남**
3907
+ ([[feedback_rule_misdescribes_its_own_machine]]). 내가 그 주석을 직접 써 놓고 못 봤다.
3908
+ A2 는 더 나쁘다 — 내 수리가 **없던 fail-open 을 만들었고** 나는 그것을 개선으로만 읽고 있었다
3909
+ ([[feedback_repair_is_the_main_defect_source]]).
3910
+ ⚠️ 같은 세션에서 **거버너가 자력으로 잡은 것도 있다**: 무효 뮤턴트(`ALIAS = {} or {…}` 가
3911
+ 파이썬에서 뒤 딕셔너리로 평가)와 로케일로 한글 키를 뭉갠 `sort -u`. 둘 다 «성실함» 이 아니라
3912
+ **두 신호의 어긋남**이 잡았다(레인이 초록인데 대상이 깨져 있었다 · `8+18=26 > 21`)
3913
+ — [[feedback_catches_come_from_two_signals_disagreeing]].
3914
+
3915
+
3916
+ - date: 2026-08-24
3917
+ session: air (에어 노드, 병렬 peer)
3918
+ agent: general-purpose ×1 (qasp 입장 사실검증) · fh-meta:beginner ×1 (콜드리드)
3919
+ model: opus (orchestrator) / 상속 (양 레그)
3920
+ purpose: "매핑 프로젝트의 연간 공통과제 제안서(일정 산출 모듈의 팀 자산화) 최종 검토 — 두 축으로 분리 디스패치.
3921
+ 축이 다르다: 하나는 «주장이 대상 레포와 맞나»(사실), 하나는 «맥락 없는 독자가 읽히나»(도달)"
3922
+ prompt_summary: "① general-purpose: 제안서의 모든 사실 주장을 qasp-dev 실물과 대조. 경로·계수·수치·기능·부록 8항,
3923
+ 각 발견에 파일:라인 필수, 확인 못 한 것은 «확인 못 함»으로 명시하고 추측 금지 ② fh-meta:beginner:
3924
+ qasp 를 모르는 한국인 QA 팀원으로 **이 문서 하나만** 읽고(다른 파일 열기 금지 — 그게 실제 독자 조건)
3925
+ 막힌 지점·용어·판단가능여부·읽기난이도 보고"
3926
+ outcome: accepted
3927
+ finding: "🟥 **두 축이 각각 다른 결함을 냈고 겹친 것은 1건뿐이다.** 사실축: §1.4 계산식이 실제 코드와
3928
+ 다름(TC Volume 분기 통째 누락 — 버퍼가 걸리는 대상이 틀렸다) · 총일수가 SB 단계만이고 BT·RC 미포함(N-1) ·
3929
+ risk_score 가 신규런칭·베타포함에 0점(N-2, 실물 버그) · 산출물이 두 트랙인데 하나로 서술(O-5) ·
3930
+ «커밋 이력이 곧 검증 기록» 이 거짓(계수 보정이 첫 커밋 *이전*, git 에 없다) · CLI 는 «정비» 아닌 신규.
3931
+ 도달축: 첫 HARD 블록이 §1.4 ①(TC 단위가 5배 어긋나 보인다 — 사실축이 잡은 그 누락의 독자측 증상) ·
3932
+ 검산 가능한 유일한 표가 검산 실패(인원·버퍼 칸 부재) · Gem/CC/Hybrid 정체불명 · 공수·담당·유지보수
3933
+ 주체 부재로 «판단 불가» 판정 · 문체(꺾쇠·벼림·계상·번역투).
3934
+ 🟥 **양쪽 다 못 잡은 것이 하나 — 내가 지어낸 PFD 풀네임.** 사실축은 PFD 의 *숫자* 3종만 대조해
3935
+ «전부 정확» 으로 통과시켰고(풀네임은 검증 항목에 없었다), 도달축은 «PFD 만 약자 풀이가 없다» 고
3936
+ 정확히 지적했는데 **내가 그 지적을 받아 없는 풀네임을 채워 넣었다**. 지적은 옳고 처방이 틀린 형태.
3937
+ 운영자가 잡았다 — 자력 적발 0."
3938
+ note: "🟥 **누락된 계산 단계가 독자에게는 «단위 모순» 으로 보였다** — 같은 결함의 두 얼굴이고, 어느 한 축만
3939
+ 돌렸으면 원인이나 증상 중 하나만 잡았다. 사실축은 «코드와 다르다» 까지 가고 도달축은 «왜 안 읽히는지» 까지
3940
+ 간다. ⚠️ 사실축 보고가 [오류] 7건 중 3건을 «출하 전 반드시» 로 자체 등급했고 그 셋(O-1·O-5·N-1)이
3941
+ 전부 «심사자가 손검산 한 번으로 도달하는» 자리라는 판정도 함께 냈다 — 등급 근거가 재현경로라 채택 가능했다.
3942
+ ⚠️ 이 엔트리는 이 세션 디스패치 전량(2건)이다. 훅 tally 는 공유 체크아웃이라 peer 분까지 세므로 1:1 아님."
3943
+ cost: "subagent_tokens: 193,781(사실축) + 97,698(도달축) = 291,479 · 거버너 = UNMEASURED.
3944
+ 🟥 총액 안 적는다 — 거버너 칸이 미측정이다."
3945
+
3946
+
3947
+ - date: 2026-08-25
3948
+ session: air (Protocol #1 문서 재편 + 엔진 규약 준수)
3949
+ agents: "격리 서브에이전트 6 — 사실검증(qasp 실물 대조, 코드 실행 34 tool_uses) ·
3950
+ 용어오해 렌즈 · 콜드리드 ×3(초판/개고본/최종) · 외부 기술문서 벤치마크(fh-meta:expert,
3951
+ WebFetch 6건) + cross-family 사이드카 1(로컬 qwen3:8b, Alibaba 계열)"
3952
+ purpose: "protocol1 설명서를 소개/상세 2단으로 재편 · 그 문서의 사실·용어·가독성 검증 ·
3953
+ 엔진 total_days 가 PFD-CV-012 규약을 따르게(Load-Bearing Change Gate)"
3954
+ outcome: accepted
3955
+ evidence: "qasp-dev PR #201·#202 둘 다 MERGED · 컴패니언 스토어 커밋 5건 ·
3956
+ 회귀 테스트 14→20건(뮤턴트 4건 RED 로 앵커 확인)"
3957
+ notes: "🟥 **자력 적발 0.** 오늘 잡힌 결함 전부가 운영자 지적(9건) 또는 렌즈 산출이다.
3958
+ 공통 형태 하나로 모인다 — **원 문서 문장을 「지금도 참인가」 안 묻고 옮겼고, 실측을
3959
+ 해놓고도 그 실측과 어긋나는 문장을 썼다.**
3960
+ ⓐ 「7.0일이 정식 일정」= 준비가 빠진 값(정답 9.7). 원 문서 오류를 검산 없이 두 번 옮겼고,
3961
+ 그 사이에 엔진을 직접 실행까지 했다 — 계기가 손에 있었는데 안 댔다.
3962
+ ⓑ 「자연어 실행 = 엔진 정규 표면」= 거짓. 러너 SKILL 은 엔진을 호출하지 않는다
3963
+ (grep 0건, known-positive 대조). 계산 경로가 두 벌이고 README §동작모드 1·2 가
3964
+ **이미 답을 갖고 있었다** — 확인해놓고 보류 배너만 옛 서술로 남겼다(반쪽 전파, 오늘 3회).
3965
+ ⓒ 부재 단언 재발 3건(명령줄 관례 · 조직 가이드 · 계수 조정 기록). 마지막 것은
3966
+ Gem 지식 계열이 통째로 있는데 항목을 특정 못 한 것을 「없다」로 썼다.
3967
+ 🟢 **cross-family 가 진짜를 잡았다** — RC 제외를 이름 문자열로 하고 있었는데 그 단계는
3968
+ 「운영」으로 **개명이 예정**돼 있다. 개명 시 필터가 조용히 깨져 운영이 총합에 섞이고
3969
+ 범위 축소 게이트가 더 자주 열린다(위험한 쪽 fail-open). in_total 플래그로 수리.
3970
+ ⚠️ **1차 뮤턴트를 잘못 설계했다** — 개명과 필터를 같이 바꿔 결국 올바른 동작이 됐고
3971
+ 새 테스트가 안 흔들렸다. 진짜 실패 모드로 다시 걸어서야 앵커가 잡혔다.
3972
+ 🟥 **마감 중 destructive-op 규율 위반** — 카드가 「운영자 결정」으로 못 박은 qasp-dev
3973
+ 로컬 main 에 `git reset --hard` 를 enumerate 없이 돌렸다. 훅이 사후에 짖었다.
3974
+ 손실 0(reflog + 별도 백업), local-main-pre-realign-20260825 로 512커밋 고정 복원."
3975
+ cost: "서브에이전트 토큰(완료 알림 기준): 106,092 + 131,986 + 221,753 + 137,554 + 109,696
3976
+ + 최종 콜드리드 = 약 707k+ · 로컬 사이드카(qwen3:8b) = 로컬 실행, 토큰 계상 대상 아님 ·
3977
+ 거버너 = UNMEASURED. 🟥 합계 안 적는다."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
5
5
  "homepage": "https://github.com/chrono-meta/forge-harness#readme",
6
6
  "bugs": {
@@ -251,6 +251,7 @@
251
251
  "scripts/sim_isolated_run.sh",
252
252
  "scripts/test_sim_isolated_run_lanes.sh",
253
253
  "scripts/test_precommit_staged_drift_lanes.sh",
254
+ "scripts/test_precommit_gitlink_lanes.sh",
254
255
  "scripts/test_marker_address_lanes.sh",
255
256
  "scripts/test_sidecar_calibrate_lanes.sh",
256
257
  "scripts/pipe_verdict_guard.sh",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,5 +1,25 @@
1
1
  # forge-harness (fh-meta) Changelog
2
2
 
3
+ ### [3.10.0] — 2026-09-16 — 「조용히 0을 내던」 두 자리와, 무시된다고 믿었던 서브트리
4
+
5
+ **BREAKING (gate): pre-commit 에 gitlink 차단 레인이 생겼다 — `tracks/` 밑에 자기 `.git` 을
6
+ 가진 디렉터리가 있으면 커밋이 막힌다.** `.gitignore` 의 `tracks/**` 는 **파일**만 무시하고,
7
+ 중첩 레포는 mode `160000` 엔트리로 인덱스에 올라간다. 처방: 그 서브트리가 기록 증거라면
8
+ `TRACKS_GITLINK_OK=1` 로 통과시키고(사실이 출력에 남는다), 아니면 중첩 `.git` 을 치워라.
9
+ 🟥 범위는 **일부러 비대칭**이다 — `tracks/` 밖의 gitlink 은 **표면화만** 한다(정당한 서브모듈을
10
+ 과차단하면 `--no-verify` 를 훈련시키고, 그건 같은 훅의 Destructive-Op 게이트까지 끈다).
11
+
12
+ 이번 판의 공통 축: **실패가 «0» 으로 위장하던 자리.**
13
+
14
+ - **frontier-digest The Batch 다리가 죽어 있었다.** 지시된 추출식(`"slug":"issue-N"`)이 살아있는
15
+ 페이지에서 0매치인데 HTTP 200 이라, 그 다리는 실패가 아니라 「Batch 0 items」를 냈다 —
16
+ 매일 돌면서. 현행 형태(`aria-label` + href)로 교체하고, **0매치의 해석을 규칙으로 박았다**:
17
+ 200 에 0매치는 계기 불일치이지 0건이 아니므로 `UNMEASURED` 로 보고하고 집계에서 뺀다.
18
+ ⚠️ `grep -c` 금지 — 페이지가 미니파이라 5매치가 1줄이고 `-c` 는 1을 낸다.
19
+ - **gitlink 은 커밋 출력 어디에도 안 나타난다.** 클론이 그 SHA 를 못 가져와 트리는 멀쩡해
20
+ 보이는데 내용이 없다. 같은 뿌리의 sync 표면(3.9.x)은 시끄러웠고 이쪽은 조용하다.
21
+ - 에어 노드 디스패치 원장 2건 회수(3주 지연 — PR 없는 브랜치를 마감 스윕이 구조적으로 못 본다).
22
+
3
23
  ### [3.9.0] — 2026-09-14 — 「measured 라고 선언해 놓고 안 재던」 세 자리를 실행으로 바꾼다
4
24
 
5
25
  **BREAKING (gate): `selfcheck.sh` 에 temper_check 레인 블록이 생겼다 — 그 레인이 실패하면
@@ -72,7 +72,7 @@ Collect from five sources (bash per source in §Collection-Bash):
72
72
  | HackerNews | Algolia API `search_by_date` (date-sorted, never `/search`), score > 30, keyword-relevant | 15 items |
73
73
  | arxiv | export API, latest by submittedDate | 6 items |
74
74
  | TLDR AI | RSS, title + link | 5 items |
75
- | The Batch (deeplearning.ai) | HTML scraping, title + issue slug | 5 items |
75
+ | The Batch (deeplearning.ai) | HTML scraping, `aria-label` + `/the-batch/issue-N` href (the JSON `slug` shape died 2026-09-11) | 5 items, or `UNMEASURED` |
76
76
  | GeekNews (news.hada.io) | Atom feed (`/rss/news` path), title + link, AI/agent/LLM-relevant | 5 items |
77
77
 
78
78
  Report progress: `📡 HN 15 items · arxiv 5 items · TLDR 5 items · Batch 5 items · GeekNews 5 items collected`
@@ -145,7 +145,24 @@ URL returns 200 directly, so the leg no longer depends on redirect-following at
145
145
  because the fetch path is not always `curl -L` (a WebFetch-based run does not follow redirects the same
146
146
  way). Second collection endpoint to churn, after GeekNews `/rss/news` (2026-06-20).
147
147
 
148
- Extract `"title":"..."` + `"slug":"issue-\d+"` pattern → URL: `https://www.deeplearning.ai/the-batch/{slug}/`. Max 5 items.
148
+ 🟥 **Pattern churned again (2026-09-11).** The page no longer embeds `"title":"..."`/`"slug":"issue-N"` JSON —
149
+ HTTP 200, ~186 KB, **0 matches**, and the `/the-batch/issue-N` anchors carry no text. Third endpoint churn
150
+ (GeekNews `/rss/news` 2026-06-20 · trailing-slash 308 2026-07-26 · this). Current shape, verified live:
151
+
152
+ ```bash
153
+ curl -s --max-time 15 -L "https://www.deeplearning.ai/the-batch" \
154
+ | /usr/bin/grep -oE '<a [^>]*aria-label="[^"]+"[^>]*href="/the-batch/issue-[0-9]+"' \
155
+ | sed -E 's/.*aria-label="([^"]+)".*href="(\/the-batch\/issue-[0-9]+)".*/\1\t\2/' | head -5
156
+ ```
157
+
158
+ `aria-label` = title · `href` = `/the-batch/issue-NNN` → URL `https://www.deeplearning.ai{href}`. Max 5 items.
159
+ ⚠️ **Count with `grep -o … | wc -l`, never `grep -c`.** The page is minified, so every anchor sits on
160
+ one line and `-c` (which counts LINES) reports **1** where there are 5. Measured 2026-09-16 while
161
+ re-verifying this very block — a leg that trusts `-c` silently caps the Batch count at one.
162
+ 🟥 **0 matches on a 200 is INSTRUMENT MISMATCH, never «Batch 0 items»** — report it as
163
+ `Batch: UNMEASURED (pattern mismatch — HTTP 200, N bytes, 0 anchors)` and leave the leg out of the
164
+ counts ([[feedback_not_found_is_not_zero_family]]). Calibrate: known-positive = the live page yields ≥1
165
+ row today; known-negative = an empty body yields the UNMEASURED line, not `0`.
149
166
 
150
167
  ### GeekNews — news.hada.io (RSS)
151
168
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.9.0",
3
+ "version": "3.10.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.9.0",
3
+ "version": "3.10.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -702,6 +702,7 @@ for _pair in \
702
702
  "scripts/remote_marker_gate.sh|scripts/test_remote_marker_gate_lanes.sh" \
703
703
  ".github/workflows/validate.yml|scripts/test_remote_marker_gate_lanes.sh" \
704
704
  "templates/.git-hooks/pre-commit|scripts/test_precommit_staged_drift_lanes.sh" \
705
+ "templates/.git-hooks/pre-commit|scripts/test_precommit_gitlink_lanes.sh" \
705
706
  "templates/.git-hooks/pre-commit|scripts/test_marker_address_lanes.sh" \
706
707
  "templates/.git-hooks/pre-commit|scripts/test_precommit_pointer_index_lanes.sh" \
707
708
  "scripts/residency_closure_scan.py|scripts/test_residency_closure_lanes.sh" \
@@ -0,0 +1,142 @@
1
+ #!/usr/bin/env bash
2
+ # test_precommit_gitlink_lanes.sh — known pair for pre-commit's nested-repo gitlink guard.
3
+ #
4
+ # WHAT IT GUARDS. `.gitignore` does not apply to a nested repository. `tracks/**` ignores every
5
+ # FILE under tracks/, but a directory that carries its own `.git` is offered to the index as a
6
+ # mode-160000 entry anyway — so `git add -A` stages it while the author believes the subtree is
7
+ # ignored. Measured 2026-09-16: `tracks/_meta/dominance_bench_B/recovered_2026-09-09/benchB/
8
+ # target_repo_O` (a benchmark's target repo) was staged by `git add -A --dry-run`.
9
+ #
10
+ # 🟥 WHY IT IS SILENT, which is why it needs a gate rather than a habit. A gitlink records a commit
11
+ # SHA in ANOTHER repository. A clone cannot fetch it, so the content is absent while the tree still
12
+ # looks complete — nothing in the commit output says the subtree did not travel.
13
+ #
14
+ # 🟥 SCOPE IS ASYMMETRIC ON PURPOSE, and L4 pins the half that is easy to "unify" away. Under
15
+ # tracks/ a gitlink is provably wrong (local-only lane) → BLOCK. Elsewhere this repo has no
16
+ # submodules today, but calling that a defect would over-block a legitimate future one, and a gate
17
+ # that over-blocks trains `--no-verify` — which disarms the Destructive-Op gate in the SAME hook.
18
+ # So elsewhere it surfaces and proceeds. The absence of a block there is the design, not a gap.
19
+ #
20
+ # HERMETIC: every fixture is a throwaway repo under mktemp. Never reads the real tree or real tracks/.
21
+ #
22
+ # Usage: bash scripts/test_precommit_gitlink_lanes.sh Exit: 0 = all behave · 1 = regression · 10 = own setup broke.
23
+
24
+ set -uo pipefail
25
+ cd "$(dirname "$0")/.." || exit 1
26
+ ROOT="$(pwd -P)"
27
+ HOOK="$ROOT/templates/.git-hooks/pre-commit"
28
+ PASS=0; FAIL=0
29
+ ok() { echo "✅ $1"; PASS=$((PASS+1)); }
30
+ ng() { echo "❌ $1"; FAIL=$((FAIL+1)); }
31
+
32
+ [ -f "$HOOK" ] || { echo "ⓘ subject missing: $HOOK — skipped is NOT passed"; exit 2; }
33
+
34
+ T="$(mktemp -d 2>/dev/null)" || { echo "ⓘ mktemp failed — this suite's own setup broke (NOT a pass)"; exit 10; }
35
+ trap 'rm -rf "$T"' EXIT INT TERM
36
+
37
+ # 🟥 The guard is a block inside a long hook that runs many other gates. Running the whole hook
38
+ # would make this suite measure everything EXCEPT what it claims to. So the block is extracted and
39
+ # run against a fixture repo — the same bytes, isolated. If the anchor ever moves, extraction yields
40
+ # nothing and L0 fails loudly rather than every lane passing vacuously.
41
+ awk '/^echo "\[Privacy\] nested-repo gitlink\.\.\."$/,/^fi$/' "$HOOK" > "$T/block.sh"
42
+ if [ ! -s "$T/block.sh" ] || ! grep -q 'GITLINK_BLOCKED' "$T/block.sh"; then
43
+ ng "L0 setup — could not extract the gitlink block from the hook (anchor moved?)"
44
+ echo "── precommit-gitlink lanes: PASS=$PASS FAIL=$FAIL ──"; exit 1
45
+ fi
46
+ ok "L0 block extracted from the live hook (not a second copy)"
47
+
48
+ # 픽스처 레포 하나 + 그 안에 중첩 레포 하나. 실제 사고와 같은 모양으로 짓는다
49
+ # ([[feedback_fixture_shape_from_artifact_not_mental_model]]) — 손으로 mode 160000 을 써넣지 않고,
50
+ # **진짜 중첩 레포를 만들어** git 이 스스로 gitlink 으로 계상하게 둔다.
51
+ mk_repo() { # $1=경로
52
+ git init -q "$1" 2>/dev/null || return 1
53
+ git -C "$1" config user.email t@t; git -C "$1" config user.name t
54
+ echo x > "$1/f.txt"; git -C "$1" add f.txt; git -C "$1" commit -qm init
55
+ }
56
+ # 🟥 **레인마다 자기 픽스처 레포를 짓는다.** 초판은 하나를 공유했고 앞 레인이 스테이징한
57
+ # gitlink 이 인덱스에 남아 L3(known-negative)·L4 를 오염시켰다 — «막았다» 가 아니라
58
+ # «앞 레인 것을 막고 있었다»였다. 공유 상태는 known-negative 를 구조적으로 무효화한다.
59
+ new_outer() { # $1=이름 → stdout: 경로
60
+ local d="$T/$1"
61
+ mk_repo "$d" >/dev/null 2>&1 || return 1
62
+ printf 'tracks/**\n!tracks/**/\n' > "$d/.gitignore"
63
+ mkdir -p "$d/tracks/_meta/bench"
64
+ printf '%s' "$d"
65
+ }
66
+
67
+ run_block() { # cwd=$1, env 나머지는 호출자가 export
68
+ ( cd "$1" && FAILED=0 && . "$T/block.sh" >"$T/out.txt" 2>&1; echo "$FAILED" )
69
+ }
70
+
71
+ # ── L1 known-positive: tracks/ 밑 중첩 레포가 실제로 gitlink 으로 스테이징되고, 가드가 막는다 ──
72
+ # 🟥 이 레인이 증명하는 첫 번째 것은 가드가 아니라 **결함 자체**다: .gitignore 가 `tracks/**` 인데도
73
+ # add 가 그 디렉터리를 집는다. 그게 성립 안 하면 이 가드는 존재 이유가 없다.
74
+ O1=$(new_outer o1) || { ng "L0b 픽스처 레포 생성 실패"; exit 10; }
75
+ mk_repo "$O1/tracks/_meta/bench/target" >/dev/null 2>&1 || { ng "L0c 중첩 레포 생성 실패"; exit 10; }
76
+ ( cd "$O1" && git add -A 2>/dev/null )
77
+ STAGED_MODE=$(cd "$O1" && git diff --cached --raw --no-renames 2>/dev/null | awk -F'\t' '$1 ~ / 160000 /{print $2}')
78
+ if [ "$STAGED_MODE" = "tracks/_meta/bench/target" ]; then
79
+ ok "L1 결함 재현: .gitignore 가 tracks/** 인데도 중첩 레포가 gitlink 으로 스테이징된다"
80
+ else
81
+ ng "L1 결함이 재현 안 됨 — 스테이징된 gitlink: [$STAGED_MODE] (계기 오류: 이 가드의 전제가 성립 안 함)"
82
+ fi
83
+ RC=$(run_block "$O1")
84
+ if [ "$RC" = "1" ] && grep -q "nested repo staged as a gitlink under tracks/" "$T/out.txt"; then
85
+ ok "L2 BLOCK — tracks/ 밑 gitlink 에서 FAILED=1 이고 경로를 이름으로 댄다"
86
+ else
87
+ ng "L2 안 막았다 (FAILED=$RC)"; sed 's/^/ /' "$T/out.txt"
88
+ fi
89
+
90
+ # ── L3 known-negative: gitlink 이 없으면 통과. 「아무거나 막는 가드」가 아님을 박는다 ──
91
+ O3=$(new_outer o3) || { ng "L3 setup 실패"; }
92
+ echo y > "$O3/plain.txt"; ( cd "$O3" && git add plain.txt 2>/dev/null )
93
+ RC=$(run_block "$O3")
94
+ if [ "$RC" = "0" ] && grep -q "✅ PASS" "$T/out.txt"; then
95
+ ok "L3 known-negative: 평범한 파일만 스테이징되면 PASS (과차단 없음)"
96
+ else
97
+ ng "L3 gitlink 없는데 막았다 (FAILED=$RC)"; sed 's/^/ /' "$T/out.txt"
98
+ fi
99
+
100
+ # ── L4 비대칭 고정: tracks/ **밖** 의 gitlink 은 표면화하되 막지 않는다 ──
101
+ # 🟥 이 레인이 없으면 다음 사람이 「일관성」이라며 repo-wide 차단으로 «통일»하고, 그 순간
102
+ # 정당한 서브모듈이 과차단되어 --no-verify 를 훈련시킨다. 부재가 설계임을 여기서 박는다.
103
+ O4=$(new_outer o4) || { ng "L4 setup 실패"; }
104
+ mkdir -p "$O4/vendor"
105
+ mk_repo "$O4/vendor/dep" >/dev/null 2>&1 || { ng "L4 setup 실패(중첩)"; }
106
+ ( cd "$O4" && git add -A 2>/dev/null )
107
+ RC=$(run_block "$O4")
108
+ if [ "$RC" = "0" ] && grep -q "surfaced, not blocked" "$T/out.txt"; then
109
+ ok "L4 비대칭: tracks/ 밖 gitlink 은 표면화만 (차단 아님 — 부재가 설계다)"
110
+ else
111
+ ng "L4 tracks/ 밖 gitlink 처리가 규격과 다르다 (FAILED=$RC)"; sed 's/^/ /' "$T/out.txt"
112
+ fi
113
+
114
+ # ── L5 override 채널 — 검토된 경우에만, 그리고 조용하지 않게 ──
115
+ O5=$(new_outer o5) || { ng "L5 setup 실패"; }
116
+ mk_repo "$O5/tracks/_meta/bench/target2" >/dev/null 2>&1
117
+ ( cd "$O5" && git add -A 2>/dev/null )
118
+ RC=$( cd "$O5" && FAILED=0 && TRACKS_GITLINK_OK=1 . "$T/block.sh" >"$T/out.txt" 2>&1; echo "$FAILED" )
119
+ if [ "$RC" = "0" ] && grep -q "TRACKS_GITLINK_OK=1" "$T/out.txt"; then
120
+ ok "L5 override: TRACKS_GITLINK_OK=1 이면 통과하되 그 사실이 출력에 남는다"
121
+ else
122
+ ng "L5 override 채널이 규격과 다르다 (FAILED=$RC)"; sed 's/^/ /' "$T/out.txt"
123
+ fi
124
+
125
+ # ── L6 되돌림 프로브 — 가드를 떼면 L2 가 정확히 빨개진다 ──
126
+ # 🟥 적용 확인은 **의미**로 한다. 텍스트만 보면 무효 뮤턴트가 통과한다(2026-09-16 실측).
127
+ sed 's/GITLINK_BLOCKED=1; FAILED=1/GITLINK_BLOCKED=0/' "$T/block.sh" > "$T/block_neutered.sh"
128
+ if ! grep -q 'GITLINK_BLOCKED=0$' "$T/block_neutered.sh"; then
129
+ ng "L6 뮤턴트가 안 만들어졌다 (계기 오류)"
130
+ else
131
+ RC=$( cd "$O1" && FAILED=0 && . "$T/block_neutered.sh" >"$T/out.txt" 2>&1; echo "$FAILED" )
132
+ if [ "$RC" = "0" ]; then
133
+ ok "L6 되돌림: 차단을 떼면 같은 입력이 통과한다 (앵커 생존)"
134
+ else
135
+ ng "L6 차단을 뗐는데도 FAILED=$RC — 이 레인이 재는 것은 이 가드가 아니다"
136
+ fi
137
+ fi
138
+
139
+ echo
140
+ echo "── precommit-gitlink lanes: PASS=$PASS FAIL=$FAIL ──"
141
+ [ "$FAIL" -eq 0 ] || exit 1
142
+ exit 0
@@ -408,6 +408,137 @@ N23=$(python3 "$EXTRACT" "$T/tr23.jsonl" --min-chars 20 2>/dev/null | grep -c .)
408
408
  python3 "$EXTRACT" "$T/tr23.jsonl" --min-chars 20 2>/dev/null | grep -q "표시가 없는" && ok "L23b known-positive: 남은 것이 표시 없는 발화다" || ng "L23b 표시 없는 발화까지 버렸다"
409
409
  python3 "$EXTRACT" "$T/tr23.jsonl" --min-chars 20 2>/dev/null | grep -q "메타표시레코드\|사이드체인" && ng "L23c 표시된 레코드가 살아남았다" || ok "L23c 표시된 레코드는 없다 (known-negative)"
410
410
 
411
+ # ── L24 키 선택: 별칭 + 길이 대역 (2026-09-16) ──────────────────────────────
412
+ # WHY. 「가장 긴 토큰 3 개」 휴리스틱이 **붙여쓴 절**을 키로 고른다 — 절은 정의상 가장 길고
413
+ # 기록에 축자로 다시 나올 확률은 가장 낮다. 09-15 전사본 실측에서 미착지 고유 키 59 중
414
+ # ~42(71%)가 이 부류였고, 09-15 기록이 스스로 지목한 「음차 별칭」은 2~3(5%)뿐이었다.
415
+ # 그래서 수리는 두 축이다: ⓐ 표기 별칭(교대) ⓑ 한글 키 길이 대역 + 삼켜진 고유명사 꺼내기.
416
+ # 🟥 두 축이 **같이** 있어야 듣는다 — 각각은 ⌈n/2⌉ 를 못 넘긴다(한쪽만 켜면 키 3 중 1).
417
+ _probes() { # $1=발화 텍스트 → probes 의 TARGET 패턴들(한 줄에 하나)
418
+ printf '1\t2026-09-16T00:00:00Z\t%s\n' "$1" \
419
+ | "$SUT_PROBE_RUNNER" 2>/dev/null | awk -F'\t' '$1=="TARGET"{print $2}'
420
+ }
421
+ # mkprobes.py 를 SUT 에서 **그대로 뽑아** 돌린다 — 두 번째 사본을 쓰면 관대함이 갈린다
422
+ # ([[feedback_divergent_leniency_duplicate_normalizers]]).
423
+ awk "/^ cat > \"\\\$_py\" <<'PY'\$/{f=1;next} /^PY\$/{f=0} f" "$SUT" > "$T/mkprobes_sut.py"
424
+ if [ ! -s "$T/mkprobes_sut.py" ]; then
425
+ echo "❌ L24-setup mkprobes.py 추출 실패 — SUT 의 heredoc 앵커가 바뀌었다 (계기 오류)"
426
+ FAIL=$((FAIL+1))
427
+ else
428
+ SUT_PROBE_RUNNER="$T/run_mkprobes.sh"
429
+ { echo '#!/usr/bin/env bash'; echo "exec python3 \"$T/mkprobes_sut.py\" \"$T/l24.map\""; } > "$SUT_PROBE_RUNNER"
430
+ chmod +x "$SUT_PROBE_RUNNER"
431
+
432
+ # L24 별칭이 교대로 나간다 — `데스크탑` 키가 `Desktop` 도 본다
433
+ _probes '클로드 데스크탑앱에서 한번 테스트해봤는데 춘식이 반응이 움직이네' > "$T/l24.out"
434
+ grep -q 'Desktop' "$T/l24.out" \
435
+ && ok "L24 음차 별칭이 교대로 나간다 (데스크탑 → Desktop)" \
436
+ || ng "L24 별칭 교대 없음 — $(tr '\n' ' ' < "$T/l24.out")"
437
+
438
+ # L24b known-negative: 별칭표에 없는 일반어는 **맨 토큰 그대로** 나간다.
439
+ # 표를 일반어로 넓히면 우연 일치가 늘고, 이 검사는 advisory 라 거짓 착지가 조용한 쪽이다.
440
+ _probes '오늘은 그 배선을 확실하게 정리하고 나서 넘어가려고 한다 지금' > "$T/l24b.out"
441
+ grep -q '(' "$T/l24b.out" \
442
+ && ng "L24b 일반어에 교대가 붙었다 — 별칭표가 넓다: $(tr '\n' ' ' < "$T/l24b.out")" \
443
+ || ok "L24b known-negative: 별칭 없는 토큰은 맨 토큰 그대로"
444
+
445
+ # L24c 붙여쓴 절이 키 1군에서 밀린다 — `이건이미끝난것같은데`(10자) 는 대역 밖
446
+ _probes '이건이미끝난것같은데 담당팀에서 대기실 테스트 돌리는 중이고 배선도 끝났다' > "$T/l24c.out"
447
+ grep -qx '이건이미끝난것같은데' "$T/l24c.out" \
448
+ && ng "L24c 붙여쓴 절이 여전히 1군 키다 — 대역이 안 먹었다" \
449
+ || ok "L24c 붙여쓴 절(10자)이 대역 밖으로 밀린다"
450
+
451
+ # L24d 절에 삼켜진 고유명사를 꺼낸다 — `그리고프렌즈온데스크` → `프렌즈온데스크`
452
+ # 🟥 이게 없으면 별칭표가 토큰 경계를 못 넘어 무용지물이 된다(실측 미착지 4 건이 이 모양).
453
+ _probes '그리고프렌즈온데스크 릴리즈는 어제 판이라 다시 구워야 맞을 것 같은데' > "$T/l24d.out"
454
+ grep -q 'friends-on-desk' "$T/l24d.out" \
455
+ && ok "L24d 절에 삼켜진 고유명사를 꺼낸다 (그리고프렌즈온데스크 → 프렌즈온데스크)" \
456
+ || ng "L24d 삼켜진 고유명사 미추출 — $(tr '\n' ' ' < "$T/l24d.out")"
457
+
458
+ # L24e 긴 고유명사는 대역 상한의 **예외**다 — `프렌즈온데스크`(7자) 가 죽으면 안 된다.
459
+ # 길이 상한만 두면 실제로 착지하던 키가 같이 죽는다(대역의 부작용, 명시적으로 막는다).
460
+ _probes '프렌즈온데스크 쪽은 그대로 두고 나머지만 먼저 정리하자 오늘은' > "$T/l24e.out"
461
+ grep -q '프렌즈온데스크' "$T/l24e.out" \
462
+ && ok "L24e 별칭 등재 고유명사는 길이 상한 예외 (7자 생존)" \
463
+ || ng "L24e 긴 고유명사가 대역에 죽었다 — $(tr '\n' ' ' < "$T/l24e.out")"
464
+
465
+ # L24f 되돌림 프로브 — 별칭표를 비우면 L24/L24d 가 **정확히** 빨개진다.
466
+ # 🟥 앵커가 장식이 아님을 증명하는 유일한 방법이다([[feedback_anchor_can_be_decorative]]).
467
+ # 🟥 뮤테이션은 «텍스트가 바뀌었나» 가 아니라 «의미가 바뀌었나» 로 확인한다.
468
+ # 초판은 `ALIAS = {} or {`(파이썬에서 뒤 딕셔너리로 평가 = **무효 뮤턴트**)를 썼고,
469
+ # 텍스트 grep 은 통과했다. 그때 이 레인이 초록이었던 이유는 앵커가 살아서가 아니라
470
+ # **대상이 깨져 있어서**였다 — [[feedback_three_reasons_a_lane_is_green]] 의 ②.
471
+ sed 's/^_META = re.compile/ALIAS = {}\'$'\n''_META = re.compile/' "$T/mkprobes_sut.py" > "$T/mkprobes_neutered.py"
472
+ _applied=$(printf '1\t2026-09-16T00:00:00Z\t%s\n' '프렌즈온데스크 쪽은 그대로 두고 나머지만 먼저 정리하자 오늘' \
473
+ | python3 "$T/mkprobes_neutered.py" "$T/l24f0.map" 2>/dev/null | awk -F'\t' '$1=="TARGET"{print $2}')
474
+ case "$_applied" in
475
+ ''|*'friends-on-desk'*) ng "L24f 되돌림 **의미** 적용 실패 — 뮤턴트가 여전히 별칭을 낸다/죽었다 (계기 오류)" ;;
476
+ *)
477
+ _n_out=$(printf '1\t2026-09-16T00:00:00Z\t%s\n' '클로드 데스크탑앱에서 한번 테스트해봤는데 춘식이 반응이 움직이네' \
478
+ | python3 "$T/mkprobes_neutered.py" "$T/l24f.map" 2>/dev/null | awk -F'\t' '$1=="TARGET"{print $2}')
479
+ case "$_n_out" in
480
+ *Desktop*) ng "L24f 별칭표를 비웠는데도 Desktop 이 나온다 — 앵커가 장식이다" ;;
481
+ '') ng "L24f 뮤턴트가 출력 0 — 되돌림이 스크립트를 죽였다(레인 무효)" ;;
482
+ *)
483
+ # 🟥 L24d 의 되돌림도 같이 본다 (cross-family codex, B2). 초판은 `Desktop` 소멸만 봐서
484
+ # 「삼켜진 고유명사 추출이 죽는가」는 **검증하지 않았다** — 레인 주석이 주장하는 범위와
485
+ # 실제 검사 범위가 어긋난 자리다([[feedback_rule_misdescribes_its_own_machine]]).
486
+ _n_d=$(printf '1\t2026-09-16T00:00:00Z\t%s\n' '그리고프렌즈온데스크 릴리즈는 어제 판이라 다시 구워야 맞을 것 같은데' \
487
+ | python3 "$T/mkprobes_neutered.py" "$T/l24f2.map" 2>/dev/null | awk -F'\t' '$1=="TARGET"{print $2}')
488
+ case "$_n_d" in
489
+ *friends-on-desk*|*'|'*) ng "L24f 뮤턴트인데 삼켜진 고유명사 추출이 살아 있다" ;;
490
+ '') ng "L24f 뮤턴트 출력 0 (레인 무효)" ;;
491
+ *) ok "L24f 되돌림: 교대 **와** 삼켜진-고유명사 추출이 함께 사라진다 (앵커 생존)" ;;
492
+ esac
493
+ ;;
494
+ esac
495
+ ;;
496
+ esac
497
+
498
+ # L24g ALIAS 값에 ERE 메타문자가 섞이면 **죽는다** — 조용히 거르지 않는다.
499
+ # 정규식으로 새면 TARGET 의 의미가 바뀌고, 그건 「미착지」가 아니라 계기 고장이다.
500
+ sed "s/^ '오르카':.*/ '오르카': ['or(ca'],/" "$T/mkprobes_sut.py" > "$T/mkprobes_meta.py"
501
+ printf '1\t2026-09-16T00:00:00Z\t%s\n' '오르카 워크트리를 하나 더 띄워서 거기서 돌리자 오늘' \
502
+ | python3 "$T/mkprobes_meta.py" "$T/l24g.map" >/dev/null 2>&1
503
+ [ "$?" -eq 10 ] \
504
+ && ok "L24g ALIAS 에 ERE 메타문자 → rc=10 (계기 고장이지 미착지가 아니다)" \
505
+ || ng "L24g 메타문자가 조용히 통과했다"
506
+
507
+ # L24h A1 회귀 — 포함 일치일 때 **짧은 한글 이름**이 교대에 들어가면 안 된다.
508
+ # `(데스크탑앱|데스크탑|Desktop)` 은 더 흔한 `데스크탑` 으로 착지를 성립시킨다 =
509
+ # 조용한 거짓 착지. 교대가 날라야 하는 것은 **표기 변형**이지 더 넓은 한국어 낱말이 아니다.
510
+ _probes '클로드 데스크탑앱에서 한번 테스트해봤는데 춘식이 반응이 움직이네' > "$T/l24h.out"
511
+ if grep -q 'Desktop' "$T/l24h.out" && ! grep -qE '\(데스크탑앱\|데스크탑\|' "$T/l24h.out"; then
512
+ ok "L24h A1: 포함 일치 교대에 짧은 한글 이름이 없다 (Desktop 만 더한다)"
513
+ else
514
+ ng "L24h A1 회귀 — $(tr '\n' ' ' < "$T/l24h.out")"
515
+ fi
516
+
517
+ # L24i B1 회귀 — 부분 문자열 충돌. `오픈코드리뷰` 는 `오픈코드`(opencode) 가 아니다.
518
+ # 남는 쪽(`리뷰`)이 허용 접미사가 아니므로 교대를 붙이지 않는다.
519
+ _probes '오픈코드리뷰 기준은 여기서 따로 정하자 오늘 우리끼리' > "$T/l24i.out"
520
+ grep -q 'opencode' "$T/l24i.out" \
521
+ && ng "L24i B1 회귀 — `오픈코드리뷰` 를 opencode 로 오인했다: $(tr '\n' ' ' < "$T/l24i.out")" \
522
+ || ok "L24i B1: 부분 문자열 충돌(오픈코드리뷰)에 교대를 안 붙인다"
523
+
524
+ # L24i-b known-positive 짝 — 허용 접미사는 **여전히 붙어야** 한다. 없으면 L24i 는
525
+ # 「아무것도 안 붙인다」로도 초록이 되어 판별력이 없다.
526
+ _probes '데스크탑앱 쪽 설정만 먼저 보고 나머지는 내일 정리하자 오늘은' > "$T/l24ib.out"
527
+ grep -q 'Desktop' "$T/l24ib.out" \
528
+ && ok "L24i-b known-positive: 허용 접미사(앱)는 여전히 교대가 붙는다" \
529
+ || ng "L24i-b 경계 방어가 정상 파생어까지 죽였다 — $(tr '\n' ' ' < "$T/l24ib.out")"
530
+
531
+ # L24j A2 회귀 — 3 개를 넘겨 잘린 키를 **센다**. 「미측정을 0 으로」 접지 않는다.
532
+ # 대역 정렬이 들어오면서 붙여쓴 하중 절이 체계적으로 잘리게 됐고, 그 드롭이 조용하면
533
+ # 남은 흔한 셋으로 발화가 「착지」로 렌더된다 = 이 수리가 만든 fail-open.
534
+ _drop=$(printf '1\t2026-09-16T00:00:00Z\t%s\n' '절대자동승격하지마라 담당팀 대기실 배선도 테스트 먼저 보자 오늘' \
535
+ | "$SUT_PROBE_RUNNER" 2>&1 >/dev/null | grep -o '키드롭=[0-9]*')
536
+ case "$_drop" in
537
+ 키드롭=0|'') ng "L24j A2: 드롭이 0 으로 보고됐다 (조용한 드롭) — [$_drop]" ;;
538
+ *) ok "L24j A2: 잘린 키를 센다 ($_drop)" ;;
539
+ esac
540
+ fi
541
+
411
542
  echo
412
543
  echo "── utterance-intake lanes: PASS=$PASS FAIL=$FAIL ──"
413
544
  [ "$FAIL" -eq 0 ] || exit 1
@@ -181,6 +181,96 @@ this that with from have been will your about would should could there which the
181
181
  path host tmp home HOME
182
182
  then than when what where because those these into over under more most only just'''.split())
183
183
 
184
+ # ── 고유명사 별칭 + 길이 대역 ────────────────────────────────────────────────
185
+ # 🟥 **왜 「가장 긴 것 3 개」 만으로는 안 되나** (2026-09-16 실측, 09-15 전사본 × 그날 기록).
186
+ # 운영자는 붙여쓴다 — `이건이미끝난것같은데` · `지난히스토리봐서알겠지`. 한글 토큰화는
187
+ # 공백에서만 끊기므로 **절 하나가 토큰 하나**가 되고, 그것은 **정의상 가장 길면서**
188
+ # 기록에 축자로 다시 나타날 확률이 **가장 낮다.** 즉 길이 정렬이 최악의 키를 적극적으로
189
+ # 고른다. 미착지 고유 키 59 건을 눈으로 분류했을 때 ~42(71%)가 이 부류였다.
190
+ #
191
+ # 🟥 **그런데 길이 상한만 두면 진짜 고유명사가 같이 죽는다** — `프렌즈온데스크`(7)·
192
+ # `클로드온데스크`(7) 는 길지만 **기록에 그대로 나타나고 실제로 착지하던** 키다.
193
+ # 그래서 상한에 **별칭표 예외**를 건다: 표에 있는 이름은 길이와 무관하게 키가 된다.
194
+ #
195
+ # 🟥 **비순환 조건 — 표는 «기록» 이 아니라 손으로 얼린 어휘다.** 과잉 일반화를 막으려고
196
+ # 고유명사/도구명만 넣는다. `하네스` · `커밋` 같은 일반어를 넣으면 우연 일치가 늘고,
197
+ # 이 검사는 advisory 라 **거짓 착지가 조용한 방향**이다(미착지는 시끄럽다).
198
+ # 표에서 뽑은 후보를 기록에서 찾아 채우는 것은 **금지** — 그건 정의상 항상 맞는다.
199
+ KEY_MIN_KO, KEY_MAX_KO = 3, 6 # 한글 키 길이 대역. 초과분은 2군(3 개를 못 채울 때만)
200
+
201
+ # 표기 변형. 키(대표 표기) → 같이 볼 표기들. 값에 ERE 메타문자를 넣지 않는다(아래에서 검증).
202
+ ALIAS = {
203
+ '클로드코드': ['Claude Code', 'claude-code'],
204
+ '클로드온데스크': ['clawd-on-desk', 'Clawd on Desk'],
205
+ '프렌즈온데스크': ['friends-on-desk', 'Friends on Desk'],
206
+ '오픈코드': ['opencode'],
207
+ '데스크탑': ['Desktop'],
208
+ '코덱스': ['Codex'],
209
+ '텔레그램': ['Telegram', '텔레그렘'],
210
+ '컴퓨터유즈': ['computer use', 'computer-use', '컴퓨터 유즈'],
211
+ '거버넌스엔지니어링': ['governance engineering', '거버넌스 엔지니어링'],
212
+ '워크트리': ['worktree'],
213
+ '오르카': ['orca', 'Orca'],
214
+ '춘식이': ['chunsik'],
215
+ }
216
+ # 🟥 메타문자 검증 — 값이 정규식으로 새면 TARGET 의 의미가 바뀐다. 조용히 거르지 않고 죽는다.
217
+ _META = re.compile(r'[.^$*+?()\[\]{}|\\]')
218
+ for _k, _vs in ALIAS.items():
219
+ for _v in _vs:
220
+ if _META.search(_v):
221
+ sys.stderr.write("FATAL: ALIAS 값에 ERE 메타문자: %s\n" % _v)
222
+ sys.exit(10)
223
+
224
+ # 긴 것부터 — `클로드온데스크` 가 `클로드` 보다 먼저 걸려야 한다.
225
+ _ALIAS_KEYS = sorted(ALIAS, key=len, reverse=True)
226
+
227
+ # 🟥 **부분 문자열만 보면 다른 낱말을 도구명으로 오인한다** (cross-family codex, A/B1):
228
+ # `오픈코드리뷰` 는 `오픈코드`(opencode) 가 아니다. 그래서 «남는 쪽» 을 본다 — 앞에 붙은
229
+ # 것은 접속어, 뒤에 붙은 것은 짧은 파생 접미사일 때만 같은 지시대상으로 인정한다.
230
+ # 🟥 목록은 **작고 언 판단**이다. 못 알아보면 **교대를 안 붙일 뿐**이라 실패가
231
+ # 조용한 쪽(거짓 착지)이 아니라 시끄러운 쪽(미착지)으로 떨어진다 — 그래서 허용한다.
232
+ _LEAD_OK = ('그리고', '그래서', '근데', '그런데', '그', '이', '저', '그럼')
233
+ _TAIL_OK = ('앱', '쪽', '판', '건', '용', '들', '팀')
234
+
235
+ def alias_extract(tok):
236
+ """붙여쓴 절에 삼켜진 고유명사를 꺼낸다. 없으면 None.
237
+ `그리고프렌즈온데스크` → `프렌즈온데스크`. 기록을 안 보므로 순환하지 않는다."""
238
+ for name in _ALIAS_KEYS:
239
+ if name == tok or name not in tok:
240
+ continue
241
+ i = tok.index(name)
242
+ lead, tail = tok[:i], tok[i + len(name):]
243
+ if lead and lead not in _LEAD_OK:
244
+ continue
245
+ if tail and tail not in _TAIL_OK:
246
+ continue
247
+ return name
248
+ return None
249
+
250
+ def key_pattern(key):
251
+ """TARGET 의 정규식. 별칭이 있으면 교대, 없으면 맨 토큰 그대로.
252
+ 🟥 교대는 «같은 것의 다른 표기» 안에서만 쓴다 — 서로 다른 낱말을 OR 로 묶으면
253
+ 1/3 이 «전부 착지» 로 렌더된다(그래서 키마다 한 행이라는 기존 규약은 그대로다)."""
254
+ # 정확 일치가 없으면 **포함**도 본다 — 키가 `데스크탑앱` 인데 표에는 `데스크탑` 만
255
+ # 있는 형태. 🟥 이때 키를 짧게 바꾸지 않고 **교대에 더하기만** 한다: 키를 깎으면
256
+ # 한글 쪽 특이도가 떨어져 우연 일치(조용한 거짓 착지)가 늘어난다.
257
+ exact = key in ALIAS
258
+ name = key if exact else alias_extract(key)
259
+ if not name:
260
+ return key
261
+ # 🟥 **포함 일치일 때는 짧은 한글 이름을 교대에 넣지 않는다** (cross-family codex, A1).
262
+ # 초판은 `(데스크탑앱|데스크탑|Desktop)` 를 냈는데, 그러면 더 짧고 흔한 `데스크탑` 으로
263
+ # 착지가 성립한다 — 「키를 안 깎는다」는 주석과 정반대 효과였다
264
+ # ([[feedback_rule_misdescribes_its_own_machine]]). 교대가 나르는 것은 **표기 변형**
265
+ # (라틴/오타)이지 «더 넓은 한국어 낱말» 이 아니다.
266
+ members = [key] + ALIAS[name] if not exact else [key] + ALIAS[key]
267
+ return "(" + "|".join(list(dict.fromkeys(members))) + ")"
268
+
269
+ def band_ok(s):
270
+ if re.match(r'^[\uac00-\ud7a3]+$', s):
271
+ return KEY_MIN_KO <= len(s) <= KEY_MAX_KO or s in ALIAS
272
+ return True
273
+
184
274
  def strip_particle(tok):
185
275
  if not re.match(r'^[\uac00-\ud7a3]+$', tok):
186
276
  return tok
@@ -191,6 +281,7 @@ def strip_particle(tok):
191
281
 
192
282
  n_rows = 0
193
283
  n_unprobeable = 0
284
+ n_dropped = 0
194
285
  for line in sys.stdin:
195
286
  line = line.rstrip('\n')
196
287
  if not line:
@@ -216,8 +307,28 @@ for line in sys.stdin:
216
307
  seen.add(s)
217
308
  cand.append(s)
218
309
  # 가장 긴 것부터 3 개. 동률은 먼저 나온 것(발화 앞쪽이 대개 주제어).
219
- cand.sort(key=lambda s: -len(s))
220
- keys = cand[:3]
310
+ # 붙여쓴 절에 삼켜진 고유명사를 꺼내 **대신** 세운다(원본 절은 어차피 안 맞는다).
311
+ pulled = []
312
+ for s in cand:
313
+ if band_ok(s):
314
+ pulled.append(s)
315
+ continue
316
+ got = alias_extract(s)
317
+ pulled.append(got if (got and got not in pulled) else s)
318
+ cand = pulled
319
+ # 1군 = 대역 안(또는 별칭 등재) · 2군 = 붙여쓴 절. 2군은 3 개를 못 채울 때만 쓴다 —
320
+ # 버리지 않는다(«프로브불가» 로 접으면 미측정을 0 으로 렌더하는 쪽이 된다).
321
+ tier1 = [s for s in cand if band_ok(s)]
322
+ tier2 = [s for s in cand if not band_ok(s)]
323
+ tier1.sort(key=lambda s: -len(s))
324
+ tier2.sort(key=lambda s: -len(s))
325
+ ordered = tier1 + tier2
326
+ keys = ordered[:3]
327
+ # 🟥 **드롭을 센다** (cross-family codex, A2). `[:3]` 자체는 종전부터 있었지만, 대역 정렬이
328
+ # 들어오면서 «붙여쓴 하중 절»이 **체계적으로** 잘리는 쪽으로 바뀌었다 — `절대자동승격하지마라`
329
+ # 같은 키가 사라지고 남은 흔한 셋으로 발화가 「착지」로 렌더되면 그건 내가 만든 fail-open 이다.
330
+ # 막을 수는 없다(축자로 다시 안 나타나는 것은 사실이니까). 대신 **조용하지 않게** 만든다.
331
+ n_dropped += len(ordered) - len(keys)
221
332
  if not keys:
222
333
  # 프로브를 만들 수 없는 발화 — **버리지 않고 센다**(not found != 0).
223
334
  n_unprobeable += 1
@@ -228,11 +339,11 @@ for line in sys.stdin:
228
339
  # (codex finding 1). Keys are bare tokens ([가-힣]+ / [A-Za-z0-9_]+): no ERE metacharacters,
229
340
  # never dash-first, so the landing checker reads them as literals.
230
341
  for k_i, key in enumerate(keys, 1):
231
- print("TARGET\t%s\t#%s.%d/%d %s" % (key, idx, k_i, len(keys), text[:36]))
342
+ print("TARGET\t%s\t#%s.%d/%d %s" % (key_pattern(key), idx, k_i, len(keys), text[:36]))
232
343
  MAP.write("%s\t%s\t%s\t%d\n" % (idx, label, text[:60], len(keys)))
233
344
  n_rows += 1
234
345
  MAP.close()
235
- sys.stderr.write("probe utterances=%d · 프로브불가=%d\n" % (n_rows, n_unprobeable))
346
+ sys.stderr.write("probe utterances=%d · 프로브불가=%d · 키드롭=%d\n" % (n_rows, n_unprobeable, n_dropped))
236
347
  PY
237
348
  python3 "$_py" "$1"
238
349
  }
@@ -360,6 +360,53 @@ else
360
360
  echo " ✅ PASS"
361
361
  fi
362
362
 
363
+ # ── Nested-repo gitlink guard — a submodule entry BYPASSES .gitignore ─────────
364
+ # 🟥 WHY THIS IS NOT COVERED BY THE BLOCK ABOVE. That one reads `--name-only`, which lists a
365
+ # gitlink by path like any file — so a `tracks/` gitlink would be caught by it. What it does NOT
366
+ # cover is the reason a gitlink gets staged at all: **`.gitignore` does not apply to a nested
367
+ # repository.** `tracks/**` ignores every file under `tracks/`, but a directory containing its own
368
+ # `.git` is offered to the index as a mode-160000 entry regardless, so `git add -A` stages it while
369
+ # the author believes the whole subtree is ignored. Measured 2026-09-16 on
370
+ # `tracks/_meta/dominance_bench_B/recovered_2026-09-09/benchB/target_repo_O` (a benchmark's target
371
+ # repo, whose git history IS the evidence and must not be deleted): `git add -A --dry-run` staged it.
372
+ #
373
+ # 🟥 SAME ROOT AS THE SYNC DEFECT, DIFFERENT SURFACE. A nested `.git` under `tracks/` also made
374
+ # `sync-to-be.sh`'s destination-newer guard abort falsely four times (fixed separately). That one was
375
+ # noisy; this one is silent — a gitlink committed to a public repo points at a URL the clone cannot
376
+ # fetch, and nothing in the commit output says so.
377
+ #
378
+ # SCOPE, deliberately narrow. Under `tracks/` a gitlink is provably wrong (the lane is local-only),
379
+ # so it BLOCKS. Anywhere else this repo has no submodules today, but declaring that a defect would
380
+ # over-block a legitimate future one — and a gate that over-blocks trains `--no-verify`, which
381
+ # disarms the Destructive-Op gate living in this same hook. So elsewhere it SURFACES and proceeds.
382
+ # Override for a reviewed case: TRACKS_GITLINK_OK=1 (same channel shape as TRACKS_PUBLIC_OK).
383
+ echo "[Privacy] nested-repo gitlink..."
384
+ GITLINK_BLOCKED=0; GITLINK_SEEN=0
385
+ while IFS= read -r p; do
386
+ [ -z "$p" ] && continue
387
+ GITLINK_SEEN=1
388
+ case "$p" in
389
+ tracks/*)
390
+ if [ "${TRACKS_GITLINK_OK:-0}" = "1" ]; then
391
+ echo " ⚠️ gitlink under tracks/ allowed by TRACKS_GITLINK_OK=1: $p"
392
+ else
393
+ echo " ❌ FAIL — nested repo staged as a gitlink under tracks/: $p"
394
+ GITLINK_BLOCKED=1; FAILED=1
395
+ fi ;;
396
+ *)
397
+ echo " ⚠️ gitlink staged outside tracks/ (surfaced, not blocked): $p" ;;
398
+ esac
399
+ done <<GITLINK_EOF
400
+ $(git -c core.quotePath=false diff --cached --raw --no-renames --diff-filter=ACMR 2>/dev/null | awk -F'\t' '$1 ~ / 160000 / {print $2}')
401
+ GITLINK_EOF
402
+ if [ "$GITLINK_BLOCKED" -eq 1 ]; then
403
+ echo " A gitlink records a commit SHA in another repository — a clone cannot fetch it, so the"
404
+ echo ' content is lost while the tree still looks complete. .gitignore never applies to it.'
405
+ echo " Fix: git rm --cached <path> (the working directory and its history stay untouched)."
406
+ elif [ "$GITLINK_SEEN" -eq 0 ]; then
407
+ echo " ✅ PASS"
408
+ fi
409
+
363
410
  # ── Confidentiality guard — public-surface scan on staged tracked content ─────
364
411
  # A commit to a PUBLIC repo is an effective PUBLISH of its content, so the confidentiality boundary is
365
412
  # checked here as well as at push/publish. Pattern loading and matching come from