@chrono-meta/fh-gate 3.28.0 → 3.29.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/CHEATSHEET.md +2 -2
- package/CLAUDE.md +5 -2
- package/docs/REFERENCE.md +4 -1
- package/knowledge/shared/harness-core/claude_md_full_reference.md +2 -0
- package/knowledge/shared/harness-core/claude_md_gate_details.md +7 -0
- package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +12 -0
- package/knowledge/shared/harness-core/fh_three_layer_canon.md +12 -0
- package/knowledge/shared/harness-core/measurement-integrity-checklist.md +16 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +56 -0
- package/package.json +3 -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 +22 -0
- package/plugins/fh-meta/skills/auto-decorrelation/SKILL.md +17 -0
- package/plugins/fh-meta/skills/sim-conductor/SKILL.md +2 -2
- package/plugins/fh-meta/skills/sim-conductor/SKILL_detail.md +3 -3
- package/plugins/fh-meta/skills/steel-quench/SKILL.md +25 -1
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/degrade_direction_scan.sh +43 -0
- package/scripts/dispatch_receipt.py +185 -0
- package/scripts/doc_claim_triad_scan.py +43 -4
- package/scripts/fh-gate.sh +71 -11
- package/scripts/finding_fleet.sh +15 -3
- package/scripts/package_coverage_check.sh +5 -0
- package/scripts/selfcheck.sh +41 -20
- package/scripts/session_checklist.py +155 -12
- package/scripts/test_degrade_scan_shell_probes.sh +81 -0
- package/scripts/test_dispatch_receipt_lanes.sh +95 -0
- package/scripts/test_doc_claim_triad_lanes.sh +30 -0
- package/scripts/test_fh_audit_check_lanes.sh +10 -5
- package/scripts/test_fh_gate_regressions.sh +71 -1
- package/scripts/test_finding_pipeline_lanes.sh +83 -0
- package/scripts/test_locale_invariance_lanes.sh +19 -0
- package/scripts/test_mutation_probe_lanes.sh +22 -6
- package/scripts/test_selfcheck_state_lanes.sh +32 -0
- package/scripts/test_session_checklist_lanes.sh +138 -0
- package/templates/PRE-PUBLISH-CHECKLIST.md +10 -0
- package/templates/degrade_direction_scan.sh +43 -0
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.29.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.29.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.29.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.29.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
|
}
|
package/CHEATSHEET.md
CHANGED
|
@@ -238,7 +238,7 @@ npx --package @chrono-meta/fh-gate fh-gate # auto-detect from
|
|
|
238
238
|
npx --package @chrono-meta/fh-gate fh-gate "src/foo.ts" full # explicit files + level
|
|
239
239
|
FH_BACKEND=codex npx --package @chrono-meta/fh-gate fh-gate # Codex backend (default: claude)
|
|
240
240
|
# → FH_GATE_VERDICT: PASS | PENDING | BLOCKED | ESCALATE
|
|
241
|
-
# → exit: 0 PASS · 1 PENDING · 2 BLOCKED · 3 ESCALATE · 10 harness error · 11 arg error
|
|
241
|
+
# → exit: 0 PASS · 1 PENDING · 2 BLOCKED · 3 ESCALATE · 10 harness error · 11 arg error · 12 dry-run
|
|
242
242
|
|
|
243
243
|
# Run a skill or agent doc through a backend, outside Claude Code
|
|
244
244
|
npx --package @chrono-meta/fh-gate fh-run --skill <name>
|
|
@@ -257,7 +257,7 @@ fh-codex-doctor --strict
|
|
|
257
257
|
| Knob | Values | Effect |
|
|
258
258
|
|------|--------|--------|
|
|
259
259
|
| `FH_BACKEND` | `claude` \| `codex` \| `auto` | Backend CLI, **one leg**. `claude` runs `claude --print`; `codex` runs `codex exec`; `auto` is fallback *selection* — it prefers Codex when both CLIs are present, and still runs only one |
|
|
260
|
-
| `FH_BACKEND=cross` | `cross` | **Both model families, findings UNIONed** (a finding only one family saw is still a finding, so union rather than vote); the verdict is the most severe leg. Costs ~2x, so it is for load-bearing verdict / gate / irreversible-surface changes, not a default. The output always declares which legs actually ran (`FH_GATE_LEGS:`, `FH_GATE_DECORRELATED:`) — on a machine with only one family installed, `cross` degrades to that single leg **and says so**, because a single-family result that reads as cross-checked is worse than an honest one |
|
|
260
|
+
| `FH_BACKEND=cross` | `cross` | **Both model families, findings UNIONed** (a finding only one family saw is still a finding, so union rather than vote); the verdict is the most severe leg. Costs ~2x, so it is for load-bearing verdict / gate / irreversible-surface changes, not a default. The output always declares which legs actually ran (`FH_GATE_LEGS:`, `FH_GATE_DECORRELATED:`) — on a machine with only one family installed, `cross` degrades to that single leg **and says so**, because a single-family result that reads as cross-checked is worse than an honest one. A single-leg PASS or PENDING becomes **ESCALATE (exit 3)** with `FH_GATE_ESCALATE_REASON: cross-degraded …` — cross was asked for and not delivered; `FH_GATE_CROSS_ALLOW_SINGLE=1` accepts one family and is echoed as `FH_GATE_CROSS_OVERRIDE:` |
|
|
261
261
|
| `FH_MODEL` | model id | Override backend model |
|
|
262
262
|
| level arg | `quick` \| `full` | Gate depth (default `quick`) |
|
|
263
263
|
|
package/CLAUDE.md
CHANGED
|
@@ -84,12 +84,15 @@ Isolated delegation is part of the identity: dispatch separable work (blind eval
|
|
|
84
84
|
| "research this" | built-in `/deep-research` → WebSearch/WebFetch synthesis → `/frontier-digest` only for AI/harness trends |
|
|
85
85
|
| a need a Claude Code built-in may cover | `builtin_capability_map.md` |
|
|
86
86
|
| "what did we do last week / find past work" | read `CATALOG.md` first, then open only matched files |
|
|
87
|
+
| "wrap up this week" · weekly review · a retrospective over a *period* (not this session) | `/harvest-loop`. Closing *this* session — with or without a retro of it — is Session Wrap-up below (its ② already runs harvest-loop) |
|
|
88
|
+
| a bare "정리해줘" / "organize this" with no object in the message or the conversation | ask what to organize (`/deep-clarify`) — never assume the session close; material just pasted or produced *is* the object |
|
|
89
|
+
| "context is getting long" · token limit · the session itself feels slow | built-in `/context` · `/compact` first, then `/context-doctor` for what they do not cover |
|
|
87
90
|
| anything else | skill descriptions route themselves; the full previous table is in `claude_md_full_reference.md §Autonomous Initiative Layer` |
|
|
88
91
|
|
|
89
92
|
Propose a skill in one line; never re-propose one the user rejected 3× (UAP: `tracks/_meta/user_adaptation_profile.md`). Before offering to stop asking after 3 consecutive accepts, read `claude_md_full_reference.md §Operational Adaptation Loop` — classes that touch or feed an irreversible sink never promote. At session start and on entering field acceleration or an FH-asset change, apply `claude_md_full_reference.md §Cadence Rules` and §Event-bound proposals.
|
|
90
93
|
|
|
91
|
-
## Session Wrap-up (fires on "wrap up / done / 마무리 / 마감" in any language)
|
|
92
|
-
Read `claude_md_full_reference.md §Session Wrap-up` first (thread-continuation block, Agent View pre-read, multi-session close). ① git status + unpushed → ①-b open-PR sweep (propose merges, never auto) → ①-f `scripts/utterance_intake.sh` → ①-g request-checklist result sheet: `scripts/session_checklist.py extract` → fill 상태 with evidence/reasons → **show the operator the table**, open rows first (a hook also nudges this mid-session, every 15 written-down requests) → ② harvest-loop if FH assets changed or `close_retro` is granted → ③ sync to the companion store if you keep one — an ephemeral/cloud session leaves a handoff somewhere durable before it ends → ④ memory hygiene → ④-b npm freshness (propose republish, never auto; version digit policy in `claude_md_gate_details.md §Version-Digit-Policy`) → ④-c stamp superseded handoffs → ⑤ append close findings to `tracks/_meta/fh_completed_{date}.md`, **then** rewrite `tracks/_meta/reference_next_session_starter.md` (card last; anything dropped from the card must be logged done or explained) → ⑥ `FH_SESSION_CLOSE=1 git push
|
|
94
|
+
## Session Wrap-up (fires on "wrap up / done / 마무리 / 마감" in any language — closing *this* session; a week/period review or a bare "정리해줘" is routed by the table above)
|
|
95
|
+
Read `claude_md_full_reference.md §Session Wrap-up` first (thread-continuation block, Agent View pre-read, multi-session close). ① git status + unpushed → ①-b open-PR sweep (propose merges, never auto) → ①-f `scripts/utterance_intake.sh` → ①-g request-checklist result sheet: `scripts/session_checklist.py extract` → fill 상태 with evidence/reasons → **show the operator the table**, open rows first (a hook also nudges this mid-session, every 15 written-down requests) → ② harvest-loop if FH assets changed or `close_retro` is granted → ③ sync to the companion store if you keep one — an ephemeral/cloud session leaves a handoff somewhere durable before it ends → ④ memory hygiene → ④-b npm freshness (propose republish, never auto; version digit policy in `claude_md_gate_details.md §Version-Digit-Policy`) → ④-c stamp superseded handoffs → ⑤ append close findings to `tracks/_meta/fh_completed_{date}.md`, **then** rewrite `tracks/_meta/reference_next_session_starter.md` (card last; anything dropped from the card must be logged done or explained) → ⑥ `FH_SESSION_CLOSE=1 git push` — when `git log @{u}..HEAD` **exits 0 and prints nothing**, run `FH_SESSION_CLOSE=1 bash scripts/session_close_check.sh` instead and close only on exit 0 (same check, no push); if that query fails (no upstream, detached HEAD), resolve the push state first. Log completed items in `fh_completed_{date}.md` as they finish, not at close. Detail: `claude_md_full_reference.md §Session Wrap-up`.
|
|
93
96
|
|
|
94
97
|
## Where the rest lives
|
|
95
98
|
`claude_md_full_reference.md` (everything previously resident) · `claude_md_gate_details.md` · `fh_detail_protocols.md` · `knowledge/shared/rules/` (operations, sync/push, modes) · `CATALOG.md` (search index) · `.claude/rules/fh_4axis_gate.md`.
|
package/docs/REFERENCE.md
CHANGED
|
@@ -361,7 +361,10 @@ FH_BACKEND=cross npx --package @chrono-meta/fh-gate fh-gate # BOTH families, f
|
|
|
361
361
|
Same governance prompt for every runtime. `auto` is fallback *selection* — it runs **one** leg; `cross`
|
|
362
362
|
runs both families and unions their findings (a finding only one family saw is still a finding), costs
|
|
363
363
|
~2x, and is for load-bearing verdict / gate / irreversible-surface changes, not a default. The output
|
|
364
|
-
always declares which legs actually ran, so a single-family result never reads as cross-checked.
|
|
364
|
+
always declares which legs actually ran, so a single-family result never reads as cross-checked. If only
|
|
365
|
+
one family could run, a PASS or PENDING from it comes back as **ESCALATE (exit 3)** with
|
|
366
|
+
`FH_GATE_ESCALATE_REASON: cross-degraded …`; set `FH_GATE_CROSS_ALLOW_SINGLE=1` to accept a single family
|
|
367
|
+
(the output then carries `FH_GATE_CROSS_OVERRIDE:`).
|
|
365
368
|
`fh-run` (one skill or agent directly), `fh-goal` and `fh-codex-doctor` (adapter drift check) ship
|
|
366
369
|
alongside it — flags and the full env table in [`CHEATSHEET.md`](../CHEATSHEET.md), spec in
|
|
367
370
|
[`fh_integration_contract.md`](../knowledge/shared/harness-core/fh_integration_contract.md).
|
|
@@ -1220,6 +1220,8 @@ Closing phrase detected ("wrap up", "done", "good work", "end session", etc. —
|
|
|
1220
1220
|
> `session_close_check.sh` ①-c·①-d, 내용 착지는 `scripts/utterance_landing_check.sh`.
|
|
1221
1221
|
> **읽어라 — 이 요약에는 판별 규칙도 쓰기 규율도 없다.**
|
|
1222
1222
|
|
|
1223
|
+
**⑥ with nothing to push (2026-10-19)**: when `git log @{u}..HEAD` **exits 0 and prints nothing**, run `FH_SESSION_CLOSE=1 bash scripts/session_close_check.sh` directly instead of pushing, and treat its exit 1 as the blocked close (fix and re-run). Keep `FH_SESSION_CLOSE=1`: the script writes the close stamp (①-d) only under it. 🟥 **A failed query is not «nothing to push»** — with no upstream or a detached HEAD the command fails with empty stdout; resolve the push state (set upstream, or push the branch) before closing. The range compares the current branch with its upstream only; if the session meant to publish other refs, push them normally. Why (2026-10-19): the FH gate inside FoD stopped `FH_SESSION_CLOSE=1 git push` on `main` with 0 commits to send (`tracks/_meta/fh_signal_2026-10-19_gate-fp-exemptions-bypassed.md`), so the check riding on `pre-push` did not run. Dropping the push alone would lose the check too: git runs `pre-push` even for an up-to-date push (scratch-repo probe 2026-10-19: hook ran, then «Everything up-to-date»). What the direct call does not repeat are the hook's other push checks (zone, tags, PR-only branch) — none apply when nothing is sent.
|
|
1224
|
+
|
|
1223
1225
|
**Card-last guard**: ①–④-c (incl. ①-b open-PR sweep, ④-c handoff lifecycle) must ALL complete before
|
|
1224
1226
|
⑤ runs. **Mechanical floor**: `scripts/session_close_check.sh` is **wired into `templates/.git-hooks/pre-push`** (2026-07-20) — it runs on *every* push, so it is no longer prose-invoked. Enforcement is surface-matched: an ordinary push **surfaces** ❌ violations (advisory — a branch push is reversible), and the **close push blocks** on them: run step ⑥ as **`FH_SESSION_CLOSE=1 git push`** → exit 1 (card-last violated / required close artifact missing) stops the push until fixed. *Why not block always*: same §CM-Close-Atomic-Origin. Any new information produced during ①–④ (new commits from a merged self-PR, model changes,
|
|
1225
1227
|
new findings, a carry item flipped to DONE) feeds INTO ⑤ — card is never written mid-sequence and
|
|
@@ -405,6 +405,13 @@ sessions (no FH asset modification) never see this notice — the Sonnet default
|
|
|
405
405
|
> CLAUDE.md 는 규칙(3값 + 판별자 + `BREAKING (gate):` 의무)만 상주로 갖고, 아래 근거·판례를
|
|
406
406
|
> 여기서 읽는다. salience-split 2026-08-21.
|
|
407
407
|
|
|
408
|
+
> **minor·major 를 올릴 때 (또는 하네스를 공개 발표할 때) 하나 더 — `/sim-conductor` Area B.**
|
|
409
|
+
> 2026-10-19 운영자 결정으로 Area B 는 30일 터미널 알림에서 **사건 기준**으로 바뀌었다. 그 사건이 바로
|
|
410
|
+
> 여기다: 직전 minor 발행 뒤 Area B 가 한 번도 안 돌았으면 태그 푸시 전에 돌린다(외부 독자 관점 ·
|
|
411
|
+
> 이름·구조 빈틈 · challenger). patch 는 해당 없음. 상세 = `templates/PRE-PUBLISH-CHECKLIST.md
|
|
412
|
+
> §Read it as a reader` 마지막 항목. 태그 워크플로(`publish.yml`)는 이걸 검사하지 않는다 — 기계가 아니라
|
|
413
|
+
> 이 절차가 지킨다(판단 단계라 일부러 기계화하지 않음).
|
|
414
|
+
|
|
408
415
|
🟥 **WHICH DIGIT — operator decision 2026-08-17, and it is deliberately NOT strict semver.**
|
|
409
416
|
There was no policy before this line, which is why one session proposed three different bumps
|
|
410
417
|
for the same delta on three different (and each individually defensible) grounds. Decide by
|
|
@@ -297,3 +297,15 @@ session dispatched 20+ subagents and logged none of them, in the same session th
|
|
|
297
297
|
log file from a branch queued for deletion. The hook only tallies; it never writes an entry, because a
|
|
298
298
|
fabricated `outcome`/`evidence` would poison the promotion gate worse than a missing one.
|
|
299
299
|
|
|
300
|
+
|
|
301
|
+
## §Edit-Handback-Receipt — an agent's «I changed X» is closed by the governor's own receipt (2026-10-20)
|
|
302
|
+
|
|
303
|
+
CLAUDE.md §Agent Dispatch says a sidecar's findings stay evidence until the governor closes each against a mechanical anchor.
|
|
304
|
+
For **edit work** (an agent that commits on a branch or in a worktree) there was no anchor, so the close step read the agent's
|
|
305
|
+
own summary («committed 7f2acd2, 11 files, tests green»). Before calling dispatched edit work done, run
|
|
306
|
+
`python3 scripts/dispatch_receipt.py <worktree> <base> --claimed <the files the agent named>` from the governor's shell and
|
|
307
|
+
quote its output: head sha, branch, commits, `diff --stat`, uncommitted count and a hash per changed file are what the
|
|
308
|
+
repository says. rc=1 means the claim and the change differ (named both ways) or the work is not committed — read it as
|
|
309
|
+
«not closed», never as a small discrepancy. «0 files» with a non-empty claim is rc=1, not a pass. The receipt says what
|
|
310
|
+
changed, not whether it is right: tests and review still decide that. Outside anchors: `arXiv:2610.15459`, «report ≠
|
|
311
|
+
change» (frontier digest 2026-10-20). Lanes: `scripts/test_dispatch_receipt_lanes.sh` (wired in selfcheck).
|
|
@@ -81,6 +81,18 @@ tags: [canon, three-layer, engines, identity, verification-axes]
|
|
|
81
81
|
③ 마무리 6축 태우기 §1-a-2 의 여섯 축으로 태운다. **적대검증 하나가 아니다**
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
> **② 는 검증 쪽에만 있는 게 아니다 — 만들기 쪽 경연 (2026-10-19 추가).** 무거운 설계에 살아 있는
|
|
85
|
+
> 접근이 둘 이상이면(예: 금지 목록 vs 허용 목록, 훅 쪽 판정 vs 앱 쪽 판정), 하나를 골라 짓고
|
|
86
|
+
> 적대검증으로 깎는 대신 **2~3 갈래를 같은 영혼(①)·같은 레인으로 따로 짓고**, 레인과 다른 계열
|
|
87
|
+
> 검토로 바탕을 고른 뒤 다른 갈래의 좋은 조각을 옮겨 붙인다. 갈래마다 다른 전제를 지게 하는 게
|
|
88
|
+
> 요점이다 — 같은 전제를 진 갈래 셋은 경연이 아니라 반복이다. 관측된 것: 2026-10-19 FoD 게이트
|
|
89
|
+
> 오탐 면제는 일꾼 하나가 금지 목록으로 지었고 다른 계열 한 라운드에 A 5건으로 통째 반려됐다.
|
|
90
|
+
> 가설(미측정): 허용 목록 갈래가 같이 돌았다면 그 라운드 전에 갈렸을 것이다 — 첫 실사용에서 갈래
|
|
91
|
+
> 수 대비 절약을 재기 전까지 이 경연의 이득은 가설이다. 추가 갈래의 구현·검토 비용이 들므로 **비가역 표면·게이트
|
|
92
|
+
> 판정처럼 틀리면 비싼 설계에만** 쓴다 — 이건 틀림의 비용으로 정하는 것이고, §1-b 의 하한(성공 정의가
|
|
93
|
+
> 설계를 바꾸는가)과는 다른 판단이다. 선행 사례: pstack(`cursor/plugins`) 의 arena(경연 → 바탕
|
|
94
|
+
> 선택 → 접붙이기).
|
|
95
|
+
|
|
84
96
|
> 🟥 **이 줄은 2026-08-16 까지 「4축」이었다 — 갱신을 놓쳤던 것이지 별개 개념이 아니다.**
|
|
85
97
|
> 같은 날 `§1-a-2` 가 4축을 6축으로 확장했는데 이 요약줄이 안 따라와서, **`CLAUDE.md` 는 「6축」
|
|
86
98
|
> 이고 여기는 「4축」인 상태가 존재했다.** 그 사이 외부 계열이 작성한 문서 한 건이 실제로 이 줄을
|
|
@@ -43,6 +43,22 @@ accept a measurement's self-report (of identity or of grounding) when a discrimi
|
|
|
43
43
|
check is available. Its sharpest tool is the **deleted-content discriminator**: a probe target that no
|
|
44
44
|
longer contains X makes any answer citing X self-invalidating — certainty no prompt instruction buys.
|
|
45
45
|
|
|
46
|
+
## Explain the number — say what limits it
|
|
47
|
+
|
|
48
|
+
A reported number carries one more line: **what bounds it** — the grader, the sample size, a timeout,
|
|
49
|
+
the model tier, the channel that was read. The same 0/1 can mean «the behaviour is absent» or «the
|
|
50
|
+
instrument could not see it», and this line is where the reader learns which question is still open.
|
|
51
|
+
The line names a suspected bound; it does **not** overturn the score. A failed pre-registered check
|
|
52
|
+
stays failed in the record. A replacement result needs all three: the bound tested on a known pair,
|
|
53
|
+
the corrected grader pre-registered for the next round (§Measured-Loop), and a re-run — never a
|
|
54
|
+
re-reading of the old transcript. Example, 2026-10-19: live-eval G-TRIG-04 scored 0/1
|
|
55
|
+
after a routing fix, and the transcript said «weekly harvest» where the pre-registered grader wants
|
|
56
|
+
the literal `harvest-loop`. The honest report is
|
|
57
|
+
`0/1 — suspected bound: grader literal (transcript paraphrases the target); routing not yet shown`,
|
|
58
|
+
which sends the next session to test the grader on a known pair instead of either re-opening the fix
|
|
59
|
+
or quietly closing it. This is a line in the report, not a gate: no hook checks it. Prior art:
|
|
60
|
+
«explain the number» in pstack (`cursor/plugins`).
|
|
61
|
+
|
|
46
62
|
## Done When
|
|
47
63
|
|
|
48
64
|
- The checklist enumerates all five failure modes, each with its countermeasure.
|
|
@@ -4869,3 +4869,59 @@
|
|
|
4869
4869
|
outcome: "accepted — 20 codex findings fixed with fail-before lanes; Sonnet raised 8 (2 already fixed, 2 fixed, rest residual/refuted)"
|
|
4870
4870
|
evidence: "FH PR #914 (c7948db)"
|
|
4871
4871
|
tokens: UNMEASURED
|
|
4872
|
+
- date: 2026-10-19
|
|
4873
|
+
agent: "general-purpose (sonnet) ×1 — FoD gate false positives (read-only settings pipe · zero-commit push)"
|
|
4874
|
+
task: "narrow two gate_hook.py false positives on a FoD worktree branch, with lanes and a revert check"
|
|
4875
|
+
trigger: "session card item 4 + operator «FH 자체 개발 자율주행해줘» (standing dispatch request)"
|
|
4876
|
+
outcome: "rejected — own lanes 55/55, but codex found 5 A bypasses of both exemptions (frame builtins, NFKC identifiers, PYTHONPATH startup, insteadOf twice, pre-push on a no-op push); not pushed, direction recorded in a signal"
|
|
4877
|
+
evidence: "FoD branch fix/gate-readonly-pipe-fp (fe68e1e, unpushed) · tracks/_meta/fh_signal_2026-10-19_gate-fp-exemptions-bypassed.md"
|
|
4878
|
+
tokens: UNMEASURED
|
|
4879
|
+
- date: 2026-10-19
|
|
4880
|
+
agent: "general-purpose (sonnet) ×1 — Codex gate evidence design (read-only)"
|
|
4881
|
+
task: "compare in-agent PreToolUse wiring vs app-side per-request review for Codex autopilot evidence"
|
|
4882
|
+
trigger: "session card item 1 (operator «ㅇㅇ 가자», 10-18) + standing dispatch request"
|
|
4883
|
+
outcome: "accepted as design input — governor checked the three load-bearing code claims (gate-consult 8 s / error = human, evidence kinds call|session, codex pending); one cited path was off (src/ours/, not src/main/)"
|
|
4884
|
+
evidence: "tracks/_meta/design_2026-10-19_codex-gate-evidence.md"
|
|
4885
|
+
tokens: UNMEASURED
|
|
4886
|
+
- date: 2026-10-19
|
|
4887
|
+
agent: "general-purpose (sonnet) ×1 worktree + codex (gpt) ×2 rounds — checklist hook channel"
|
|
4888
|
+
task: "make session_checklist.py extract read the UserPromptSubmit hook record as a second channel"
|
|
4889
|
+
trigger: "session card item 3 + standing dispatch request"
|
|
4890
|
+
outcome: "accepted after repair — worker patch passed its own 44 lanes; codex R1 found 6 A (greedy pairing, missing ts, DST, summary dedupe drop, carry_forward loss, UTF-8), R2 2 B; governor fixed all with fail-before lanes"
|
|
4891
|
+
evidence: "FH PR #919 (f6c0be1)"
|
|
4892
|
+
tokens: UNMEASURED
|
|
4893
|
+
- date: 2026-10-19
|
|
4894
|
+
agent: "codex (gpt) ×2 — adversarial reads of FH #917 (CLAUDE.md routing) and #918 (selfcheck labels)"
|
|
4895
|
+
task: "4-axis cross-family review"
|
|
4896
|
+
trigger: "4-axis gate"
|
|
4897
|
+
outcome: "accepted — #917 1 A + 2 B, #918 3 B, all fixed and re-measured"
|
|
4898
|
+
evidence: "FH PR #917 (c1516a2) · #918 (62ee9e8)"
|
|
4899
|
+
tokens: UNMEASURED
|
|
4900
|
+
- date: 2026-10-22
|
|
4901
|
+
agent: "general-purpose (sonnet) ×1 — FoD capability claims through harness2's measurement discipline (read-only)"
|
|
4902
|
+
task: "list FoD's capability claims, grade each by P2–P7 evidence, name the experiments' measurement defects, propose the smallest settling experiment per claim"
|
|
4903
|
+
trigger: "operator «하네스2에게 fod입장리뷰를 시켜보는건 또 어떨까» + standing dispatch request"
|
|
4904
|
+
outcome: "accepted as design input — verdict «not yet»; its §3 became the P8 preregistration; line citations not yet cross-checked by the governor"
|
|
4905
|
+
evidence: "tracks/_meta/review_2026-10-22_fod-capability-harness2-lens.md · tracks/_meta/p3_contract_ab/p8/PREREGISTRATION_P8.md"
|
|
4906
|
+
tokens: UNMEASURED
|
|
4907
|
+
- date: 2026-10-22
|
|
4908
|
+
agent: "general-purpose (sonnet) ×1 — P8 bug-fix task set builder (blind to the hypothesis)"
|
|
4909
|
+
task: "build and verify 32 real bug-fix tasks (parent FAIL / fix PASS, behaviour-only hidden tests) from the operator's FoD and FH repos"
|
|
4910
|
+
trigger: "operator «C1·C2 본실험 (추천)» — evidence isolation: tasks built by a session that does not write the hypothesis"
|
|
4911
|
+
outcome: "pending at log time"
|
|
4912
|
+
evidence: "tracks/_meta/p3_contract_ab/p8/ (tasks.json · BUILD_NOTES.md)"
|
|
4913
|
+
tokens: UNMEASURED
|
|
4914
|
+
- date: 2026-10-22
|
|
4915
|
+
agent: "fh-meta:hub-persona-auditor ∥ fh-meta:persona-innovator → fh-meta:challenger (sonnet ×3) + codex (gpt) ×1 — sim-conductor Area B before v3.29.0"
|
|
4916
|
+
task: "pre-release whole-set audit (outside reader · naming/structure · what was missed) over v3.28.0..main"
|
|
4917
|
+
trigger: "sim-conductor §Frequency, event-bound before a minor release (#925)"
|
|
4918
|
+
outcome: "accepted — M: BREAKING (gate) lines for cross single-family ESCALATE and exit 10 (+ cross 11/12 from challenger); codex found cartridge_admit MultiEdit gap (checkout-only, governor-verified). False positives caught: innovator «cartridge ships to npm», auditor «CHEATSHEET lacks 10»"
|
|
4919
|
+
evidence: "tracks/_meta/sim_2026_10_22_area_B.md · CHANGELOG [3.29.0]"
|
|
4920
|
+
tokens: UNMEASURED
|
|
4921
|
+
- date: 2026-10-22
|
|
4922
|
+
agent: "codex (gpt) ×5 — read-only correctness reviews"
|
|
4923
|
+
task: "FoD #129 (R1), FoD #131 (R1, R2), FH #934 (release-page job), FH release delta (Area B leg)"
|
|
4924
|
+
trigger: "cross-family review on load-bearing changes (FoD standing delegation · publish path)"
|
|
4925
|
+
outcome: "accepted — #129 0 findings (26k tokens read); #131 R1 card scroll reset, R2 scroll clamp + bridge recording while FH mode off (all fixed with lanes); #934 0 findings (56k); delta: MultiEdit gap"
|
|
4926
|
+
evidence: "FoD PR #129 · #131 · FH PR #934"
|
|
4927
|
+
tokens: UNMEASURED
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.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": {
|
|
@@ -396,6 +396,8 @@
|
|
|
396
396
|
"scripts/validate_yaml.sh",
|
|
397
397
|
"scripts/version_lockstep_check.sh",
|
|
398
398
|
"scripts/worktree_reclaim.sh",
|
|
399
|
+
"scripts/dispatch_receipt.py",
|
|
400
|
+
"scripts/test_dispatch_receipt_lanes.sh",
|
|
399
401
|
"templates/.claude/rules/mcp_tool_gating.md",
|
|
400
402
|
"templates/.claude/rules/session.md",
|
|
401
403
|
"templates/.git-hooks",
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.29.0] — 2026-10-22 — fh-gate 가 실패를 통과로 접지 않는다(종료 코드 10 · cross 단일 계열 ESCALATE) · GitHub 릴리스 페이지 자동 · 위임 영수증
|
|
4
|
+
|
|
5
|
+
**minor.** In short (for upgraders): the `fh-gate` CLI now fails closed in two places where it could pass or proceed before — read the two BREAKING lines below if you run it in CI or branch on its exit code. Nothing else changes for package consumers. Upgrading from 3.28.0 needs no action unless you use `FH_BACKEND=cross` or branch on exit codes.
|
|
6
|
+
|
|
7
|
+
BREAKING (gate): `FH_BACKEND=cross` 에서 두 계열 중 한쪽만 돌았을 때(다른 CLI 없음 · 오류 · 판정 없음) **예전엔 남은 한쪽의 판정이 그대로 나갔다(PASS 면 종료 0)** — 이제 **ESCALATE(종료 3)** 와 `FH_GATE_ESCALATE_REASON: cross-degraded` 다. 한 계열로 충분하다고 판단하면 `FH_GATE_CROSS_ALLOW_SINGLE=1` 로 예전처럼 받을 수 있고, 그때 출력에 `FH_GATE_CROSS_OVERRIDE:` 줄이 남는다(#933).
|
|
8
|
+
|
|
9
|
+
BREAKING (gate): 아무도 예상하지 못한 자리에서 명령이 실패하면(예: `TMPDIR` 이 없어 `mktemp` 실패 · 닫힌 stderr · 설정 안 된 HOME) **예전엔 그 명령의 상태(대개 1 = PENDING, «알고 진행») 가 그대로 나갔다** — 이제 **10(HARNESS_ERROR, fail-closed)** 이다. 0~3 은 네 판정 자리에서만 나간다. `bin/fh-gate.js` 를 거쳐도 같다. 종료 코드로 분기하는 CI 는 10 을 실패로 다뤄야 한다(#927). 같은 이유로 cross 모드의 인자 오류 · dry-run 은 예전엔 10 으로 뭉개졌는데 이제 원래 코드 11 · 12 로 나간다. 같은 모양이 다시 생기지 않게 degrade-scan S7 이 «set -e 판정 스크립트에 종료하는 ERR 트랩이 없다» 를 짚는다.
|
|
10
|
+
|
|
11
|
+
소비자에게 닿는 작은 변화:
|
|
12
|
+
- `session_checklist.py extract`: 대화 기록에 더해 훅 기록(`tracks/_meta/utterances/<sid>.jsonl`)을 두 번째 채널로 읽는다 — 도구가 도는 중에 보낸 메시지도 잡힌다. 훅 기록이 **깨져 있으면** 종료 2(없으면 그대로 진행)(#919).
|
|
13
|
+
- `doc_claim_triad_scan`: 이름만으로 경로를 찾을 때 git 이 추적하는 파일 안에서만 찾고, git 이 실패하면 아무것도 찾지 않는다 — 아직 add 안 한 새 파일은 못 찾는다(#931).
|
|
14
|
+
- `finding_fleet.sh`: `DROPPED:` 줄은 그 줄이 **시작하는** 발견 하나만 철회한다 — 이름이 언급만 된 다른 발견은 남는다(#932).
|
|
15
|
+
- `selfcheck`: 실패한 짝 묶음을 이름으로 적고, 300초 제한에 끊긴 것은 timeout 으로 적는다(#918).
|
|
16
|
+
- 세션 마감 ⑥: 보낼 커밋이 없으면 push 대신 마감 검사를 바로 돈다(#924). `CLAUDE.md` 라우팅: 주간 회고 · 대상 없는 «정리해줘» (무엇을 정리할지 묻는다) · 긴 컨텍스트는 세션 마감으로 가지 않는다(#917).
|
|
17
|
+
- 새 도구 `scripts/dispatch_receipt.py`: 위임한 에이전트가 «했다» 고 한 편집을 git 이 보여 주는 대로 확인하는 거버너 자신의 영수증(#930).
|
|
18
|
+
- 방법론: 전제를 공격하라 · 숫자를 설명하라 · 짓는 쪽 베이크오프(steel-quench 수렴 기준 4 등, #923) · 닫힌 사이드카 발견은 재현을 적는다(#926). sim-conductor 영역 B 는 30일 주기 대신 마이너/메이저 릴리스 · 발표 직전에 돈다(#925 — 이 릴리스가 그 첫 적용).
|
|
19
|
+
|
|
20
|
+
허브 내부 · 소비자 영향 없음:
|
|
21
|
+
- 태그 푸시 뒤 GitHub 릴리스 페이지를 이 CHANGELOG 의 해당 절로 자동으로 만든다 — 페이지가 v3.24.0 에서 멈춰 있던 것(npm 은 v3.28.0 까지)을 닫는다. v3.25.0~v3.28.0 페이지는 소급해 만들었다(#934).
|
|
22
|
+
- CI 러너를 ubuntu-24.04 로 고정하고(ubuntu-latest 가 26.04 로 옮겨 main 이 빨개졌다), 매주 최신 러너에서 selfcheck 를 도는 카나리아를 뒀다 — 필수 검사 아님(#928 · #929).
|
|
23
|
+
- 카트리지 입장 검사기 `scripts/cartridge_admit.py`(ADMIT · HUMAN_REVIEW · REFUSE · HARNESS_ERROR, 허용 목록 방식) — 체크아웃 전용, npm 에 싣지 않는다(#922). 위임 기록(#920).
|
|
24
|
+
|
|
3
25
|
### [3.28.0] — 2026-10-18 — 발화 체크리스트 훅 · FH 모듈 계약 v0 · ko-tech-writer 실교정 규칙
|
|
4
26
|
|
|
5
27
|
**minor.** 새 자산(훅 · 모듈 계약 · 검사기)과 새 레인. 소비자 게이트 수용이 깨지는 변경은 없다.
|
|
@@ -527,6 +527,23 @@ at N per run (no loop).
|
|
|
527
527
|
|
|
528
528
|
- **Consent-default-OFF + paid-asks** — no surprise credit spend.
|
|
529
529
|
- **No sidecar-only verdict** — governor source-closes; ungroundable findings dropped.
|
|
530
|
+
- **A closed finding names its repro** — the guard above says the governor closes; this says what a
|
|
531
|
+
closure must show. In the PR body's sanitized evidence capsule (`fh_4axis_gate.md` §Reviewer-visible
|
|
532
|
+
evidence), each sidecar finding gets one line:
|
|
533
|
+
- `repro: <command> -> <outcome>` — **closed**. The finding's own repro (or a lane that exercises it)
|
|
534
|
+
was run by the governor or a worker with a conclusive outcome: reproduced, fixed, re-run clean.
|
|
535
|
+
- `rejected: <grounds>` — **closed**. Shown not to apply, from the source or a run (cite which).
|
|
536
|
+
Non-reproduction alone is not grounds. Ungroundable findings dropped under the guard above are
|
|
537
|
+
still listed here, so the record keeps them.
|
|
538
|
+
- `open: <reason>` — **not closed**: `not-reproduced` (acted on from the sidecar's text alone, e.g. a
|
|
539
|
+
worker replied "fixed"), `reproduced-unresolved`, or `repro-failed`.
|
|
540
|
+
**A finding with no line counts as open**, never as closed.
|
|
541
|
+
Why: in multi-agent runs (arXiv:2610.15459), among failures with complete detection records, 76.2%
|
|
542
|
+
under partial-content faults gave no immediate failure signal, and the Flat topology's advantage came
|
|
543
|
+
primarily from an alternative information path that preserved the needed evidence. On 2026-10-19 FH's
|
|
544
|
+
own work passed most codex A findings to workers as text, and only some were re-run. A record
|
|
545
|
+
convention, not a gate; UNCALIBRATED until the next harvest samples five closures for whether the
|
|
546
|
+
lines exist at all.
|
|
530
547
|
- **Honest caveat is load-bearing** — "100% 아님": decorrelation is an expected uplift, measured not
|
|
531
548
|
assumed (naive stacks score 0 — `feedback_harness_ceiling_principle`).
|
|
532
549
|
- **Silent degrade** — missing CLIs never hard-fail; the gap is recorded, not hidden.
|
|
@@ -52,7 +52,7 @@ Proposal format: `"If it's related to [X], should I simulate with /sim-conductor
|
|
|
52
52
|
/sim-conductor E --target <file> # artifact quality review (post-pipeline)
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
**Frequency limits**: Area A after asset changes or manual trigger · Area B **min 7-day interval** (executor-applied guard: stop a re-run inside 7 days) ·
|
|
55
|
+
**Frequency limits**: Area A after asset changes or manual trigger · Area B **min 7-day interval** (executor-applied guard: stop a re-run inside 7 days) · **event-bound, no periodic cadence** (operator decision 2026-10-19): run Area B before a minor/major release or a public announcement — the moment an outside reader's view pays — unless one already ran since the previous minor release. The trigger lives in `templates/PRE-PUBLISH-CHECKLIST.md §Read it as a reader`; `fh_audit_check.zsh` no longer nags on a 30-day clock · Area C/D/E no limit. Why: per-change 4-axis gates with a cross-family reviewer, the nightly live-eval and the weekly harvest cover what a monthly whole-plugin pass used to; what only Area B sees (whole-set naming gaps, an outsider's first read) matters at publication.
|
|
56
56
|
|
|
57
57
|
---
|
|
58
58
|
|
|
@@ -62,7 +62,7 @@ Auto-detect harness root, sync sim clone if present, set `$REPORT_DIR`.
|
|
|
62
62
|
|
|
63
63
|
> **Detail**: See `SKILL_detail.md §Step0-Bash` — harness root detection, sim clone sync, report dir creation — read when executing Step 0.
|
|
64
64
|
|
|
65
|
-
**Area B frequency check** (the 7-day *minimum* interval
|
|
65
|
+
**Area B frequency check** (the 7-day *minimum* interval): Before running Area B, inspect the latest Area B report in `$REPORT_DIR`; if it is less than 7 days old, stop and report its date. This is an executor-applied procedure, not an automatic shell gate. No report in the selected `$REPORT_DIR` → treat as first run for this check. There is no maximum-interval reminder any more — when to run is decided by the release/announcement event above.
|
|
66
66
|
|
|
67
67
|
---
|
|
68
68
|
|
|
@@ -27,8 +27,8 @@ mkdir -p "$REPORT_DIR"
|
|
|
27
27
|
```bash
|
|
28
28
|
ls "$REPORT_DIR"/sim_*_area_B*.md 2>/dev/null | sort | tail -1
|
|
29
29
|
# Executor: if the latest report is <7 days old, output warning + stop (manual procedure, not shell-enforced).
|
|
30
|
-
#
|
|
31
|
-
#
|
|
30
|
+
# No periodic reminder since 2026-10-19 — Area B is event-bound (before a minor/major release
|
|
31
|
+
# or a public announcement; templates/PRE-PUBLISH-CHECKLIST.md §Read it as a reader).
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
---
|
|
@@ -219,7 +219,7 @@ Claude blind spots (external-only findings):
|
|
|
219
219
|
|
|
220
220
|
Structural methods to reduce self-reference risk in Area B:
|
|
221
221
|
|
|
222
|
-
1. **
|
|
222
|
+
1. **Adversarial attacks at publication**: Area B before a minor/major release or a public announcement (event-bound since 2026-10-19 — no monthly cadence; the executor-applied 7-day check in SKILL.md is the minimum interval) + `challenger` attack in the same run. Route challenger → defense results directly into SKILL.md via steel-quench handoff after Area B ends.
|
|
223
223
|
2. **Direct external user validation**: Non-owner attempts install + invocation → collect reactions. (cascade β validated: first autonomous external run confirmed.)
|
|
224
224
|
3. **steel-quench integration**: After Area B ends, hand off challenger findings to `/steel-quench` for deeper adversarial review + SKILL.md inscription.
|
|
225
225
|
4. **Dual validation principle**: Internal validation (Area B) alone is insufficient — minimized only when combined with external install reaction collection or cross-model validation. **For risk≥medium targets this is no longer advisory: it is the hard Cross-Model Coverage Gate** (SKILL.md Step 0.6) — at least one persona from outside the orchestrator's session context (external CLI → cross-session Claude → else `cross_model_coverage: NONE` withdraws auto-commit). Promoted from advisory to gate by the judge-robustness swarm (2026-06-13): a homogeneous same-session panel shares blind spots, so its clean verdict cannot self-certify.
|
|
@@ -525,7 +525,8 @@ over **unchanged** code:
|
|
|
525
525
|
terminal) or run one more round over the trimmed artifact before declaring Done.
|
|
526
526
|
2. **Record the per-round yield vector** in the Axis-2 marker — `axis2-rounds: 4A / 3A+1B / 2A /
|
|
527
527
|
0A+3B / 1A+2B`. It is what makes the stop decision auditable afterwards, and a flat or rising
|
|
528
|
-
vector is criterion 4's
|
|
528
|
+
vector is the input to criterion 4's reduce-the-design branch (its premise-attack branch fires on
|
|
529
|
+
shared assumptions, whatever the vector).
|
|
529
530
|
|
|
530
531
|
**PIN THE TARGET — mandatory on every dispatched Wave, and the reason criterion 1 can be trusted
|
|
531
532
|
at all.** The dispatch prompt carries a measured fingerprint and orders the agent to report
|
|
@@ -584,6 +585,29 @@ over **unchanged** code:
|
|
|
584
585
|
stays flat is not telling you to review harder; it is telling you that each round's repairs are
|
|
585
586
|
manufacturing the next round's findings. Cut the scope that is generating them (see the
|
|
586
587
|
Added-Scope Gate in `.claude/rules/fh_4axis_gate.md`) and re-audit the smaller artifact.
|
|
588
|
+
**Attack the premise before the third repair — when two rounds' A-or-higher findings share one assumption,
|
|
589
|
+
whether or not the yield falls.**
|
|
590
|
+
When two rounds' A-or-higher findings are different instances of one assumption — «this list can
|
|
591
|
+
be completed», «this string shape covers every caller» — another instance-level repair is likely
|
|
592
|
+
to repeat the failure. Before choosing the next repair, write the shared premise down in one line,
|
|
593
|
+
test it directly (one counter-example settles it), and if it falls, change the design rather than
|
|
594
|
+
the list: flip a blocklist to an allowlist, move the check to where the input is already typed, or
|
|
595
|
+
drop the exemption. **Which cure**: flipping to «unknown goes to a person» is right on an
|
|
596
|
+
irreversible surface, or where the expected rate of person-routed prompts fits a review budget you
|
|
597
|
+
can name — it moves the cost
|
|
598
|
+
into over-blocking, and an over-block that fires often trains the bypass. Elsewhere prefer moving the
|
|
599
|
+
check to typed input or dropping the exemption. If you flip, say what the over-block costs (which
|
|
600
|
+
common inputs now reach a person). Two more flips on 2026-10-19 were gate surfaces and list their
|
|
601
|
+
accepted over-blocks in the PR body (FoD #80 delete outside the working folder: `echo rm …`,
|
|
602
|
+
`git rm`, `rm x # /path` · #81 writes to the user settings file: `jq … > tmp && mv`, quoted `>`,
|
|
603
|
+
`cat … 2>/dev/null`). Measured 2026-10-19, same day, two surfaces: FoD gate read-side exemptions
|
|
604
|
+
(5 A in one cross-family round — `_getframe`, NFKC fullwidth names, `PYTHONPATH`, …) and the
|
|
605
|
+
cartridge admission checker (R1 4 A, R2 1 A) both rested on «a blocklist of shell/tool strings can
|
|
606
|
+
be completed»; the exemptions were dropped and the checker flipped to an allowlist, so an unknown
|
|
607
|
+
string now lands on the human instead of on a missing list entry. That flip is not convergence —
|
|
608
|
+
the checker shipped NOT-CONVERGED at the round cap, and said so
|
|
609
|
+
([[feedback_static_shell_string_check_does_not_converge]]).
|
|
610
|
+
Prior art: the «attack the premise» principle in pstack (`cursor/plugins`).
|
|
587
611
|
5. Full Wave results → recommend persisting to `tracks/_meta/steel_quench_YYYY_MM_DD_{slug}.md`
|
|
588
612
|
|
|
589
613
|
> **Why this replaced "zero new S-grade → terminate" (measured 2026-08-02, PR #231).** A single
|
|
@@ -588,6 +588,49 @@ for f in "${FILES[@]}"; do
|
|
|
588
588
|
| grep -vE '^[0-9]+:[[:space:]]*#' \
|
|
589
589
|
| grep -vE '#[[:space:]]*noqa[:[:space:]]*degrade')
|
|
590
590
|
fi
|
|
591
|
+
|
|
592
|
+
# S7 — `set -e` under a declared exit contract that has its OWN error code, with no ERR trap.
|
|
593
|
+
# Under `set -e` a command that fails where nobody expected it ends the script with THAT
|
|
594
|
+
# command's status — usually 1. If the contract reserves a separate code for "the tool itself
|
|
595
|
+
# broke" (10 HARNESS_ERROR and the like), the low codes are verdicts, so a crash leaks out as
|
|
596
|
+
# one of them. Measured 2026-10-20 on fh-gate.sh: a failing `mktemp` exited 1 = PENDING
|
|
597
|
+
# ("proceed with awareness"); reported from outside, fixed in #927. The cure is an ERR trap
|
|
598
|
+
# that exits the error code, plus an exit-time check that 0..N only leave through the verdict
|
|
599
|
+
# sites (`set -u` and a failing EXIT-trap function end with 1 WITHOUT firing ERR).
|
|
600
|
+
# SCOPE, so this stays quiet: all three must hold — `set -…e…` · a comment header naming exit
|
|
601
|
+
# codes · a contract line naming an error code (harness/internal/tool error). A contract of
|
|
602
|
+
# just "0 = pass, 1 = fail" is excluded: there an unexpected 1 already points the safe way.
|
|
603
|
+
# Census 2026-10-20 over this repo's tracked shell: 1 file matched the shape (fh-gate.sh).
|
|
604
|
+
# FILE-level probe: it reports the `set -e` line once.
|
|
605
|
+
# Round-1 cross-family review (codex) widened three things: `set -o errexit` and `cmd; set -e`
|
|
606
|
+
# activate it; an `EXIT_*ERROR=10`-style constant counts as a contract; and a trap only counts
|
|
607
|
+
# when it EXITS — `trap cleanup ERR` (no exit) and a commented-out trap do not protect anything.
|
|
608
|
+
# A grep that ERRORS (rc>1) is reported as S7-UNMEASURED, never read as "no hit" — the same
|
|
609
|
+
# default-toward-clean shape this probe exists to find.
|
|
610
|
+
_s7_rc() { grep "$@" "$f" >/dev/null 2>&1; echo $?; }
|
|
611
|
+
_s7_lines=$(grep -nE '(^|[;{&|])[[:space:]]*set[[:space:]]+(-[A-Za-z]*e[A-Za-z]*|-o[[:space:]]+errexit)([[:space:];]|$)' "$f" 2>/dev/null); _s7_r1=$?
|
|
612
|
+
_s7_set=$(printf '%s\n' "$_s7_lines" | grep -vE '^[0-9]+:[[:space:]]*#' | grep -vE '#[[:space:]]*noqa[:[:space:]]*degrade' | sed -n 1p)
|
|
613
|
+
_s7_r2=$(_s7_rc -qE '^[[:space:]]*#.*\b[Ee]xit([[:space:]]+codes?|[[:space:]]+status(es)?)?[[:space:]]*:')
|
|
614
|
+
_s7_r3=$(_s7_rc -qiE '^[[:space:]]*#.*\b[0-9]+([[:space:]]*(—|–|-|=|:|\))[[:space:]]*.{0,40}|[[:space:]]+)(harness|internal|tool)[ _-]?error')
|
|
615
|
+
# ^ a CONTRACT ENTRY (`10 — Harness error`, `10 harness error`), not prose that happens to hold a
|
|
616
|
+
# number and the word (an old test file's comment «the count is 0 … HARNESS_ERROR» was flagged).
|
|
617
|
+
_s7_r4=$(_s7_rc -qE '^[[:space:]]*[A-Z_]*(HARNESS|INTERNAL|TOOL)_?ERR(OR)?[A-Z_]*=[0-9]+')
|
|
618
|
+
# protecting trap: an ACTIVE (non-comment) `trap … ERR` line that exits, or that names a handler
|
|
619
|
+
# function whose body (next 12 lines) exits.
|
|
620
|
+
_s7_traps=$(grep -nE "^[^#]*\btrap[[:space:]].*[[:space:]'\"]ERR(['\"]|[[:space:];]|$)" "$f" 2>/dev/null); _s7_r5=$?
|
|
621
|
+
_s7_guard=""
|
|
622
|
+
if [ -n "$_s7_traps" ]; then
|
|
623
|
+
if printf '%s\n' "$_s7_traps" | grep -qE '\bexit\b'; then _s7_guard=1
|
|
624
|
+
else
|
|
625
|
+
_s7_h=$(printf '%s\n' "$_s7_traps" | sed -nE "s/.*trap[[:space:]]+['\"]?([A-Za-z_][A-Za-z0-9_]*)['\"]?[[:space:]].*/\\1/p" | sed -n 1p)
|
|
626
|
+
[ -n "$_s7_h" ] && grep -A12 -E "^[[:space:]]*(function[[:space:]]+)?${_s7_h}[[:space:]]*\(\)" "$f" 2>/dev/null | grep -qE '\bexit\b' && _s7_guard=1
|
|
627
|
+
fi
|
|
628
|
+
fi
|
|
629
|
+
if [ "$_s7_r1" -gt 1 ] || [ "$_s7_r2" -gt 1 ] || [ "$_s7_r3" -gt 1 ] || [ "$_s7_r4" -gt 1 ] || [ "$_s7_r5" -gt 1 ]; then
|
|
630
|
+
emit "$f" 1 "S7-UNMEASURED(sh)" "could not read this file for the set -e / exit-contract check (grep error) — NOT checked, not clean"
|
|
631
|
+
elif [ -n "$_s7_set" ] && { { [ "$_s7_r2" -eq 0 ] && [ "$_s7_r3" -eq 0 ]; } || [ "$_s7_r4" -eq 0 ]; } && [ -z "$_s7_guard" ]; then
|
|
632
|
+
emit "$f" "${_s7_set%%:*}" "S7:set-e-leaks-verdict(sh)" "\`set -e\` under an exit contract that has its own error code, but no ERR trap that exits — an unexpected failure exits with the failing command's status (usually 1), which the contract reads as a verdict; add \`trap '…; exit <error-code>' ERR\` and an EXIT check that 0..N only leave through the verdict sites (set -u and EXIT-trap failures do not fire ERR). Do NOT add set -E without checking \`\$( ) || rc=\$?\` captures"
|
|
633
|
+
fi
|
|
591
634
|
fi
|
|
592
635
|
|
|
593
636
|
# Probe A — except/else/finally block returning a permissive value within 2 lines.
|