@chrono-meta/fh-gate 2.10.0 → 2.11.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,13 +11,13 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "2.10.0",
14
+ "version": "2.11.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": "2.10.0",
20
+ "version": "2.11.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
  }
@@ -2579,3 +2579,84 @@
2579
2579
  `notify_when_idle` + 발주 카드 보고 의무 3줄로 대응(일회성·세션 수명 한정, 미해결)."
2580
2580
  cost: "서브에이전트 토큰(완료 알림 기준): 워크플로 796,649 + 개별 합 약 2.3M · 거버너 = UNMEASURED.
2581
2581
  🟥 합계 안 적는다 — 거버너 칸이 미측정이라 총액은 만들 수 없다."
2582
+
2583
+ - date: 2026-08-24
2584
+ session: governor
2585
+ agents: "격리 레인 6(harvest 0-b/0-c · harvest 1/2 · digest 후속 · curator · qasp Ⓐ · D-5)
2586
+ + 워크플로 1(에이전트 10, §미정-둘 처방 판정) + 적대검증 4(challenger ×3, cross-family codex ×4)
2587
+ + 플로어 sim 6런(ETHOS ablation, 레포 밖 cwd 헤드리스). 훅 집계 205 dispatch."
2588
+ purpose: "harvest-loop · frontier-digest 후속 · §미정-둘 처방 판정 · qasp Ⓐ 시맨틱 발화조건 이식
2589
+ · D-5 러너 표면 index 전환 · 릴리스 2.10.0"
2590
+ outcome: accepted
2591
+ evidence: "PR #530·#531·#532·#533 머지 · npm 2.10.0 발행(npx + clean-install 실행 검증) ·
2592
+ qasp-dev PR #199 생성(restricted-env 판단 대기) · §미정-둘 PROSE-ONLY 로 닫힘(신규 자산 0건)"
2593
+ note: "🟥 **자력 적발 2 / 타력 11.** 값을 낸 축은 전부 「받는 것이 다른 축」이었다 —
2594
+ 적대검증 5(selfcheck 배선이 필수체크 적색 · qasp kwargs 로 restricted-env adapter 사망 · findings 채널
2595
+ 오배치 · ⓑ 실효 0 · 계열≠축을 내가 접은 것) · cross-family 4(rc≠0 fail-open · 반쪽 index ·
2596
+ isfile 누수 · -z 무름) · 계측 1(ETHOS ablation 이 「넣지 마라」) · **운영자 1**(카드 재작성이
2597
+ 미완 항목을 통째로 날린 것).
2598
+ 🟥 **수렴 벡터를 세었고 뒤집히는 것을 봤다** — FH D-5 `3→1→0→2→0`, qasp `S2→축소→12`.
2599
+ 축소가 「덜 나오게」를 보장하지 않았고, 옳은 수는 또 줄이는 게 아니라 **되돌리는 것**이었다
2600
+ (finish_reason 수리: 앵커 0 · 소비처 0 · 새 결함 2건 → 철회).
2601
+ 🟥 **계열≠축을 내가 한 번 접었다** — 외부 계열이 residency 로 막히자 축까지 포기했는데,
2602
+ 같은 계열이되 다른 축(코드 직독 + 소비처 grep + 더블/실물 대조)이 S-tier 2건을 냈다.
2603
+ 접힌 방향이 내게 편한 쪽이었다는 것까지 같은 계열이다.
2604
+ 🟥 **마지막에 내 산출물에는 되돌림을 안 돌렸다** — 카드 재작성이 미완 항목을 날렸고
2605
+ 이전 버전이 companion store 에 커밋돼 있었는데도 대조하지 않았다. 계기를 남에게만 쓰고
2606
+ 자기에겐 안 쓴 형태. ⇒ ⑤-C 프로브로 기계화(PR #533)."
2607
+ cost: "서브에이전트 토큰(완료 알림 기준): 워크플로 1,605,708 + 개별 레인 합 약 1.9M ·
2608
+ 거버너 = UNMEASURED. 🟥 합계 안 적는다 — 거버너 칸이 미측정이라 총액은 만들 수 없다."
2609
+
2610
+ - date: 2026-08-25
2611
+ session: governor (m3max)
2612
+ agents: "GeekNews 제목·도입부 패턴 실측 레인 1(코퍼스 354건 전수 크롤) + ko-tech-writer
2613
+ 강격리 콜드리드 5라운드(레포 밖 cwd 헤드리스, ARM/CONTROL 각 1) + 컨트롤 arm 1.
2614
+ 훅 집계 99 dispatch."
2615
+ purpose: "GeekNews Show GN 게시 본문 작성·검증 · 외부 기여 전수 실측 · 기록 정정"
2616
+ outcome: accepted
2617
+ evidence: "게시 완료 news.hada.io/topic?id=32868 (T0 13:11 KST) · ko-tech-writer 5라운드
2618
+ 수렴(신규 0·변경 0) · 번역투 판정이 «있음»→«없음» 으로 뒤집힘 · 외부 기여 4건 gh 실측"
2619
+ note: "🟥 **레인이 낸 값은 「우리 근거가 이식 안 된다」였다.** 레딧 코퍼스에서 제목 숫자가
2620
+ +124% 였는데 GeekNews 도입부 숫자는 0.69x 로 역방향이다. 같은 「숫자」인데 코퍼스가 다르면
2621
+ 방향이 바뀐다 — 잰 범위와 주장 범위 문제의 또 다른 얼굴.
2622
+ 🟥 **콜드리드 컨트롤이 판별력을 증명했다** — 심은 결함(소유 직역)을 정확히 잡았고,
2623
+ 그래서 ARM 의 지적도 신뢰할 수 있었다. 컨트롤 없이 돌렸으면 「지적 없음」을 못 믿었다.
2624
+ 🟥 **수리가 새 결함을 두 번 만들었다**(전칭 단정 · 122자 문장). 둘 다 재스캔에서 잡혔다 —
2625
+ ko-tech-writer 가 「수리본 기준 재스캔」을 의무로 박아둔 것이 값을 했다.
2626
+ ⚠️ 자력 3 / 타력 1 — 운영자가 `revfactory` 라는 GitHub 계정명을 대기 전까지 내 grep 이
2627
+ 그 자산(감사 3건 + 메모리)에 도달하지 못했다. 질의어가 색인 어휘와 안 겹쳤다."
2628
+ cost: "서브에이전트 토큰: 크롤 레인 163,332 · 콜드리드 6런은 헤드리스라 미집계 ·
2629
+ 거버너 = UNMEASURED. 🟥 합계 안 적는다."
2630
+ - date: 2026-08-26
2631
+ session: governor (m3max)
2632
+ agents: "qasp P1 이슈 초안 소넷 레인 3(#207·#208·#206) + persona-innovator 1(#206 명명) +
2633
+ 블라인드 실행 sim 1(러너 §1.0, 소넷) + codex 사이드카 1(#208 적대리뷰, read-only) +
2634
+ S1 손분류 레인 1(FH §미정-둘 ⓑ)"
2635
+ purpose: "qasp Protocol #1 이슈 3건 완주(거버너 적용·레인 초안) · FH §미정-둘 후속"
2636
+ outcome: accepted
2637
+ evidence: "qasp PR #209·#210·#211 MERGED · codex 발견 3건 전부 실수리(파이프라인 배선 ·
2638
+ 문자열 정규화 · 표 감사성) · innovator 가 레인 후보 2개(국면·유형)를 반증하고 「범주」 채택 ·
2639
+ 블라인드 sim 이 갱신 §1.0 정확 실행 확인"
2640
+ note: "🟥 레인 초안을 거버너가 그대로 적용 안 한 것이 값을 냈다 — #206 은 innovator 반증으로
2641
+ 이름이 바뀌었고, #208 은 운영자 개입(PFD 재접지 + 기기 축)으로 「철회」가 「근거 교체」로
2642
+ 뒤집혔다. 이슈 서술을 믿고 철회 문안까지 갔던 건 거버너 결함(운영자 적발).
2643
+ 🟥 뮤턴트 복원에 git checkout -- 을 써 미커밋 수정 전량 삭제(자력 적발, 손실 0 재적용) —
2644
+ 이후 「테스트 통과 즉시 커밋」으로 전환."
2645
+ cost: "서브에이전트 토큰: 207레인 150,442 · 208레인 232,080 · 206레인 194,869 ·
2646
+ innovator 124,490 · 블라인드 sim 131,421 · codex 80,827 · S1 레인 진행중 · 거버너 = UNMEASURED.
2647
+ 🟥 합계 안 적는다."
2648
+ - date: 2026-08-26
2649
+ session: governor-overnight (ifkakao deck, fable)
2650
+ agents: "persona-innovator 1(디자이너 리뷰 프랙티스 WebSearch 조사) + 디자이너 렌즈 claude 5
2651
+ (구간 4: pg1-18/19-36/37-52/53-69 이미지 콜드리드 + A4 전장 일관성 1) + challenger 1(33건 적대검증)"
2652
+ purpose: "발표덱 디자이너 페르소나 렌즈 신설·실행 — 운영자 지시(청중이 아니라 직업 디자이너,
2653
+ 세계의 검증된 프랙티스 접목) 하 야간 자율주행"
2654
+ outcome: accepted
2655
+ evidence: "조사가 초안 5축의 갭 2개를 적발(측정형 WCAG 축 · 다크모드 결함군) → 7축 확정.
2656
+ 렌즈 33건 → challenger 채택15·수정3·보류7·기각5. 표지 제목·부제 물리 겹침(판독불가급)을
2657
+ 렌즈가 적발 — 기존 5렌즈 체제가 못 잡던 것. 렌즈 독립 수렴 2건(pg-01, pg-28/58).
2658
+ 기각 5건 전부 의도 자리 방어(낭독 리빌·deixis·상수 주체) = 관측·처방 분리 규율 재실증"
2659
+ note: "A6(대비)은 에이전트에 안 맡기고 기계 실측(known-pair 캘리브레이션)해 렌즈 입력으로 줌 —
2660
+ 판정형 렌즈와 측정형 계기의 분업. 자산화 = presentation_checklist.md E8 + DESIGNER_LENS_SPEC"
2661
+ cost: "서브에이전트 토큰: innovator 106,633 · 렌즈 5기 142,822+144,393+153,394+143,104+141,564 ·
2662
+ challenger 140,657 · 거버너 = UNMEASURED. 🟥 합계 안 적는다."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "2.10.0",
3
+ "version": "2.11.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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "2.10.0",
3
+ "version": "2.11.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": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -379,6 +379,14 @@ Re-run back-trace for S-grade blocker claims after fixes are complete. Activate
379
379
 
