@chrono-meta/fh-gate 3.30.0 → 3.32.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.
Files changed (32) hide show
  1. package/.claude-plugin/marketplace.json +4 -4
  2. package/CLAUDE.md +1 -1
  3. package/README.ja.md +6 -5
  4. package/README.ko.md +6 -5
  5. package/README.md +18 -5
  6. package/README.zh.md +6 -5
  7. package/docs/REFERENCE.md +6 -5
  8. package/docs/USER_GUIDE.md +3 -0
  9. package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +50 -0
  10. package/knowledge/shared/harness-core/sonnet_floor_doctrine.md +7 -0
  11. package/knowledge/shared/learnings/subagent_invocations_log.yaml +84 -0
  12. package/package.json +5 -1
  13. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  14. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  15. package/plugins/fh-meta/CHANGELOG.md +32 -0
  16. package/plugins/fh-meta/skills/install-wizard/SKILL.md +31 -0
  17. package/plugins/fh-meta/skills/install-wizard/SKILL_detail.md +24 -6
  18. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  19. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  20. package/scripts/abstract_consult_check.py +573 -0
  21. package/scripts/fh_detach.py +466 -0
  22. package/scripts/fh_session_load.sh +17 -0
  23. package/scripts/mutation_probe.py +16 -0
  24. package/scripts/selfcheck.sh +83 -6
  25. package/scripts/test_abstract_consult_check_lanes.sh +201 -0
  26. package/scripts/test_fh_detach_lanes.sh +302 -0
  27. package/scripts/test_fh_run_resolver_lanes.sh +16 -0
  28. package/scripts/test_mutation_probe_lanes.sh +62 -20
  29. package/scripts/test_ollama_panel_lanes.sh +107 -11
  30. package/scripts/test_prepush_real_fire_lanes.sh +1 -1
  31. package/scripts/test_selfcheck_state_lanes.sh +73 -1
  32. package/templates/CLAUDE.md +16 -0
@@ -11,25 +11,25 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "3.30.0",
14
+ "version": "3.32.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.30.0",
20
+ "version": "3.32.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.30.0",
26
+ "version": "3.32.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.30.0",
32
+ "version": "3.32.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/CLAUDE.md CHANGED
@@ -60,7 +60,7 @@ Returning user (operator with FH-dev state: welcome line = **"The FH operator
60
60
  - AI never commits on its own to someone else's shared repo: approved changes go to a feature branch and a proposed PR. Team rules stay in their project — never copy a project's team rules into FH.
61
61
 
62
62
  ## Agent Dispatch Operation
63
- Isolated delegation is part of the identity: dispatch separable work (blind evaluation, context-flooding search, parallel tasks) without waiting to be asked **only when a standing request is RECORDED** in `CLAUDE.local.md` with ① the operator's quoted words ② a dated lease ③ a scope. Missing any of the three → ask per invocation. A session never invents or renews a record on its own; it writes one only from the operator's explicit answer. A sidecar audits; it never writes to the target tree, and its findings are evidence until the governor closes each against a mechanical anchor. Honour lease expiry, announce each standing-consent dispatch, and say so once if dispatch is unavailable. Give each dispatch a Context Card (purpose · done so far · this task · constraints). Do not commit FH assets from a worktree. After a custom subagent call, log it in `knowledge/shared/learnings/subagent_invocations_log.yaml`. Detail: `knowledge/shared/harness-core/dispatch_conditional_prohibition.md`.
63
+ Isolated delegation is part of the identity: dispatch separable work (blind evaluation, context-flooding search, parallel tasks) — name its purpose: **independence** (it judges work you produced — never fold, whatever it is called) · **permission** (a narrower authority than yours — never fold while that boundary is needed) · **context** (fold only after repeated runs show no per-task loss; detail §Two-Purposes) — without waiting to be asked **only when a standing request is RECORDED** in `CLAUDE.local.md` with ① the operator's quoted words ② a dated lease ③ a scope. Missing any of the three → ask per invocation. A session never invents or renews a record on its own; it writes one only from the operator's explicit answer. A sidecar audits; it never writes to the target tree, and its findings are evidence until the governor closes each against a mechanical anchor. Honour lease expiry, announce each standing-consent dispatch, and say so once if dispatch is unavailable. Give each dispatch a Context Card (purpose · done so far · this task · constraints). Do not commit FH assets from a worktree. After a custom subagent call, log it in `knowledge/shared/learnings/subagent_invocations_log.yaml`. Detail: `knowledge/shared/harness-core/dispatch_conditional_prohibition.md`.
64
64
 
65
65
  ## Autonomous Initiative Layer — intents that must reach a rule, not a guess
66
66
  | Signal | Go to |
package/README.ja.md CHANGED
@@ -3,12 +3,13 @@
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
+ <a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg?logo=arxiv" alt="arXiv:2609.04218 — the FH governance paper"></a>
7
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>
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>
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>
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>
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>
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?logo=awesomelists" alt="Listed in awesome-agent-skills"></a>
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?logo=githubactions" alt="GitHub Actions Marketplace — fh-gate"></a>
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&logo=npm" alt="npm"></a>
11
+ <a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/dt/@chrono-meta/fh-gate.svg?color=3fb950&logo=npm&label=downloads" alt="npm total downloads"></a>
12
+ <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg?logo=homebrew" alt="Homebrew tap"></a>
12
13
  </p>
13
14
 
14
15
  <p align="center">
package/README.ko.md CHANGED
@@ -3,12 +3,13 @@
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
+ <a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg?logo=arxiv" alt="arXiv:2609.04218 — the FH governance paper"></a>
7
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>
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>
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>
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>
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>
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?logo=awesomelists" alt="Listed in awesome-agent-skills"></a>
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?logo=githubactions" alt="GitHub Actions Marketplace — fh-gate"></a>
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&logo=npm" alt="npm"></a>
11
+ <a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/dt/@chrono-meta/fh-gate.svg?color=3fb950&logo=npm&label=downloads" alt="npm total downloads"></a>
12
+ <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg?logo=homebrew" alt="Homebrew tap"></a>
12
13
  </p>
13
14
 
14
15
  <p align="center">
package/README.md CHANGED
@@ -3,12 +3,13 @@
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
+ <a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg?logo=arxiv" alt="arXiv:2609.04218 — the FH governance paper"></a>
7
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>
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>
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>
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>
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>
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?logo=awesomelists" alt="Listed in awesome-agent-skills"></a>
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?logo=githubactions" alt="GitHub Actions Marketplace — fh-gate"></a>
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&logo=npm" alt="npm"></a>
11
+ <a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/dt/@chrono-meta/fh-gate.svg?color=3fb950&logo=npm&label=downloads" alt="npm total downloads"></a>
12
+ <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg?logo=homebrew" alt="Homebrew tap"></a>
12
13
  </p>
13
14
 
14
15
  <p align="center">
@@ -83,6 +84,18 @@ cd ~/projects/forge-harness && claude # then type: hi (or 안녕 ·
83
84
  «run /context-doctor» (token-waste scan). For full setup, run `/install-wizard`: every item is
84
85
  approved one by one and a decline is recorded.
85
86
 
87
+ **Taking it off again.** From the FH clone, `python3 scripts/fh_detach.py --project <the project you ran the
88
+ wizard in>` prints what the wizard wrote for that project; add `--apply` to undo it. Other projects keep FH. Add
89
+ `--machine` to also remove what every project shares: the `~/.zshrc` block and the FH clone's own hooks and
90
+ `core.hooksPath` (without it they are listed as kept). Another project you ran the wizard in needs its own `--project` — detach those
91
+ first and run `--machine` last. Changed in 3.32.0: before that, `--apply` removed the shared setup too. If `--project`
92
+ is the FH clone itself, its own hooks count as that project's and go without `--machine`. `--plugin` also runs
93
+ `claude plugin uninstall fh-meta@forge-harness` and removes the `forge-harness` marketplace entry. A hook counts
94
+ as FH's only when every field equals a shipped snippet entry (or the wizard's companion-store hook form) — so one you wrote yourself survives unless it is
95
+ identical to FH's — and anything FH-like that does not match is listed for you to look at (exit 1). Installed
96
+ the plugin only, with no clone? Run `claude plugin uninstall fh-meta@forge-harness`. Door ① leaves only its verdict records
97
+ in `~/.fh/logs/` (delete the folder when you no longer want them) and npm's own `npx` cache.
98
+
86
99
  Requirements. Door ② needs the Claude Code CLI (`claude --version`). Door ① needs Node and a `claude` or
