@chrono-meta/fh-gate 2.9.1 → 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.
- package/.claude-plugin/marketplace.json +2 -2
- package/README.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/docs/ETHOS.md +5 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +81 -0
- package/package.json +1 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +35 -0
- package/plugins/fh-meta/skills/phantom-quench/SKILL.md +8 -0
- package/plugins/fh-meta/skills/phantom-quench/SKILL_detail.md +1 -0
- package/plugins/fh-meta/skills/steel-quench/SKILL.md +10 -0
- package/scripts/lane_runner_check.sh +257 -9
- package/scripts/package_coverage_check.sh +6 -0
- package/scripts/selfcheck.sh +1 -0
- package/scripts/session_close_check.sh +88 -0
- package/scripts/test_session_close_lanes.sh +94 -1
- package/templates/.git-hooks/pre-commit +19 -3
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "2.
|
|
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.
|
|
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
|
}
|
package/README.ja.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
|
+
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
7
8
|
<img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code">
|
|
8
9
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
9
10
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
@@ -19,7 +20,6 @@
|
|
|
19
20
|
</p>
|
|
20
21
|
|
|
21
22
|
<p align="center">
|
|
22
|
-
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/mascot.png" alt="" width="120" align="left" style="margin-right:16px">
|
|
23
23
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
24
24
|
</p>
|
|
25
25
|
<p align="center">
|
|
@@ -353,7 +353,7 @@ Project B ──→ CLAUDE.md でハブを接続
|
|
|
353
353
|
**3段工程** — これはメニューではなく*投資の順序*です:
|
|
354
354
|
|
|
355
355
|
```mermaid
|
|
356
|
-
flowchart
|
|
356
|
+
flowchart TD
|
|
357
357
|
S["① 判断回路<br/>設計の前に"]
|
|
358
358
|
P["② 並列脱相関<br/>中間で"]
|
|
359
359
|
B["③ 焼き切る<br/>6つの軸で"]
|
|
@@ -597,7 +597,7 @@ forge-harness はプロジェクトを鋼のように扱い、この比喩は装
|
|
|
597
597
|
> 高くつく嘘なので、名前は残し、役割だけをここで正します。
|
|
598
598
|
|
|
599
599
|
```mermaid
|
|
600
|
-
flowchart
|
|
600
|
+
flowchart TD
|
|
601
601
|
F["鍛え<br/>① 魂"] --> Q["焼き入れ<br/>② 並列脱相関"] --> T["焼き戻し<br/>③ 6軸"] --> A(["⟹ 加速"])
|
|
602
602
|
style A fill:#0f766e,stroke:#0f766e,color:#fff
|
|
603
603
|
```
|
package/README.ko.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
|
+
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
7
8
|
<img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code">
|
|
8
9
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
9
10
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
@@ -19,7 +20,6 @@
|
|
|
19
20
|
</p>
|
|
20
21
|
|
|
21
22
|
<p align="center">
|
|
22
|
-
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/mascot.png" alt="" width="120" align="left" style="margin-right:16px">
|
|
23
23
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
24
24
|
</p>
|
|
25
25
|
<p align="center">
|
|
@@ -348,7 +348,7 @@ Project B ──→ CLAUDE.md에서 허브 연결
|
|
|
348
348
|
**3단 공정** — 이것은 메뉴가 아니라 *투자의 순서*입니다:
|
|
349
349
|
|
|
350
350
|
```mermaid
|
|
351
|
-
flowchart
|
|
351
|
+
flowchart TD
|
|
352
352
|
S["① 설계 전에<br/>판단 회로"]
|
|
353
353
|
P["② 중간은<br/>병렬 탈상관"]
|
|
354
354
|
B["③ 마무리<br/>6축 태우기"]
|
|
@@ -633,7 +633,7 @@ forge-harness는 프로젝트를 강철처럼 다루고, 이 은유는 장식이
|
|
|
633
633
|
> 은유를 맞추자고 출하된 스킬 이름을 바꾸는 게 더 비싼 거짓말이라, 이름은 두고 역할만 여기 바로잡습니다.
|
|
634
634
|
|
|
635
635
|
```mermaid
|
|
636
|
-
flowchart
|
|
636
|
+
flowchart TD
|
|
637
637
|
F["벼림 Forge<br/>① 영혼"] --> Q["담금질 Quench<br/>② 병렬 탈상관"] --> T["뜨임 Temper<br/>③ 6축"] --> A(["⟹ 가속"])
|
|
638
638
|
style A fill:#0f766e,stroke:#0f766e,color:#fff
|
|
639
639
|
```
|
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
|
+
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
7
8
|
<img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code">
|
|
8
9
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
9
10
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
@@ -21,7 +22,6 @@
|
|
|
21
22
|
</p>
|
|
22
23
|
|
|
23
24
|
<p align="center">
|
|
24
|
-
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/mascot.png" alt="" width="120" align="left" style="margin-right:16px">
|
|
25
25
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
26
26
|
</p>
|
|
27
27
|
<p align="center">
|
|
@@ -380,7 +380,7 @@ harness is actually used.
|
|
|
380
380
|
**The three-stage process** — this is an *order of investment*, not a menu:
|
|
381
381
|
|
|
382
382
|
```mermaid
|
|
383
|
-
flowchart
|
|
383
|
+
flowchart TD
|
|
384
384
|
S["① Circuit<br/>before design"]
|
|
385
385
|
P["② Parallel decorrelation<br/>in the middle"]
|
|
386
386
|
B["③ Burn it down<br/>on six axes"]
|
|
@@ -649,7 +649,7 @@ hardened by attack, and only then does it ship faster, for having survived.
|
|
|
649
649
|
> the names stay and the roles are stated correctly here.
|
|
650
650
|
|
|
651
651
|
```mermaid
|
|
652
|
-
flowchart
|
|
652
|
+
flowchart TD
|
|
653
653
|
F["Forge<br/>① circuit"] --> Q["Quench<br/>② parallel"] --> T["Temper<br/>③ six axes"] --> A(["⟹ Accelerate"])
|
|
654
654
|
style A fill:#0f766e,stroke:#0f766e,color:#fff
|
|
655
655
|
```
|
package/README.zh.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
|
+
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
7
8
|
<img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code">
|
|
8
9
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
9
10
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
@@ -19,7 +20,6 @@
|
|
|
19
20
|
</p>
|
|
20
21
|
|
|
21
22
|
<p align="center">
|
|
22
|
-
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/mascot.png" alt="" width="120" align="left" style="margin-right:16px">
|
|
23
23
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
24
24
|
</p>
|
|
25
25
|
<p align="center">
|
|
@@ -328,7 +328,7 @@ Project B ──→ 在 CLAUDE.md 中连接中枢
|
|
|
328
328
|
**三段工序** —— 这是一个 *投入的顺序*,不是一份菜单:
|
|
329
329
|
|
|
330
330
|
```mermaid
|
|
331
|
-
flowchart
|
|
331
|
+
flowchart TD
|
|
332
332
|
S["① 立坐标系<br/>设计之前"]
|
|
333
333
|
P["② 并行去相关<br/>中段"]
|
|
334
334
|
B["③ 烧一遍<br/>六条轴上"]
|
|
@@ -561,7 +561,7 @@ forge-harness 把项目当作钢来对待,而这个隐喻是字面的,不是
|
|
|
561
561
|
> 是更昂贵的谎言;因此名字留着,只在这里把角色说清楚。
|
|
562
562
|
|
|
563
563
|
```mermaid
|
|
564
|
-
flowchart
|
|
564
|
+
flowchart TD
|
|
565
565
|
F["锻造 Forge<br/>① 回路"] --> Q["淬火 Quench<br/>② 并行去相关"] --> T["回火 Temper<br/>③ 六轴"] --> A(["⟹ 加速 Accelerate"])
|
|
566
566
|
style A fill:#0f766e,stroke:#0f766e,color:#fff
|
|
567
567
|
```
|
package/docs/ETHOS.md
CHANGED
|
@@ -9,6 +9,11 @@ optimizes for *whether the work holds up*, not how fast it leaves the building.
|
|
|
9
9
|
asks "how quickly can the agent ship?", FH asks "what survives a cold, independent pass?" — and makes
|
|
10
10
|
running that pass routine instead of a chore you skip.
|
|
11
11
|
|
|
12
|
+
A note on the word: "harness" is also used, commonly and correctly, for the *runtime
|
|
13
|
+
substrate* — prompts, tools, the agentic loop, the adapter across models. FH uses it for
|
|
14
|
+
what that substrate is **for**: turning intent into machinery you can hold someone to.
|
|
15
|
+
The substrate sense is a layer FH sits on, not a rival definition.
|
|
16
|
+
|
|
12
17
|
Everything below is **copyable**. None of it is a secret. The principles are the product.
|
|
13
18
|
|
|
14
19
|
---
|
|
@@ -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.
|
|
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": {
|
|
@@ -8,6 +8,41 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
### [2.10.0] — 2026-08-24
|
|
12
|
+
|
|
13
|
+
**BREAKING (gate)**: `lane_runner_check` 가 러너 표면을 워킹트리가 아니라 **git index** 로
|
|
14
|
+
판정한다. clone 트리에서 untracked 러너에 기대던 레인은 이제 DEBT 로 뜬다 — 그 초록은
|
|
15
|
+
clone 을 못 넘는 것이었다. **처방**: 그 러너를 `git add` 하거나 EXEMPT 로 선언한다.
|
|
16
|
+
npm 설치본(`node_modules`, gitignored)은 `outside-index` 분기로 디스크 폴백하므로 무변경.
|
|
17
|
+
|
|
18
|
+
#### Fixed
|
|
19
|
+
- **러너 표면 index 전환** (`lane_runner_check.sh` · `script_caller_ratchet.sh`) — 러너 이름과
|
|
20
|
+
본문 둘 다 index 기준(`ls-files` + `cat-file --batch` 단일 프로세스). 실패는 전부 UNMEASURED:
|
|
21
|
+
git 없음 · 깨진 index · `ls-files` rc≠0 · blob 아님 · 조기 종료 · 짧은 본문. 빈 결과로 접는
|
|
22
|
+
경로 0개. 「git 아님」과 「git 실패」는 `.git` 상향 탐색으로 분리한다(판별자 자신의 실패 대비).
|
|
23
|
+
🟥 **모집단(검사 대상)은 그대로 디스크 기준** — 그쪽 글롭은 untracked 를 *잡는* 안전 방향이고,
|
|
24
|
+
함께 바꾸면 새 스크립트가 조용히 모집단에서 빠진다. 위험 방향이 반대인 두 글롭을 갈랐다.
|
|
25
|
+
- dotfile parity: 세그먼트 선행 dot 가드로 `glob.glob` 원래 동작 유지(리터럴 dot 디렉터리 무영향)
|
|
26
|
+
|
|
27
|
+
#### Added
|
|
28
|
+
- `scripts/test_runner_surface_index_lanes.sh` — 32레인, 되돌림 앵커 6그룹(enum·state·dot·
|
|
29
|
+
content·isfile·nul). 각 앵커가 자기 그룹만 적색임을 실행으로 확인
|
|
30
|
+
- `.github/workflows/new-code-anchor.yml` + 체커/레인을 tracked 로 — 종전엔 untracked 라
|
|
31
|
+
CI 에서 한 번도 돌지 않았다. 이 릴리스부터 PR 마다 돈다(필수 체크는 아니다)
|
|
32
|
+
|
|
33
|
+
#### Docs
|
|
34
|
+
- `docs/ETHOS.md` — "harness" 라는 낱말에 대한 한 문단. 🟥 넣기 전에 쟀고 **계측은 「넣지 마라」**
|
|
35
|
+
였다(플로어 티어 블라인드, CONTROL 3/3 이 문장 없이도 두 뜻을 알았다). 운영자 판정으로 넣었고
|
|
36
|
+
그 사실을 커밋에 남겼다 — taste 층이다
|
|
37
|
+
|
|
38
|
+
#### Notes
|
|
39
|
+
- cross-family 4라운드, 신규 S/A 벡터 `3 → 1 → 0 → 2 → 0`. R3 에서 뒤집힌 것 자체를 마커에
|
|
40
|
+
남겼다 — 라운드마다 새 코드가 새 결함을 낳았고, 5라운드는 「조이지 말고 줄여라」로 안 돌렸다
|
|
41
|
+
- 잔여: `outside-index` 트리에서는 이 보호가 꺼진다(라벨만) · `LOCAL_ONLY_SURFACES` 는 디스크
|
|
42
|
+
기준(의도) · `GIT_DIR`/`GIT_WORK_TREE` 명시 배치 미측정 · `check-ignore` 부재는 fail-closed
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
11
46
|
### [2.9.1] — 2026-08-23
|
|
12
47
|
|
|
13
48
|
**자릿수 근거 (patch)**: 수정 · 배선 · 표시자료. 행동을 바꾸는 교리도 새 게이트 클래스도 없다.
|
|
@@ -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
|
|
@@ -270,8 +270,97 @@ fi
|
|
|
270
270
|
# treats an EMPTY array's expansion as an unbound variable and aborts. DEBT is now empty by design,
|
|
271
271
|
# which is exactly the state the plain form cannot survive — measured here 2026-08-13, and it
|
|
272
272
|
# aborted so early that the script still printed PASS (see the rc routing further down).
|
|
273
|
+
# -- RUNNER SURFACE = THE GIT INDEX, NOT THE WORKING TREE (D-5, 2026-08-24) --------------------
|
|
274
|
+
# An UNTRACKED file must never certify anything as WIRED. Until this fix the RUNNER globs below
|
|
275
|
+
# were resolved against the DISK, so a workflow / hook / script that existed only in this working
|
|
276
|
+
# copy counted as a caller -- and the tree read green on wiring that disappears on `git clone`.
|
|
277
|
+
#
|
|
278
|
+
# The POPULATION globs (what gets CHECKED) stay on DISK on purpose. There an untracked file must
|
|
279
|
+
# be SEEN, so a new uncommitted script goes red instead of slipping through. Only the RUNNER
|
|
280
|
+
# surface moves to the index; moving both would trade one silent pass for another.
|
|
281
|
+
#
|
|
282
|
+
# 🟥 "NOT A REPOSITORY" AND "GIT FAILED" ARE DIFFERENT FACTS AND MUST NOT SHARE A BRANCH.
|
|
283
|
+
# The first draft of this block folded EVERY non-zero `git ls-files` exit into "no index here, use
|
|
284
|
+
# the disk". Cross-family review (codex/gpt-5.5, 2026-08-24) executed the consequence: a fake `git`
|
|
285
|
+
# that exits 1 for everything produced a warning line and then a PASS. A missing binary, a locked
|
|
286
|
+
# or corrupt index, and a permission failure all landed on the SAME branch as an unpacked npm
|
|
287
|
+
# tarball -- so the repair against "green that a clone deletes" had installed a fresh green of its
|
|
288
|
+
# own. That is [[feedback_not_found_is_not_zero_family]] wearing this file's colours, and the
|
|
289
|
+
# asymmetry was backwards: an EMPTY result was routed to UNMEASURED while a FAILED one was routed
|
|
290
|
+
# to a pass.
|
|
291
|
+
#
|
|
292
|
+
# So the state is resolved by POSITIVE questions, in order, and only the answers that are actually
|
|
293
|
+
# established are allowed to reach the disk fallback:
|
|
294
|
+
# git absent / `git --version` non-zero -> UNMEASURED (the instrument, not the tree)
|
|
295
|
+
# rev-parse fails AND a .git exists up-chain -> UNMEASURED (git broke inside a repo)
|
|
296
|
+
# rev-parse fails AND no .git anywhere up-chain-> nongit (an unpacked tarball: disk is right)
|
|
297
|
+
# inside a git dir with no work tree -> nongit
|
|
298
|
+
# in a work tree, `git ls-files` non-zero -> UNMEASURED (locked/corrupt index, permissions)
|
|
299
|
+
# in a work tree, ls-files empty, cwd ignored -> outside-index (a package unpacked INSIDE some
|
|
300
|
+
# other repo -- the index cannot answer for it,
|
|
301
|
+
# and blocking every such install would just
|
|
302
|
+
# train the override)
|
|
303
|
+
# in a work tree, ls-files empty, cwd tracked -> UNMEASURED (an empty index is not zero runners)
|
|
304
|
+
# otherwise -> index
|
|
305
|
+
# 🟥 The discriminator can itself fail, and when it does the answer is UNMEASURED -- never "not a
|
|
306
|
+
# repository". That is why the .git walk-up exists: it is a filesystem fact that needs no working
|
|
307
|
+
# git, so "git could not tell us" and "there is genuinely nothing here" stay separable.
|
|
308
|
+
#
|
|
309
|
+
# 🟥 `git ls-files` into a file, then `$?` on its OWN line. No pipe, no `|| true`: a fallback would
|
|
310
|
+
# hand an empty list to the scan and the scan would render it as "no runners".
|
|
311
|
+
_fh_has_dotgit_upchain() {
|
|
312
|
+
local _d; _d="$(pwd -P)"
|
|
313
|
+
while : ; do
|
|
314
|
+
[ -e "$_d/.git" ] && return 0
|
|
315
|
+
[ "$_d" = "/" ] && return 1
|
|
316
|
+
_d="$(dirname "$_d")"
|
|
317
|
+
done
|
|
318
|
+
}
|
|
319
|
+
FH_INDEX_STATE="UNMEASURED"; FH_INDEX_WHY="not determined"; FH_INDEX_FILE_LIST=""
|
|
320
|
+
if ! command -v git >/dev/null 2>&1; then
|
|
321
|
+
FH_INDEX_WHY="git is not on PATH -- the index could not be read at all"
|
|
322
|
+
else
|
|
323
|
+
_fh_gv="$(git --version 2>/dev/null)"; _fh_gvrc=$?
|
|
324
|
+
if [ "$_fh_gvrc" -ne 0 ] || [ -z "$_fh_gv" ]; then
|
|
325
|
+
FH_INDEX_WHY="\`git --version\` exited $_fh_gvrc -- the git binary is unusable, so nothing below was measured"
|
|
326
|
+
else
|
|
327
|
+
_fh_wt="$(git rev-parse --is-inside-work-tree 2>/dev/null)"; _fh_wtrc=$?
|
|
328
|
+
if [ "$_fh_wtrc" -ne 0 ]; then
|
|
329
|
+
if _fh_has_dotgit_upchain; then
|
|
330
|
+
FH_INDEX_WHY="git works but \`rev-parse --is-inside-work-tree\` exited $_fh_wtrc while a .git exists above this directory -- git failed, this is not a plain directory"
|
|
331
|
+
else
|
|
332
|
+
FH_INDEX_STATE="nongit"; FH_INDEX_WHY="no repository here and no .git anywhere above -- an unpacked tarball"
|
|
333
|
+
fi
|
|
334
|
+
elif [ "$_fh_wt" != "true" ]; then
|
|
335
|
+
FH_INDEX_STATE="nongit"; FH_INDEX_WHY="inside a git dir with no work tree (bare repository)"
|
|
336
|
+
else
|
|
337
|
+
# 🟥 NUL ALL THE WAY. An earlier draft piped this through `tr '\0' '\n'` into an env var,
|
|
338
|
+
# which un-did the whole point of `-z`: a path containing a NEWLINE was split into two paths
|
|
339
|
+
# before python ever saw it. Env vars cannot carry NUL, so the list travels as a FILE and the
|
|
340
|
+
# separator is never translated. Cross-family review, 2026-08-24, round 3.
|
|
341
|
+
_fh_tmp="$(mktemp)"
|
|
342
|
+
git ls-files -z >"$_fh_tmp" 2>/dev/null
|
|
343
|
+
_fh_lrc=$?
|
|
344
|
+
FH_INDEX_FILE_LIST="$_fh_tmp"
|
|
345
|
+
if [ "$_fh_lrc" -ne 0 ]; then
|
|
346
|
+
FH_INDEX_WHY="inside a work tree, but \`git ls-files\` exited $_fh_lrc -- a locked or corrupt index, or a permission failure. NOT an absence of runners"
|
|
347
|
+
elif [ -s "$_fh_tmp" ]; then
|
|
348
|
+
FH_INDEX_STATE="index"; FH_INDEX_WHY="the git index"
|
|
349
|
+
else
|
|
350
|
+
git check-ignore -q . 2>/dev/null; _fh_ci=$?
|
|
351
|
+
if [ "$_fh_ci" -eq 0 ]; then
|
|
352
|
+
FH_INDEX_STATE="outside-index"; FH_INDEX_WHY="this directory is IGNORED by the surrounding repository, so its index cannot answer for these files"
|
|
353
|
+
else
|
|
354
|
+
FH_INDEX_WHY="\`git ls-files\` exited 0 and returned NOTHING while this directory is tracked territory -- an empty index is not zero runners"
|
|
355
|
+
fi
|
|
356
|
+
fi
|
|
357
|
+
fi
|
|
358
|
+
fi
|
|
359
|
+
fi
|
|
360
|
+
export FH_INDEX_STATE FH_INDEX_WHY FH_INDEX_FILE_LIST
|
|
361
|
+
|
|
273
362
|
out=$(python3 - "${#EXEMPT[@]}" "${EXEMPT[@]+"${EXEMPT[@]}"}" "${DEBT[@]+"${DEBT[@]}"}" <<'PY'
|
|
274
|
-
import os, re, sys, glob, json
|
|
363
|
+
import os, re, sys, glob, json, subprocess
|
|
275
364
|
|
|
276
365
|
n_exempt = int(sys.argv[1])
|
|
277
366
|
exempt = set(sys.argv[2:2 + n_exempt])
|
|
@@ -287,14 +376,161 @@ suites = sorted({os.path.basename(f) for f in glob.glob('scripts/*.sh')
|
|
|
287
376
|
# Runner surfaces, enumerated rather than assumed. All three were checked by hand when this file was
|
|
288
377
|
# written: CI runs `bash scripts/selfcheck.sh` + count_check + the plugin validators and nothing else.
|
|
289
378
|
SELF = os.path.basename(__file__) if '__file__' in dir() else 'lane_runner_check.sh'
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
379
|
+
RUNNER_GLOBS = ('scripts/*.sh', 'templates/.git-hooks/*', '.github/workflows/*.yml')
|
|
380
|
+
|
|
381
|
+
# -- INDEX-vs-DISK enumeration, RUNNER surfaces ONLY. State resolved in the bash preamble above. -
|
|
382
|
+
INDEX_MODE = os.environ.get('FH_INDEX_STATE', '')
|
|
383
|
+
INDEX_WHY = os.environ.get('FH_INDEX_WHY', 'the preamble did not run')
|
|
384
|
+
_idx_path = os.environ.get('FH_INDEX_FILE_LIST', '')
|
|
385
|
+
_idx_raw = b''
|
|
386
|
+
if _idx_path:
|
|
387
|
+
try:
|
|
388
|
+
_idx_raw = open(_idx_path, 'rb').read()
|
|
389
|
+
except OSError:
|
|
390
|
+
_idx_raw = b''
|
|
391
|
+
INDEX_FILES = [_b.decode('utf-8', 'replace') for _b in _idx_raw.split(b'\0') if _b]
|
|
392
|
+
# Fail-closed on anything this file does not recognise, including the empty string a caller that
|
|
393
|
+
# skipped the preamble would leave behind. A mode nobody set is not a mode that means "use disk".
|
|
394
|
+
if INDEX_MODE not in ('index', 'nongit', 'outside-index'):
|
|
395
|
+
INDEX_MODE = 'UNMEASURED'
|
|
396
|
+
if INDEX_MODE == 'index' and not INDEX_FILES:
|
|
397
|
+
INDEX_MODE = 'UNMEASURED'
|
|
398
|
+
INDEX_WHY = 'state said index and the file list is empty -- the two disagree'
|
|
399
|
+
|
|
400
|
+
def _glob_rx(pat):
|
|
401
|
+
# glob semantics, NOT fnmatch, and that includes the DOTFILE rule.
|
|
402
|
+
# `*` -> `[^/]*` alone is WIDER than the `glob.glob()` it replaced: fnmatch translates `*` to
|
|
403
|
+
# `.*`, which also crosses `/`, and neither form hides dotfiles. `glob.glob('scripts/*.sh')`
|
|
404
|
+
# does NOT return `scripts/.x.sh`; a regex without the guard below DOES, so a hidden tracked
|
|
405
|
+
# file would certify a caller that the old surface never contained. Cross-family review,
|
|
406
|
+
# 2026-08-24. The guard is per SEGMENT and keys on a leading `*`/`?` in that segment -- a dot
|
|
407
|
+
# in a literal segment (`templates/.git-hooks/`) is a directory name and is unaffected; what
|
|
408
|
+
# glob hides is a leading dot in the matched BASENAME.
|
|
409
|
+
_segs = []
|
|
410
|
+
for _seg in pat.split('/'):
|
|
411
|
+
_s = ''
|
|
412
|
+
if _seg[:1] in ('*', '?'):
|
|
413
|
+
_s += '(?!\\.)'
|
|
414
|
+
for _c in _seg:
|
|
415
|
+
_s += '[^/]*' if _c == '*' else '[^/]' if _c == '?' else re.escape(_c)
|
|
416
|
+
_segs.append(_s)
|
|
417
|
+
return re.compile('^' + '/'.join(_segs) + '$')
|
|
418
|
+
|
|
419
|
+
def enumerate_runners(patterns):
|
|
420
|
+
# index: the candidate runners are what `git ls-files` says is TRACKED.
|
|
421
|
+
# nongit / outside-index: no index can answer here, so disk is the correct surface -- and the
|
|
422
|
+
# run says which of the two it is out loud. UNMEASURED never reaches this function.
|
|
423
|
+
if INDEX_MODE == 'index':
|
|
424
|
+
# 🟥 NO os.path.isfile HERE. Filtering the INDEX list by what happens to be on disk lets the
|
|
425
|
+
# working tree decide the population of an index-grounded judgment -- a tracked runner the
|
|
426
|
+
# worktree has deleted would silently become "not a runner" instead of "read its blob",
|
|
427
|
+
# which also skips the completeness check below. The index blob exists regardless of the
|
|
428
|
+
# working tree; that is the whole reason to read it. Cross-family review, round 3.
|
|
429
|
+
# The disk branch on the next line KEEPS isfile, and so do LOCAL_ONLY_SURFACES: there the
|
|
430
|
+
# working tree IS the surface, and a name with no file behind it is genuinely nothing.
|
|
431
|
+
_rx = [_glob_rx(_p) for _p in patterns]
|
|
432
|
+
return [_p for _p in INDEX_FILES if any(_r.match(_p) for _r in _rx)]
|
|
433
|
+
return [_p for _pat in patterns for _p in glob.glob(_pat) if os.path.isfile(_p)]
|
|
434
|
+
|
|
435
|
+
if INDEX_MODE == 'UNMEASURED':
|
|
436
|
+
print('CONTROL_FAILED\tthe runner surface is UNMEASURED, not zero runners: ' + INDEX_WHY)
|
|
437
|
+
raise SystemExit(2)
|
|
438
|
+
print('INDEX_MODE\t' + INDEX_MODE + '\t' + INDEX_WHY)
|
|
439
|
+
|
|
440
|
+
runners = enumerate_runners(RUNNER_GLOBS)
|
|
293
441
|
# This file names every DEBT and EXEMPT suite in its own arrays. Scanning itself would read each of
|
|
294
442
|
# those declarations as evidence the suite is run — the check would certify its own todo list as
|
|
295
443
|
# done. Caught by the known-negative control below on the first execution.
|
|
296
444
|
runners = [r for r in runners if os.path.basename(r) != 'lane_runner_check.sh']
|
|
297
445
|
|
|
446
|
+
# -- RUNNER CONTENT = THE INDEX BLOB, NOT THE WORKING TREE FILE -------------------------------
|
|
447
|
+
# 🟥 THE OTHER HALF OF D-5. Moving the runner FILE LIST to the index closed "is this runner in the
|
|
448
|
+
# clone"; it did NOT close "does that runner call this lane in the clone". The names came from
|
|
449
|
+
# `git ls-files` while the bodies were still read with `open()`, so ONE UNSTAGED LINE added to an
|
|
450
|
+
# already-tracked runner certified a wiring that exists in nobody's checkout but this one -- the
|
|
451
|
+
# same defect wearing the other half of its face. Cross-family review, 2026-08-24, round 2.
|
|
452
|
+
# Claiming "the surface is index-grounded" while half of it was not is exactly
|
|
453
|
+
# [[feedback_half_fix_propagation_boundary]] / "measured scope != claimed scope".
|
|
454
|
+
#
|
|
455
|
+
# ONE process, not one per runner: there are ~185 runner surfaces here, and `git show` per file
|
|
456
|
+
# would be ~185 forks. `git cat-file --batch` reads them all from one stdin stream.
|
|
457
|
+
#
|
|
458
|
+
# 🟥 EVERY FAILURE PATH IS UNMEASURED, NEVER AN EMPTY BODY. A missing blob, a short read, a
|
|
459
|
+
# non-blob object, a git that will not start -- each of them, read as "" , renders the runner as
|
|
460
|
+
# calling nothing, which is the fold this whole file exists to refuse. They collect in _BLOB_ERR
|
|
461
|
+
# and route to the same UNMEASURED exit as a broken index does.
|
|
462
|
+
# In `nongit` / `outside-index` there is no blob to read and that is already decided policy
|
|
463
|
+
# (protection off, labelled) -- the loader is simply not run, and the disk reader stays in place.
|
|
464
|
+
# No new state value.
|
|
465
|
+
_BLOBS = {}
|
|
466
|
+
_BLOB_ERR = []
|
|
467
|
+
|
|
468
|
+
def _load_index_blobs(paths):
|
|
469
|
+
if INDEX_MODE != 'index' or not paths:
|
|
470
|
+
return
|
|
471
|
+
# `git cat-file --batch` reads NEWLINE-delimited input, so a path containing one cannot be
|
|
472
|
+
# asked for safely. Refuse to guess: that is UNMEASURED, not "this runner calls nothing".
|
|
473
|
+
for _p in paths:
|
|
474
|
+
if '\n' in _p:
|
|
475
|
+
_BLOB_ERR.append('a runner path contains a newline and cannot be batched: ' + repr(_p))
|
|
476
|
+
if _BLOB_ERR:
|
|
477
|
+
return
|
|
478
|
+
_inp = ''.join(':' + _p + '\n' for _p in paths)
|
|
479
|
+
try:
|
|
480
|
+
_pr = subprocess.run(['git', 'cat-file', '--batch'], input=_inp.encode('utf-8'), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
|
481
|
+
except OSError as _e:
|
|
482
|
+
_BLOB_ERR.append('git cat-file could not be started: ' + str(_e))
|
|
483
|
+
return
|
|
484
|
+
if _pr.returncode != 0:
|
|
485
|
+
_BLOB_ERR.append('git cat-file --batch exited ' + str(_pr.returncode))
|
|
486
|
+
return
|
|
487
|
+
_buf = _pr.stdout
|
|
488
|
+
_pos = 0
|
|
489
|
+
for _p in paths:
|
|
490
|
+
_nl = _buf.find(b'\n', _pos)
|
|
491
|
+
if _nl < 0:
|
|
492
|
+
_BLOB_ERR.append('git cat-file output ended early at ' + _p)
|
|
493
|
+
return
|
|
494
|
+
_hdr = _buf[_pos:_nl].decode('utf-8', 'replace').split()
|
|
495
|
+
_pos = _nl + 1
|
|
496
|
+
if len(_hdr) != 3 or _hdr[1] != 'blob':
|
|
497
|
+
_BLOB_ERR.append('no blob in the index for ' + _p + ': ' + ' '.join(_hdr))
|
|
498
|
+
return
|
|
499
|
+
_sz = int(_hdr[2])
|
|
500
|
+
_end = _pos + _sz
|
|
501
|
+
if _end > len(_buf):
|
|
502
|
+
_BLOB_ERR.append('git cat-file returned a short body for ' + _p)
|
|
503
|
+
return
|
|
504
|
+
_BLOBS[_p] = _buf[_pos:_end].decode('utf-8', 'replace')
|
|
505
|
+
_pos = _end + 1
|
|
506
|
+
# Completeness, checked rather than assumed, and INSIDE the loader so that the loader is a
|
|
507
|
+
# single switch: this is what makes the disk fallback in read_runner unreachable for a runner
|
|
508
|
+
# in index mode. Without it a silently missing key would fall through to the working tree and
|
|
509
|
+
# rebuild the defect one path at a time.
|
|
510
|
+
for _p in paths:
|
|
511
|
+
if _p not in _BLOBS:
|
|
512
|
+
_BLOB_ERR.append('the index blob for ' + _p + ' was never read')
|
|
513
|
+
|
|
514
|
+
_load_index_blobs(runners)
|
|
515
|
+
|
|
516
|
+
def _read_disk(path):
|
|
517
|
+
try:
|
|
518
|
+
return open(path, encoding='utf-8', errors='replace').read()
|
|
519
|
+
except OSError:
|
|
520
|
+
return ''
|
|
521
|
+
|
|
522
|
+
def read_runner(path):
|
|
523
|
+
# index mode: every runner is in _BLOBS (asserted above), so the disk branch is reachable only
|
|
524
|
+
# for surfaces that are deliberately NOT index-backed -- the gitignored local settings file --
|
|
525
|
+
# and for the nongit / outside-index states.
|
|
526
|
+
if path in _BLOBS:
|
|
527
|
+
return _BLOBS[path]
|
|
528
|
+
return _read_disk(path)
|
|
529
|
+
|
|
530
|
+
if _BLOB_ERR:
|
|
531
|
+
print('CONTROL_FAILED\tthe runner CONTENT is UNMEASURED, not empty: ' + ' - '.join(_BLOB_ERR))
|
|
532
|
+
raise SystemExit(2)
|
|
533
|
+
|
|
298
534
|
# An invocation is `bash <path-ending-in-suite>`, not a mention of the name. The bounded `.{0,60}?`
|
|
299
535
|
# spans wrappers like `exec bash "$(dirname "$0")/x.sh"` (which contains a space inside the command
|
|
300
536
|
# substitution) without running to the end of an arbitrary line.
|
|
@@ -314,10 +550,7 @@ def has_runner(suite):
|
|
|
314
550
|
for r in runners:
|
|
315
551
|
if os.path.basename(r) == suite:
|
|
316
552
|
continue
|
|
317
|
-
|
|
318
|
-
txt = open(r, encoding='utf-8', errors='replace').read()
|
|
319
|
-
except OSError:
|
|
320
|
-
continue
|
|
553
|
+
txt = read_runner(r)
|
|
321
554
|
if runner_dispatches(suite, txt):
|
|
322
555
|
return True
|
|
323
556
|
return False
|
|
@@ -470,7 +703,7 @@ def has_selftest_runner(bare_name):
|
|
|
470
703
|
# added at the same time and for the same reason — without it this line is a repair no control
|
|
471
704
|
# drives, which is the failure mode this file exists to name.
|
|
472
705
|
_own = bare_name + '.sh'
|
|
473
|
-
return any(selftest_dispatched(bare_name,
|
|
706
|
+
return any(selftest_dispatched(bare_name, read_runner(r)) for r in runners if os.path.basename(r) != _own)
|
|
474
707
|
|
|
475
708
|
selftest_wired = {s for s in selftest_subjects if has_selftest_runner(s)}
|
|
476
709
|
selftest_undeclared = sorted(s for s in selftest_subjects if s not in selftest_wired)
|
|
@@ -602,6 +835,7 @@ for s in selftest_undeclared:
|
|
|
602
835
|
PY
|
|
603
836
|
)
|
|
604
837
|
rc=$?
|
|
838
|
+
[ -n "${FH_INDEX_FILE_LIST:-}" ] && rm -f "$FH_INDEX_FILE_LIST"
|
|
605
839
|
|
|
606
840
|
if [ "$rc" -eq 2 ]; then
|
|
607
841
|
echo "FAIL lane-runner: the instrument broke, it did not pass"
|
|
@@ -688,6 +922,20 @@ if [ -n "$SELFTEST_UNDECLARED" ]; then
|
|
|
688
922
|
echo " in it, or exit 0 will certify a suite that ran nothing."
|
|
689
923
|
fi
|
|
690
924
|
|
|
925
|
+
INDEX_MODE=$(printf '%s\n' "$out" | awk -F'\t' '$1=="INDEX_MODE"{print $2}')
|
|
926
|
+
INDEX_WHY=$(printf '%s\n' "$out" | awk -F'\t' '$1=="INDEX_MODE"{print $3}')
|
|
927
|
+
# Labelled, never silent, and the two disk-fallback states are NOT merged. `nongit` is an
|
|
928
|
+
# unpacked tarball; `outside-index` is this tree sitting inside some OTHER repo that ignores it.
|
|
929
|
+
# Both are correct places to read the disk, and neither may appear inside a normal checkout --
|
|
930
|
+
# if one does, the WIRED count is not index-grounded and the reader has to know that.
|
|
931
|
+
case "$INDEX_MODE" in
|
|
932
|
+
nongit|outside-index)
|
|
933
|
+
echo "⚠️ lane-runner: runner surface enumerated from DISK, not the index ($INDEX_MODE)."
|
|
934
|
+
echo " $INDEX_WHY"
|
|
935
|
+
echo " Correct outside a checkout; WRONG inside one. It is not zero runners either way."
|
|
936
|
+
;;
|
|
937
|
+
esac
|
|
938
|
+
|
|
691
939
|
echo "PASS lane-runner: ${TOTAL} suites — ${WIRED} wired · ${N_EXEMPT} exempt · ${N_DEBT} declared debt" \
|
|
692
940
|
"· self-test: ${ST_WIRED}/${ST_TOTAL} wired"
|
|
693
941
|
exit 0
|
|
@@ -183,6 +183,12 @@ ACCEPTED_ABSENT=(
|
|
|
183
183
|
"scripts/script_caller_ratchet.sh"
|
|
184
184
|
"scripts/ratchet_base_resolve.sh"
|
|
185
185
|
"scripts/test_script_caller_ratchet_lanes.sh"
|
|
186
|
+
# ── D-5 runner-surface known pair, 2026-08-24 — 같은 사유로 미출하 ────────────────────────
|
|
187
|
+
# test_runner_surface_index_lanes.sh 는 주체가 **둘**이다: lane_runner_check.sh(출하됨)와
|
|
188
|
+
# script_caller_ratchet.sh(미출하). 후자가 없는 트리에서는 파일 상단 가드가 exit 2 로 죽으므로
|
|
189
|
+
# 소비자에게 실으면 **모든 설치에서 계기 오류**가 된다. selfcheck 의 짝 표에서도 sentinel 주체를
|
|
190
|
+
# script_caller_ratchet.sh 로 잡아, 소비자 트리에서는 주체 팔이 먼저 발화해 SKIP 으로 끝난다.
|
|
191
|
+
"scripts/test_runner_surface_index_lanes.sh"
|
|
186
192
|
# ── The two settings destinations, surfaced 2026-08-13 by fixing this file's own extractor ────
|
|
187
193
|
# These were invisible until the `js|json` alternation below was corrected: every `.json`
|
|
188
194
|
# reference in every shipped doc was being truncated to `.js`, a path that exists nowhere, so
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -592,6 +592,7 @@ for _pair in \
|
|
|
592
592
|
"scripts/stale_clone_guard.sh|scripts/test_stale_clone_guard_lanes.sh" \
|
|
593
593
|
"plugins/fh-commons/skills/ko-tech-writer/SKILL.md|scripts/test_ko_tech_writer_lanes.sh" \
|
|
594
594
|
"scripts/script_caller_ratchet.sh|scripts/test_script_caller_ratchet_lanes.sh" \
|
|
595
|
+
"scripts/script_caller_ratchet.sh|scripts/test_runner_surface_index_lanes.sh" \
|
|
595
596
|
"scripts/mapped_tracks.sh|scripts/test_mapped_tracks_lanes.sh"
|
|
596
597
|
do
|
|
597
598
|
_subj="${_pair%%|*}"; _anc="${_pair##*|}"; _lbl="${_anc##*/}"
|
|
@@ -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 (
|
|
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
|
-
|
|
1940
|
-
|
|
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
|
-
|
|
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"
|