380
380
  > **Template**: See `SKILL_detail.md §Report-Template` — full completion declaration format — read when producing the final audit summary.
381
381
 
382
+ **Zero-finding declaration names its axes (2026-08-26).** A pass reporting **0 phantoms** must state
383
+ *which claim classes were traced* (e.g. `0건 (추적 축: 경로 참조 · 인용 · 버전 주장 — 외부 fetch 미실행)`),
384
+ never a bare `0건`. «Looked and found nothing» and «looked along one axis» are different claims, and
385
+ a bare zero collapses them — the same discipline the 4-axis marker's `axes-run:` imposes («silence
386
+ is not zero — write `none`»). External replication that motivated the field: the 2026-08-25 frontier
387
+ digest's edgelog measurement (a "no findings" round still yielded new issues from a different
388
+ perspective). One field, existing vocabulary, no new gate.
389
+
382
390
  ---
383
391
 
384
392
  ## Connected Skills
@@ -318,6 +318,7 @@ Process prescription:
318
318
  ## phantom-quench Complete
319
319
 
320
320
  Audit scope: {artifact file} / source {N files}
321
+ Axes traced: {claim classes actually traced — e.g. 경로 참조 · 인용 · 버전 주장} / not run: {e.g. 외부 fetch(Step 2-E)}
321
322
  {N} total claims audited