87
100
  `codex` CLI, not a Claude Code session. One of FH's own gates (the test suite in a clone) additionally
88
101
  needs Python + PyYAML (`python3 -m pip install --user pyyaml`) and fails closed without it.
package/README.zh.md CHANGED
@@ -3,12 +3,13 @@
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
+ <a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg?logo=arxiv" alt="arXiv:2609.04218 — the FH governance paper"></a>
7
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>
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>
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>
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>
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>
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?logo=awesomelists" alt="Listed in awesome-agent-skills"></a>
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?logo=githubactions" alt="GitHub Actions Marketplace — fh-gate"></a>
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&logo=npm" alt="npm"></a>
11
+ <a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/dt/@chrono-meta/fh-gate.svg?color=3fb950&logo=npm&label=downloads" alt="npm total downloads"></a>
12
+ <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg?logo=homebrew" alt="Homebrew tap"></a>
12
13
  </p>
13
14
 
14
15
  <p align="center">
package/docs/REFERENCE.md CHANGED
@@ -13,12 +13,13 @@
13
13
 
14
14
  <p align="center">
15
15
  <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>
16
- <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>
17
- <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>
16
+ <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?logo=awesomelists" alt="Listed in awesome-agent-skills"></a>
17
+ <a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg?logo=claude" alt="Claude Code compatible — official Claude Code repository"></a>
18
18
  <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>
19
- <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>
20
- <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>
21
- <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
19
+ <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?logo=githubactions" alt="GitHub Actions Marketplace — fh-gate"></a>
20
+ <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&logo=npm" alt="npm"></a>
21
+ <a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/dt/@chrono-meta/fh-gate.svg?color=3fb950&logo=npm&label=downloads" alt="npm total downloads"></a>
22
+ <a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg?logo=homebrew" alt="Homebrew tap"></a>
22
23
  <a href="../LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
23
24
  </p>
24
25
 
@@ -123,6 +123,9 @@ FH 자산(규칙·스킬·스크립트 등)을 고치면 4축 검증 마커를
123
123
  **Q. 토큰이 너무 든다.**
124
124
  `/context-doctor` 를 불러라. 무엇이 상주 중이고 무엇을 뺄 수 있는지 진단한다.
125
125
 
126
+ **Q. FH 를 떼고 싶다.**
127
+ FH 클론에서 `python3 scripts/fh_detach.py --project <마법사를 돌린 프로젝트>` — 먼저 무엇을 지울지 보여 주고 아무것도 안 바꾼다. 맞으면 `--apply`. 기본은 그 프로젝트만 뗀다 — 다른 프로젝트는 그대로다. 모든 프로젝트가 같이 쓰는 것(`~/.zshrc` 블록 · FH 클론의 훅 · `core.hooksPath`)까지 떼려면 `--machine` 을 더한다(안 주면 «kept (machine-wide …)» 로 보여 주기만 한다). 마법사를 돌린 다른 프로젝트는 그 프로젝트 경로로 따로 뗀다 — 그것들을 먼저 떼고 `--machine` 은 마지막에. 3.32.0 에서 바뀌었다: 그 전에는 `--apply` 만으로 공유분까지 지웠다. `--project` 로 FH 클론 자신을 주면 그 클론의 훅은 «그 프로젝트 것» 이라 `--machine` 없이도 지워진다. `--plugin` 은 fh-meta 플러그인과 forge-harness 마켓플레이스 등록까지 지운다. 클론 없이 플러그인만 깔았으면 `claude plugin uninstall fh-meta@forge-harness`.
128
+
126
129
  ---
127
130
 
128
131
  ## 4. 더 읽을 것
@@ -309,3 +309,53 @@ repository says. rc=1 means the claim and the change differ (named both ways) or
309
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
310
  changed, not whether it is right: tests and review still decide that. Outside anchors: `arXiv:2610.15459`, «report ≠
311
311
  change» (frontier digest 2026-10-20). Lanes: `scripts/test_dispatch_receipt_lanes.sh` (wired in selfcheck).
