@chrono-meta/fh-gate 3.22.2 → 3.24.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 +4 -4
- package/knowledge/shared/harness-core/capability_composition_contract.md +21 -0
- package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +30 -0
- package/knowledge/shared/harness-core/fh_three_layer_canon.md +62 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +77 -0
- package/package.json +8 -2
- 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 +43 -0
- package/plugins/fh-meta/skills/agent-composer/SKILL.md +5 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/context_continuity_score.sh +3 -1
- package/scripts/env_layer_fingerprint.sh +26 -10
- package/scripts/main_commit_guard.sh +47 -0
- package/scripts/mapped_tracks.sh +11 -1
- package/scripts/probe_live_eval.sh +11 -0
- package/scripts/resident_cost.py +371 -0
- package/scripts/round/nameleak_check.sh +85 -0
- package/scripts/selfcheck.sh +61 -4
- package/scripts/test_env_layer_fingerprint_lanes.sh +99 -0
- package/scripts/test_main_commit_guard_lanes.sh +72 -0
- package/scripts/test_mapped_tracks_lanes.sh +73 -0
- package/scripts/test_probe_live_eval_lanes.sh +17 -1
- package/scripts/test_resident_cost_lanes.sh +182 -0
- package/scripts/test_verdict_watermark_lanes.sh +8 -1
- package/templates/.git-hooks/pre-commit +12 -0
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.24.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.
|
|
20
|
+
"version": "3.24.0",
|
|
21
21
|
"description": "Project-agnostic utility skills — 6 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer · persona-cast) + 7 agents (quench-challenger + the web-review cast: designer · ux-writer · fe-dev · be-dev · qa · a11y). Domain-independent utilities transplantable into any project.",
|
|
22
22
|
"source": "./plugins/fh-commons"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "fh-qp",
|
|
26
|
-
"version": "3.
|
|
26
|
+
"version": "3.24.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.
|
|
32
|
+
"version": "3.24.0",
|
|
33
33
|
"description": "preprep — a presentation-preparation harness. 1 skill. One CLI over 17 lanes (7 built-in + 10 module) that reads a declared surface manifest and checks a talk's assets against each other: canonical terms, jargon glosses, retired vocabulary, inter-slide dependencies, pacing, get/put round-trips, adjacent duplication, slide relations, geometry, attribute consistency, fonts, diagrams, slide refs, and screen-parity between manuscript and deck. Verdict contract: exit 0 pass / 1 findings / 2 cannot-judge — a surface that could not be read is UNMEASURED, never 0. Promoted out of fh-commons 2026-09-13 after the skill grew past one role (routing / lane modules / fixtures).",
|
|
34
34
|
"source": "./plugins/fh-preprep"
|
|
35
35
|
}
|
|
@@ -494,6 +494,27 @@ Split honestly by moment; only one of the three is closable today.
|
|
|
494
494
|
the table would merge confidently in the wrong direction — A3 is the known instance of that hazard,
|
|
495
495
|
and the mitigation (strictness read off outcomes, `on_exceed` mandatory) covers only numeric axes.
|
|
496
496
|
|
|
497
|
+
- **No composition-unit review.** The skill gates this note knows of (the 6-item bar ·
|
|
498
|
+
`asset-placement-gate` · the 4-axis gate) judge **one skill at a time**. A chain can be harmful while
|
|
499
|
+
each link passes. `arXiv:2609.30383` (Skill Cascading Attacks) splits one harmful goal across several
|
|
500
|
+
individually harmless skill edits; in the paper's example one skill weakens a warning, the next
|
|
501
|
+
down-ranks it, the last drops it from a summary, and no per-skill review sees it. That example was
|
|
502
|
+
**not reproduced here**. The Cross-Project Skill Bus and `agent-composer` are two places where FH
|
|
503
|
+
strings skills together, so the gap applies to FH. **What holds today** is narrower than a chain
|
|
504
|
+
check: a field capability's constraints merge strictest-wins (§ⓐ); standing consent never promotes a
|
|
505
|
+
class that *feeds* an irreversible sink (CLAUDE.md §Operational Adaptation Loop, taint rule); and the
|
|
506
|
+
irreversible step itself still meets its own gate (CLAUDE.md §Irreversibility Gates). None of the
|
|
507
|
+
three reads what the earlier links did to the data. No check reads the composed chain as one unit.
|
|
508
|
+
Named, not built.
|
|
509
|
+
- **Gates judge the action, not its outcome.** FH's gates (and the FoD permission gate) decide on the
|
|
510
|
+
command before it runs. An approved action can still leave an unapproved persistent effect, and the
|
|
511
|
+
mismatch only shows when the approved execution is compared with the state it left behind — the case
|
|
512
|
+
`arXiv:2609.31301` (EffectMatch) handles at an execution boundary. The one outcome check this note
|
|
513
|
+
knows of on a merge path is `scripts/pr_merge_verified.sh`, which compares what `main` received
|
|
514
|
+
against the branch after a squash merge. It covers one surface and is not a general mechanism. This
|
|
515
|
+
note has not identified a general outcome record elsewhere (a wider search was not run). Named, not
|
|
516
|
+
built.
|
|
517
|
+
|
|
497
518
|
## References
|
|
498
519
|
|
|
499
520
|
- `fh_integration_contract.md` — the inbound twin (how external callers invoke FH gates); verdict and
|
|
@@ -214,6 +214,36 @@ irreversible sinks, and a dispatched subagent does — so registering this grant
|
|
|
214
214
|
rejected by that floor or require declaring it something the registry does not govern. That is the
|
|
215
215
|
operator's call, and until it is made the lease is **honoured by reading, not by machinery**.
|
|
216
216
|
|
|
217
|
+
### ➕ 추가 (2026-09-30) — 배선을 미루는 비용에 외부 수치가 붙었다 (append-only — 위 이관 원문은 안 고친다)
|
|
218
|
+
|
|
219
|
+
위 문단은 리스가 «읽혀서 지켜지지, 기계로 지켜지지 않는다» 고 적는다. 그 미룸이 무엇을 열어
|
|
220
|
+
두는지에 대해 외부 수치가 하나 생겼다.
|
|
221
|
+
|
|
222
|
+
- 출처: `arXiv:2609.33910` *Residual Authority Replay* (`tracks/_meta/frontier_digest_2026_09_30.md`
|
|
223
|
+
하이라이트 2 — 로컬 다이제스트, gitignored). 오래 사는 에이전트는 과제·세션을 넘어 승인을 이어 쓴다. 공격자는 무해한
|
|
224
|
+
상호작용으로 권한을 정당하게 얻게 만든 뒤, 나중에 그 **잔여 권한을 재생**한다. 실제 코딩
|
|
225
|
+
에이전트 3종의 Terminal-Bench 55 사례에서 공격 성공률이 평균 **+24.9%p** 올랐다(AgentDojo 508
|
|
226
|
+
사례에서는 최대 +35.1%p).
|
|
227
|
+
- 🟥 **인용 경계**: ① **초록만 읽었다** — 본문·표·위협 모형은 확인하지 않았다. ② 이 수치는 **그
|
|
228
|
+
논문의 공격 설정**에서의 상승폭이다 — FH 의 리스가 재생 공격을 받는다는 측정이 아니고 FH 에서
|
|
229
|
+
잰 값도 아니다. ③ +24.9%p(실제 코딩 에이전트 · 평균)와 +35.1%p(AgentDojo · 최대)는 **다른
|
|
230
|
+
벤치·다른 집계**다 — 섞거나 한쪽을 다른 쪽 이름으로 인용하지 마라.
|
|
231
|
+
- **어디에 맞닿나**: FH 의 동의 기록은 이미 좁다 — 로컬 바인딩의 위임 기록들은 «이번 야간 1회
|
|
232
|
+
한정» · «이 PR 한정» 처럼 리스를 과제에 건다. 이 논문은 그 규율이 **옳은 방향**이라는 외부
|
|
233
|
+
신호다. 남은 틈은 규율이 아니라 기계다: 리스가 끝나도 그걸 읽는 것은 세션의 독해뿐이라,
|
|
234
|
+
«정당화한 맥락은 끝났는데 권한은 남는» 논문의 실패 모양을 **FH 에서 기계로 막는 자리가 없다**
|
|
235
|
+
(디스패치 리스에 대해 — `consent_registry_check.sh` 자체는 `fh_node_check.sh` 가 다른 한 부류
|
|
236
|
+
`repo-freshness-autopull` 에 대해 부른다. «아무 데도 안 불린다» 로 읽지 마라).
|
|
237
|
+
- **그 스크립트가 이미 가진 것과 안 가진 것**(헤더 직독, 2026-09-30): R5 가 `expires` 부재·경과를
|
|
238
|
+
거절하고, R6 이 grant 마다 `owner`·`mode`·`effects`·`target`·`sinks` 지문을 기록하게 한다 —
|
|
239
|
+
논문의 «맥락 결박» 에 가장 가까운 칸이다. 🟥 그러나 헤더가 스스로 적듯 **실시간 행동을 그
|
|
240
|
+
지문과 대조하지는 않는다**(«this script never sees the live action»). 즉 배선해도 닫히는 것은
|
|
241
|
+
«만료된 리스» 까지이고, «기한 안에서 다른 과제로 재생된 권한» 은 여전히 런타임 의무(산문)다.
|
|
242
|
+
리스의 «기한» 은 시간으로 자르고 논문의 결박은 **과제**로 자른다 — 같은 축이 아니다.
|
|
243
|
+
- 🟥 **배선 여부는 여전히 운영자 결정이다.** 이 추가는 결정을 바꾸지 않는다 — 위 문단이 적은
|
|
244
|
+
막힘(레지스트리 바닥이 비가역 싱크를 먹이는 부류의 승격을 금한다)은 그대로다. 바뀐 것은 «미루면
|
|
245
|
+
무엇이 열려 있나» 의 서술이 외부 수치 하나를 갖게 된 것뿐이다.
|
|
246
|
+
|
|
217
247
|
|
|
218
248
|
---
|
|
219
249
|
|
|
@@ -691,3 +691,65 @@ standpoint: ⓑ 는 **자기 필드**가 정본이고, `axes-run` 은
|
|
|
691
691
|
> 아니다 — 2026-08-17 실측이 그 근거를 강화했다(병렬 두 세션, 상호 정정 7건, **판단 축 자력
|
|
692
692
|
> 적발 0**, 둘 다 사전등록·컨트롤·되돌림을 다 돌리고도 각자 자기 쪽으로 접었다).
|
|
693
693
|
|
|
694
|
+
### ➕ 추가 (2026-09-30) — 닫는 방향의 두 번째 후보: «두 번째 저자» (append-only — 위 이관 원문은 안 고친다)
|
|
695
|
+
|
|
696
|
+
위 인용은 닫는 방향을 하나로 적는다 — «cross-family 가 그 마커를 읽는 것». 그건 **읽는 쪽을
|
|
697
|
+
바꾸는** 방향이다. 외부 논문 하나가 다른 축을 보여준다: **기록을 쓰는 쪽을 둘로 만드는** 방향.
|
|
698
|
+
|
|
699
|
+
- 출처: `arXiv:2609.32495` *Hearsay* (`tracks/_meta/frontier_digest_2026_09_30.md` 하이라이트 1 — 로컬 다이제스트, gitignored).
|
|
700
|
+
배포된 프레임워크 16개 중 «현장에 없던 사람이 작성자를 믿지 않고 확인할 수 있는 기록» 을
|
|
701
|
+
온전히 남기는 것은 0개였다. 하네스 자기 기록 위의 해시 체인은 심은 누락·조작 28건을 **전부
|
|
702
|
+
통과시켰고**, 하네스 **밖**에서 하네스↔모델 사이를 오간 것을 append-only 로 남겨 기록과
|
|
703
|
+
양방향 대조하면 28건을 **전부 보고했다**. 즉 «봉인을 더 단단히» 가 아니라 «작성자를 하나 더».
|
|
704
|
+
- 🟥 **인용 경계 셋 — 이 숫자를 옮기기 전에 읽어라.** ① **초록만 읽었다** — 본문 수치·표·실험
|
|
705
|
+
설정은 확인하지 않았다. ② 28/28 은 저자들이 **직접 심은** 누락·조작이다 — 자연 발생 조작의
|
|
706
|
+
탐지율이 아니다. ③ 0/28 대 28/28 은 **그 논문 설정의 대비**다 — FH 에서 잰 값이 아니다.
|
|
707
|
+
|
|
708
|
+
**FH 에 이미 반쪽이 있다.** 마커(`tracks/_meta/.axes_23_passed_*`)는 세션이 쓰고 세션이
|
|
709
|
+
채점한다 — 작성자가 하나다. 그런데 같은 세션에 대해 **런타임이 쓰는 두 번째 기록**이 이미
|
|
710
|
+
있다: Claude Code 전사본(JSONL). 세션은 거기에 무엇을 적을지 고르지 않는다 — 툴 호출이
|
|
711
|
+
일어나면 런타임이 적는다. FH 는 그 파일을 이미 읽는다: `scripts/utterance_intake.sh`
|
|
712
|
+
(→ `scripts/transcript_utterances.py`)가 거기서 **운영자 발화**를 뽑아 기록 착지를 대조한다.
|
|
713
|
+
🟥 **정확히는 발화 쪽만 읽는다** — 아래 후보가 필요로 하는 **툴 호출(`tool_use`) 쪽 추출기는
|
|
714
|
+
없다.** «이미 읽는다» 는 채널이 열려 있다는 뜻이지 이 대조가 이미 돈다는 뜻이 아니다.
|
|
715
|
+
|
|
716
|
+
**구체 후보 (짓지 않는다)** — «마커의 `standpoint: tier2…` 줄이 돌렸다고 명명한 명령이 그
|
|
717
|
+
세션 전사본의 `tool_use` 에 실제로 있는가». 이 필드를 고른 이유: `tier2`+ 는 2026-09-12 부로
|
|
718
|
+
«명령과 출력을 명명했는가» 를 **형식으로** 차단한다(§CM-Standpoint-Validator-Retraction). 그래서
|
|
719
|
+
**많은 마커에는 대조할 키가 이미 적혀 있다** — 형식(«명명했나»)과 진위(«정말 돌렸나») 사이의 틈이
|
|
720
|
+
가장 좁은 자리다. 🟥 **단 «있을 수 있다» 이지 «보장된다» 가 아니다**: 훅의 grounds 검사는 낱말
|
|
721
|
+
목록(`test` · `output` · `rc=` · `30/30` · `./` 등)과 20자 하한만 보므로, 전사본에서 찾을 수 있는
|
|
722
|
+
**정확한 명령 문자열**이 있다는 것은 보증하지 않는다(`templates/.git-hooks/pre-commit`
|
|
723
|
+
`validate_standpoint_leg` 의 grounds 정규식). 키가 없는 마커는 대조 불가(`UNMEASURED`)로 세야지
|
|
724
|
+
«불일치» 로 세면 안 된다.
|
|
725
|
+
|
|
726
|
+
- **모집단(2026-09-30 로컬 실측, gitignored 코퍼스)**: 마커 533개 중 `standpoint: tier2` 로
|
|
727
|
+
시작하는 줄을 가진 것 84개. 🟥 이건 **대조 후보의 수**이지 대조 결과가 아니다 — 한 건도 대조하지
|
|
728
|
+
않았다.
|
|
729
|
+
- **채널 구조(같은 날, 로컬 전사본 하나로 확인 — n=1, 공유 근거 아님)**: 세션 JSONL 에는 그
|
|
730
|
+
세션의 `Bash` `tool_use` 레코드가 실려 있었고, **서브에이전트의 호출은 같은 파일이 아니라
|
|
731
|
+
`<session>/subagents/*.jsonl` 로 따로 갔다**. 그러니 대조기는 채널 하나로
|
|
732
|
+
«없다» 를 판정하면 안 된다 — 서브에이전트 JSONL · peer 세션 JSONL · 사이드카 CLI(codex 등 —
|
|
733
|
+
Claude 전사본에는 **아예 안 남는다**) · 스크립트 안에서 돈 명령(바깥 호출만 남는다)이 전부 다른
|
|
734
|
+
채널이다. `measurement-integrity-checklist.md §Channel-Counting` 의 «부재 주장 = N 개 중 N 개를
|
|
735
|
+
열었다» 가 그대로 걸린다. 🟥 채널을 덜 연 대조기는 «돌렸는데 없다» 를 **거짓 적발**로 낸다 —
|
|
736
|
+
이 후보의 과차단 방향이다.
|
|
737
|
+
- **기계화 보류 — N≥3 전까지.** 이 대조가 있었으면 막혔을 실사고를 아직 하나도 **기록하지
|
|
738
|
+
않았다**(찾아본 곳: 이 절 · `§Channel-Counting` 표 — 채널 전수가 아니므로 «0건» 이라고 쓰지
|
|
739
|
+
않는다. 아래 사례는 다른 필드다). 짓게 되면 §Mechanization Boundary 의 «채널» 쪽이다 — «이 명령이 두 번째 기록에
|
|
740
|
+
있나» 는 **기록의 성질**이지 «그 실행이 충분했나» 라는 결론이 아니다.
|
|
741
|
+
|
|
742
|
+
🟥 **명명된 잔여 — 논문의 «하네스 밖» 조건을 FH 가 충족하는지는 측정하지 않았다(UNMEASURED).**
|
|
743
|
+
전사본은 같은 머신·같은 사용자 권한으로 쓸 수 있는 파일이다. 세션이 그 파일에 줄을 덧붙이는 것을
|
|
744
|
+
막는 층이 있는지 확인하지 않았다. 그러니 이 후보가 닫을 수 있는 것은 «명령을 명명만 하고 안
|
|
745
|
+
돌렸다» 는 **정직한 누락·착각**까지이고, **의도적 위조는 여전히 안 닫힌다** — 위 인용의
|
|
746
|
+
«자평이다 · 게임 가능하다» 는 그대로다. 위조까지 닫으려면 두 번째 저자가 세션의 쓰기 권한 밖에
|
|
747
|
+
있어야 한다. 그 형태는 아직 후보로도 적지 않는다.
|
|
748
|
+
|
|
749
|
+
**오늘의 운영 사례 (n=1 — 메커니즘의 근거로 인용하지 마라).** 2026-09-30, 거버너 세션이 «그
|
|
750
|
+
파일은 디스크에 없다» 고 단정했다. 운영자가 «이미 줬었다» 고 잡았고, 며칠 전 채팅 첨부 파일이
|
|
751
|
+
**그 세션 전사본 안에** 있었다 — 거기서 꺼내 제자리에 두었다. 🟥 근거는 로컬 운영 기록
|
|
752
|
+
(`tracks/_meta/`, gitignored)뿐이라 이 레포에서 재현할 수 없다 — 공개 증거가 아니다. 🟥 이건 두 번째 저자가 **조작을 잡은**
|
|
753
|
+
사례가 아니다 — 전사본을 **채널로 안 연** 부재 주장이고, `§Channel-Counting` 과 같은 부류다(계기는
|
|
754
|
+
옳았고 읽는 쪽이 채널을 덜 열었다). 여기 적는 이유는 하나다: 전사본이 판정자가 세는 채널 목록에
|
|
755
|
+
**이미 들어가 있어야 하는 채널**이라는 것을 운영이 먼저 보여줬다. 자력 적발 0 — 운영자가 잡았다.
|
|
@@ -4574,3 +4574,80 @@
|
|
|
4574
4574
|
15행 분류, 1순위(배포본 npm test 파손)를 타르볼 실측으로 확인 → #832
|
|
4575
4575
|
learning: >-
|
|
4576
4576
|
에이전트가 말한 원인(bin 3개)보다 실제가 넓었다(❌148) — 분류 결과는 실측 전 착수 근거일 뿐
|
|
4577
|
+
|
|
4578
|
+
- date: 2026-09-29
|
|
4579
|
+
session: 9d093859 (주간 — FoD v0.1.2~v0.1.6 · 칸 3 그림자 · Windows 이식 · FH 대화창)
|
|
4580
|
+
agent: general-purpose ×13
|
|
4581
|
+
task: >-
|
|
4582
|
+
에이전트 로고 복원 · 게이트 창 호버 설명 · 게이트 14차(브랜치 정리 사람 패턴 · M3 · 회수 영수증) · S1 틀 r2 + 근거 PREREG ·
|
|
4583
|
+
질문 판정기 R1~R3 · 지도 후속 · 클린룸 v2 재교정 · 게이트 수리(리다이렉트 파서 · 회수 링크) · Windows 이식(게이트 + 대화창) ·
|
|
4584
|
+
FH 대화창 + 게이트 최신판 동조 · 머지 상태 증거 조각 · 외부 자료(Jev·Kev·Qwev) 읽기
|
|
4585
|
+
count: 13
|
|
4586
|
+
outcome: partial
|
|
4587
|
+
evidence: >-
|
|
4588
|
+
FoD #163 · #164(v0.1.5) · #166(v0.1.6) 머지·설치·릴리스, 전부 main 게이트 ×2 FAIL 0 · 대화창 레인 135/0 · Windows 레인 63/30/50 +
|
|
4589
|
+
macOS 불변 차이 0 · 클린룸 v2 봉인 유지 · 머지 상태 증거 레인 29/0(되돌림 5) — 머지 보류(Axis 1 사실상 필수화 = 운영자 결정) ·
|
|
4590
|
+
partial 사유: Windows 에이전트가 «라이브 금지» 지시에도 live.sh 에 --fingerprint 로 «물어봐서» 4레인이 실제로 돌고 기본 조립
|
|
4591
|
+
트리를 오염(14:16 — build.sh 의 rm -rf 로 해소, 산출물 오염 0 확인) · 대화창 에이전트가 업무용 런처 이름을 소스에 박아 기밀 스캔 FAIL(거버너 수리)
|
|
4592
|
+
learning: >-
|
|
4593
|
+
«금지»는 지시문으로 안 닫힌다 — 모르는 플래그는 dry-run 이 아니라 실행이다. 임무문에 «live.sh 는 어떤 인자로도 부르지 마라 +
|
|
4594
|
+
전용 FOD_WORK» 를 박는다(메모리 feedback_live_script_flag_probe_runs_the_lane). 채점기는 머지 스크립트 출력 안의 증거를 안 읽고
|
|
4595
|
+
별도 `gh pr view … statusCheckRollup` 호출만 읽는다 — 절차로 먼저 닫고 코드는 운영자 결정 뒤.
|
|
4596
|
+
|
|
4597
|
+
- date: 2026-09-29
|
|
4598
|
+
session: 9d093859 (야간 전반 — 압축 전)
|
|
4599
|
+
agent: general-purpose ×5
|
|
4600
|
+
task: >-
|
|
4601
|
+
게이트 마찰 수리(«이번만 허용» v0.1.7) · 세션 바로가기 설계(design_2026-09-29_fod-session-jump) · Jev 후속 · 링크 읽기(Kev/Qwev 논문) · 머지 상태 증거 조각
|
|
4602
|
+
count: 5
|
|
4603
|
+
outcome: partial
|
|
4604
|
+
evidence: >-
|
|
4605
|
+
v0.1.7 머지·설치·릴리스 · 설계 문서 착지 · 머지 증거 조각 레인 29/0 이나 머지 보류(운영자 결정) — 건수는 압축 전 인계 목록 기준(세부 산출은 fh_completed_2026-09-29)
|
|
4606
|
+
learning: >-
|
|
4607
|
+
설계 에이전트가 상류 focus.js 를 읽었으므로 v0.1.9 구현자는 새 에이전트로 갈랐다(클린룸) — 설계 문서 대신 공식 문서 근거만 발췌한 명세를 줬다
|
|
4608
|
+
|
|
4609
|
+
- date: 2026-09-30
|
|
4610
|
+
session: 9d093859 (야간 후반 — FoD v0.1.8 · v0.1.9 · 게이트 수리 · 디자인 루프)
|
|
4611
|
+
agent: general-purpose ×9 · fh-commons:designer-lens ×9 · fh-commons:ux-writer-lens ×3 · fh-commons:a11y-lens ×3 · fh-meta:beginner ×6 · fh-meta:main-player ×3
|
|
4612
|
+
task: >-
|
|
4613
|
+
디자인 언어 조사 · 채점기 기권 경보 · 공용 토큰 · v0.1.9 클릭 창(클린룸) · 게이트 활동 창 리디자인 · 설정창 여섯 탭 · 원장 facets/게이트 fail-open 수리 ·
|
|
4614
|
+
릴리스 통합 · 통합 라이브 빨강 셋 수리 · 페르소나 리뷰 세 창 × 3~5라운드
|
|
4615
|
+
count: 33
|
|
4616
|
+
outcome: accepted
|
|
4617
|
+
evidence: >-
|
|
4618
|
+
FoD #169(v0.1.8) · #170 · #171 · #172(v0.1.9) 머지 · v0.1.8 · v0.1.9 설치·릴리스(dmg 다이제스트 대조) · main 게이트 405/0 ×2 ·
|
|
4619
|
+
세 창 페르소나 리뷰 신규 S=0 수렴 · 게이트 fail-open 셋(래퍼 뒤 heredoc 셸 · 명령 자리 치환 · 동적 하위명령) 닫음, codex R1–R4 주장은 전수 재현으로 판정(거짓 다수)
|
|
4620
|
+
learning: >-
|
|
4621
|
+
라이브 캡처 → 페르소나 리뷰가 오프라인 레인 수백 개가 못 본 것을 반복해 잡았다(보내기 회귀 · 목록 행 잘림 · 정보 히어로 찌그러짐). 반대로 리뷰어는
|
|
4622
|
+
캡처 시점 차이를 «숫자 모순» 으로 두 번 오독했다 — 리뷰어 지적도 원자료로 재현한 뒤 수리 대상으로 넣는다. 헤드리스 창은 focusin 이 안 와서
|
|
4623
|
+
포커스 단언은 CDP 포커스 흉내로만 잴 수 있다(메모리 feedback_headless_window_no_focus_events)
|
|
4624
|
+
|
|
4625
|
+
- date: 2026-09-30
|
|
4626
|
+
session: "9d093859 (낮 — 압축 전: 캐릭터 팩 · 허용 규칙 설계 · qasp 검수 · qasp ET 조각 · 프런티어 격차 · 다이제스트 · 설정 쓰기 가드 · 링 재설계 · cod 재현)"
|
|
4627
|
+
agent: general-purpose (다수) · codex 사이드카(교차 계열)
|
|
4628
|
+
task: >-
|
|
4629
|
+
FoD v0.1.10 통합·출하 · 캐릭터 팩 슬라이스 1 · 허용 규칙 v1 설계(§1~§10) · qasp-dev 회사 업데이트 검수·수리(#337) · qasp ET 페르소나 헌장+Electron 어댑터(#339) ·
|
|
4630
|
+
qasp 프런티어 격차 조사 · 다이제스트 09-30 문서(#844) · 게이트 설정 쓰기 가드 20~22차 · 한도 링 재설계 · cod heredoc 재현
|
|
4631
|
+
count: 95
|
|
4632
|
+
outcome: partial
|
|
4633
|
+
evidence: >-
|
|
4634
|
+
건수 = SubagentStop 집계(09-30 103줄) 중 압축 전 몫의 근사 — 같은 에이전트의 재개 정지도 한 줄씩 세므로 «띄운 수» 보다 크다(정확한 분할 미측정).
|
|
4635
|
+
착지: FoD #173 · qasp #337 · FH #844 · 설계 문서 2 · 연구 1. partial 사유: 링 렌더러·qasp et_bench 가 임시 HOME 에서 Chromium 을 키체인 플래그 없이 띄워
|
|
4636
|
+
운영자 화면에 «키체인 발견할 수 없음» 창이 반복(메모리 feedback_temp_home_chromium_keychain_dialog) · 설정 가드 codex 라운드가 수렴 안 함(6→7, 전부 기존 구멍)
|
|
4637
|
+
learning: >-
|
|
4638
|
+
Chromium 기동 규율은 임무문 첫 줄로 — 헤드리스는 «창» 얘기지 OS 대화상자 얘기가 아니다. «우회를 다 찾아라» 는 수렴하지 않는다 — 회귀/기존을 갈라 세고 구조적 수리(허가를 앱으로)로 넘긴다.
|
|
4639
|
+
|
|
4640
|
+
- date: 2026-10-01
|
|
4641
|
+
session: "9d093859 (야간 — 압축 후: 대화창 수리 · qasp ET 첫 탐색 · 대시보드 인벤토리·제거 · FH 경량화 조사 · 메인테이너 입장 리뷰 · 상주 비용 계기 · 격리 팝업 구멍)"
|
|
4642
|
+
agent: general-purpose ×8 (+ 재개 다수) · codex 사이드카 ×5(cod r1~r3 · FH 조사 검토 · 계기 검토)
|
|
4643
|
+
task: >-
|
|
4644
|
+
FoD 대화창 결함 1~7 + qasp 곁가지 5(#176) · qasp ET 로 FoD 대화창 탐색 · 세션 대시보드 인벤토리 → 제거(#179) · FH 경량화 트렌드 조사 ·
|
|
4645
|
+
cod #1096 메인테이너 입장 리뷰 2라운드 · FH 상주 비용 계기(#845) · FoD 격리 네이티브 팝업 구멍(#178)
|
|
4646
|
+
count: 8
|
|
4647
|
+
outcome: accepted
|
|
4648
|
+
evidence: >-
|
|
4649
|
+
FoD #174 · #175 · #176 · #177(v0.1.11 설치·릴리스) · #178 머지(각 main 게이트 ×2 FAIL 0) · #179 PR(운영자 확인 대기) · cod #1096 개설 · FH #845 머지(pr_merge_verified) ·
|
|
4650
|
+
qasp ET: 운영자 손 발견 K1~K8 재발견 0/8(계기 생존) → qasp 개선 신호 · 메인테이너 sim 이 codex 가 못 본 «쓰고-실행» 8건 + PR 본문 정직성을 잡아 범위를 +410→+189 줄로 좁힘
|
|
4651
|
+
learning: >-
|
|
4652
|
+
cross-family(codex)는 «회귀만» 으로 좁혀 물으면 수렴한다(2→3→parity) — 그리고 입장(메인테이너 sim)이 계열과 다른 축을 잡는다: codex 는 코드 구멍,
|
|
4653
|
+
메인테이너 sim 은 «그쪽이 이미 머지 차단 사유로 적은 형태» 와 과장 문구. qasp 는 계기가 살아 있어도 «표시 일관성» 부류를 구조적으로 못 본다 — 오라클 층이 빈다.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.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": {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"prepack": "find plugins -type d -name __pycache__ -prune -exec rm -rf {} + 2>/dev/null; true",
|
|
32
32
|
"prepare": "chmod +x bin/fh-gate.js bin/fh-run.js bin/fh-goal.js bin/fh-codex-doctor.js scripts/fh-gate.sh scripts/fh-run.sh scripts/fh-goal.sh",
|
|
33
33
|
"postinstall": "node scripts/postinstall_notice.js",
|
|
34
|
-
"test": "bash scripts/selfcheck.sh",
|
|
34
|
+
"test": "FH_SELFCHECK_PROFILE=consumer bash scripts/selfcheck.sh",
|
|
35
|
+
"test:full": "bash scripts/selfcheck.sh",
|
|
35
36
|
"prepublishOnly": "bash scripts/prepublish_scope_note.sh && bash scripts/publish_freshness_check.sh && bash scripts/version_lockstep_check.sh && bash scripts/package_coverage_check.sh --vs-tarball && bash scripts/files_manifest_shipping_check.sh --vs-tarball && bash scripts/public_surface_scan_files.sh",
|
|
36
37
|
"release": "bash scripts/public_surface_scan_files.sh && npm publish"
|
|
37
38
|
},
|
|
@@ -148,6 +149,7 @@
|
|
|
148
149
|
"scripts/compaction_probe.sh",
|
|
149
150
|
"scripts/consent_registry_check.sh",
|
|
150
151
|
"scripts/context_continuity_score.sh",
|
|
152
|
+
"scripts/round/nameleak_check.sh",
|
|
151
153
|
"scripts/count_check.sh",
|
|
152
154
|
"scripts/daily_report.sh",
|
|
153
155
|
"scripts/degrade_direction_scan.sh",
|
|
@@ -178,6 +180,8 @@
|
|
|
178
180
|
"scripts/gate_pathspec_check.sh",
|
|
179
181
|
"scripts/prless_delta_scan.sh",
|
|
180
182
|
"scripts/test_claude_md_size_lanes.sh",
|
|
183
|
+
"scripts/resident_cost.py",
|
|
184
|
+
"scripts/test_resident_cost_lanes.sh",
|
|
181
185
|
"scripts/test_fh_audit_check_lanes.sh",
|
|
182
186
|
"scripts/test_prless_delta_scan_lanes.sh",
|
|
183
187
|
"scripts/gate_bootstrap_ephemeral.sh",
|
|
@@ -240,6 +244,8 @@
|
|
|
240
244
|
"scripts/test_adapter_lanes.sh",
|
|
241
245
|
"scripts/test_backtick_guard_lanes.sh",
|
|
242
246
|
"scripts/test_branch_claim_lanes.sh",
|
|
247
|
+
"scripts/main_commit_guard.sh",
|
|
248
|
+
"scripts/test_main_commit_guard_lanes.sh",
|
|
243
249
|
"scripts/test_capability_entrypoint_shipping.sh",
|
|
244
250
|
"scripts/test_card_drift_probe.sh",
|
|
245
251
|
"scripts/test_chamber_sig_lanes.sh",
|
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.24.0] — 2026-10-01 — 상주 비용 계기 · 다이제스트 09-30 잔여
|
|
4
|
+
|
|
5
|
+
**minor.** 새 자산 하나(계기 스크립트). 게이트 수용 변화 없음.
|
|
6
|
+
|
|
7
|
+
- `scripts/resident_cost.py` + 레인 `scripts/test_resident_cost_lanes.sh`: 세션 시작 전 상주 비용(CLAUDE.md · CLAUDE.local.md · 전역 CLAUDE.md 와 @import · MEMORY 실제 적재분 · 스킬 목록)을 **문자·바이트 둘 다** 잰다. 못 잰 칸은 합계에 0 으로 접지 않고 «미측정 N칸» 으로 적는다(rc=3). 경량화 결정을 눈대중 대신 측정으로
|
|
8
|
+
- `knowledge/`: 자평 잔여의 «두 번째 저자» 후보 · 리스 배선 미룸의 외부 비용(다이제스트 09-30)
|
|
9
|
+
- 디스패치 원장 기록
|
|
10
|
+
|
|
11
|
+
### [3.23.1] — 2026-09-30 — 문서 · 기록 (3.23.0 을 함께 싣는 첫 발행)
|
|
12
|
+
|
|
13
|
+
**patch.** 3.23.0 은 태그만 달리고 npm 에 발행되지 않았다 — 3.22.2 에서 올라오면 아래 3.23.0 의 BREAKING (gate) 도 이 발행에 들어 있다.
|
|
14
|
+
|
|
15
|
+
- `capability_composition_contract.md §3` · `agent-composer` Step 2.7: 명명된 잔여 둘 — 스킬 조합 단위 검토 없음(arXiv:2609.30383) · 게이트는 행동을 판정하고 결과를 대조하지 않는다(arXiv:2609.31301)
|
|
16
|
+
- 디스패치 원장 기록(`subagent_invocations_log.yaml`)
|
|
17
|
+
|
|
18
|
+
### [3.23.0] — 2026-09-29 — 로컬 main 에 FH 자산을 직접 커밋하지 못하고, 설치본 npm test 가 소비자 프로필로 돈다
|
|
19
|
+
|
|
20
|
+
**minor — 게이트를 조인다.**
|
|
21
|
+
|
|
22
|
+
> 🟥 **BREAKING (gate): FH 자산이 staged 된 커밋이 `main`/`master` 위에서는 pre-commit 에 막힌다** — 브랜치로 옮겨라
|
|
23
|
+
> (`git switch -c <branch>`, staged 변경은 따라온다). 의도한 것이면 `MAIN_COMMIT_OK=1 git commit …`
|
|
24
|
+
> (`tracks/_meta/.main_commit_override_log` 에 기록). «FH 자산」 = 4축 분류기가 잡는 파일이다 — 그 밖의 파일만
|
|
25
|
+
> staged 된 커밋(예: `package.json` 단독)과 detached HEAD(리베이스 진행 중 · bisect)는 대상이 아니다.
|
|
26
|
+
> main 위의 merge · cherry-pick · revert · `--amend` 커밋은 **막힌다**(모두 main 에 새 커밋을 쓴다).
|
|
27
|
+
|
|
28
|
+
- **`scripts/main_commit_guard.sh`** + pre-commit 배선 — 통합 브랜치는 PR 전용인데 로컬 main 커밋이 N≥5 났다
|
|
29
|
+
(09-11 · 09-18 ×2 · 09-20). 푸시 게이트보다 먼저, 커밋하는 자리에서 막는다. 레인 `scripts/test_main_commit_guard_lanes.sh`
|
|
30
|
+
(단위 5 · 실제 훅 4 · 되돌림 1).
|
|
31
|
+
- **`npm test` = 소비자 프로필** — 설치된 패키지 안에서 `FH_SELFCHECK_PROFILE=consumer` 로 selfcheck 를 돌린다.
|
|
32
|
+
git 체크아웃이 있어야 잴 수 있는 스위트 8개(클론 · `.git/fh-claims` · docs/map · .github/workflows · .gitignore ·
|
|
33
|
+
`git ls-files` 가 필요한 것)는 **이름을 찍고** 건너뛰고, 끝에 목록을 한 번 더 낸다 — PASS 로 세지 않는다.
|
|
34
|
+
체크아웃·CI 에서는 이 프로필이 무시된다(경고). 전체는 `npm run test:full`. CI 는 전과 같이 전체를 돈다.
|
|
35
|
+
대부분 소비자에게도 의미 있는 스위트는 통째로 빼지 않는다 — `test_verdict_watermark_lanes.sh` 는 git 트리나
|
|
36
|
+
미출하 `round/` 계기가 필요한 레인 2묶음(L25a~d · L27)만 패키지 모드에서 이름을 찍고 건너뛴다(체크아웃에서는 여전히 실패).
|
|
37
|
+
`test_probe_live_eval_lanes.sh` 도 같다 — 채점기 레인 30개는 돌고, 미출하 `probes.md` 를 읽는 블록 둘만 이름을 찍고 건너뛴다.
|
|
38
|
+
- **`context_continuity_score.sh` 오염 게이트의 비-git 대체 측정이 `tracks/` 를 뺀다** — 팔의 클론에 안 오는 경로를 훑어
|
|
39
|
+
입력(qset·봉인) 자신을 «오염」으로 잡고 있었다. 설치본에서 `--rescore` 가 rc=5 로 막히던 것이 풀린다(L21~L23 이
|
|
40
|
+
패키지에서 실제로 돈다).
|
|
41
|
+
- **`scripts/round/nameleak_check.sh` 출하** — 출하되는 `context_continuity_score.sh` 의 `--rescore` 경로가 부르는데
|
|
42
|
+
안 실려서, 설치본에서 채점기가 rc=7 로 죽고 있었다(진짜 배포 누락). ⚠️ 채점기의 **회차 실행** 경로는 여전히
|
|
43
|
+
미출하 `round/gatecheck_qset.sh` 를 요구한다(rc=8) — 소비자는 회차를 안 돌린다는 기존 결정(ACCEPTED_ABSENT)대로다.
|
|
44
|
+
- live-eval 문턱 0.8 — 근거를 실측으로 남겼다(아래 스크립트 주석). 값은 안 바꿨다.
|
|
45
|
+
|
|
3
46
|
### [3.22.2] — 2026-09-28 — 설치된 패키지의 자기검사가 없는 파일을 실패로 부르지 않고, 훅 계약 문서가 공식 문서와 실측을 가른다
|
|
4
47
|
|
|
5
48
|
**patch — 수정 + 문서.** 소비자의 게이트 수용은 안 깬다(막는 쪽으로 바뀐 것 없음).
|
|
@@ -253,6 +253,11 @@ If 🚨 items exist, insert before the standard Y/E/N in Step 3:
|
|
|
253
253
|
|
|
254
254
|
`no` → remove that operation or cancel entirely. Safe remaining operations can continue.
|
|
255
255
|
|
|
256
|
+
**Named residual — the plan is gated per step, never as a chain.** A composition whose steps each pass can
|
|
257
|
+
still be harmful as a whole (skills that each soften one signal until it disappears). No check here reads
|
|
258
|
+
the chain as one unit. The 🚨 table above flags a step only by its own type, so a harmless-looking step
|
|
259
|
+
that shapes what a later irreversible step acts on is not flagged. Detail: `knowledge/shared/harness-core/capability_composition_contract.md §3`.
|
|
260
|
+
|
|
256
261
|
---
|
|
257
262
|
|
|
258
263
|
## Step 3. Approval → Execution
|
|
@@ -517,7 +517,9 @@ while IFS='|' read -r _q _k _t tok _general _probe; do
|
|
|
517
517
|
[ "$tok_rc" -le 1 ] || tok_rc=2 # git grep: 0=found 1=none, 그 외는 오류
|
|
518
518
|
else
|
|
519
519
|
echo "⚠️ git 저장소가 아니다 — 워킹트리로 대체 측정한다(팔이 보는 것과 다를 수 있다)" >&2
|
|
520
|
-
|
|
520
|
+
# `tracks/` 는 빼고 잰다 — 위 근거 그대로: 팔의 클론에는 gitignored 인 tracks/ 가 안 온다.
|
|
521
|
+
# 안 빼면 봉인 원장·qset 입력 자신이 «오염»으로 잡혀 설치본의 --rescore 가 rc=5 로 막힌다(2026-09-29 실측).
|
|
522
|
+
tok_out=$(grep -RlF --exclude-dir=.git --exclude-dir=tracks -- "$tok" "$HERE" 2>&1); tok_rc=$?
|
|
521
523
|
fi
|
|
522
524
|
if [ "$tok_rc" -ge 2 ]; then
|
|
523
525
|
echo "🟥 qset 오염 검사 자체가 실패했다 (rc=$tok_rc) — «오염 없음»이 아니다" >&2
|
|
@@ -141,17 +141,33 @@ PY
|
|
|
141
141
|
"Axis 2+3 입력 — 마커는 브랜치·날짜별이라 한쪽에만 산다"
|
|
142
142
|
add_row evidence.card EVIDENCE "$(_exists "$H/tracks/_meta/reference_next_session_starter.md")" \
|
|
143
143
|
"세션 카드 — 없으면 마감 ⑤ 와 온보딩 «returning» 판정의 입력이 없다"
|
|
144
|
-
# 🟥 «tracks 에 파일이 있나» 로 세면 안 된다 —
|
|
145
|
-
#
|
|
146
|
-
#
|
|
147
|
-
#
|
|
148
|
-
|
|
144
|
+
# 🟥 «tracks 에 파일이 있나» 로 세면 안 된다 — **두 방향으로** 틀린다.
|
|
145
|
+
# ⓐ tracks/_contrib/** 와 일부 _meta 파일은 **tracked** 라 새 클론에도 딸려 온다. 그걸 세면
|
|
146
|
+
# 갓 클론한 허브가 「기록이 있다」로 읽히고, 그것이 CLAUDE.md 가 이름으로 적어 둔 온보딩
|
|
147
|
+
# 분기 FP 와 같은 오류다(2026-08-30 실측).
|
|
148
|
+
# ⓑ 🟥 그런데 «untracked 면 전부» 로 세도 틀린다(2026-09-28 실측, 이 계기의 두 번째 결함).
|
|
149
|
+
# 게이트와 스캔이 돌면서 `tracks/_meta/governance_log_<날짜>.yaml` ·
|
|
150
|
+
# `tracks/_meta/.outbound_query_override_log` 같은 **기계 산출물**을 그 밑에 쓴다. 그걸 세면
|
|
151
|
+
# **계기를 한 번 돌린 것 자체가 이 행을 뒤집는다**: 같은 커밋(600e774)의 두 체크아웃이
|
|
152
|
+
# 갓 클론한 쪽 `ABSENT`/`4f43f6f744e8` · 스위트를 돌린 쪽 `PRESENT`/`3f33bfcd0255` 로
|
|
153
|
+
# 갈렸다. 이 계기의 용도가 바로 그 두 지문의 대조라서, 관측자 효과는 여기서 결함이다.
|
|
154
|
+
# ⇒ 세는 것은 **기록 부류**다 — `mapped_tracks.sh` 가 온보딩 분기를 정할 때 읽는 것과
|
|
155
|
+
# **같은 글로브**(`tracks/*/session_*.md` · `tracks/_meta/*.md`)에서 tracked 를 뺀 것.
|
|
156
|
+
# 행의 설명문이 약속하는 코퍼스(«인사 분기와 recall 이 읽는 코퍼스»)와 실제로 세는 것이
|
|
157
|
+
# 같아야 한다는 뜻이고, 두 계기의 일치는 레인 L8c 가 기계로 박는다.
|
|
158
|
+
local untracked_tracks=0 _trk _f _rel
|
|
149
159
|
if git -C "$H" rev-parse --git-dir >/dev/null 2>&1; then
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
160
|
+
_trk="$(git -C "$H" ls-files -- tracks 2>/dev/null)"
|
|
161
|
+
for _f in "$H"/tracks/*/session_*.md "$H"/tracks/_meta/*.md; do
|
|
162
|
+
[ -f "$_f" ] || continue
|
|
163
|
+
_rel="tracks/${_f#"$H"/tracks/}"
|
|
164
|
+
# 🟥 파이프를 쓰지 마라 — `printf "$_trk" | grep -qxF` 는 `set -o pipefail` 아래에서
|
|
165
|
+
# 매치했을 때 생산자가 SIGPIPE 로 죽어 rc=141 을 올린다(= 매치를 «무매치» 로 읽는다).
|
|
166
|
+
# `_trk` 는 허브가 커지면 같이 커지는 명령 출력이라 상한이 없다. here-string 은 파이프가
|
|
167
|
+
# 아니라 그 경합이 아예 없다. 같은 자리의 실사고는 `mapped_tracks.sh` 쪽 — 레인 L8d.
|
|
168
|
+
if grep -qxF "$_rel" <<<"$_trk"; then continue; fi
|
|
169
|
+
untracked_tracks=$(( untracked_tracks + 1 ))
|
|
170
|
+
done
|
|
155
171
|
else
|
|
156
172
|
# git 이 아니면 «없음»이 아니라 «못 쟀음» — 픽스처/비-git 디렉터리를 0 으로 접지 않는다.
|
|
157
173
|
untracked_tracks=UNMEASURABLE
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# main_commit_guard.sh — block a LOCAL commit of FH assets straight onto main/master.
|
|
3
|
+
#
|
|
4
|
+
# WHY (2026-09-29, operator «추천대로»): the integration branch is PR-only, and the server enforces
|
|
5
|
+
# it on push (`enforce_admins`), but local commits to `main` kept happening anyway — N≥5 measured
|
|
6
|
+
# (2026-09-11 list, 09-18 twice, 09-20). Each one had to be moved to a branch by hand afterwards,
|
|
7
|
+
# and on a shared checkout a stray `main` commit is also what the next session's `git switch -c`
|
|
8
|
+
# silently inherits. The push gate catches it late; this catches it at the point it is made.
|
|
9
|
+
#
|
|
10
|
+
# SCOPE — deliberately narrow:
|
|
11
|
+
# · Called by templates/.git-hooks/pre-commit ONLY on the path where an FH asset is staged. A
|
|
12
|
+
# commit with no FH asset (companion store, non-FH files) never reaches this script.
|
|
13
|
+
# · «FH asset» means what the 4-axis classifier in the hook calls one (HEAVY/LIGHT). A commit that
|
|
14
|
+
# stages only files outside it — e.g. `package.json` alone — does not reach this script. Named
|
|
15
|
+
# residual, not widened here: widening the classifier changes the 4-axis gate too.
|
|
16
|
+
# · Blocks on branch `main` or `master` — INCLUDING merge / cherry-pick / revert / `--amend`
|
|
17
|
+
# commits made while on main: each of those writes a new commit onto main. Only a detached HEAD
|
|
18
|
+
# (rebase in progress · bisect) passes, because no branch is being written.
|
|
19
|
+
# · If this script is absent the hook warns and does NOT block (same as branch_claim.sh): a
|
|
20
|
+
# consumer install may carry the hook template without the scripts/ helper.
|
|
21
|
+
# · Override: MAIN_COMMIT_OK=1 — same channel shape as MAIN_PUSH_OK / DESTRUCTIVE_OP_OK /
|
|
22
|
+
# PUBLIC_SURFACE_OK. Every use is appended to tracks/_meta/.main_commit_override_log.
|
|
23
|
+
#
|
|
24
|
+
# Exit: 0 pass · 1 block. Prints nothing on a plain pass (the hook's output is already long).
|
|
25
|
+
# Anchor: scripts/test_main_commit_guard_lanes.sh (unit + real-hook known-pair + revert).
|
|
26
|
+
set -u
|
|
27
|
+
# EVIDENCE_ROOT is supplied by the hook (main tree, worktree-safe); direct callers may point it elsewhere.
|
|
28
|
+
ROOT="${EVIDENCE_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
|
|
29
|
+
BRANCH="${MAIN_GUARD_BRANCH:-$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")}"
|
|
30
|
+
|
|
31
|
+
case "$BRANCH" in
|
|
32
|
+
main|master) ;;
|
|
33
|
+
*) exit 0 ;;
|
|
34
|
+
esac
|
|
35
|
+
|
|
36
|
+
if [ "${MAIN_COMMIT_OK:-0}" = "1" ]; then
|
|
37
|
+
echo " ⚠️ [main-commit] FH asset committed directly on '$BRANCH' by MAIN_COMMIT_OK=1 (logged)"
|
|
38
|
+
mkdir -p "$ROOT/tracks/_meta" 2>/dev/null
|
|
39
|
+
echo "$(date +%Y-%m-%dT%H:%M:%S) MAIN_COMMIT_OK override — branch $BRANCH — $(git diff --cached --name-only 2>/dev/null | wc -l | tr -d ' ') staged path(s)" \
|
|
40
|
+
>> "$ROOT/tracks/_meta/.main_commit_override_log" 2>/dev/null || true
|
|
41
|
+
exit 0
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
echo " ❌ [main-commit] FH asset staged on '$BRANCH' — the integration branch is PR-only."
|
|
45
|
+
echo " Move it: git switch -c <branch> (the staged changes come with you), then commit there."
|
|
46
|
+
echo " Deliberate? MAIN_COMMIT_OK=1 git commit … (logged to tracks/_meta/.main_commit_override_log)"
|
|
47
|
+
exit 1
|
package/scripts/mapped_tracks.sh
CHANGED
|
@@ -142,7 +142,17 @@ _SESS=0
|
|
|
142
142
|
_SESS_NAMES=""
|
|
143
143
|
_is_shipped() { # $1 = path relative to HUB_ROOT
|
|
144
144
|
[ "$_TRACKED_OK" = "1" ] || return 1
|
|
145
|
-
|
|
145
|
+
# 🟥 here-string, NOT a pipe. Under `set -o pipefail` a matching `grep -qxF` exits before
|
|
146
|
+
# reading its input, the producer dies of SIGPIPE, and pipefail raises that 141 as the
|
|
147
|
+
# pipeline's status — so **a match is read as a non-match**. `$_TRACKED` is `git ls-files`
|
|
148
|
+
# output, which grows with the hub, so there is no structural bound to hide behind: the
|
|
149
|
+
# scanner's own measurements put the onset near ~16 KB (`pipefail_earlyexit_scan.sh` header),
|
|
150
|
+
# ≈300 tracked paths under tracks/. Reproduced deterministically at 6,000 paths
|
|
151
|
+
# (2026-09-28): pipe form → rc=141 “NO-MATCH”, here-string → MATCH.
|
|
152
|
+
# 🟥 And the direction is the one this function exists to prevent: a shipped file read as
|
|
153
|
+
# user-made makes a **fresh clone** answer `returning`, the onboarding FP CLAUDE.md names.
|
|
154
|
+
# Lane: test_mapped_tracks_lanes.sh §L-pipe.
|
|
155
|
+
grep -qxF "$1" <<<"$_TRACKED"
|
|
146
156
|
}
|
|
147
157
|
for _f in "$HUB_ROOT"/tracks/*/session_*.md "$HUB_ROOT"/tracks/_meta/*.md; do
|
|
148
158
|
[ -f "$_f" ] || continue
|
|
@@ -89,6 +89,17 @@ LIB="$REPO_ROOT/scripts/probe_live_eval_lib.py"
|
|
|
89
89
|
SIM_RUNNER="${FH_SIM_RUNNER_BIN:-$REPO_ROOT/scripts/sim_isolated_run.sh}"
|
|
90
90
|
|
|
91
91
|
# ── file-header constant — the "문턱" the design brief calls for. Change here, not per-invocation. ──
|
|
92
|
+
# 🟢 MEASURED BASIS (2026-09-29) — the value is unchanged; what changed is that it now has one.
|
|
93
|
+
# Nightly pass_rate since the roster was fixed at 12 probes (09-19 … 09-29, 11 nights):
|
|
94
|
+
# 0.83 · 0.92 · 1.00 · 0.92 · 1.00 · 1.00 · 0.92 · 0.92 · 1.00 · 1.00 · 1.00 → min 10/12.
|
|
95
|
+
# With 12 probes one probe = 0.083, so 0.8 sits exactly one step below the observed normal
|
|
96
|
+
# minimum: 9/12 (0.75) fails, 10/12 passes. Raising it to 0.85 would have flagged 09-19 (10/12)
|
|
97
|
+
# — 1 false alarm in 11 normal nights. The two known-bad nights before the roster change
|
|
98
|
+
# (09-12 = 0.18, 09-13 = UNCALIBRATED) sit far below either value, so 0.8 loses none of them.
|
|
99
|
+
# Per-stratum thresholds (STABLE/FLAKY/HARD) stay deferred until n≥30 per probe — the 2026-09-21
|
|
100
|
+
# stratification found the gain collapses to 0.003 MAE once those two nights are excluded.
|
|
101
|
+
# Source: tracks/_meta/live_eval_*.md (gitignored) · live_eval_stratify_RESULT_2026-09-21.md.
|
|
102
|
+
# 🟥 Re-derive when the roster size changes: the step width (1/N) is what this number rests on.
|
|
92
103
|
THRESHOLD="0.8"
|
|
93
104
|
|
|
94
105
|
# ── EVIDENCE PRESERVATION (2026-09-14) ────────────────────────────────────────────────────────
|