322
323
 
323
324
  Result summary:
@@ -54,6 +54,16 @@ A designer's anxiety is most dangerous when vague. steel-quench breaks that anxi
54
54
 
55
55
  > **Detail**: See `SKILL_detail.md §Phase0` — counterexample calibration full spec (pattern extraction from an external bad case, merge rules into Wave 1) — read when an external bad case is supplied.
56
56
 
57
+ **Zero-finding wave names its angles (2026-08-26).** A wave reported as clean (0 new findings) must
58
+ state *which attack angles actually ran and which did not* (e.g. `clean (돌린 각: #1 단순대안 · #3
59
+ 실사용 — #5 미실행)`), never a bare "clean". A clean round means «these angles found nothing», not
60
+ «nothing is there» — a different perspective can still find new issues (externally replicated:
61
+ edgelog ~400-call measurement, 2026-08-25 digest, finding ⓔ). Same discipline as the marker's
62
+ `axes-run:` — silence is not zero. **This is a record requirement, not a new termination rule**: the
63
+ §Convergence Criteria verdict (zero new S/A + no repairs) is unchanged — what changes is that an
64
+ unnamed clean round is an *incomplete record*, so a reader auditing convergence can see which angles
65
+ each clean round actually covered instead of assuming all of them ran.
66
+
57
67
  ---