312
+
313
+ ## §Two-Purposes — a dispatch serves independence, permission or context, and only context can be folded (2026-10-27)
314
+
315
+ Anthropic's «Building agents: When to fold subagents into your main agent loop» (claude.com, 2026-10-22,
316
+ https://claude.com/blog/building-agents-when-to-fold-subagents-into-your-main-agent-loop) reports that a
317
+ single loop with skills and progressive disclosure often beat a subagent design on quality, cost and
318
+ latency across customer deployments, and keeps subagents for three cases: measured context bloat,
319
+ fresh-context parallel or throwaway work, and tool-selection failure or conflicting instructions. It warns
320
+ against one subagent per team (the org chart as architecture), and reports a fold that cut latency but
321
+ flipped a passing task in one of two runs — so it asks for repeated runs and a per-task flip check.
322
+ No scores are published; it is a vendor's account of customer cases and the balance may move with the model.
323
+
324
+ The article also says subagents are effective at «verification, parallel work, and modular permissioning»,
325
+ and names black-box verification and a generator-verifier pattern as split candidates — work that needs
326
+ little information from the rest of the system. What it does not explicitly establish is FH's stronger
327
+ requirement: **the reader must not be the author.** That requirement is why FH dispatches most often, so it
328
+ is written down here rather than inferred. FH sends work out for three purposes, and the fold advice
329
+ applies to only one:
330
+
331
+ | purpose | examples here | fold into the main loop? |
332
+ |---|---|---|
333
+ | **independence** — evidence from a reader who is not the author | blind evaluation · cross-review · a known-pair sim · a verifier that must not see the governor's conclusion | **never** |
334
+ | **permission** — a narrower authority boundary than the governor's | a read-only auditor · a sidecar that must not write the target tree | **never while the boundary matters** — folding hands the work the governor's write access |
335
+ | **context** — keep the main window small or run work in parallel | context-flooding search · parallel builders · throwaway exploration | **only after a measured fold** — repeated runs with a per-task flip check show no loss, and no independence or permission need applies |
336
+
337
+ How to apply:
338
+ - **The test is functional, not the label.** If the dispatch is asked to *judge* work the governor (or an
339
+ agent it directed) produced — a review, a second opinion, a pass/fail verdict, a blind score — it is
340
+ **independence**, whatever else it also does and whatever the card calls it. Calling a second-pass checker
341
+ «fresh-context exploration» does not make it foldable. Not independence: fetching facts the governor will
342
+ judge with (docs, a grep sweep, a list of call sites), and a builder running its own tests — those report,
343
+ they do not judge, and stay **context**.
344
+ - **Purposes can coexist; the strictest wins.** A blind evaluator that also reads a large corpus serves
345
+ independence and context at once — keep it one dispatch and do not fold it. Precedence:
346
+ independence > permission > context.
347
+ - Name the purpose(s) in the Context Card's first line («purpose: independence — …»).
348
+ - Do not cite the article as grounds to fold a reviewer, a blind sim or a cross-family check. Its fold
349
+ advice compares task quality, cost and latency; its own text keeps verification as a split candidate.
350
+ - Tool-count side note from the same article: «once you exceed 30-50 tool definitions in the system
351
+ prompt, tool choice tends to degrade», with grouping by user intent as the remedy. The quantity is tool
352
+ definitions **loaded into the prompt** (deferred tools not yet loaded do not count) — not installed skills
353
+ or MCP inventory. FH's loaded count per session is `UNMEASURED`, not «fine».
354
+ **Measured 2026-10-28** (one headless session in the hub, the `init` event's lists; one machine, one config —
355
+ a reading, not a distribution): tools **available** 112 = 29 built-in + 83 MCP (two desktop/browser
356
+ automation servers alone carry 64), skills 82 (FH plugins 41), agents 19 (FH 14). FH itself adds **0 tool
357
+ definitions** — its weight is skill and agent descriptions, which the quote does not count. How many of the
358
+ 112 are **loaded** depends on the runtime's deferred-tool loading and is still not read from this event —
359
+ so whether any session crosses the quoted threshold stays `UNMEASURED`; what is measured is that the extra
360
+ *available* definitions come from the operator's MCP servers, not from FH. Re-measure with
361
+ `claude -p … --output-format stream-json --verbose` and read the `init` line.
@@ -111,6 +111,13 @@ a known-pair on that runtime, not a claim about it.
111
111
  day. Structure-enforcing checks are tier-blind by construction — so the harness raises the floor
112
112
  for weak models *and* guards the ceiling for strong ones. Weak-model benefit is the larger term
113
113
  (H1), top-tier benefit is the existence proof that the harness is not scaffolding-only.
