@chrono-meta/fh-gate 3.22.1 → 3.23.1
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/checkout_layer_drift.md +67 -0
- package/knowledge/shared/harness-core/gate_locality_principle.md +25 -2
- package/knowledge/shared/harness-core/hook_channel_visibility.md +23 -3
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +106 -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 +50 -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/round/nameleak_check.sh +85 -0
- package/scripts/selfcheck.sh +99 -8
- 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_post_squash_verify_lanes.sh +183 -0
- package/scripts/test_pr_merge_verified_lanes.sh +104 -0
- package/scripts/test_probe_live_eval_lanes.sh +17 -1
- 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.23.1",
|
|
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.23.1",
|
|
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.23.1",
|
|
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.23.1",
|
|
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
|
|
@@ -19,6 +19,9 @@ FH 는 **읽는 층**과 **막는 층**이 서로 다른 수송로로 다니고,
|
|
|
19
19
|
| **EVIDENCE** | `tracks/_meta` 의 4축 마커 · `edit_manifest.yaml` · 세션 카드 | gitignored | **안 온다** |
|
|
20
20
|
| **PATTERN** | `.public-surface-patterns` · `.residency-patterns` · `LOCAL_SKILL_REGISTRY.md` · `CLAUDE.local.md` | gitignored | **안 온다** |
|
|
21
21
|
|
|
22
|
+
> 다섯째 층 **TOOLCHAIN**(PATH 가 고르는 인터프리터·라이브러리 버전 — 파일이 아니다)은 §10. 재생성 후
|
|
23
|
+
> 바이트 대조하는 레인에서만 문다.
|
|
24
|
+
|
|
22
25
|
🟥 **훅이 «와 있는 것»과 «배선된 것»은 다르다.** `templates/.git-hooks/pre-commit` 은 tracked 라
|
|
23
26
|
어느 클론에나 온다. 하지만 `core.hooksPath` 는 git 이 나르는 값이 아니라 **로컬 설정**이라,
|
|
24
27
|
그 한 줄을 안 잡으면 실물은 있는데 아무것도 안 돈다. 새 클론이 읽는 문서는 전부 「훅이 하드
|
|
@@ -317,6 +320,70 @@ advisory 다(세션이 스스로 설정을 바꾸는 건 정당하다). 스냅
|
|
|
317
320
|
넣지 마라 — 스니펫에 없는 로컬 항목은 세션 전사본에서 원래 값을 찾아 대조한다.
|
|
318
321
|
4. **홈 설정**(`~/.claude/...`)은 이 레포 소유가 아니다 — 무엇이 바뀌었는지만 보고하고 사람이 판단한다.
|
|
319
322
|
|
|
323
|
+
## 10. 다섯째 층 — TOOLCHAIN: «다시 구워 바이트로 대조» 하는 게이트는 도구 버전을 잰다 (2026-09-28)
|
|
324
|
+
|
|
325
|
+
§2 의 네 층은 전부 **파일**이다. 이 층은 파일이 아니라 **그 셸에서 PATH 앞에 오는 인터프리터와
|
|
326
|
+
그 라이브러리 버전**이고, 수송로가 없다 — git 도, gitignored 도 아닌, venv 활성 여부 하나로 바뀐다.
|
|
327
|
+
|
|
328
|
+
| 층 | 무엇 | 수송로 | 새 클론에 |
|
|
329
|
+
|---|---|---|---|
|
|
330
|
+
| **TOOLCHAIN** | 게이트가 재생성에 쓰는 `python3`(또는 `node` · `ffmpeg` …)와 그 라이브러리 버전 | 없음 — **PATH 순서** | 머신마다 다른 것이 온다 |
|
|
331
|
+
|
|
332
|
+
**어디서 무는가**: «산출물이 소스와 같은 세대인가」를 **다시 만들어서 `cmp`** 로 재는 레인. 자기신고
|
|
333
|
+
영수증보다 강한 계기라서 쓰는 형태인데, 재생성 결과가 도구 버전에 달리면 그 레인은 소스가 아니라
|
|
334
|
+
**환경**을 잰다.
|
|
335
|
+
|
|
336
|
+
**실측 — 필드 하네스 한 곳, 같은 날 두 레인** (friends-on-desk 메뉴바 지시자 프레임, 얼굴 둘 ·
|
|
337
|
+
FoD `main` @ `ddcce54`, 트리 무변경 · 재생성은 레포 밖 임시 폴더에). 분모 156 은 **생성기가 만든 장수**다 —
|
|
338
|
+
커밋된 폴더는 얼굴 A 168 · 얼굴 B 156 파일이고, A 의 12장은 지금 생성기가 안 만드는 프레임이다(별건 —
|
|
339
|
+
그 레인은 B 레인과 달리 «소스가 안 만드는 파일」 검사가 없다). 측정 명령(인터프리터마다, 얼굴마다):
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
OUT=$(mktemp -d); $PY tools/make_tray_glyph.py [--profile squirrel] --indicator-out "$OUT"
|
|
343
|
+
n=0; d=0; for f in "$OUT"/*.png; do n=$((n+1)); cmp -s "$f" "<커밋된 폴더>/$(basename "$f")" || d=$((d+1)); done
|
|
344
|
+
echo "n=$n diff=$d"
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
| 인터프리터 | 이미지 라이브러리 | 얼굴 A 차이 | 얼굴 B 차이 |
|
|
348
|
+
|---|---|---|---|
|
|
349
|
+
| 프로젝트 밖 venv (그 셸의 PATH 첫째) | Pillow 12.2.0 | 0/156 | 0/156 |
|
|
350
|
+
| `/usr/bin/python3` | Pillow 11.3.0 | **7/156** | **8/156** |
|
|
351
|
+
| Homebrew `python3` | 없음 | 재생성 실패 → 계기 오류 ❌ | 같음 |
|
|
352
|
+
|
|
353
|
+
셋째 행은 **옳게 짖는다**(못 구웠으면 계기 오류). 문제는 둘째 행이다 — 라이브러리가 **있는데 버전이
|
|
354
|
+
다를 때** 레인은 «소스와 다르다 — 먼저 다시 구워라」를 낸다. 그 처방을 따르면 그 머신의 바이트로
|
|
355
|
+
커밋이 오염되고, 원래 머신에서 거꾸로 빨개진다. **처방까지 틀리는 빨강**이다.
|
|
356
|
+
|
|
357
|
+
**방향**: §4 의 ⓐ(여기 초록·저기 빨강)와 ⓑ(그 반대)가 **둘 다** 난다. 출하 프레임을 11.3 으로 구운
|
|
358
|
+
머신에서 게이트도 11.3 이면 초록, 12.2 머신에서만 빨강이다.
|
|
359
|
+
|
|
360
|
+
**처방 형태 (일반형)**:
|
|
361
|
+
1. 생성기가 굽고 나서 **도구 스탬프**를 남긴다 — 출하 번들에 실리지 않는 자리에. 최소 필드:
|
|
362
|
+
라이브러리 버전 · 그 라이브러리를 불러온 경로(`PIL.__file__` 류) · 생성기 소스 해시.
|
|
363
|
+
2. 게이트는 바이트 대조 **전에** 스탬프와 현재 값을 비교하고, 다르면 PASS 도 FAIL 도 아닌
|
|
364
|
+
**셋째 값**(«이 머신에선 대조 불가」)으로 낸다. 🟥 **스탬프가 없거나 못 읽으면 계기 오류(FAIL)** 다 —
|
|
365
|
+
셋째 값도 아니고 PASS 는 더더욱 아니다. 어느 쪽이든 초록으로 접으면 이 절이 막으려는 것의
|
|
366
|
+
반대 방향(«못 쟀다」를 «같다」로)이 된다.
|
|
367
|
+
⚠️ **남는 잔여**: 버전 문자열이 같은데 빌드가 다른 경우(같은 버전의 다른 휠·다른 네이티브 의존성)는
|
|
368
|
+
버전 비교가 못 가른다. 그때 남는 신호는 바이트 차이 자체뿐이다 — 그래서 3번이 필요하다.
|
|
369
|
+
3. 레인 메시지에 **어느 인터프리터 경로와 버전으로 다시 구웠는지**를 같이 찍는다 — 두 머신의 출력이
|
|
370
|
+
어긋날 때 원인이 한 줄로 보이게.
|
|
371
|
+
✗ 픽셀 허용 오차로 바꾸는 것은 비추천 — «같은 세대인가」를 «비슷한가」로 바꿔 진짜 1픽셀 세대 차이를
|
|
372
|
+
삼킬 수 있다.
|
|
373
|
+
|
|
374
|
+
**FH 자신은?** 2026-09-28 한 번 셌다. `scripts/`·`templates/` 에서 바이트 대조를 쓰는 `.sh`/`.py` 는
|
|
375
|
+
**24** 개다(`grep -rlE 'cmp -s|filecmp|diff -q' scripts templates`, 확장자 필터). 🟥 **도구 이름으로 거르면
|
|
376
|
+
안 된다** — 좁은 어휘(이미지·렌더 도구)로는 2개가 걸렸고 둘 다 오탐이었지만, 넓은 어휘로는 14~20개가
|
|
377
|
+
걸려 어휘가 곧 답을 정한다(교차 계열 검토가 지목). 그래서 **대조 줄 전부를 손으로 읽었다**: 대부분은
|
|
378
|
+
복사 검증 · 되돌림 적용 확인 · 스냅숏 불변 확인이고, «다시 만들어서 커밋된 기록과 대조」 형태는 **1곳** —
|
|
379
|
+
`scripts/test_policy_lens_scorer_lanes.sh` P2(채점기로 1차 런을 재채점해 커밋된 `SCORES.tsv` 와 대조)다.
|
|
380
|
+
그 채점기는 `/usr/bin/awk` 를 **절대경로로** 부른다 — PATH 순서에 안 흔들리는, 이 절 처방의 가장 싼 형태가
|
|
381
|
+
이미 거기 있다(시스템 awk 자체의 버전은 여전히 머신마다 다를 수 있다 — 미측정).
|
|
382
|
+
|
|
383
|
+
**한계**: 한 하네스 · 한 머신 · 인터프리터 셋 · 1회. `env_layer_fingerprint.sh` 는 이 층을 **안 찍는다** —
|
|
384
|
+
FH 쪽 해당 레인이 절대경로 도구 1곳뿐이라 지금 넣을 칸의 값이 작다. 재생성-대조 레인이 PATH 의 도구를
|
|
385
|
+
부르는 형태로 생기면 그때 넣는다.
|
|
386
|
+
|
|
320
387
|
---
|
|
321
388
|
|
|
322
389
|
## §CM-Resident-Paragraph — CLAUDE.md 상주 문단 원문 (2026-09-26 이관)
|
|
@@ -17,12 +17,34 @@ This is a sibling of the **judge-robustness / mechanical-anchor** spine: judge-r
|
|
|
17
17
|
let a foolable judge hold the terminal verdict*; gate-locality says *don't put the gate somewhere the
|
|
18
18
|
enforcer can't see it*. Both fail the same way — a control that looks present but cannot actually fire.
|
|
19
19
|
|
|
20
|
-
## The failure mode (
|
|
20
|
+
## The failure mode (three observed shapes)
|
|
21
21
|
|
|
22
22
|
| Shape | Where the gate was | Who needed it | Why it didn't fire |
|
|
23
23
|
|---|---|---|---|
|
|
24
24
|
| **Code-locality** | absent from the write path entirely | the function that writes to JIRA | the writeback gate checked confidence but not provenance, so a self-inferred finding auto-posted as if verified |
|
|
25
25
|
| **File-locality** | only in a Claude-only `CLAUDE.md` | a Gemini/Codex orchestrator that auto-loads root `AGENTS.md`, not `CLAUDE.md` | the runtime assumed the commander *role* without inheriting the *gates* |
|
|
26
|
+
| **Trigger-locality** (added 2026-09-28) | in the right hook, running the right checks | the commit that changes a path the hook's **trigger pattern** does not match | the gate code is correct and never runs — and "no path matched" renders exactly like "all checks passed" |
|
|
27
|
+
|
|
28
|
+
**The third shape is the quietest, because nothing is misplaced.** The gate lives where the enforcer
|
|
29
|
+
reads it; only its *trigger* — a path pattern deciding whether the gate runs at all — leaves a class
|
|
30
|
+
of changes outside. FH hit it four times on its own gate (`scripts/` · `AGENTS.md` inheritance ·
|
|
31
|
+
agent definitions · `SKILL_detail.md` — the history sits in `scripts/gate_pathspec_check.sh`'s header,
|
|
32
|
+
which is also the mechanical anchor for FH's instance). The **first field-harness instance** was
|
|
33
|
+
measured 2026-09-28 on friends-on-desk: its pre-commit runs the quality gate only when a staged path
|
|
34
|
+
matches an **allowlist** of directories, and the app-code directory was not on it — of 171
|
|
35
|
+
September `main` commits, 24 touched a path under `standalone/` and nothing on the list (18 if the
|
|
36
|
+
predicate is narrowed to `standalone/overlay/src/`; either way a lower bound, since `main` is
|
|
37
|
+
squash-merged and branch commits are not counted). The gate was caught up at merge time, by hand;
|
|
38
|
+
the commit-time green said nothing about app code.
|
|
39
|
+
**Fix pattern specific to this shape**: prefer a **skip-list** ("run unless every staged path is
|
|
40
|
+
known-safe") over an allowlist ("run only if a path is listed"). An allowlist puts every *new*
|
|
41
|
+
directory outside the gate by default. A skip-list moves the *default* to the over-block side — but it
|
|
42
|
+
is **not** fail-closed on its own: it fails silently too if a skip entry is broad (a parent directory
|
|
43
|
+
that later grows code), or if the "every staged path is skippable" predicate is malformed and matches
|
|
44
|
+
everything. So the choice buys a better default, not safety; the safety comes from the lane — a
|
|
45
|
+
known-pair that **extracts the live pattern from the hook** (a copy drifts from the thing it
|
|
46
|
+
verifies) and asserts both directions: code paths, including a *not-yet-existing* directory, run the
|
|
47
|
+
gate; the handful of genuinely safe paths do not; a mixed commit runs it.
|
|
26
48
|
|
|
27
49
|
Both were found 2026-06-20 across **two field harnesses** (Harness-A: a provenance gate missing from a
|
|
28
50
|
write path; Harness-B + Harness-A: orchestration gates that lived only in a Claude-only file). The
|
|
@@ -74,7 +96,8 @@ locality — review alone cannot show it (review reads all files; the runtime do
|
|
|
74
96
|
enforcing actor never loads.
|
|
75
97
|
|
|
76
98
|
These are external anchors for the **prose-vs-mechanical premise**; the locality claim itself
|
|
77
|
-
(N=2, one operator) still awaits direct cross-operator confirmation as named above.
|
|
99
|
+
(N=2, one operator) still awaits direct cross-operator confirmation as named above. The
|
|
100
|
+
trigger-locality shape (2026-09-28) adds a second harness, not a second operator — same caveat.
|
|
78
101
|
|
|
79
102
|
## Relationship to other FH assets
|
|
80
103
|
|
|
@@ -38,8 +38,8 @@ gitignored)이고, 이 문서는 그 판정만 옮긴다. 모델은 전부 sonne
|
|
|
38
38
|
## 1-b. 관측 — 제한 시간을 넘긴 PreToolUse 훅 뒤에 도구가 **실행됐다** (표면 미확인 · 한 조건)
|
|
39
39
|
|
|
40
40
|
> **적용 범위를 먼저 읽어라**: CLI 2.1.283 · sonnet · Bash 도구 한 명령(원장에 명령 원문·권한 모드·표면이
|
|
41
|
-
> 안 적혔다) · 팔당 reps=3. **대화형 pty 인지 헤드리스 `-p` 인지 모른다.**
|
|
42
|
-
>
|
|
41
|
+
> 안 적혔다) · 팔당 reps=3. **대화형 pty 인지 헤드리스 `-p` 인지 모른다.** PermissionRequest 훅 · 자동승인
|
|
42
|
+
> 훅이 있는 조합은 **이 표로 말할 수 없다**. 공식 문서와의 대조는 §1-c(2026-09-28) — 이 표는 실측만 싣는다.
|
|
43
43
|
|
|
44
44
|
| 팔 (위 조건 그대로) | reps | 착지 |
|
|
45
45
|
|---|---|---|
|
|
@@ -57,7 +57,24 @@ gitignored)이고, 이 문서는 그 판정만 옮긴다. 모델은 전부 sonne
|
|
|
57
57
|
- §1 과 같은 방향의 관측이다: 이 조건에서 멈춘 것은 **제한 안에 도착한** deny 뿐이었다.
|
|
58
58
|
- **미측정**: ⓐ 표면(대화형 / 헤드리스) ⓑ 제한 시간 경계 ⓒ PermissionRequest 훅의 시간 초과 ⓓ 자동승인
|
|
59
59
|
훅이 있을 때 ⓔ 다른 도구(Edit · MCP) ⓕ 다른 CLI 버전. 출처: 필드 하네스(데스크톱 펫 게이트) 세션 원장
|
|
60
|
-
2026-09-27(로컬, gitignored).
|
|
60
|
+
2026-09-27(로컬, gitignored). 이 중 ⓑ·ⓒ·ⓔ·ⓕ 는 공식 문서가 답한다 — **«문서 계약 · 실측 미재현»** 으로 §1-c 에
|
|
61
|
+
따로 적었다. 이 목록에서 지우지 않는다: 우리가 잰 것은 여전히 아니다.
|
|
62
|
+
|
|
63
|
+
## 1-c. 공식 문서 계약 — 실측과 **다른 칸**이다 (수집 2026-09-28)
|
|
64
|
+
|
|
65
|
+
> 출처: Claude Code Hooks reference `https://code.claude.com/docs/en/hooks` (수집일 2026-09-28, 인용 행 번호는
|
|
66
|
+
> 그날 받은 사본 기준) · CLI `2.1.283` = npm `@anthropic-ai/claude-code` latest(같은 날 `npm view` · `claude --version`).
|
|
67
|
+
> 🟥 **이 표는 «문서가 그렇게 말한다」이지 «우리가 쟀다」가 아니다.** §1·§1-b 의 실측 칸과 섞어 인용하지 마라.
|
|
68
|
+
|
|
69
|
+
| 계약 | 문서 원문(요지) | 우리 실측과의 관계 |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| PreToolUse 의 `command`·`http`·`mcp_tool` 훅이 **시간 초과되면 도구는 진행**한다 | «A timed-out … hook doesn't block the tool call … don't count on a stalled hook to act as a gate» (§Timeouts, 855행) | §1-b 실측(3/3 실행됨)과 **같은 방향 — 문서가 확인** · 반대로 Agent SDK 콜백 훅은 시간 초과면 막는다(같은 절) — 우리는 안 쟀다 |
|
|
72
|
+
| 훅 기본 제한 시간 | `command`·`http`·`mcp_tool` **600초** · `prompt` 30 · `agent` 60 · 일부 이벤트는 30/10 으로 낮춤 (428행) | 문서 계약 · 실측 미재현(§1-b ⓑ 경계) |
|
|
73
|
+
| 시간 초과 훅은 출력이 버려져 **판정이 없다** | «cancels … discarding the hook's output, so on most events a timed-out hook renders no decision» (851행) | 문서 계약 · 실측 미재현(§1-b ⓒ PermissionRequest 시간 초과 — 판정 없음 = 정상 권한 흐름이라는 것은 **이 일반 규칙에서 읽은 것**이지 이벤트별 문장이 아니다. 단 문서는 프롬프트를 못 띄우는 세션에서는 훅 판정이 없으면 도구 호출이 **거부**된다고 따로 적는다(1875행) — 표면에 따라 방향이 갈린다) |
|
|
74
|
+
| **exit 1 은 막지 않는 오류** — 진행한다 (**대부분의 이벤트** — 같은 절이 worktree 이벤트 등 예외를 따로 적는다) | «For most hook events … treats exit code 1 as a non-blocking error and proceeds with the action» (846행) | 문서 계약 · 실측 미재현. 함의: PreToolUse 게이트 훅의 인터프리터가 죽어 트레이스백과 함께 exit 1 이 나면 **fail-open** 이다 |
|
|
75
|
+
| **PermissionRequest 의 exit 2 는 무시**된다 | «Exit code 2 isn't honored for this event … Deny through the `decision` object» (865행) | 문서 계약 · 실측 미재현(§2 `exit 2` 행은 여전히 미측정). §4-1 의 «exit 2 는 멈춘다」는 **PreToolUse 에 한한다** |
|
|
76
|
+
| 적용 도구 (PreToolUse 에 한해) | PreToolUse 시간 초과 문장이 «the tool call» 로 도구 종류를 가리지 않는다 — 다른 이벤트의 시간 초과 규칙이 아니다 | 문서 계약 · 실측 미재현(§1-b ⓔ Edit · MCP) |
|
|
77
|
+
| 2.1.282 → 2.1.283 | CHANGELOG 2.1.283 절에 훅 **계약** 변경 없음 — 훅 언급 2줄은 `/hooks` 목록 UI 개선과 self-hosted runner 의 git 훅 처리 | §1(2.1.282)·§1-b(2.1.283) 실측을 두 버전에 걸쳐 같이 읽어도 계약 쪽 변화는 없다 — **동작 불변을 잰 것은 아니다** |
|
|
61
78
|
|
|
62
79
|
## 2. 채널 × 표면 × 시점
|
|
63
80
|
|
|
@@ -88,6 +105,9 @@ gitignored)이고, 이 문서는 그 판정만 옮긴다. 모델은 전부 sonne
|
|
|
88
105
|
## 4. 설계 함의
|
|
89
106
|
|
|
90
107
|
1. **비가역을 멈추는 채널은 deny / exit 2 뿐이다.** ask 는 «사람이 프롬프트 앞에 있을 때» 의 채널이다.
|
|
108
|
+
도구 호출 권한 흐름에서 exit 2 가 막는 자리는 PreToolUse 다 — PermissionRequest 에서는 문서상 무시되고
|
|
109
|
+
`decision` deny 만 먹는다(§1-c).
|
|
110
|
+
그리고 판정은 **제한 시간 안에** 도착해야 한다 — 늦은 deny 는 진행이다(§1-b 실측 · §1-c 문서).
|
|
91
111
|
2. **질문 창에서 사람을 돕는 부스트는 지금 없다.** systemMessage 는 고른 뒤에 그려지고, 나머지는
|
|
92
112
|
안 그려진다. 후보: OSC 777(질문 쪽 미측정) · `updatedInput` 으로 선택지 설명에 싣기(질문을
|
|
93
113
|
«바꾸는» 것이라 경계를 넘는다 — 운영자 결정) · 바깥 표면(펫 말풍선·상태표시줄).
|
|
@@ -4515,3 +4515,109 @@
|
|
|
4515
4515
|
커밋 94dd0d4 · 레인 69/0 · 패치 self-check 16길 · 라이브 6/0 · gate 313/0 → 머지 dc7be36. 2026-09-27 엔트리(«카드 사람 답」)의 재개분을 날짜별로 분리 기록.
|
|
4516
4516
|
learning: >-
|
|
4517
4517
|
재개 디스패치는 날짜가 바뀌면 그 날짜 원장에 따로 남는다(④-e 는 날짜로 센다) — 한 엔트리로 묶어 적으면 다음 날 마감이 «원장 0」으로 막는다.
|
|
4518
|
+
|
|
4519
|
+
- date: 2026-09-28
|
|
4520
|
+
session: 9d093859 (아침 — 운영자 판정 반영)
|
|
4521
|
+
agent: general-purpose ×2 (명령 머리 에이전트는 보고 누락으로 SendMessage 재개 1회)
|
|
4522
|
+
task: >-
|
|
4523
|
+
FoD S0 영수증 명령 머리 + 판정기 재봉인(#155, 운영자 ⓐ) · 게이트 지도 조작(휠=이동 · 돋보기 확대 · 위치 막대 · «최신으로」 · 세션 빈 값 이름, #156)
|
|
4524
|
+
count: 2
|
|
4525
|
+
outcome: accepted
|
|
4526
|
+
evidence: >-
|
|
4527
|
+
#155 back-to-back 450 페이로드 판정 칸 20 차이 0 · 누설 0/121 · 새 판정기 090767ef… · gate 316/0 → 머지 ba4b037 ·
|
|
4528
|
+
#156 뷰포트 순수 모듈 레인 45 · 라이브 새 팔 2 · gate 320/0 → 머지 ddcce54 · 설치 + 판정기 --install --apply + FoD 릴리스 v0.1.0(dmg 2종, 해시 일치).
|
|
4529
|
+
learning: >-
|
|
4530
|
+
판정기를 바꾸는 «표시용 칸」 추가는 봉인을 깨므로 «판정 칸 바이트 동일」을 실행으로 증명하는 레인(back-to-back)이 재봉인의 값이다.
|
|
4531
|
+
에이전트가 운영자 문구(«처음 위치로」)의 설명을 사실대로 고쳐 썼다 — 주문서의 틀린 설명을 따르지 않은 것이 옳았다.
|
|
4532
|
+
|
|
4533
|
+
- date: 2026-09-28
|
|
4534
|
+
session: 9d093859 (저녁~야간 — FoD 첫 설치 버그 → v0.1.1)
|
|
4535
|
+
agent: general-purpose ×6 (+SendMessage 재개 5회) · fh-commons:ux-writer-lens ×1
|
|
4536
|
+
task: >-
|
|
4537
|
+
FoD 첫 설치 버그 5건 3갈래 병렬(게이트 창 카운터·번역투 / 첫 설치 드리프트 / 디스플레이 크기) + 호버 설명 사전 ·
|
|
4538
|
+
README 재작성 · UX 라이터 번역투 전수 감사 · 앱 전체 용어 사전 수리 · 상류 아트 제거 + NOTICE 정합
|
|
4539
|
+
count: 7
|
|
4540
|
+
outcome: accepted
|
|
4541
|
+
evidence: >-
|
|
4542
|
+
FoD PR #157 머지(b69fbf0, 브랜치 트리 = main 트리) · gate 337/0 · 오프라인 49/49 · 라이브 레인 직렬 재실행 ·
|
|
4543
|
+
UX 감사 78건+이름 불일치 19종 → S·A급 수리(옛 이름 레인 HEAD 31/6 → 41/0) · 상류 아트 99장(v0.1.0 설치본) 제거 레인 20/20.
|
|
4544
|
+
learning: >-
|
|
4545
|
+
«이름이 자리마다 다르다」가 드리프트 버그의 뿌리였다 — 수리는 문구가 아니라 «원천 하나(MODE_LABELS · fod-glossary)」.
|
|
4546
|
+
감사 렌즈는 읽기 전용이라 보고서를 거버너가 전사본에서 추출해 빌더에게 넘겼다. 라이브 영수증이 소스 지문이라
|
|
4547
|
+
README(비-standalone) 커밋이 게이트에 막혀 «standalone 먼저 → 라이브 갱신 → 나머지」 순서로 풀었다.
|
|
4548
|
+
|
|
4549
|
+
- date: 2026-09-28
|
|
4550
|
+
session: 9d093859 (야간 — FoD 독립·칸 3·게이트 최신화)
|
|
4551
|
+
agent: general-purpose ×8 · sonnet(클린룸 구현자) ×1 · 헤드리스 claude/codex 구현자 ×4(에이전트 내부)
|
|
4552
|
+
task: >-
|
|
4553
|
+
FoD 독립 계획(인벤토리 440파일·218,742줄) · 클린룸 교정 1바퀴(명세→codex 검수→격리 구현 89/89) · 계기 재교정 ·
|
|
4554
|
+
사전등록 복제(구현 5개, 반증 F1c 발동) · 질문 판정기(그림자) · 메타감사 채점기(그림자, 교정 20/20) ·
|
|
4555
|
+
프런티어 트렌드 → 게이트 최신화 제안(M1~M3) · 게이트 끄기 설정 변경 차단(진행 중)
|
|
4556
|
+
count: 9
|
|
4557
|
+
outcome: accepted
|
|
4558
|
+
evidence: >-
|
|
4559
|
+
클린룸 전사 감사 금지 경로 0(구현자 5명) · PREREG_cleanroom_rule_v1 sha 0da2d558… 봉인 후 실행 · 규칙 C 반증(Opus 구현이
|
|
4560
|
+
이벤트 리스너 관용구로 C 실패) · 채점기 PREREG 170402cb… · 질문 판정기 레인 52/0 · 45/0 · 봉인 판정기 090767ef… 불변.
|
|
4561
|
+
learning: >-
|
|
4562
|
+
«인터페이스 이름 가림」은 수렴과 복사를 못 가른다(공통 자리표시는 같은 이름을 못 쪼갠다) — 가른 것은 «독립 구현이
|
|
4563
|
+
재현하지 않는 겹침」. 사전등록 복제 한 번에 봉인 규칙이 반증됐다 = 계기가 산다는 증거. 운영자 132건 전부 «맞다」 는
|
|
4564
|
+
건별 채점의 판별력 상실 신호였다(운영자: «틀을 보는 게 더 효과적」).
|
|
4565
|
+
|
|
4566
|
+
- date: 2026-09-28
|
|
4567
|
+
session: cee7b509 (병렬 세션 B — FH 자체개발)
|
|
4568
|
+
agent: general-purpose ×1
|
|
4569
|
+
task: >-
|
|
4570
|
+
세션 카드 1945줄에서 FH 자산 잔여 추출·분류
|
|
4571
|
+
count: 1
|
|
4572
|
+
outcome: accepted
|
|
4573
|
+
evidence: >-
|
|
4574
|
+
15행 분류, 1순위(배포본 npm test 파손)를 타르볼 실측으로 확인 → #832
|
|
4575
|
+
learning: >-
|
|
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)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.1",
|
|
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
|
},
|
|
@@ -119,7 +120,9 @@
|
|
|
119
120
|
"scripts/.env_purity_tokens.defaults",
|
|
120
121
|
"scripts/activity_log.sh",
|
|
121
122
|
"scripts/post_squash_verify.sh",
|
|
123
|
+
"scripts/test_post_squash_verify_lanes.sh",
|
|
122
124
|
"scripts/pr_merge_verified.sh",
|
|
125
|
+
"scripts/test_pr_merge_verified_lanes.sh",
|
|
123
126
|
"scripts/adapters/fixtures/mate_agent_boundary_known_negative.md",
|
|
124
127
|
"scripts/adapters/fixtures/mate_agent_boundary_known_positive.md",
|
|
125
128
|
"scripts/adapters/fixtures/qasp_web_rules_known_negative.json",
|
|
@@ -146,6 +149,7 @@
|
|
|
146
149
|
"scripts/compaction_probe.sh",
|
|
147
150
|
"scripts/consent_registry_check.sh",
|
|
148
151
|
"scripts/context_continuity_score.sh",
|
|
152
|
+
"scripts/round/nameleak_check.sh",
|
|
149
153
|
"scripts/count_check.sh",
|
|
150
154
|
"scripts/daily_report.sh",
|
|
151
155
|
"scripts/degrade_direction_scan.sh",
|
|
@@ -238,6 +242,8 @@
|
|
|
238
242
|
"scripts/test_adapter_lanes.sh",
|
|
239
243
|
"scripts/test_backtick_guard_lanes.sh",
|
|
240
244
|
"scripts/test_branch_claim_lanes.sh",
|
|
245
|
+
"scripts/main_commit_guard.sh",
|
|
246
|
+
"scripts/test_main_commit_guard_lanes.sh",
|
|
241
247
|
"scripts/test_capability_entrypoint_shipping.sh",
|
|
242
248
|
"scripts/test_card_drift_probe.sh",
|
|
243
249
|
"scripts/test_chamber_sig_lanes.sh",
|
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.23.1] — 2026-09-30 — 문서 · 기록 (3.23.0 을 함께 싣는 첫 발행)
|
|
4
|
+
|
|
5
|
+
**patch.** 3.23.0 은 태그만 달리고 npm 에 발행되지 않았다 — 3.22.2 에서 올라오면 아래 3.23.0 의 BREAKING (gate) 도 이 발행에 들어 있다.
|
|
6
|
+
|
|
7
|
+
- `capability_composition_contract.md §3` · `agent-composer` Step 2.7: 명명된 잔여 둘 — 스킬 조합 단위 검토 없음(arXiv:2609.30383) · 게이트는 행동을 판정하고 결과를 대조하지 않는다(arXiv:2609.31301)
|
|
8
|
+
- 디스패치 원장 기록(`subagent_invocations_log.yaml`)
|
|
9
|
+
|
|
10
|
+
### [3.23.0] — 2026-09-29 — 로컬 main 에 FH 자산을 직접 커밋하지 못하고, 설치본 npm test 가 소비자 프로필로 돈다
|
|
11
|
+
|
|
12
|
+
**minor — 게이트를 조인다.**
|
|
13
|
+
|
|
14
|
+
> 🟥 **BREAKING (gate): FH 자산이 staged 된 커밋이 `main`/`master` 위에서는 pre-commit 에 막힌다** — 브랜치로 옮겨라
|
|
15
|
+
> (`git switch -c <branch>`, staged 변경은 따라온다). 의도한 것이면 `MAIN_COMMIT_OK=1 git commit …`
|
|
16
|
+
> (`tracks/_meta/.main_commit_override_log` 에 기록). «FH 자산」 = 4축 분류기가 잡는 파일이다 — 그 밖의 파일만
|
|
17
|
+
> staged 된 커밋(예: `package.json` 단독)과 detached HEAD(리베이스 진행 중 · bisect)는 대상이 아니다.
|
|
18
|
+
> main 위의 merge · cherry-pick · revert · `--amend` 커밋은 **막힌다**(모두 main 에 새 커밋을 쓴다).
|
|
19
|
+
|
|
20
|
+
- **`scripts/main_commit_guard.sh`** + pre-commit 배선 — 통합 브랜치는 PR 전용인데 로컬 main 커밋이 N≥5 났다
|
|
21
|
+
(09-11 · 09-18 ×2 · 09-20). 푸시 게이트보다 먼저, 커밋하는 자리에서 막는다. 레인 `scripts/test_main_commit_guard_lanes.sh`
|
|
22
|
+
(단위 5 · 실제 훅 4 · 되돌림 1).
|
|
23
|
+
- **`npm test` = 소비자 프로필** — 설치된 패키지 안에서 `FH_SELFCHECK_PROFILE=consumer` 로 selfcheck 를 돌린다.
|
|
24
|
+
git 체크아웃이 있어야 잴 수 있는 스위트 8개(클론 · `.git/fh-claims` · docs/map · .github/workflows · .gitignore ·
|
|
25
|
+
`git ls-files` 가 필요한 것)는 **이름을 찍고** 건너뛰고, 끝에 목록을 한 번 더 낸다 — PASS 로 세지 않는다.
|
|
26
|
+
체크아웃·CI 에서는 이 프로필이 무시된다(경고). 전체는 `npm run test:full`. CI 는 전과 같이 전체를 돈다.
|
|
27
|
+
대부분 소비자에게도 의미 있는 스위트는 통째로 빼지 않는다 — `test_verdict_watermark_lanes.sh` 는 git 트리나
|
|
28
|
+
미출하 `round/` 계기가 필요한 레인 2묶음(L25a~d · L27)만 패키지 모드에서 이름을 찍고 건너뛴다(체크아웃에서는 여전히 실패).
|
|
29
|
+
`test_probe_live_eval_lanes.sh` 도 같다 — 채점기 레인 30개는 돌고, 미출하 `probes.md` 를 읽는 블록 둘만 이름을 찍고 건너뛴다.
|
|
30
|
+
- **`context_continuity_score.sh` 오염 게이트의 비-git 대체 측정이 `tracks/` 를 뺀다** — 팔의 클론에 안 오는 경로를 훑어
|
|
31
|
+
입력(qset·봉인) 자신을 «오염」으로 잡고 있었다. 설치본에서 `--rescore` 가 rc=5 로 막히던 것이 풀린다(L21~L23 이
|
|
32
|
+
패키지에서 실제로 돈다).
|
|
33
|
+
- **`scripts/round/nameleak_check.sh` 출하** — 출하되는 `context_continuity_score.sh` 의 `--rescore` 경로가 부르는데
|
|
34
|
+
안 실려서, 설치본에서 채점기가 rc=7 로 죽고 있었다(진짜 배포 누락). ⚠️ 채점기의 **회차 실행** 경로는 여전히
|
|
35
|
+
미출하 `round/gatecheck_qset.sh` 를 요구한다(rc=8) — 소비자는 회차를 안 돌린다는 기존 결정(ACCEPTED_ABSENT)대로다.
|
|
36
|
+
- live-eval 문턱 0.8 — 근거를 실측으로 남겼다(아래 스크립트 주석). 값은 안 바꿨다.
|
|
37
|
+
|
|
38
|
+
### [3.22.2] — 2026-09-28 — 설치된 패키지의 자기검사가 없는 파일을 실패로 부르지 않고, 훅 계약 문서가 공식 문서와 실측을 가른다
|
|
39
|
+
|
|
40
|
+
**patch — 수정 + 문서.** 소비자의 게이트 수용은 안 깬다(막는 쪽으로 바뀐 것 없음).
|
|
41
|
+
|
|
42
|
+
- **`scripts/selfcheck.sh` 부분 수리** — 설치된 패키지에서 출하 안 된 bin 래퍼 3개를 FAIL 이 아니라 SKIP 으로
|
|
43
|
+
부른다(체크아웃에서 지운 것은 여전히 FAIL). 로케일 rc=2 는 «미출하 스위트 부재」 사유일 때만 경고.
|
|
44
|
+
post_squash · pr_merge 레인을 `files[]` 에 더했다(타르볼 21/0). ⚠️ 배포본 `npm test` 는 체크아웃을 전제하는
|
|
45
|
+
스위트 때문에 아직 rc=1 이다 — 부분 수리임을 명시한다.
|
|
46
|
+
- **`knowledge/shared/harness-core/hook_channel_visibility.md` §1-c** — 공식 hooks 문서의 계약(시간 초과 시 진행 ·
|
|
47
|
+
command 훅 기본 600초 · exit 1 비차단 · PermissionRequest 의 exit 2 무시)을 «문서 계약 · 실측 미재현」 칸으로
|
|
48
|
+
실측과 분리. CLI 2.1.283 = npm latest, 282→283 사이 훅 계약 변경 없음.
|
|
49
|
+
- **`gate_locality_principle.md` 셋째 모양 «트리거 경로 사각」** · **`checkout_layer_drift.md` 다섯째 층 TOOLCHAIN**
|
|
50
|
+
(같은 판정이 도구 버전에 따라 갈리는 층 — Pillow 12.2 → 0/156 · 11.3 → 7/156).
|
|
51
|
+
- `scripts/utterance_skill_probe.sh` route 그림자(`FH_ROUTE_SHADOW` 일 때만, 기본 끔 · 출하 목록 밖) · 디스패치 원장.
|
|
52
|
+
|
|
3
53
|
### [3.22.1] — 2026-09-28 — 동반 저장소 미러가 서드파티 클론을 안 싣고, 훅 제한 시간 관측을 싣는다
|
|
4
54
|
|
|
5
55
|
**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
|