58
68
 
59
69
  ## Step 0.3 — Artifact Vulnerability Profile
@@ -566,5 +566,93 @@ CARD_LINE_EOF
566
566
  [ "$DRIFT_HITS" -eq 0 ] && echo "✅ ⑤-b no card absence-claim contradicted by on-disk artifacts"
567
567
  fi
568
568
 
569
+ # ⑤-C CARRY-OVER probe — 카드 재작성이 «아직 안 온 기한» 을 날렸는가.
570
+ # WHY (2026-08-24, 실측 손실 1건): ⑤ 재작성이 delta update 가 아니라 새로 쓰기가 되어 미완·
571
+ # 시각박힌 항목이 통째로 사라졌다 — 그날 저녁 19:00 게시, 다음날 GeekNews, 14일 referrer 측정,
572
+ # 08-26 미팅. 세션은 "BEFORE 172 → AFTER 101" 이라는 diff 를 출력하고도 «줄었다» 만 말하고
573
+ # «무엇이 빠졌나» 는 보지 않았다. 운영자가 물어서 발견 — 자력 아니다.
574
+ # 🟥 이것은 tier 문제가 아니라 WIRING 문제다. 카드 규율(§Session Wrap-up)은 「완료 항목이
575
+ # 남는 게 버그」라고 한 방향만 적고 있고, 그 역방향(미완이 사라지는 것)은 검사가 0줄이었다.
576
+ # 규율이 한 방향만 적혀 있으면 그 반대는 안 보인다. base op 이 살리언스에만 얹혀 있었으므로
577
+ # sonnet_floor_doctrine §tier-gated base op = defect 에 해당한다 — N 을 세기 전에 닫는다.
578
+ #
579
+ # WHAT IT ASSERTS (채널이지 결론이 아니다 — CLAUDE.md §Mechanization Boundary):
580
+ # 「이전 카드에 있던 **미래 날짜**가 오늘 카드나 오늘 fh_completed 에 여전히 나타나는가」
581
+ # = 기록의 성질(존재·귀속). 「이 항목을 지워도 되는가」는 **판정하지 않는다** — 그건 판단이고
582
+ # 얼리면 오늘의 판단이 내일의 천장이 된다. 완료 처리했으면 fh_completed 에 날짜가 남으므로
583
+ # 그 경로로 통과한다.
584
+ #
585
+ # HONEST SCOPE:
586
+ # · 판별자는 `YYYY-MM-DD` / `MM-DD` 토큰뿐이다. 날짜 없이 적힌 미완(«4090 부팅 UNKNOWN»)은
587
+ # 구조적으로 못 잡는다 — 앵커지 floor 가 아니다.
588
+ # · 이전 카드는 companion store 의 git 이력에서 온다. 그게 없는 install(대부분의 소비자)에서는
589
+ # **SKIP 이고 PASS 가 아니다** — 미측정을 초록으로 접지 않는다.
590
+ # · ASCII 클래스만 쓴다. 다국어 RANGE 를 bracket 안에 넣으면 C 로케일 GNU grep 이
591
+ # `Invalid collation character` 로 exit 2 하고 **아무것도 안 뱉는다** → no-match 와 구분 불가
592
+ # (⑤-b 가 2026-07-31 에 정확히 그렇게 무음 통과했다).
593
+ # DEGRADE: 이전 카드 못 구함 → SKIP(미측정 표기) · 구했는데 미래날짜 유실 → FAIL=1.
594
+ # FAIL 은 FH_SESSION_CLOSE=1 인 close push 만 막고 일반 push 는 surface 한다(가역 표면 규율).
595
+ # 과차단 시 override: FH_CARRYOVER_OK=1 (무엇을 우회했는지 출력에 남는다).
596
+ # 기본값을 두지 않는다 — companion store 의 이름은 install 마다 다르고, 특정 이름을 공개
597
+ # 파일에 박으면 그 자체가 operator-private 토큰이다(이 줄은 실제로 그렇게 한 번 차단됐다).
598
+ # 설정은 각자의 로컬 바인딩에서 FH_COMPANION_STORE 로 준다.
599
+ _CARRY_STORE="${FH_COMPANION_STORE:-}"
600
+ _CARRY_MIRROR="tracks-meta/reference_next_session_starter.md"
601
+ if [ ! -f "$CARD" ]; then
602
+ : # ⑤ 가 이미 카드 부재를 FAIL 로 보고했다 — 여기서 중복 보고하지 않는다
603
+ elif [ "${FH_CARRYOVER_OK:-0}" = "1" ]; then
604
+ echo "⚠️ ⑤-C SKIPPED by FH_CARRYOVER_OK=1 — 이전 카드의 미래-날짜 유실 검사를 우회했다"
605
+ elif [ -z "$_CARRY_STORE" ] || [ ! -d "$_CARRY_STORE/.git" ]; then
606
+ echo "⬜ ⑤-C SKIPPED (not PASS) — companion store 미설정/부재 (FH_COMPANION_STORE). 이전 카드를 못 구해 UNMEASURED"
607
+ else
608
+ _TODAY_YMD=$(date +%Y-%m-%d)
609
+ # 오늘 이전에 기록된 마지막 카드 버전. 오늘자 sync 커밋들은 이미 재작성본이라 제외한다.
610
+ _PRIOR_SHA=$(git -C "$_CARRY_STORE" log --before="${_TODAY_YMD}T00:00:00" -1 --format=%H -- "$_CARRY_MIRROR" 2>/dev/null || true)
611
+ if [ -z "$_PRIOR_SHA" ]; then
612
+ echo "⬜ ⑤-C SKIPPED (not PASS) — 오늘 이전 카드 버전이 이력에 없다 (첫 세션?) — UNMEASURED"
613
+ else
614
+ _PRIOR_CARD=$(git -C "$_CARRY_STORE" show "$_PRIOR_SHA:$_CARRY_MIRROR" 2>/dev/null || true)
615
+ if [ -z "$_PRIOR_CARD" ]; then
616
+ echo "⬜ ⑤-C SKIPPED (not PASS) — 이전 카드를 읽지 못했다 ($_PRIOR_SHA) — UNMEASURED"
617
+ else
618
+ # 이전 카드의 날짜 토큰 중 «오늘 이상» 인 것만. YYYY-MM-DD 와 MM-DD 둘 다 본다.
619
+ _TODAY_MD=$(date +%m-%d)
620
+ _FUTURE_DATES=$(printf '%s\n' "$_PRIOR_CARD" \
621
+ | grep -oE '20[0-9]{2}-[0-9]{2}-[0-9]{2}|(^|[^0-9])[01][0-9]-[0-3][0-9]([^0-9]|$)' 2>/dev/null \
622
+ | grep -oE '20[0-9]{2}-[0-9]{2}-[0-9]{2}|[01][0-9]-[0-3][0-9]' 2>/dev/null \
623
+ | sort -u | while IFS= read -r d; do
624
+ # bash 3.2(macOS)는 $( ) 안의 case 패턴 ')' 를 오파싱한다 — 길이로 가른다
625
+ _ref="$_TODAY_MD"
626
+ if [ ${#d} -eq 10 ]; then _ref="$_TODAY_YMD"; fi
627
+ if [ "$d" = "$_ref" ]; then printf '%s\n' "$d"
628
+ elif [ "$d" \> "$_ref" ]; then printf '%s\n' "$d"
629
+ fi
630
+ done)
631
+ _LOST=0
632
+ if [ -n "$_FUTURE_DATES" ]; then
633
+ _TODAY_LOG="$FH/tracks/_meta/fh_completed_${_TODAY_YMD}.md"
634
+ while IFS= read -r d; do
635
+ [ -z "$d" ] && continue
636
+ if grep -qF "$d" "$CARD" 2>/dev/null; then continue; fi
637
+ if [ -f "$_TODAY_LOG" ] && grep -qF "$d" "$_TODAY_LOG" 2>/dev/null; then continue; fi
638
+ _CTX=$(printf '%s\n' "$_PRIOR_CARD" | grep -F "$d" | head -1 | cut -c1-90)
639
+ echo "❌ ⑤-C carry-over 유실: 이전 카드의 미래 기한 '$d' 가 오늘 카드에도 fh_completed 에도 없다"
640
+ echo " 이전 카드 원문: $_CTX"
641
+ _LOST=$((_LOST+1))
642
+ done <<CARRY_EOF
643
+ $_FUTURE_DATES
644
+ CARRY_EOF
645
+ fi
646
+ if [ "$_LOST" -gt 0 ]; then
647
+ echo " ⇒ ⑤ 는 delta update 다. 완료면 fh_completed 에 적고, 이월이면 카드에 남겨라."
648
+ echo " 정당하게 취소된 항목이면: FH_CARRYOVER_OK=1 FH_SESSION_CLOSE=1 git push"
649
+ FAIL=1
650
+ else
651
+ echo "✅ ⑤-C 이전 카드의 미래 기한이 전부 카드/완료로그에 살아 있다 (prior=${_PRIOR_SHA%%??????????????????????????????????})"
652
+ fi
653
+ fi
654
+ fi
655
+ fi
656
+
569
657
  echo "── close check: $([ "$FAIL" -eq 0 ] && echo CONSISTENT || echo VIOLATIONS) ──"
570
658
  exit "$FAIL"
@@ -256,6 +256,99 @@ else
256
256
  fi
257
257
  rm -rf "$T"
258
258
 
259
+
260
+ # ─────────────────────────────────────────────────────────────────────────────
261
+ # ⑤-C CARRY-OVER lanes — 카드 재작성이 «아직 안 온 기한» 을 날렸는가.
262
+ #
263
+ # WHY (2026-08-24, 실측 손실 1건 — 이 레인이 그 결함의 회귀 앵커다): ⑤ 재작성이 delta update 가
264
+ # 아니라 새로 쓰기가 되어 미완·시각박힌 항목이 통째로 사라졌다(그날 저녁 게시, 다음날 GeekNews,
265
+ # 14일 referrer 측정, 08-26 미팅). 세션은 "BEFORE 172 → AFTER 101" 이라는 diff 를 내고도
266
+ # «줄었다» 만 말하고 «무엇이 빠졌나» 는 보지 않았다. 운영자가 물어서 발견 — 자력 아니다.
267
+ # 🟥 tier 문제가 아니라 WIRING 문제였다: 카드 규율은 「완료 항목이 남는 게 버그」라고 한 방향만
268
+ # 적고, 그 역방향은 검사가 0줄이었다. base op 이 살리언스에만 얹혀 있었으므로
269
+ # sonnet_floor_doctrine §tier-gated base op = defect.
270
+ #
271
+ # Lanes (각각 게이트가 옳게 판정해야 하는 결정이지 스모크가 아니다):
272
+ # ⑤-C-N 이전 카드의 미래 기한이 오늘 카드에 없음 → ❌ MUST fire (유실 지목)
273
+ # ⑤-C-P 그 기한이 오늘 카드에 살아 있음 → ✅ must NOT fire (오탐 없음)
274
+ # ⑤-C-L 카드엔 없지만 오늘 fh_completed 에 있음 → ✅ 완료 처리 경로로 통과
275
+ # (「이 항목을 지워도 되나」를 판정하지 않는다 — 채널 검사지 결론 검사가 아니다)
276
+ # ⑤-C-S companion store 부재 → ⬜ SKIPPED, **초록 아님**
277
+ # (not-found ≠ 0. 미측정을 PASS 로 접으면 이 프로브 전체가 장식이 된다)
278
+ #
279
+ # 🟥 픽스처는 «뚫리는 표기» 로 고른다: 미래 날짜를 **MM-DD 축약형** 으로 둔다. YYYY-MM-DD 만
280
+ # 잡는 반쪽 구현은 ⑤-C-N 에서 통과해버린다 — 실제 카드가 「08-26 미팅」처럼 축약형을 쓴다.
281
+ _carry_fixture() { # $1=오늘카드 본문 $2=fh_completed 본문(빈 문자열=파일 없음) → "REPO|STORE"
282
+ local card_body="$1" done_body="$2" T S FUT
283
+ T=$(mktemp -d); S=$(mktemp -d)
284
+ ( cd "$T" && git init -q . && git config user.email a@l && git config user.name a \
285
+ && echo x > unrelated.txt && git add -A && git commit -qm fixture ) >/dev/null 2>&1
286
+ mkdir -p "$T/tracks/_meta"
287
+ printf '%s\n' "$card_body" > "$T/tracks/_meta/reference_next_session_starter.md"
288
+ [ -n "$done_body" ] && printf '%s\n' "$done_body" > "$T/tracks/_meta/fh_completed_${TODAY}.md"
289
+ # companion store: 어제 날짜로 커밋된 «이전 카드» 미러 하나
290
+ FUT=$(date -v+2d '+%m-%d' 2>/dev/null || date -d '+2 days' '+%m-%d')
291
+ ( cd "$S" && git init -q . && git config user.email a@l && git config user.name a \
292
+ && mkdir -p tracks-meta \
293
+ && printf '기한 %s 미팅 안건 [B]\n' "$FUT" > tracks-meta/reference_next_session_starter.md \
294
+ && git add -A \
295
+ && GIT_AUTHOR_DATE='2020-01-01T00:00:00' GIT_COMMITTER_DATE='2020-01-01T00:00:00' \
296
+ git commit -qm prior ) >/dev/null 2>&1
297
+ printf '%s|%s' "$T" "$S"
298
+ }
299
+ _carry_future() { date -v+2d '+%m-%d' 2>/dev/null || date -d '+2 days' '+%m-%d'; }
300
+
301
+ _carry_lane() { # $1=name $2=pattern $3=expect $4="REPO|STORE" $5=extra-env(옵션)
302
+ local name="$1" pat="$2" expect="$3" pair="$4" env5="${5:-}" T S out hit
303
+ T="${pair%%|*}"; S="${pair##*|}"
304
+ if [ ! -d "$T/tracks/_meta" ] || [ ! -d "$S/.git" ]; then
305
+ echo "❌ $name — FIXTURE ERROR: 픽스처가 안 만들어졌다"
306
+ PREMISE_FAILED=1; rm -rf "$T" "$S"; return
307
+ fi
308
+ if [ -n "$env5" ]; then
309
+ out=$(env "$env5" FH_COMPANION_STORE="$S" bash "$CHECK" "$T" 2>/dev/null)
310
+ else
311
+ out=$(FH_COMPANION_STORE="$S" bash "$CHECK" "$T" 2>/dev/null)
312
+ fi
313
+ hit=0; printf '%s\n' "$out" | grep -q "$pat" && hit=1
314
+ rm -rf "$T" "$S"
315
+ if [ "$hit" = "$expect" ]; then
316
+ echo "✅ $name (hit=$hit, expected=$expect)"
317
+ else
318
+ echo "❌ $name — hit=$hit, expected=$expect"
319
+ printf '%s\n' "$out" | grep '⑤-C' | sed 's/^/ /'
320
+ FAILED=1
321
+ fi
322
+ }
323
+
324
+ _CF=$(_carry_future)
325
+ _carry_lane "⑤-C-N 미래 기한 유실 → 지목한다" "❌ ⑤-C carry-over 유실" 1 \
326
+ "$(_carry_fixture '# card' '')"
327
+ _carry_lane "⑤-C-P 기한이 카드에 살아있음 → 조용" "❌ ⑤-C carry-over 유실" 0 \
328
+ "$(_carry_fixture "# card
329
+ 이월: $_CF 미팅 안건 [B]" '')"
330
+ _carry_lane "⑤-C-L 완료로그에 있음 → 통과" "❌ ⑤-C carry-over 유실" 0 \
331
+ "$(_carry_fixture '# card' "- ✅ $_CF 미팅 — 취소 확정")"
332
+
333
+ # ⑤-C-S: companion store 부재는 SKIPPED 여야 하고 **✅ 여서는 안 된다**.
334
+ _T4=$(mktemp -d)
335
+ ( cd "$_T4" && git init -q . && git config user.email a@l && git config user.name a \
336
+ && echo x > u.txt && git add -A && git commit -qm f ) >/dev/null 2>&1
337
+ mkdir -p "$_T4/tracks/_meta"; printf '# card\n' > "$_T4/tracks/_meta/reference_next_session_starter.md"
338
+ _out4=$(FH_COMPANION_STORE=/tmp/__no_such_store__ bash "$CHECK" "$_T4" 2>/dev/null)
339
+ if printf '%s\n' "$_out4" | grep -q '⬜ ⑤-C SKIPPED (not PASS)'; then
340
+ if printf '%s\n' "$_out4" | grep -q '✅ ⑤-C'; then
341
+ echo "❌ ⑤-C-S SKIPPED 인데 ✅ 도 같이 찍었다 — 미측정을 초록으로 접고 있다"; FAILED=1
342
+ else
343
+ echo "✅ ⑤-C-S companion store 부재 → SKIPPED(not PASS), 초록 아님"
344
+ fi
345
+ else
346
+ echo "❌ ⑤-C-S store 부재를 SKIPPED 로 표기하지 않았다 — not-found 를 0 으로 렌더한다"
347
+ printf '%s\n' "$_out4" | grep '⑤-C' | sed 's/^/ /'
348
+ FAILED=1
349
+ fi
350
+ rm -rf "$_T4"
351
+
259
352
  # Premise failure is reported FIRST and with its own exit code: it says "this run's verdicts are
260
353
  # meaningless", which is a different instruction to the reader than "the gate is broken". Collapsing
261
354
  # them into one red X is what made the original CI flake unreadable.
@@ -267,5 +360,5 @@ if [ "$FAILED" -ne 0 ]; then
267
360
  echo "SESSION-CLOSE LANES: FAIL — the gate's instrument is miscalibrated"
268
361
  exit 1
269
362
  fi
270
- echo "SESSION-CLOSE LANES: PASS (8/8)"
363
+ echo "SESSION-CLOSE LANES: PASS (12/12)"
271
364
  exit 0
@@ -1936,14 +1936,30 @@ if [ -n "$LOADBEARING" ]; then
1936
1936
  done <<< "$LOADBEARING"
1937
1937
  # The grep filter is KEPT even though the scan is now scoped: the scanner emits summary lines
1938
1938
  # ("degrade-scan: N smell(s) …") that name no file, and those must not read as findings.
1939
- _dd=$(bash "$DDSCAN" "${_dd_targets[@]}" 2>/dev/null \
1940
- | grep -Ff <(printf '%s\n' "$LOADBEARING") 2>/dev/null | head -5 || true)
1939
+ # 🟥 2026-08-26 fail-open fix (§미정-둘 ⓐ): the old one-liner (`… 2>/dev/null | grep … || true`)
1940
+ # collapsed "scanner errored / left files unmeasured" (rc≠0, incl. its own
1941
+ # `exit "${_FORCE_NONCLEAN:-0}"` = 안 쟀다 ≠ 깨끗하다) into an empty string, and the else-branch
1942
+ # printed "✅ no smell" — the scanner's own defect class, committed by its caller. Capture rc
1943
+ # first; rc≠0 still shows any partial findings but never prints the clean checkmark.
1944
+ # rc alone cannot separate the states: the scanner exits 2 BOTH for "smells found" (a normal
1945
+ # advisory result, :542) and for "files could not be measured" (_FORCE_NONCLEAN=2, :548) —
1946
+ # codex cross-family catch on the first draft of this fix, which printed "DID NOT complete"
1947
+ # for a completed scan that merely found smells. Discriminate by the output markers.
1948
+ _dd_raw=$(bash "$DDSCAN" "${_dd_targets[@]}" 2>/dev/null); _dd_rc=$?
1949
+ _dd=$(printf '%s\n' "$_dd_raw" | grep -Ff <(printf '%s\n' "$LOADBEARING") 2>/dev/null | head -5 || true)
1950
+ _dd_unm=$(printf '%s\n' "$_dd_raw" | grep -c "COULD NOT BE MEASURED" || true); _dd_unm=${_dd_unm:-0}
1951
+ if [ "$_dd_unm" -gt 0 ]; then
1952
+ echo " ⚠️ degrade lint: some file(s) COULD NOT BE MEASURED — NOT-SCANNED is not clean. Advisory: does not block."
1953
+ fi
1941
1954
  if [ -n "$_dd" ]; then
1942
1955
  echo " ⚠️ degrade-direction smell(s) in the staged load-bearing files (advisory):"
1943
1956
  printf '%s\n' "$_dd" | sed 's/^/ /'
1944
1957
  echo " Each = 'prove this is not default-toward-PASS'. Advisory: does not block."
1945
- else
1958
+ elif [ "$_dd_rc" -eq 0 ]; then
1946
1959
  echo " ✅ degrade lint: no smell in the staged load-bearing files"
1960
+ elif [ "$_dd_unm" -eq 0 ]; then
1961
+ echo " ⚠️ degrade lint rc=${_dd_rc} with no staged-file finding — scanner error, or findings outside"
1962
+ echo " the staged set. NOT a clean pass. Advisory: does not block."
1947
1963
  fi
1948
1964
  else
1949
1965
  echo " ⚠️ degrade lint unavailable (scripts/degrade_direction_scan.sh missing) — advisory leg skipped"