114
+ **Scope of «guards the ceiling», measured 2026-10-27 (S1 — the first strong-tier A/B):** the
115
+ full-mode contract arm on Opus 5.5, 11 tasks where Opus without it already split, off vs full × 3
116
+ reps: full − off +27.3pp, 1 task harmed vs 7 helped ⇒ it **does not hold a strong model back**
117
+ (measured, pre-registered non-inferiority). Whether it **lifts** one is **not established** — 11
118
+ tasks is under the pre-registered 12, sign test p 0.070 — and it costs ×2.7 median wall time.
119
+ Say «does not bottleneck strong models; lifting them is unproven», never «amplifies strong
120
+ models». Record: `tracks/_meta/p3_contract_ab/s1/RESULTS_S1.md` (operator-local).
114
121
  - **External academic grounding (arXiv:2605.30621, "Harness Updating Is Not Harness Benefit,"
115
122
  May 2026 — surfaced via issue #102 Frontier Digest, 2026-08-15)**: the paper separates the
116
123
  *evolver* role (writes harness updates) from the *beneficiary* role (runs on the updated
@@ -5030,3 +5030,87 @@
5030
5030
  outcome: "codex 5/5 VALID (2 wrong, one with a false source claim); Gemini found both defects; governor confirmed in source — the H-blind-spot reading was withdrawn"
5031
5031
  evidence: "tracks/_meta/p3_contract_ab/p11/RESULTS_P11.md"
5032
5032
  tokens: UNMEASURED
5033
+ - date: 2026-10-25
5034
+ agent: "general-purpose (sonnet) ×8 — P16 task builders (Python ×4 · JS ×4, isolated /private/tmp)"
5035
+ task: "held-out fix tasks by domain for the P16 full-mode A/B"
5036
+ trigger: "RESULTS_P15 «(experimental)» condition — new held-out tasks ≥ 20"
5037
+ outcome: "accepted after governor fail-before/fix checks and calibration"
5038
+ evidence: "tracks/_meta/p3_contract_ab/ (P16)"
5039
+ tokens: UNMEASURED
5040
+ - date: 2026-10-25
5041
+ agent: "general-purpose (sonnet) ×2 — S4 / S4b non-developer scenario writers"
5042
+ task: "headless non-developer persona scenarios; hidden-risk variants"
5043
+ trigger: "operator KCDA sim order «확인 필요 없는 것 먼저»"
5044
+ outcome: "accepted as scenario input; S4b drove the FoD copy/move/redirect realpath reinforcement"
5045
+ evidence: "FoD gate reinforcement PR (10-26)"
5046
+ tokens: UNMEASURED
5047
+ - date: 2026-10-26
5048
+ agent: "general-purpose (sonnet) ×10 — P19 task builders (PA–PE · JA–JE) + Explore (sonnet) ×1 install-trace survey"
5049
+ task: "P19 held-out tasks; list every place FoD install leaves traces (for the detach lane)"
5050
+ trigger: "B full-mode official conditions · A clean-detach lane"
5051
+ outcome: "accepted with governor re-verification; trace list fed the detach home-diff lane (#958)"
5052
+ evidence: "FH #958 · tracks/_meta/p3_contract_ab/ (P19)"
5053
+ tokens: UNMEASURED
5054
+ - date: 2026-10-26
5055
+ agent: "general-purpose (sonnet) ×7 — detach-guide blind sim + blind spec sets B–G"
5056
+ task: "cold-read the detach guide; write blind specs for the residency D2A/D2A2 measurement (public repos + canaries, no company data)"
5057
+ trigger: "Done = fires at the floor tier · D2 preregistration"
5058
+ outcome: "accepted; spec sets used as D2A/D2A2 inputs"
5059
+ evidence: "tracks/_meta/residency_d2/RESULTS_D2A.md · RESULTS_D2A2.md"
5060
+ tokens: UNMEASURED
5061
+ - date: 2026-10-27
5062
+ agent: "general-purpose (sonnet) ×2 — D2 loss-transcript reader · FoD Windows packaging/install scripts"
5063
+ task: "read transcripts of tasks the reviewed arm lost; port Windows packaging + install.ps1/install.sh"
5064
+ trigger: "D2 operator decision · «윈도우용과 맥용 둘다 잘 준비해두자»"
5065
+ outcome: "transcript read accepted (D2_loss_transcripts); packaging accepted after codex R1 7 findings fixed, R2 residuals closed"
5066
+ evidence: "tracks/_meta/p3_contract_ab/D2_loss_transcripts_2026-10-27.md · FoD #159"
5067
+ tokens: UNMEASURED
5068
+ - date: 2026-10-27
5069
+ agent: "codex (gpt) ×4 + agy gemini-3.8-flash-high ×1 — read-only reviews"
5070
+ task: "FoD #158 settings UI (Gemini R1) · #159 Windows port (codex R1 · R2) · #162 issue-161 inline-python proof (codex R1 cut by content filter · R2)"
5071
+ trigger: "load-bearing gate / installer code"
5072
+ outcome: "#158 1 of 5 accepted (others excerpt artifacts); #159 7 fixed; #162 both rounds found new bypasses of the proof → narrowing withdrawn, fail-closed kept with a known-false-positive reason. Lesson: an R1 refused by a filter is not zero findings — its partial line matched the governor's own catch"
5073
+ evidence: "FoD #158 · #159 · #162"
5074
+ tokens: UNMEASURED
5075
+ - date: 2026-10-27
5076
+ agent: "general-purpose (sonnet) ×3 — FoD quota-ring builder · FoD Windows exe icon builder · FH weekly audit"
5077
+ task: "FoD #164 stale age + extra CODEX_HOME · FoD #165 exe icon via resedit · weekly_audit_2026-10-27.md (Phase 1.5)"
5078
+ trigger: "운영자 2026-10-27 «자체개발 자율주행하주고 주간감사도 해줘 fod쪽도 해주고 … 병렬로 거버너 모드로»"
5079
+ outcome: "#164 accepted after codex R1 4 fixes (2 A verified by governor), R2 4 B residuals named · #165 accepted after R1 1 fix, R2 2 B residuals · audit accepted, 🟥 claims spot-checked against gh/below_floor_scan; Q1 led to FH #962"
5080
+ evidence: "FoD #164 · #165 · tracks/_audit/weekly_audit_2026-10-27.md · FH #962"
5081
+ tokens: UNMEASURED
5082
+ - date: 2026-10-27
5083
+ agent: "codex (gpt) ×7 — read-only reviews"
5084
+ task: "FoD #164 R1·R2 · #165 R1·R2 · FH #961 R1·R2 · FH #962 R1"
5085
+ trigger: "load-bearing installer / sync channel / resident rule"
5086
+ outcome: "all A findings taken; FH #961 R1 caught a missing permission purpose and a label loophole; FH #962 R1 caught SIGPIPE→141 before the refusal"
5087
+ evidence: "FoD #164 · #165 · FH #961 · #962"
5088
+ tokens: UNMEASURED
5089
+ - date: 2026-10-28
5090
+ agent: "general-purpose (sonnet) — below-floor marker re-check (purpose: independence)"
5091
+ task: "4 pending markers of below_floor_scan.sh — verdict a/b/c each"
5092
+ trigger: "운영자 2026-10-28 «추천대로 7까지 모두 … 병렬로» (weekly audit 🟥 below-floor 4)"
5093
+ outcome: "scanner right on all 4; governor re-ran items 3·4 with revert probes — item 4's named anchor lane did NOT exercise the fix (reverted code stayed PASS 7) → FH #967 F8"
5094
+ evidence: "FH #967 · tracks/_meta markers (local)"
5095
+ tokens: UNMEASURED
5096
+ - date: 2026-10-28
5097
+ agent: "codex (gpt) ×7 — read-only reviews"
5098
+ task: "FH #965 R1·R2 · FH #966 R1·R2 · FH #967 R1 · (FoD gate / R2 residual reviews pending)"
5099
+ trigger: "load-bearing installer undo · CI lock base · lane anchors"
5100
+ outcome: "#965 R1 4 + R2 1 taken · #966 R1 4 + R2 1 taken (PIPESCAN_BASE leaked into fixtures under push) · #967 R1 2 C taken"
5101
+ evidence: "FH #965 · #966 · #967"
5102
+ tokens: UNMEASURED
5103
+ - date: 2026-10-28
5104
+ agent: "general-purpose (sonnet) ×2 — FoD builders (purpose: context)"
5105
+ task: "FoD gate inline-data false positive (#36 family) · FoD #164/#165 R2 residuals"
5106
+ trigger: "운영자 2026-10-28 «추천대로 7까지 모두 … 병렬로»"
5107
+ outcome: "residuals: first design (cache + budget) drew 5 new defects in codex R1 → governor ordered a reduction, R2 1 B named as residual, merged FoD #167 · gate: two rounds of governor-directed extension (in-order names; codex R1 receiver/open/replace fixes in progress)"
5108
+ evidence: "FoD #167 · FoD branch fix/gate-inline-data-mention"
5109
+ tokens: UNMEASURED
5110
+ - date: 2026-10-28
5111
+ agent: "fh-meta:beginner (sonnet) + fh-meta:challenger (sonnet) — scoped Area B for v3.32.0 (purpose: independence)"
5112
+ task: "cold read and claim attack of the 3.32.0 changelog and detach docs"
5113
+ trigger: "version policy: minor needs Area B since the previous minor (7-day interval conflict recorded)"
5114
+ outcome: "M findings: BREAKING audience, clone-as-project exception, read-error scope, ordering advice, 3.31.0 change notice; two code defects → FH #968; all doc items folded into the release"
5115
+ evidence: "FH #968 · release PR v3.32.0"
5116
+ tokens: UNMEASURED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "3.30.0",
3
+ "version": "3.32.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": {
@@ -216,6 +216,10 @@
216
216
  "scripts/numeric_token_diff.py",
217
217
  "scripts/outbound_pr_gate.sh",
218
218
  "scripts/outbound_query_guard.sh",
219
+ "scripts/abstract_consult_check.py",
220
+ "scripts/fh_detach.py",
221
+ "scripts/test_fh_detach_lanes.sh",
222
+ "scripts/test_abstract_consult_check_lanes.sh",
219
223
  "scripts/outbound_query_hook.sh",
220
224
  "scripts/package_coverage_check.sh",
221
225
  "scripts/pipe_verdict_guard.sh",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "3.30.0",
3
+ "version": "3.32.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.30.0",
3
+ "version": "3.32.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,5 +1,37 @@
1
1
  # forge-harness (fh-meta) Changelog
2
2
 
3
+ ### [3.32.0] — 2026-10-28 — fh_detach 기본 = 프로젝트 하나 · CI 에서 pipefail 델타 잠금이 실제로 돈다 · 레인 앵커 보강
4
+
5
+ **minor.** In short (for upgraders): `scripts/fh_detach.py` (still a dry run unless `--apply`) now takes off only the named project by default; add `--machine` to also remove what every project shares (`~/.zshrc` block, the FH clone's own hooks, `core.hooksPath`). In 3.31.0, `--apply` removed those too — if you relied on that, add `--machine`. Detach your other projects first and run `--machine` last. The pipefail class-lock delta no longer reports «SKIP» when it cannot find a base; the one `BREAKING (gate)` line below applies only to a clone of this repository running its own CI — the scanner and that lane are not in the npm package, so this change does not reach npm consumers.
6
+
7
+ BREAKING (gate): (hub clones only — not in the npm package) selfcheck's pipefail class-lock lane now FAILS under `GITHUB_ACTIONS=true` when the delta cannot find a base — check out with `fetch-depth: 0`, and on a push pass the event's `before` as `PIPESCAN_BASE` (this repository's `validate.yml` now does both). A `before` missing after a force-push falls back to `merge-base(HEAD, origin/main)` with a warning; if that is HEAD itself (force-push to main), it fails.
8
+
9
+ 소비자에게 닿는 변화:
10
+ - `scripts/fh_detach.py`: 기본 범위가 **그 프로젝트 하나**다(실행은 여전히 `--apply` 가 있어야 한다). 지우는 것 = 그 프로젝트의 `.claude/settings*.json` FH 훅 · `CLAUDE.local.md` 동반 절 · 그 프로젝트의 `~/.cc_sentinels` 이름 · 안 고친 템플릿 사본. 남는 것 = `~/.zshrc` 블록 · FH 클론 자신의 훅과 동반 절 · `core.hooksPath` · 다른 프로젝트 · 플러그인 — 공유분은 `kept (machine-wide …)` 줄로 보인다. `--machine` 을 주면 공유분까지 지운다(그래도 다른 프로젝트는 그대로 — 각자 `--project` 로 먼저 떼고 `--machine` 은 마지막에). 🟥 3.31.0 에서 `--apply` 로 머신 전체를 떼던 사람은 이제 `--machine` 을 더해야 같은 결과다. 예외: `--project` 가 FH 클론 자신이면 그 클론의 훅·동반 절은 «그 프로젝트 것» 이라 `--machine` 없이도 지워진다(셸 블록·hooksPath 는 여전히 `--machine` 만). 공유 단계(셸 블록 · 클론 settings · hooksPath)의 읽기 오류는 `--machine` 일 때만 종료 10 이고, 없으면 `kept (machine-wide, could not be read …)` 로 보인다. 그 프로젝트 자신의 파일이나 배포 스니펫을 못 읽으면 종래대로 종료 10(트레이스백 대신 `HARNESS-ERROR`, #968). install-wizard SKILL.md §Detach · README · USER_GUIDE(#965 · #968).
11
+ - `scripts/pipefail_earlyexit_scan.sh changed`(새 pipefail 조기종료 줄을 막는 델타 잠금): 기준(`merge-base HEAD origin/main`)을 못 구하면 HEAD 로 떨어져 «변경 없음 SKIP» rc 0 을 내던 폴백을 없앴다 — 이제 rc 2(측정 못 함). 얕은 CI 체크아웃에서 이 잠금이 한 번도 물지 않았다(하류 실측 2026-10-27). 기준은 두 번째 인자(주었는데 체크아웃에 없으면 rc 2) 또는 새 환경변수 `PIPESCAN_BASE`(0 으로만 된 sha 는 미설정 · 체크아웃에 없으면 경고 뒤 merge-base, 그게 HEAD 면 rc 2)로 줄 수 있다. selfcheck 의 이 레인은 CI(`GITHUB_ACTIONS=true`)에서 측정 못 하면 실패한다(로컬은 종전대로 경고). 같은 PR 에서 배포되는 레인 `test_prepush_real_fire_lanes.sh` 의 `stdin_has` 를 파이프 없이 고쳤다(`grep -q` 조기 종료가 생산자를 SIGPIPE 로 죽이는 형태)(#966 · #968).
12
+ - `scripts/test_mutation_probe_lanes.sh` R7-1: 다른 프로브가 «읽은 뒤·잠그기 전» 에 대상을 되돌리는 경우를, 시간 추정(잠금까지 걸린 시간의 절반) 대신 관측으로 맞춘다 — `scripts/mutation_probe.py` 의 테스트 전용 환경변수 `MUTATION_PROBE_TEST_AFTER_READ`(설정하지 않으면 효과 없음)가 읽은 직후 `<경로>.read` 를 만들고 `<경로>.go` 를 60초까지 기다린다. 표지 자리에 미리 있는 링크·파일은 따라가지 않고 종료 2(R7-1c). 빠른 러너에서 복원이 잠금 뒤로 밀려 옳은 프로브가 빨개지던 하류 실측이 계기다(#966).
13
+ - `scripts/test_fh_run_resolver_lanes.sh` F8: `package.json` 없는 트리에서 `fh-run.sh` 가 경고를 내고 버전을 `UNKNOWN-no-package-json` 으로 적고 계속 해석하는지 직접 돈다. 3.7.0 의 «무음 사망» 수리(#715)가 이 파일을 앵커로 적었지만 그 경우를 한 번도 안 돌렸다(수리 전 코드로 되돌려도 초록이었다 — 2026-10-28 플로어 재검). `dispatch_conditional_prohibition.md §Two-Purposes`: 도구 정의 개수를 한 번 실측해 적었다(쓸 수 있는 도구 112 · FH 가 더하는 도구 0) — 로드된 개수는 여전히 `UNMEASURED`(#967).
14
+ - `scripts/fh_session_load.sh`(배포됨): 아래 허브 동기화가 거부 표지를 남겼을 때만 세션 시작에 두 줄을 띄운다 — 표지가 없으면 아무것도 안 한다(#964).
15
+
16
+ 허브에서만(이 레포를 클론해 컴패니언 스토어 동기화를 쓰는 경우 — `sync-to-be.sh` 는 npm 패키지에 없다):
17
+ - `scripts/sync-to-be.sh` 가 대량 유입으로 거부(rc 14)하면 표지를 남긴다. 표지는 원인을 고친 뒤(제외 · 삭제 · `FH_SYNC_BULK_OK=1`) **다음 동기화가 «커밋할 것 없음» 이나 커밋까지 가야** 지워진다. 다른 스토어의 표지는 표지와 현재 스토어 경로가 둘 다 있을 때만 걸러진다(#964).
18
+
19
+ ### [3.31.0] — 2026-10-27 — 설치 마법사 되돌리기(fh_detach) · 디스패치마다 목적 적기 · selfcheck 시간 상한 · 바깥 질문 검사기(실험 종료 · 호출부 없음)
20
+
21
+ **minor.** In short (for upgraders): one new tool takes off what `/install-wizard` put on (`scripts/fh_detach.py`, dry run by default), one new checker screens a question before it goes to an outside model (`scripts/abstract_consult_check.py`, nothing calls it — off by default), and `selfcheck.sh` gives the mutation-probe lane suite a longer time budget. `fh_detach.py` takes FH off the whole machine setup (the `~/.zshrc` block and the FH clone's hooks go too), not one project — run the dry run first. The pre-send checker is an ended experiment (it missed its pre-registered bar) kept as an inert tool: it sends nothing and nothing calls it. For npm consumers nothing that passed before is refused now; upgrading from 3.30.0 needs no action. The one `BREAKING (gate)` line below applies only if you run the companion-store sync script (`scripts/sync-to-be.sh`) from a clone of this repository — that script is not in the npm package.
22
+
23
+ 소비자에게 닿는 변화:
24
+ - 새 도구 `scripts/fh_detach.py`: 설치 마법사가 남기는 흔적을 알아보는 형태로만 되돌린다 — `~/.zshrc` 블록 · `.claude/settings*.json` 훅 항목(배포 스니펫과 내용이 같은 항목만 — JSON 정렬 후 비교, Mode-D 명령 형태 포함) · `CLAUDE.local.md` 절 · `core.hooksPath=templates/.git-hooks` · `~/.cc_sentinels/` 의 해당 이름 · `.claude/rules/` 의 안 고친 템플릿 사본 2개. 🟥 `--project` 를 줘도 셸 블록 · FH 클론의 훅 · hooksPath 까지 지운다 — 프로젝트 하나 떼기가 아니라 머신 설정 떼기다. 배포 항목과 똑같이 손으로 넣은 훅은 구별 못 해 FH 것으로 본다. 클론 없이 플러그인만 깔았으면 `claude plugin uninstall fh-meta@forge-harness`. 기본 드라이런, `--apply` 로 실행, `--plugin` 은 `fh-meta` 와 forge-harness 마켓플레이스 등록까지 지운다. 비슷하지만 다른 흔적은 지우지 않고 보여 준 뒤 종료 1. 마법사 쪽 수리: 게이트 블록은 `FH_WIZARD_GATE_CONSENT=Y` 일 때만 건다 · 같은 스크립트 이름을 쓰는 사용자 훅을 지우지 않는다. install-wizard SKILL.md §Detach(#958).
25
+ - 새 도구 `scripts/abstract_consult_check.py`: 비공개 코드를 다루는 에이전트가 이름을 역할로 바꿔 바깥 모델에 물을 때, 보내기 **전에** 그 질문을 검사한다. 보내지 않고 운영 경로의 호출부가 없다(기본 꺼짐). 종료 0 깨끗(사람이 한 번 더 본다) · 1 걸림 · 2 사용법 오류 · 3 검사 못 함(막음)(#956). #957 은 사전 낱말로 된 레포 식별자를 막지 않고 «flags» 로 보여만 준다(레포 호스트 · 작성자 이름/이메일 · 원문 조각은 계속 막는다). 실측(표본이 다른 두 회차): 깨끗한 가린 질문 통과 0/12 → 5/18(28% — 사전 등록 문턱 50% 미달, 판정 STOP · 이 갈래 종료) · 원문 + 심은 이름을 붙여 넣은 질문 차단 44/44 유지 · 회피 변형 35/40.
26
+ - `selfcheck.sh`: 짝 레인 루프의 시간 상한을 스위트별로 둔다 — mutation-probe 600초(실측 318~322초), 나머지는 기존 300초. 시간 초과 줄은 적용된 상한을 적고, 상한의 80% 이상을 쓴 스위트를 `NOTE` 로 적는다(GNU `timeout` 이 있을 때). 한 머신에서 체크아웃 둘이 동시에 돌 때만 빨개지던 레인 3개: 포트는 OS 가 고르고 · 프로세스 표식은 실행마다 · 남은 백업 보정은 `UNMEASURED` 로 다룬다(#955).
27
+ - 필드 템플릿 `templates/CLAUDE.md`: 지침 파일이 적은 관례를 기존 코드가 안 따르면, 바꾸는 자리 가까운 코드를 따르고 그렇다고 말한다 — «새로 쓰거나 바꾸는 코드» 로 범위를 둔 규칙과 보안 · 비공개 · 안전 · 게이트 규칙은 항상 이긴다(#951).
28
+ - `CLAUDE.md §Agent Dispatch`: 디스패치마다 목적을 적는다 — 독립성(내 작업을 판정한다 — 메인 루프로 접지 않음) · 권한(더 좁은 권한 — 그 경계가 필요한 동안 접지 않음) · 맥락(반복 실행으로 과제별 손실이 없을 때만 접음). 상세 `dispatch_conditional_prohibition.md §Two-Purposes`(Anthropic 2026-10-22 «When to fold subagents» 대조)(#961).
29
+ - 방법론 문서: 바닥 교리의 «강한 모델의 천장도 지킨다» 를 잰 범위로 좁혔다 — 강한 모델을 막지 않는다(측정), 끌어올림은 미증명(#959). README 에 npm 누적 내려받기 배지(#953). 위임 기록(`subagent_invocations_log.yaml`, 배포됨)(#960).
30
+
31
+ 허브 체크아웃 전용(npm 에 안 실림):
32
+ - BREAKING (gate): `sync-to-be.sh` 는 한 번의 동기화가 새 파일을 `FH_SYNC_BULK_MAX`(기본 3000)개 넘게 추가하려 하면 그 파일들의 스테이징만 풀고 아무것도 커밋 · 푸시하지 않으며 가장 큰 폴더를 보여 주고 **종료 14** 다 — 예전엔 그대로 커밋 · 푸시했다(실험 작업 트리가 8,430~149,815 개씩 8 회 들어감). 파일은 이미 스토어 작업 트리에 복사돼 있으므로, 처방은 그 폴더를 제외 목록에 넣거나 스토어에서 지우거나, 의도한 양이면 `FH_SYNC_BULK_OK=1` 로 한 번 돌리기(#962).
33
+ - `sync_excludes.txt` 에 `home/`(이 이름의 폴더는 실험 밖이어도 전부 제외 — 파일에 잔여로 적음) · `work/` 레인(#950). 돌려받는 동기화가 지난 깨끗한 패스 이후 양쪽 다 안 바뀐 파일의 비교를 건너뛴다 — 운영자 허브 실측 246 → 10초(훅 제한 45초 안), 도장 없는 첫 패스는 여전히 길 수 있고 옛 mtime 을 보존한 복사본은 `--full` 이 필요하다(#954). 카트리지 스키마 `kind`(activity|method) · `applies_when` — 새 키가 없는 기존 매니페스트는 그대로 통과(#952).
34
+
3
35
  ### [3.30.0] — 2026-10-23 — sim 러너가 지침 파일 아래 출력 폴더를 거부 · 머지 영수증 · 메모리 근거 앵커 · 온보딩 빨라짐
4
36
 
5
37
  **minor.** In short (for upgraders): `scripts/sim_isolated_run.sh` now refuses an `--out` that sits under a directory holding Claude instruction files — read the BREAKING line below if you run it from inside a checkout. The rest adds output (a receipt line, report sections, an advisory), is faster, or corrects how three tools classify what they read (`unblocked` status rows, memory promote candidates, stale-reference pins) — see the bullets. Upgrading from 3.29.0 needs no action unless you point `--out` inside a repo.
@@ -287,6 +287,37 @@ When run again in an environment that has already passed the wizard (`~/.cc_sent
287
287
  - Proposes only newly found MISS/FAIL items
288
288
  - No full reinstall
289
289
 
290
+ ## Detach (undo the wizard)
291
+
292
+ What this wizard writes can be taken back with one command (the named residuals below are the exceptions). By
293
+ default it takes FH off **one project** — that project's hooks, companion section, sentinels and template copies.
294
+ `--machine` also removes what every project shares: the zshrc block, the FH clone's own hooks and `core.hooksPath`;
295
+ without it those are listed as `kept (machine-wide …)` and left alone. Neither touches another project the wizard
296
+ ran in — detach each one with its own `--project`, and run `--machine` last. Changed in 3.32.0 (before, `--apply` also
297
+ removed the shared setup). When `--project` is the FH clone itself, its own hooks and companion section are that
298
+ project's and go without `--machine`. With no clone (plugin only), use
299
+ `claude plugin uninstall fh-meta@forge-harness` instead:
300
+
301
+ ```bash
302
+ python3 "$FH_DIR/scripts/fh_detach.py" --project . # dry run — prints the plan, changes nothing
303
+ python3 "$FH_DIR/scripts/fh_detach.py" --project . --apply # carry it out for this project
304
+ python3 "$FH_DIR/scripts/fh_detach.py" --project . --machine --apply # this project + what every project shares (--plugin also uninstalls fh-meta and removes the forge-harness marketplace entry)
305
+ ```
306
+
307
+ Together (with `--machine`) they remove the zshrc block, the FH hook entries (every field equal to a shipped snippet entry, key order ignored),
308
+ the companion section in `CLAUDE.local.md`, the gate's `core.hooksPath`, this project's `~/.cc_sentinels/*_wizard_*`
309
+ files and unchanged template copies. A user's own hook survives, even one sharing a script name or a group with FH —
310
+ unless it is identical to FH's shipped entry, which the tool cannot tell apart.
311
+ Anything FH-like that is not an exact match (an older snippet version, a copy you edited) is listed as `LEFT` and
312
+ the exit code is 1 — look at it by hand. When the wizard's `.prewizard` backup still matches, your original
313
+ settings bytes come back. Lanes: `scripts/test_fh_detach_lanes.sh` (install with this wizard's own blocks → detach →
314
+ byte-equal tree).
315
+
316
+ Named residuals: a hook for a script FH no longer ships is not recognised (neither removed nor listed); the installer
317
+ treats a command that runs the hub's own `$CLAUDE_PROJECT_DIR/scripts/<name>.sh` as FH's, so it replaces such a command
318
+ on re-install; a `~/.zshrc` that had no final newline keeps the one newline the wizard added; settings rewritten
319
+ without a matching `.prewizard` come back as indent-2 JSON (same content, not the same bytes).
320
+
290
321
  ## External User Environment Adaptation
291
322
 
292
323
  | Mode | Environment | Action |
@@ -564,11 +564,16 @@ elif [ "${FH_WIZARD_ZSHRC_CONSENT:-N}" != "Y" ]; then
564
564
  elif grep -q "fh_audit_check.zsh" "$ZSHRC" 2>/dev/null; then
565
565
  echo "zshrc hook: already present — no change"
566
566
  else
567
+ # Begin/end markers let scripts/fh_detach.py remove exactly this block and nothing else.
568
+ # A file without a trailing newline would glue our first line onto the user's last one.
569
+ [ -s "$ZSHRC" ] && [ -n "$(tail -c1 "$ZSHRC")" ] && printf '\n' >> "$ZSHRC"
567
570
  cat >> "$ZSHRC" <<EOF
571
+ # >>> forge-harness (install-wizard) >>>
568
572
  export FH_DIR="$FH_DIR"
569
573
  export CC_HUB_DIR="$CC_HUB_DIR"
570
574
  export CC_SENTINELS_DIR="\$HOME/.cc_sentinels"
571
575
  source "\$FH_DIR/templates/fh_audit_check.zsh"
576
+ # <<< forge-harness (install-wizard) <<<
572
577
  EOF
573
578
  echo "zshrc hook: appended"
574
579
  fi
@@ -665,8 +670,16 @@ for snip in snippets:
665
670
  # the loss: [my_telemetry.sh, fh_session_load.sh] lost my_telemetry.sh entirely).
666
671
  kept = []
667
672
  for g in hooks.get(event, []):
673
+ # A hook is FH's only when it names one of the snippet's scripts AND points into an FH hub
674
+ # ($CLAUDE_PROJECT_DIR or forge-harness). The path-form key alone still matched a user's own
675
+ # ~/tools/scripts/fh_node_check.sh and deleted it (scripts/test_fh_detach_lanes.sh D5b, 2026-10-26).
676
+ # A command byte-equal to one this snippet is about to write is ours whatever it points at — that keeps a
677
+ # re-run idempotent (scripts/test_wizard_snippet_merge_lanes.sh MS-4).
678
+ own = {h.get("command") for eg in entry for h in eg.get("hooks", [])}
668
679
  survivors = [h for h in g.get("hooks", [])
669
- if not any(k in h.get("command", "") for k in keys)]
680
+ if not (h.get("command", "") in own
681
+ or (any(k in h.get("command", "") for k in keys)
682
+ and re.search(r"CLAUDE_PROJECT_DIR|forge-harness", h.get("command", ""))))]
670
683
  if survivors:
671
684
  g = dict(g); g["hooks"] = survivors
672
685
  # `"matcher": ""` and an omitted matcher are the same thing in Claude Code (hooks doc,
@@ -737,10 +750,14 @@ FH_NODE_STATE="$_T" bash "$FH_DIR/scripts/fh_node_check.sh"; rm -f "$_T"
737
750
  # NEVER installed into field projects (see auto_project_mapping.md §6). Skip unless you develop FH itself.
738
751
  # Per Core Principles (Per-item approval + Double-confirm irreversible changes): this is NOT auto-run —
739
752
  # it is a separate explicit Y/N, not folded into the baseline-setup batch.
740
- if [ -d "$FH_DIR/templates/.git-hooks" ]; then
741
- echo "Enable the 4-axis pre-commit gate on your FH clone ($FH_DIR)? It will block commits there until"
742
- echo "markers pass (Mode D / FH-development only). Skip if you are not developing FH itself. (Y/N)"
743
- # → On explicit Y only:
753
+ # The Y/N used to be a COMMENT («On explicit Y only») — pasted or scripted, the block set hooksPath
754
+ # unconditionally, the same defect the zshrc block above had until 2026-08-12. Now a real conditional on
755
+ # FH_WIZARD_GATE_CONSENT, default N (fail-closed). Lane: scripts/test_fh_detach_lanes.sh (G1/G2).
756
+ if [ -d "$FH_DIR/templates/.git-hooks" ] && [ "${FH_WIZARD_GATE_CONSENT:-N}" != "Y" ]; then
757
+ echo "4-axis pre-commit gate: SKIPPED (no explicit Y) — set FH_WIZARD_GATE_CONSENT=Y after the user answers Y to:"
758
+ echo " Enable the 4-axis pre-commit gate on your FH clone ($FH_DIR)? It will block commits there until"
759
+ echo " markers pass (Mode D / FH-development only). Skip if you are not developing FH itself. (Y/N)"
760
+ elif [ -d "$FH_DIR/templates/.git-hooks" ]; then
744
761
  git -C "$FH_DIR" config core.hooksPath templates/.git-hooks
745
762
  chmod +x "$FH_DIR/templates/.git-hooks/pre-commit" 2>/dev/null
746
763
  echo "4-axis pre-commit gate: installed (core.hooksPath -> templates/.git-hooks)"
@@ -748,7 +765,8 @@ fi
748
765
 
749
766
  # sentinel initialization (per-project independent — prevent conflicts with other projects on same machine)
750
767
  mkdir -p ~/.cc_sentinels
751
- touch ~/.cc_sentinels/$(basename "$(pwd)")_wizard_done
768
+ # quoted: a project folder named «my project» used to create ~/.cc_sentinels/my and ./project_wizard_done (codex R2)
769
+ touch ~/.cc_sentinels/"$(basename "$(pwd)")"_wizard_done
752
770
 
753
771
  # Weekly audit cadence — NO cron needed (a session-scoped scheduler cannot fire on a later day).
754
772
  # Durable mechanism = the zshrc hook above (fh_audit_check.zsh warns on terminal start when 7+ days
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.30.0",
3
+ "version": "3.32.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-qp",
3
- "version": "3.30.0",
3
+ "version": "3.32.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },