@chrono-meta/fh-gate 3.27.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 +6 -3
- package/README.ja.md +2 -4
- package/README.ko.md +2 -4
- package/README.md +19 -19
- package/README.zh.md +2 -4
- 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_module_contract.md +97 -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 +137 -0
- package/package.json +12 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +84 -4
- package/plugins/fh-commons/skills/ko-tech-writer/fh-module.yaml +19 -0
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_negative.md +73 -1
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_positive.md +39 -1
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_unclosed.md +6 -0
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +32 -0
- package/plugins/fh-meta/skills/auto-decorrelation/SKILL.md +17 -0
- package/plugins/fh-meta/skills/frontier-digest/SKILL.md +14 -10
- package/plugins/fh-meta/skills/frontier-digest/SKILL_detail.md +17 -1
- 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/fh_module_check.py +686 -0
- package/scripts/finding_fleet.sh +15 -3
- package/scripts/fixtures/frontier_digest_recall.tsv +5 -0
- package/scripts/ko_tech_writer_calibrate.py +288 -15
- package/scripts/package_coverage_check.sh +5 -0
- package/scripts/probe_live_eval.sh +19 -1
- package/scripts/probe_live_eval_lib.py +174 -5
- package/scripts/resident_cost.py +1 -1
- package/scripts/selfcheck.sh +48 -21
- package/scripts/session_checklist.py +214 -5
- package/scripts/session_close_check.sh +44 -0
- package/scripts/sim_isolated_run.sh +31 -0
- package/scripts/test_claude_md_size_lanes.sh +22 -7
- 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_fh_module_check_lanes.sh +581 -0
- package/scripts/test_finding_pipeline_lanes.sh +83 -0
- package/scripts/test_frontier_digest_recall.sh +26 -0
- package/scripts/test_frontier_digest_recall_negctl.sh +15 -0
- package/scripts/test_ko_tech_writer_lanes.sh +1 -1
- package/scripts/test_locale_invariance_lanes.sh +19 -0
- package/scripts/test_mutation_probe_lanes.sh +22 -6
- package/scripts/test_probe_live_eval_lanes.sh +116 -0
- package/scripts/test_resident_cost_lanes.sh +1 -1
- package/scripts/test_selfcheck_state_lanes.sh +32 -0
- package/scripts/test_session_checklist_lanes.sh +167 -0
- package/scripts/test_sim_isolated_run_lanes.sh +51 -0
- package/scripts/test_utterance_checklist_hook_lanes.sh +175 -0
- package/scripts/utterance_checklist_hook.py +193 -0
- package/scripts/utterance_checklist_hook.sh +31 -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
|
@@ -9,7 +9,7 @@ FH is **governance engineering**: drive error rates down, *and* hold the surface
|
|
|
9
9
|
Method: 3-stage process (success definition first → decorrelated parallel acceleration → 6-axis burn-in). Canon: `knowledge/shared/harness-core/fh_three_layer_canon.md`.
|
|
10
10
|
|
|
11
11
|
## Voice / Tone
|
|
12
|
-
Reply in the user's language and register (Korean → match 반말/존댓말 of their last message; never drift within a session). A local pin sets register, never language. Warm words, plain judgment: a softer tone never relaxes verification. Disagree plainly when the work calls for it.
|
|
12
|
+
Reply in the user's language and register (Korean → match 반말/존댓말 of their last message; never drift within a session). This covers **everything the user sees in a turn**, progress notes between tool calls included — that is where drift happens, mid-turn after long tool work and right after compaction; English stays in commit messages, code and agent prompts (a UserPromptSubmit hook restates it on each mostly-Hangul message). A local pin sets register, never language. Warm words, plain judgment: a softer tone never relaxes verification. Disagree plainly when the work calls for it.
|
|
13
13
|
|
|
14
14
|
## Judgment rules that have no hook (Mechanization Boundary · Skeleton · Instrument Calibration · Local Execution · Envelope-Boundary)
|
|
15
15
|
- **Machinery only at irreversible edges and channels; judgment stays judgment.** A check may assert a property of the record (present · typed · attributable), not a conclusion.
|
|
@@ -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` → ② 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/README.ja.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -34,7 +32,7 @@
|
|
|
34
32
|
|
|
35
33
|
| 得られるもの | 実際には | 根拠 |
|
|
36
34
|
|---|---|---|
|
|
37
|
-
| **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠とその限界) |
|
|
35
|
+
| **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠とその限界) · 方法論と統制されたアブレーション: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
38
36
|
| **引き継がれる記憶** | `tracks/` に各セッションで学んだことが残り、2 回目のセッションは 1 回目が止まったところから始まります。 | 設計意図です。セッション終了時に `tracks/_meta/` のカードが更新され、次のセッションが起動時にそれを読みます([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。このページには計測された効果へのリンクはありません。2 回目のセッションから現れる効果でもあります。 |
|
|
39
37
|
| **検査を選んでくれる相手** | 「このプロジェクトを診断して」または「このプロジェクトを加速して」と言うと、直すもの・入れるものの優先順位つき一覧が返ります。項目ごとに承認するまで何も変更されません。 | [`CLAUDE.md`](CLAUDE.md) に記述あり(§Field-Harness Diagnostic)。どのくらいの頻度で当たるかのベンチマークはなし |
|
|
40
38
|
|
package/README.ko.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
|
|
37
35
|
| 얻는 것 | 실제로는 | 근거 |
|
|
38
36
|
|---|---|---|
|
|
39
|
-
| **머지 전 게이트** | 변경이 들어오기 *전에* diff 를 판정하고, 판정문은 그 변경이 무엇을 잃었는지 이름으로 짚어 줍니다. 판정은 grep 으로 뒤지는 글이 아니라 타입이 있는 값(`PASS · PENDING · BLOCKED · ESCALATE`)입니다. 에이전트가 쓴 코드뿐 아니라 직접 쓴 코드에도 동작합니다. | 아래 데모 GIF · 남이 쓴 코드에 돌린 실행과 구멍을 심은 시험(표본 크기 포함): [근거](#근거) |
|
|
37
|
+
| **머지 전 게이트** | 변경이 들어오기 *전에* diff 를 판정하고, 판정문은 그 변경이 무엇을 잃었는지 이름으로 짚어 줍니다. 판정은 grep 으로 뒤지는 글이 아니라 타입이 있는 값(`PASS · PENDING · BLOCKED · ESCALATE`)입니다. 에이전트가 쓴 코드뿐 아니라 직접 쓴 코드에도 동작합니다. | 아래 데모 GIF · 남이 쓴 코드에 돌린 실행과 구멍을 심은 시험(표본 크기 포함): [근거](#근거) · 방법론과 통제된 제거 실험: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
40
38
|
| **이어지는 기억** | `tracks/` 에 세션마다 배운 것이 남아서, 두 번째 세션이 첫 번째 세션이 멈춘 자리에서 시작합니다. | 세션을 마칠 때 `tracks/_meta/` 의 카드가 갱신되고, 다음 세션은 그 카드를 읽고 시작합니다([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
41
39
|
| **검사를 대신 골라 주는 상대** | "이 프로젝트 진단해줘" 또는 "이 프로젝트 가속화해줘"라고 하면 고치거나 설치할 것의 우선순위 목록을 받습니다. 항목마다 승인하기 전에는 아무것도 바뀌지 않습니다. | 절차는 [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic 에 있습니다. 항목마다 승인한 뒤에만 반영합니다 |
|
|
42
40
|
|
package/README.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -38,7 +36,7 @@ themselves or of finding out too late that a change was wrong. You get three thi
|
|
|
38
36
|
|
|
39
37
|
| You get | In practice | Evidence |
|
|
40
38
|
|---|---|---|
|
|
41
|
-
| **A gate before merge** | A diff is judged *before* it lands, and the verdict names what the change lost. The verdict is a typed value (`PASS · PENDING · BLOCKED · ESCALATE`), not text you grep. It works on your own code, not only an agent's. | Demo GIF below · a run on code someone else wrote and a planted-hole test, with sample sizes: [Evidence](#evidence) |
|
|
39
|
+
| **A gate before merge** | A diff is judged *before* it lands, and the verdict names what the change lost. The verdict is a typed value (`PASS · PENDING · BLOCKED · ESCALATE`), not text you grep. It works on your own code, not only an agent's. | Demo GIF below · a run on code someone else wrote and a planted-hole test, with sample sizes: [Evidence](#evidence) · method and controlled ablation: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
42
40
|
| **Memory that carries over** | `tracks/` keeps what each session learned, so session 2 starts where session 1 stopped. | At session end the card in `tracks/_meta/` is updated, and the next session starts from it ([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
43
41
|
| **Someone who picks the check for you** | Say "diagnose this project" or "accelerate this project" and you get a ranked list of what to fix or install. Nothing is changed until you approve each item. | The procedure is in [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic. Each item lands only after you approve it |
|
|
44
42
|
|
|
@@ -99,22 +97,24 @@ or the `tracks/` memory. First-time walkthrough in Korean: [`docs/USER_GUIDE.md`
|
|
|
99
97
|
This is the intended flow. Which steps are enforced by code and which by rules the AI is told to follow is
|
|
100
98
|
in the "What FH does, and how far it goes" table below and in [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md).
|
|
101
99
|
|
|
100
|
+
```mermaid
|
|
101
|
+
flowchart TD
|
|
102
|
+
A["You say what you want<br/>(plain language)"] --> B["FH reads the intent"] --> C["Forges it into one of two forms"]
|
|
103
|
+
C --> R1["Rules an AI follows<br/>(CLAUDE.md, skills)"]
|
|
104
|
+
C --> R2["Code that needs no AI<br/>(hooks, gates, scripts)"]
|
|
105
|
+
R1 --> S1
|
|
106
|
+
R2 --> S1
|
|
107
|
+
subgraph G["Every change to the harness passes through"]
|
|
108
|
+
direction TB
|
|
109
|
+
S1["1. Write down what counts as success and what it never does, *before* designing"] --> S2["2. Try it from several independent angles<br/>(another model family, another repo's view)"] --> S3["3. Attack it until what is left is sound, then ship"]
|
|
110
|
+
end
|
|
102
111
|
```
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
│ 1. write down "what counts as success / what it never does" BEFORE designing
|
|
110
|
-
│ 2. try it from several independent angles (other model family, other repo's view)
|
|
111
|
-
│ 3. attack it until what is left is sound — then ship
|
|
112
|
-
└──────────────────────────────────────────────────────────┘
|
|
113
|
-
│
|
|
114
|
-
irreversible steps (publish · delete · rewrite history) stop and ask a human
|
|
115
|
-
what a check could not measure is reported as "not measured" — never as 0
|
|
116
|
-
what each session learned is written to tracks/ ──► the next session starts there
|
|
117
|
-
```
|
|
112
|
+
|
|
113
|
+
If the diagram does not render: you say what you want → FH reads the intent → forges it into rules an AI follows or code that needs no AI → (every change) 1. write down success and what it never does first → 2. try it from independent angles → 3. attack it until what is left is sound, then ship.
|
|
114
|
+
|
|
115
|
+
- Irreversible steps (publish · delete · rewrite history) stop and ask a human
|
|
116
|
+
- What a check could not measure is reported as "not measured", never as 0
|
|
117
|
+
- What each session learned is written to `tracks/`, and the next session starts there
|
|
118
118
|
|
|
119
119
|
The hub (this repo) holds shared `knowledge/` and per-project `tracks/`; each project you connect points
|
|
120
120
|
back to it. Full map, every node a real path: [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md) (interactive:
|
package/README.zh.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -34,7 +32,7 @@
|
|
|
34
32
|
|
|
35
33
|
| 你得到 | 实际表现 | 证据 |
|
|
36
34
|
|---|---|---|
|
|
37
|
-
| **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据以及它薄弱的地方) |
|
|
35
|
+
| **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据以及它薄弱的地方) · 方法与受控消融实验:[arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
38
36
|
| **能延续的记忆** | `tracks/` 记录每次会话学到的东西,第 2 次会话从第 1 次停下的地方开始。 | 设计意图。会话结束时更新 `tracks/_meta/` 里的卡片,下次会话启动时读取它([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。本页没有链接任何实测收益;而且它要从第 2 次会话起才看得出来。 |
|
|
39
37
|
| **替你挑检查的帮手** | 说“诊断这个项目”或“加速这个项目”,你会得到一份按优先级排序的待修复/待安装清单。逐项批准之前不会改动任何东西。 | 描述见 [`CLAUDE.md`](CLAUDE.md)(§Field-Harness Diagnostic);没有关于它命中率的基准测试 |
|
|
40
38
|
|
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).
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fh-module-contract
|
|
3
|
+
description: FH module contract v0 - a module is a cartridge that plugs into FH and can be pulled out; it may add constraints but never weaken the core floor. Closed-enum manifest (fh-module.yaml), install-time check, removal rule. Checker - scripts/fh_module_check.py.
|
|
4
|
+
date: 2026-10-17
|
|
5
|
+
tags: [module, manifest, core-floor, restriction-union, install-check]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# FH Module Contract v0
|
|
9
|
+
|
|
10
|
+
> One rule: **a module may add constraints; it may never weaken the core floor.**
|
|
11
|
+
> This file adds the *packaging* layer. It does not restate the two contracts it sits on:
|
|
12
|
+
> - `capability_composition_contract.md` - how constraints merge (strictest-wins, closed enums, typed invocation). A module's `adds_constraints` and the merge of two modules are that contract's rules, unchanged.
|
|
13
|
+
> - `fh_integration_contract.md` - the verdict vocabulary and exit codes a caller sees. A module's verdict entry points use the same three-way split.
|
|
14
|
+
|
|
15
|
+
## 1. Core floor (no module may weaken)
|
|
16
|
+
|
|
17
|
+
1. Irreversible-op gates: publish, delete, history-rewrite (CLAUDE.md Irreversibility Gates).
|
|
18
|
+
2. Fail-closed: a check whose tooling is down blocks.
|
|
19
|
+
3. Company-data boundary: company data never leaves the machine.
|
|
20
|
+
4. NOT_MEASURED is never PASS.
|
|
21
|
+
|
|
22
|
+
5. **Added hooks may only observe.** A module hook cannot allow, rewrite input (`updatedInput`), set a `permissionDecision`, touch `core.hooksPath`, `.git/hooks` or `settings*.json`, or chmod/rm hook files. **In v0 only `SessionEnd` is open to modules.** Gating events (`PreToolUse`, `PermissionRequest`) and every event that can inject context or block (PostToolUse via `additionalContext`, SessionStart, UserPromptSubmit, Stop, SubagentStop, PreCompact, git-pre-commit, git-pre-push) are **closed**: a text scan of a hook body cannot prove it never emits a decision (`decision.behavior`, a key built from pieces) — cross-family review 2026-10-18 showed both — so these events are closed rather than scanned. Reopening them needs the core wrapper below. `action: add` alone is not harmless; commands are shape-checked and scanned (section 3).
|
|
23
|
+
|
|
24
|
+
The checker takes the **core hook list** from the tracked hook sources: script names wired in `templates/settings.*.snippet.json` and the hook names under `templates/.git-hooks/`. An empty or unreadable list is UNMEASURED, never a pass.
|
|
25
|
+
|
|
26
|
+
## 2. Manifest - `fh-module.yaml`
|
|
27
|
+
|
|
28
|
+
Unknown key or unknown enum value = BLOCK. Missing required field = BLOCK.
|
|
29
|
+
|
|
30
|
+
| Field | Values |
|
|
31
|
+
|---|---|
|
|
32
|
+
| `id` | lowercase slug |
|
|
33
|
+
| `version` | `MAJOR.MINOR.PATCH` |
|
|
34
|
+
| `provides.skills` / `.agents` | lists of names |
|
|
35
|
+
| `provides.hooks[]` | `{event, command, matcher?, action?, order?}`; `event` must be a known event name (PreToolUse, PermissionRequest, PostToolUse, SessionStart, SessionEnd, Stop, SubagentStop, UserPromptSubmit, PreCompact, git-pre-commit, git-pre-push) and, in v0, `SessionEnd`; `action` only `add`; `order` only `append` |
|
|
36
|
+
| `provides.verdicts[]` | `{entry, command, exit_codes:{pass: 0, block: 1, unmeasured: 2}}` — exactly these values (callers read 0 as proceed; any other mapping can turn a block into a pass) |
|
|
37
|
+
| `adds_constraints[]` | `{axis, value}` on the permission axes of the composition contract: `approval`, `reversibility`, `residency`, `degrade` |
|
|
38
|
+
| `touches_irreversible` | `none` / `publish` / `delete` / `history` |
|
|
39
|
+
| `core_route` | required iff `touches_irreversible` is not `none`: publish -> `pre-publish` or `public-surface-audit`; delete, history -> `destructive-op`. Forbidden when `none` |
|
|
40
|
+
| `data_class` | `public` / `private` / `company` |
|
|
41
|
+
| `requires` | `{modules: [ids], core_min: MAJOR.MINOR.PATCH}` |
|
|
42
|
+
| `calibration` | `{command: <known-pair test>}` or the literal `UNCALIBRATED` (allowed, reported as a note, never a verdict). **v0 checks presence and shape only — the checker does not run the calibration command** |
|
|
43
|
+
| `files` | optional list of repo-relative paths the module ships besides its skill/agent folders and command files; `export` copies exactly these |
|
|
44
|
+
| `records` | optional list of paths the module writes (used by removal) |
|
|
45
|
+
|
|
46
|
+
## 3. Install-time check (`scripts/fh_module_check.py check`)
|
|
47
|
+
|
|
48
|
+
Exit codes: **0 OK, 1 BLOCK, 2 UNMEASURED, 3 OK-but-UNCALIBRATED** (valid, no verdict entry points, `calibration: UNCALIBRATED`; callers must not treat 3 as a clean pass). Unreadable, empty, or non-mapping input is 2; PyYAML missing is 2; an internal error is 2. Nothing unreadable or unknown exits 0.
|
|
49
|
+
|
|
50
|
+
**Caller rule:** proceed only on rc==0. rc==3 = refuse, unless an explicit operator flag installs the module inert (no hooks, no verdicts active). Anything else (1, 2, or any other code) = refuse.
|
|
51
|
+
|
|
52
|
+
**Command shape (hook, verdict and calibration commands):** exactly `bash|sh|python3|node <repo-relative existing file> [simple args]`. BLOCK on any of `$`, backtick, `;`, `&`, `|`, `<`, `>`, backslash, quotes, parentheses, globs, `eval`, `base64`, a `-c` argument, an absolute path or `..` — in the file **and in every argument** (including `--opt=value`). A trailing-backslash line continuation is joined before scanning. A missing or unreadable referenced file is UNMEASURED. The file's sha256 is printed (a NOTE) so a later swap is detectable.
|
|
53
|
+
|
|
54
|
+
1. Manifest present, every value inside its enum.
|
|
55
|
+
2. Hooks do not override, disable or reorder core hooks: `action` other than `add`, `order: prepend`, any `target`, or a `command` that names a core hook script all BLOCK.
|
|
56
|
+
3. `touches_irreversible` other than `none` must carry a valid `core_route`; the core gate file must exist (else UNMEASURED).
|
|
57
|
+
4. `touches_irreversible: none` is checked by a **lexical tripwire**, not proved: the declared command and the ONE file it names are scanned case-insensitively for irreversible verbs (git push, rm -r / rm -f, rmtree/rmSync/unlink, git clean -f, find -delete, branch -D, tag -d, reset --hard, --amend, reflog expire, update-ref -d, npm publish, twine upload, gh repo/release, gh api with a write method, --visibility, history rewrites) and for core-disabling patterns (hooksPath, `core.hooks*`, any `GIT_CONFIG_*`, `GIT_DIR ... hooks`, `.git/hooks`, any `settings*.json`, `permissionDecision`, `updatedInput`, `behavior`, `additionalContext`). A hit with `none` BLOCKs. Calibration files get the core-disabling scan only (they are test code). **Residual, not covered:** these are lexical tripwires and do not converge (a new spelling always exists) — one widening per review round, then named here: obfuscation inside the referenced file, comments and echoed strings that mention a pattern (false BLOCK, accepted direction), `core_route` is a label (the checker does not verify the module actually calls that gate), files that file calls or sources, and the contents of skills and agents. Structural closure - a core wrapper that discards decision JSON and exit-2 coming from module hooks - is future work.
|
|
58
|
+
5. Calibration: `UNCALIBRATED` with a non-empty `provides.verdicts` BLOCKs; a `calibration.command` follows the command shape above (missing target = UNMEASURED). Duplicate YAML keys BLOCK.
|
|
59
|
+
6. `--installed DIR` (`*/fh-module.yaml|yml`, `*.yaml|yml`): a missing dir, zero manifests, or a malformed `requires` is UNMEASURED; duplicate installed ids BLOCK; also duplicate id, or a `requires.modules` entry not installed, BLOCKs.
|
|
60
|
+
7. `adds_constraints` below the core floor (approval below `ask`, degrade `advisory`) **BLOCK** — in `check` and in `merge`. A module can only add constraints; a below-floor value is never silently clamped, because a consumer reading the manifest directly would see the weaker value. Enum fields must be strings; a list or mapping where a name belongs BLOCKs (it used to crash to 2). A present `core_route` (even `null`) with `touches_irreversible: none` BLOCKs. Non-UTF-8 input is UNMEASURED. With `--installed`, an unreadable registry is UNMEASURED and cannot also report «required module not installed».
|
|
61
|
+
|
|
62
|
+
## 3b. Export — the standalone proof (`fh_module_check.py export <manifest> --out DIR`)
|
|
63
|
+
|
|
64
|
+
A standalone skill must run without FH around it (operator: «스킬 단품은 스탠드얼론으로 동작할수있게 … 자체하네스를 필요하면 내장한채로»). `export` proves it instead of asserting it: it copies **only what the manifest declares** — the skill and agent folders, every hook/verdict/calibration command file, and the optional `files:` list (repo-relative, same path rules as commands) — into an empty folder, then runs the module's own calibration **inside that folder** with a fresh HOME.
|
|
65
|
+
|
|
66
|
+
- Copied: **git-tracked files only** (an untracked or ignored local file would make STANDALONE true here and false elsewhere). **Any symlink** in a declared path BLOCKs. Skill/agent names must be plain slugs; `files` may not be `.`, `.git…`, or the reserved `fh-module.yaml` / `MODULE.md` / `.fh-export`. Export metadata goes to `.fh-export/`.
|
|
67
|
+
- Built in a staging folder next to `--out` and moved there only on success; the calibration runs in a separate scratch copy with a fresh HOME/TMPDIR/XDG and a PATH of system dirs plus the interpreters' own dirs (never a repo dir), stdin closed, in its own process group (killed whole on timeout). `--out` inside the repo is refused.
|
|
68
|
+
- rc 0 **STANDALONE**: the known-pair test passes with only the declared, tracked files.
|
|
69
|
+
- rc 1: the manifest does not pass `check`; a symlink, a non-slug name, `.`/`.git`; or the calibration fails inside the export — including when its output says a file was not found (python exits 2 there): an undeclared dependency, named in the output tail.
|
|
70
|
+
- rc 2: `UNCALIBRATED`, a missing or untracked declared file, a non-empty `--out` or one inside the repo, a timeout, or the calibration's own UNMEASURED (rc 2 without a missing-file message, 126/127, a signal).
|
|
71
|
+
|
|
72
|
+
Measured on the pilot: without `files:` the export failed with «missing scripts/ko_tech_writer_calibrate.py» (the lane calls it); declaring it made the export STANDALONE (7 files). Lanes EX1–EX7; dropping the pilot's `files:` turns EX7 red.
|
|
73
|
+
|
|
74
|
+
**Not proven by export (named residual)**: there is no OS sandbox — a calibration that reads the repo by absolute path or reaches the real home via the user database can pass falsely; tools it needs from the machine (python3, rg) come from the system PATH; a calibration that exits 0 without testing reads as STANDALONE (the contract requires a known-pair test, the checker does not inspect it); whether the skill's prose still makes sense without FH is a reading question, not a run.
|
|
75
|
+
|
|
76
|
+
## 4. Composition and removal
|
|
77
|
+
|
|
78
|
+
- **Two modules disagree** (`merge`): every member is validated first (an invalid member BLOCKs the merge); UNCALIBRATED propagates (exit 3); the merge is seeded with a core-floor pseudo-manifest (`approval: ask`, `degrade: fail-closed`, `reversibility: irreversible`) so nothing lands below the core. `approval: ask` is a **floor**, not a silent default: the core irreversible gates are ask-level, so a module cannot merge below it. The merge JSON is printed only on rc 0/3; on any other code only `{"verdict": ...}` is printed; `residency` is floored from each member's `data_class`; strictest value per axis wins regardless of argument order; `data_class` takes the strictest class; any irreversible member marks the set irreversible.
|
|
79
|
+
- **Removal** (`remove <id> --installed DIR`): refused (BLOCK) while another installed module `requires` it; if any installed manifest is unreadable the answer is UNMEASURED, not "no dependants". When allowed, the output is a *plan* that archives the module's `records`; the checker deletes nothing.
|
|
80
|
+
|
|
81
|
+
## 5. Decisions recorded
|
|
82
|
+
|
|
83
|
+
- Skills stay as they are and are not classified. The pilot manifest wraps an existing skill without changing it.
|
|
84
|
+
- A standalone skill package must work alone and embed its own guard if it needs one. A skill that touches irreversible ops ships standalone only with an embedded guard.
|
|
85
|
+
- Company modules use a separate registry (not this one); `data_class: company` here only labels and tightens `residency`.
|
|
86
|
+
|
|
87
|
+
## 6. Calibration of the checker
|
|
88
|
+
|
|
89
|
+
`bash scripts/test_fh_module_check_lanes.sh` - known-positive (valid module), known-negatives (disable, override, shadow, reorder, unknown enum, unknown key, unrouted publish, garbage / empty / missing manifest, removal with dependant, merge in both orders). `FH_MODULE_PROBE=<name>` neuters one check in a temp copy; the matching lane must go red.
|
|
90
|
+
|
|
91
|
+
Pilot: `plugins/fh-commons/skills/ko-tech-writer/fh-module.yaml`.
|
|
92
|
+
|
|
93
|
+
## 7. Not in v0
|
|
94
|
+
|
|
95
|
+
**Packaging an embedded guard** — export copies a module that touches nothing irreversible; a module that does (`touches_irreversible` other than `none`) would need the core gate it routes to inside the export. Not built.
|
|
96
|
+
|
|
97
|
+
Version-range solving for `requires`, applying the archive plan, enforcing `core_min` against the installed core version, and installing hooks into settings. The checker validates a manifest; it does not install.
|
|
@@ -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.
|