@chrono-meta/fh-gate 3.43.0 → 3.45.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/rules/fh_4axis_gate.md +50 -608
- package/.claude-plugin/marketplace.json +4 -4
- package/AGENTS.md +5 -1
- package/CATALOG.md +21 -0
- package/CHEATSHEET.md +7 -1
- package/docs/USER_GUIDE.md +95 -0
- package/docs/codex-compat.md +1 -1
- package/knowledge/shared/harness-core/fh_4axis_gate_detail.md +679 -0
- package/knowledge/shared/harness-core/fh_integration_contract.md +1 -1
- package/knowledge/shared/harness-core/fh_module_contract.md +106 -3
- package/knowledge/shared/harness-core/governance_engineering_definition.md +16 -0
- package/knowledge/shared/harness-core/heavy_skill_to_cartridge.md +185 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +221 -0
- package/knowledge/shared/plugin-catalog/recommended_plugins.md +53 -9
- package/package.json +24 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +50 -14
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL_detail.md +80 -0
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/sense_negative.md +30 -0
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/sense_positive.md +56 -0
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +118 -0
- package/plugins/fh-meta/skills/auto-decorrelation/SKILL.md +58 -1
- package/plugins/fh-meta/skills/install-wizard/SKILL_detail.md +4 -0
- package/plugins/fh-meta/skills/sim-conductor/SKILL_detail.md +3 -3
- package/plugins/fh-meta/skills/steel-quench/SKILL_detail.md +9 -4
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/agy_launch_guard.sh +165 -0
- package/scripts/agy_remote_run.sh +187 -0
- package/scripts/below_floor_scan.sh +30 -0
- package/scripts/codex_launch_guard.sh +123 -0
- package/scripts/correction_moments.py +23 -2
- package/scripts/fh-gate.sh +612 -14
- package/scripts/fh-goal.sh +56 -12
- package/scripts/fh-run.sh +1 -1
- package/scripts/fh_gate_exec.sh +272 -0
- package/scripts/fh_session_load.sh +17 -0
- package/scripts/finding_fleet.sh +36 -2
- package/scripts/finding_verifier.sh +7 -2
- package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/README.md +16 -0
- package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/scripts/check_refs.py +12 -0
- package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/scripts/test_check_refs.py +24 -0
- package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/skills/tidy-notes/SKILL.md +16 -0
- package/scripts/fixtures/heavy_skill_smell/clean/tidy-notes/skills/tidy-notes/fh-module.yaml +20 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/SKILL.md +25 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/hooks/hooks.json +7 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/check_links.py +25 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/publish.sh +9 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/publish_guard.py +6 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/docs-publisher-pro/scripts/setup.sh +5 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/SKILL.md +25 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/hooks/hooks.json +10 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/check_refs.py +12 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/guard_push.py +9 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/install.sh +6 -0
- package/scripts/fixtures/heavy_skill_smell/heavy/release-notes-pro/scripts/ship.sh +9 -0
- package/scripts/heavy_skill_smell.py +311 -0
- package/scripts/job_heartbeat.py +186 -0
- package/scripts/ko_tech_writer_calibrate.py +88 -1
- package/scripts/live_eval_matrix.py +128 -0
- package/scripts/live_eval_trace.py +199 -5
- package/scripts/package_coverage_check.sh +18 -0
- package/scripts/prepush_guard_check.sh +41 -20
- package/scripts/probe_live_eval.sh +33 -1
- package/scripts/probe_live_eval_lib.py +14 -6
- package/scripts/selfcheck.sh +162 -2
- package/scripts/selfcheck_shard_weights.txt +2 -0
- package/scripts/session_checklist.py +109 -5
- package/scripts/sidecar_calibrate.sh +15 -5
- package/scripts/sidecar_wait.sh +21 -1
- package/scripts/sim_isolated_run.sh +20 -0
- package/scripts/test_agy_launch_guard_lanes.sh +347 -0
- package/scripts/test_agy_remote_run_lanes.sh +228 -0
- package/scripts/test_below_floor_scan_lanes.sh +85 -0
- package/scripts/test_codex_launch_guard_lanes.sh +183 -0
- package/scripts/test_correction_moments_lanes.sh +37 -0
- package/scripts/test_fh_gate_absorb_lanes.sh +255 -0
- package/scripts/test_fh_gate_defaults_lanes.sh +169 -0
- package/scripts/test_fh_gate_exec_lanes.sh +244 -0
- package/scripts/test_fh_gate_fusion_lanes.sh +202 -0
- package/scripts/test_fh_gate_regressions.sh +92 -1
- package/scripts/test_fh_goal_change_detection_lanes.sh +103 -3
- package/scripts/test_finding_pipeline_lanes.sh +41 -3
- package/scripts/test_guard_anchor_override_env_lanes.sh +84 -0
- package/scripts/test_heavy_skill_smell_lanes.sh +160 -0
- package/scripts/test_job_heartbeat_lanes.sh +96 -0
- package/scripts/test_live_eval_construct_lanes.sh +29 -6
- package/scripts/test_live_eval_matrix_lanes.sh +53 -0
- package/scripts/test_live_eval_trace_lanes.sh +165 -12
- package/scripts/test_name_boundary_locale_lanes.sh +36 -5
- package/scripts/test_preprep_speech_coach_lanes.sh +18 -2
- package/scripts/test_prepush_guard_failure_visibility_lanes.sh +152 -0
- package/scripts/test_prepush_marker_lookup_lanes.sh +143 -0
- package/scripts/test_probe_live_eval_lanes.sh +43 -0
- package/scripts/test_regression_guard_sibling_lanes.sh +52 -1
- package/scripts/test_session_checklist_lanes.sh +205 -0
- package/scripts/test_sidecar_calibrate_lanes.sh +5 -1
- package/scripts/test_sidecar_wait_stdin.sh +18 -0
- package/scripts/test_sim_isolated_run_lanes.sh +43 -0
- package/scripts/universal_guard_check.sh +8 -0
- package/templates/.claude/rules/mcp_tool_gating.md +27 -0
- package/templates/.git-hooks/pre-push +60 -3
- package/templates/regression_guard.sh +8 -4
- package/templates/settings.LaneGap.snippet.json +27 -0
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.45.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.45.0",
|
|
21
21
|
"description": "Project-agnostic utility skills — 7 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer · persona-cast · standpoint-review) + 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.45.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.45.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/AGENTS.md
CHANGED
|
@@ -146,7 +146,11 @@ gate that the existing approval does not cover. Existing delegation-consent rule
|
|
|
146
146
|
> **Choosing a placement** (one governor that dispatches subagents — *집약* — vs a supervising governor that
|
|
147
147
|
> audits work sessions the user drives directly — *감독*): `docs/USER_GUIDE.md` §4 covers when to pick each,
|
|
148
148
|
> what to say to start it, what a CLI-only setup uses instead of the desktop app's session tools, and how
|
|
149
|
-
> continuity works without a private store.
|
|
149
|
+
> continuity works without a private store. It also covers how the two stack (the work sessions under a
|
|
150
|
+
> supervising governor usually run as intensive governors themselves; the practical difference is who reads
|
|
151
|
+
> the result), what running a supervising governor for a long time can give (an author observation, not a
|
|
152
|
+
> measured claim), and an **opt-in** lease block for reversible maintenance on the user's own machine. No FH
|
|
153
|
+
> rule reads that block, so it is followed by judgment only. Irreversible surfaces and gates are unchanged by it.
|
|
150
154
|
>
|
|
151
155
|
> **Detail**: Read `knowledge/shared/harness-core/agents_md_runtime_details.md §Governor-operation`
|
|
152
156
|
> before diagnosing a blocked workflow or adapting host automation. It separates FH evidence,
|
package/CATALOG.md
CHANGED
|
@@ -22,6 +22,27 @@ entries. Same class as the 2026-08-20 entry below (index drift on `knowledge/`);
|
|
|
22
22
|
contract v0: a module is a cartridge that plugs into FH and can be pulled out; it may add constraints
|
|
23
23
|
but never weaken the core floor. Closed-enum manifest (`fh-module.yaml`), install-time check, removal
|
|
24
24
|
rule. Checker: `scripts/fh_module_check.py`.
|
|
25
|
+
- `knowledge/shared/harness-core/heavy_skill_to_cartridge.md` — #module, #cartridge, #refactoring. Turning a
|
|
26
|
+
«heavy skill» (own gates, hooks, floor rules) into a cartridge: craft / checks / floor split, `ready:` hand-off or
|
|
27
|
+
core-routed commands, standalone export limits, known-pair lane. Advisory checker: `scripts/heavy_skill_smell.py`.
|
|
28
|
+
- `scripts/cartridge_loader.py` — #module, #cartridge, #routing, #hook. Core SessionStart hook: loads the cartridges
|
|
29
|
+
the operator lists (admitted snapshot + sha256) into the session; activity cartridges skipped. Hub-only for now
|
|
30
|
+
(ships with `cartridge_admit.py`). Lanes: `scripts/test_cartridge_loader_lanes.sh`.
|
|
31
|
+
- `scripts/scoreboard_render.py` — #scoreboard, #measurement, #seal. Renders a «what FH / FoD gives a person» page from
|
|
32
|
+
an index of sealed records: a row shows only if its pre-registration commit was pushed before the result and its k/n
|
|
33
|
+
are quoted verbatim from the result; every outcome shows (win · no difference · not detected · ceiling · claim not
|
|
34
|
+
supported); groups never pool. Lanes: `scripts/test_scoreboard_render_lanes.sh`.
|
|
35
|
+
- `scripts/fh_gate_exec.sh` — #fh-gate, #execution-layer, #lanes, #code-review. fh-gate's token-free execution layer:
|
|
36
|
+
E0 runs FH's class scanners (pipefail early-exit) against the change, E1 runs the change's target lanes in a copy
|
|
37
|
+
(red by this change → A · red before → C · did not finish → B). Opt-in since 3.45.0 (`FH_GATE_EXEC=on`), as are the
|
|
38
|
+
built-in `/code-review` as reviewer (`FH_REVIEWER=code-review`), a «goldfish» pass that follows `/code-review`'s
|
|
39
|
+
method (`FH_REVIEWER=fh`) and the «elephant» pass over the touched files' history (`FH_GATE_ELEPHANT=auto`); the
|
|
40
|
+
default review is `fh-legacy`. Lanes: `scripts/test_fh_gate_defaults_lanes.sh` · `scripts/test_fh_gate_exec_lanes.sh`
|
|
41
|
+
· `scripts/test_fh_gate_fusion_lanes.sh` · `scripts/test_fh_gate_absorb_lanes.sh`.
|
|
42
|
+
- `scripts/fh_techwriter_sync_check.sh` — #export, #drift, #ko-tech-writer. Names the files where the published
|
|
43
|
+
fh-techwriter copy (its committed HEAD) differs from FH's own export of ko-tech-writer — DRIFT · MISSING · EXTRA —
|
|
44
|
+
and prints the regen command for a human; never writes to the copy. selfcheck prints it as an INFO line.
|
|
45
|
+
Lanes: `scripts/test_fh_techwriter_sync_lanes.sh`.
|
|
25
46
|
- `knowledge/shared/harness-core/governance_engineering_definition.md` — #governance-engineering,
|
|
26
47
|
#identity, #naming. Names the discipline this hub practices: moving an error rate toward 0.x% and
|
|
27
48
|
blocking at the surfaces where that number may not buy passage. Distinct from harness engineering
|
package/CHEATSHEET.md
CHANGED
|
@@ -259,7 +259,13 @@ fh-codex-doctor --strict
|
|
|
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
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
|
-
| level arg | `quick` \| `full` | Gate depth (default `quick`) |
|
|
262
|
+
| level arg | `quick` \| `full` | Gate depth (default `quick`). With `FH_REVIEWER=code-review`, `quick` calls `/code-review medium` and `full` calls `/code-review high`; `FH_GATE_ELEPHANT=auto` turns the elephant pass on at `full` |
|
|
263
|
+
| `FH_REVIEWER` | `fh-legacy` \| `code-review` \| `fh` | Review stage. **Default (every backend): `fh-legacy`**, the steel-quench angle pass the gate shipped before 3.45.0. Opt-in: `code-review` = the built-in `/code-review` (claude only), its findings carried as reported (Important → B, Nit and Pre-existing → C) — **not read-only**: it runs git's read commands, which can write a file (`--output=`), so use it on trusted changes only; `fh` = FH's own **goldfish** pass, which follows `/code-review`'s method (eight finder angles, one CONFIRMED / PLAUSIBLE / REFUTED vote per candidate, severity-ordered, at most 10 at `full` / 8 at `quick`) and never sees the author's description; on the claude backend it gets only Read · Glob · Grep (no shell, no MCP server, no skill); on codex it runs in `codex exec -s read-only`. Both opt-ins default `FH_TIMEOUT` to 900. UNMEASURED: whether a headless `/code-review` or goldfish call returns the structured object on every runner — why neither is the default |
|
|
264
|
+
| `FH_GATE_ELEPHANT` | `off` \| `auto` \| `on` | The **elephant** pass (default `off`; `auto` = on at `full`, off at `quick`), with any reviewer: it gets `FH_TASK_DESCRIPTION` and the touched files' git history and looks only for a past fix re-opened, a recorded decision undone, or the stated task contradicted. Its findings carry `source: "elephant"` |
|
|
265
|
+
| `FH_GATE_EXEC` | `off` \| `on` | Execution layer, token-free (default `off` — opt-in, because it runs the repository's own lane scripts): E0 class scanners and E1 the change's target lanes, run in a **copy** of the tree. A lane this change turns red → A (BLOCKED); red before the change too → C; did not finish → B. It runs the change's own lane scripts — use `off` where the change is not trusted. Each step prints what it ran, or `NOT RUN` and why, on `FH_GATE_E0:` / `FH_GATE_E1:` |
|
|
266
|
+
| `FH_GATE_BASE` · `FH_GATE_LANES` · `FH_LANE_TIMEOUT` | ref · commands · seconds | What the execution layer measures against (default: `HEAD` when the tree has uncommitted changes, else the merge-base with `main`); declared lanes instead of discovery; seconds per lane (600) |
|
|
267
|
+
|
|
268
|
+
Why `/code-review` is offered (2026-11-19): measured on 8 real past diff bugs × 3, fh-gate's own pass and `/code-review high` caught the same share (0.417) and the gate cost about 4.8× as much. What fh-gate adds is the typed verdict, the exit codes, the record, the cross leg — and the execution layer, which a reader cannot replace. Why it is not the default (3.45.0): whether a headless `/code-review` or goldfish call returns the structured object on every runner is unmeasured. Whether the execution layer catches what `/code-review` misses is being measured; until then it is a hypothesis.
|
|
263
269
|
|
|
264
270
|
> **vs the plugin path (§9):** the plugin gives you interactive `/slash-commands` inside a `claude` session (Claude-only). The npx path is a single-shot CLI that runs **without** Claude Code and works with Codex too — built for CI pipelines and non-Claude users. Exit codes make it gate-able in GitHub Actions.
|
|
265
271
|
|
package/docs/USER_GUIDE.md
CHANGED
|
@@ -134,6 +134,37 @@ FH 클론에서 `python3 scripts/fh_detach.py --project <마법사를 돌린 프
|
|
|
134
134
|
|
|
135
135
|
## 4. 거버너 고르기 — 집약 · 감독
|
|
136
136
|
|
|
137
|
+
### 먼저 — 세 가지 일하는 방식, 실제로 뭐가 다른가
|
|
138
|
+
|
|
139
|
+
| | (가) 맨 Claude Code — 세션 하나, 순차 | (나) 세션 하나 + 서브에이전트 · 워크트리 | (다) FH |
|
|
140
|
+
|---|---|---|---|
|
|
141
|
+
| 일의 모양 | 한 맥락에서 차례로 | 한 세션이 곁가지를 나눠 띄우고 요약을 받는다 | 집약 = (나) + 게이트 · 탈상관 검토 · 기록. 감독 = 집약 실무 세션들 위에 감사 루트 하나 |
|
|
142
|
+
| 나는 누구와 말하나 | 그 세션 | 그 세션(곁가지와는 직접 말 못 한다) | 집약: 그 세션 · 감독: 실무 세션에 직접 + 루트 창 하나 |
|
|
143
|
+
| 누가 결과를 판정하나 | 같은 맥락(저자) | 시킨 세션(저자) | 집약: 다른 에이전트가 검증 · 감독: 저자가 아닌 루트가 원문을 연다 |
|
|
144
|
+
| 되돌릴 수 없는 곳 | 런타임 권한 확인만 | 같음 | 발행 · 삭제 · 이력 재작성에 게이트가 따로 선다 |
|
|
145
|
+
| 며칠 · 여러 레포 | 맥락이 차면 압축 · 새 세션에서 다시 설명 | 같음 — 서브에이전트(워크트리 격리 포함)는 끝나면 요약만 남고, 다시 들어가 말을 걸 수 없다 | 세션 장부 · 카드 · 아침 보고로 이어진다 |
|
|
146
|
+
|
|
147
|
+
**앤트로픽 문서가 말하는 것** (2026-11-15 확인). «한 덩어리 작업은 한 맥락에서 순차로 하라» 를 한 문장으로 못 박은
|
|
148
|
+
곳은 찾지 못했다. 가장 가까운 두 줄:
|
|
149
|
+
|
|
150
|
+
- Claude Code best practices — 새 서브에이전트는 대화가 이미 가진 맥락을 다시 모아야 해서 «can end up *slower* than
|
|
151
|
+
doing the task where you are» (https://code.claude.com/docs/en/best-practices).
|
|
152
|
+
- 멀티 에이전트 리서치 글 — 모든 에이전트가 같은 맥락을 공유해야 하거나 서로 의존이 많은 일은 «are not a good fit»
|
|
153
|
+
(https://www.anthropic.com/engineering/multi-agent-research-system).
|
|
154
|
+
|
|
155
|
+
즉 맞물린 한 가지 일은 (가)처럼 한 맥락에서 차례로 하는 쪽이 낫고, 서로 안 걸리는 갈래 · 긴 탐색 출력 · 독립 검토가
|
|
156
|
+
있을 때 (나)가 값을 한다.
|
|
157
|
+
|
|
158
|
+
**감독형이 이 권고와 규모를 같이 푸는 방법.** 실무 세션 하나하나는 자기 맥락에서 한 가지 일을 차례로 한다 — 권고 그대로다.
|
|
159
|
+
사람은 루트 창 하나만 두고 보며, 루트는 실무를 안 하니 맥락이 더디 찬다(오래 가는 것으로 관찰됐다 — 한 건, 측정 전). 그리고 서브에이전트(워크트리 격리 포함)와 달리
|
|
160
|
+
**실무 세션은 사람이 직접 다시 들어가 며칠이고 더 요청할 수 있다.**
|
|
161
|
+
|
|
162
|
+
**(가)나 (나)면 충분할 때**: 한 가지 일이 오늘 끝나고, 되돌릴 수 없는 곳(발행 · 삭제 · 이력 재작성 · 바깥 게시)이 없을 때 —
|
|
163
|
+
대부분의 단일 작업이 여기 든다. FH 가 비용만큼 값을 하는 건 가장자리가 되돌릴 수 없거나, 일이 며칠 · 여러 레포에
|
|
164
|
+
걸칠 때다.
|
|
165
|
+
|
|
166
|
+
### 집약 · 감독 — 둘 중 무엇을 고르나
|
|
167
|
+
|
|
137
168
|
**거버너**는 일을 판단하는 세션이다(되돌릴 수 없는 곳을 막는 건 기계 = 게이트, 무엇을 원하는지는 사람 = 의도).
|
|
138
169
|
거버너를 두는 방법은 둘이고, 갈리는 건 **사람이 누구와 말하나**다. 정본 표:
|
|
139
170
|
`knowledge/shared/harness-core/governance_engineering_definition.md` §«누가 맡나». 이 절은 그 표를
|
|
@@ -149,6 +180,20 @@ FH 클론에서 `python3 scripts/fh_detach.py --project <마법사를 돌린 프
|
|
|
149
180
|
정본이 가르는 기준은 «사람이 누구와 말하나» 하나다. 위 «이럴 때» 줄은 그 기준을 고르는 데 쓰는 실용 권장이지 규칙이 아니다 —
|
|
150
181
|
헷갈리면 집약으로 시작하고, 내가 여러 세션과 직접 말하게 되면 그때 감독을 하나 띄우면 된다.
|
|
151
182
|
|
|
183
|
+
**두 배치는 따로 서 있지 않고 위아래로 놓인다** (정본 표를 쓰는 실용 권장이다 — 새 규칙이 아니다):
|
|
184
|
+
|
|
185
|
+
- **세션 하나만 열고 그 안에서 요청하면 집약 하나가 돈다.** 그 세션도 서브에이전트와 워크트리를 여럿 띄울 수 있다 —
|
|
186
|
+
갈래가 많다는 것만으로 감독이 되지는 않는다(사람이 여전히 그 세션 하나와만 말하니까).
|
|
187
|
+
- **감독 거버너 밑에는 실무 세션이 있고, 그 실무 세션은 대개 그 안에서 집약으로 돈다**(필요하면 자기 서브에이전트를
|
|
188
|
+
띄운다 — 아래 감독 절). 밑에 실무 세션이 없으면 사람이 말하는 상대가 그 세션 하나뿐이니, 감독이 아니라 집약이다.
|
|
189
|
+
- **정본 기준(«사람이 누구와 말하나»)이 결과를 «누가 읽나»를 바꾼다.** 서브에이전트의 결과는 그 일을 시킨 거버너의
|
|
190
|
+
맥락으로 돌아온다 — 시킨 쪽이 읽고 판정한다. 감독 거버너는 자기가 쓰지 않은 실무 세션의 전사본과 diff 원문을 연다 —
|
|
191
|
+
저자가 아닌 쪽이 읽는다. 감독은 사람 쪽도 본다: 흐린 지시 · 세션을 넘길 때 빠진 결정 · 습관이 된 승인.
|
|
192
|
+
|
|
193
|
+
한 줄 비유: 사람은 실무를 잘 아는 **대표**, 거버너는 **실무 관리자**다. 관리자가 되돌릴 수 있는 일(자기 장비 손보기 같은)까지
|
|
194
|
+
매번 허가받지는 않게 할 수 있다 — 대표는 방향을 정하고, 되돌릴 수 없는 결정은 직접 승인한다. 단 그렇게 하는 건 내가
|
|
195
|
+
켤 때만이다(아래 «옵트인 — 되돌릴 수 있는 유지보수는 묻지 않게»).
|
|
196
|
+
|
|
152
197
|
### 집약 — 시작하는 말과 필요한 것
|
|
153
198
|
|
|
154
199
|
```
|
|
@@ -204,6 +249,17 @@ bash <FH 클론 절대경로>/scripts/session_ledger_write.sh --session work-a -
|
|
|
204
249
|
- 🟥 **장부의 `done` 줄은 주장이지 증거가 아니다.** 감독 거버너는 그 줄이 가리키는 PR · 커밋 · 파일을 직접 연다.
|
|
205
250
|
안 열고 «다 됐다» 고 전하면 감독이 아니라 중계다.
|
|
206
251
|
|
|
252
|
+
**감독 거버너를 오래 두면 생기는 것 둘.** 정본 표(`governance_engineering_definition.md` §«누가 맡나»)의 «주는 것» 줄 —
|
|
253
|
+
저자가 아닌 눈 · 세션을 건너는 연속성 — 이 운영에서 드러나는 모양이다. 아래 둘은 운영 관찰이지 정본 규칙이 아니다:
|
|
254
|
+
|
|
255
|
+
- **오래 갈 수 있다.** 실무 도구 출력이 감독 세션에 쌓이지 않으니 맥락이 더디 찬다 — 압축이 덜 일어나면 앞 결정을
|
|
256
|
+
덜 흐리게 기억할 것으로 본다(이 기전은 잰 적이 없다). FH 저자의 관찰 한 건: 감독 거버너 하나가 약 일주일 이어졌다
|
|
257
|
+
(한 건 · 공개 기록 없음 — 일반화한 수치가 아니다).
|
|
258
|
+
- **마감에서 쓸어 담게 시킬 수 있다.** 마감 절차 자체는 «마무리» 라고 말하면 도는 세션 마감
|
|
259
|
+
(`claude_md_full_reference.md` §Session Wrap-up)이고, 그 절차는 **마감하는 세션 자기 일**을 정리한다(② 하베스트 =
|
|
260
|
+
그 세션의 회고). 감독 거버너를 마감할 때 «각 실무 세션 기록을 읽고, 그 세션들이 놓친 것 — 다음 과제 · 고칠 점 —
|
|
261
|
+
을 모아 남겨» 라고 덧붙이면 세션 하나의 마감으로는 안 보이는 것을 모은다. 이건 정본 단계가 아니라 내가 시키는 일이다.
|
|
262
|
+
|
|
207
263
|
### 이어가기 — 개인 저장소 없이 쓰는 기록 넷
|
|
208
264
|
|
|
209
265
|
| 무엇을 이어야 하나 | 수단 | 어디 |
|
|
@@ -240,6 +296,45 @@ python3 scripts/session_ledger_read.py --expect work-a,work-b
|
|
|
240
296
|
`OK`(0) 는 그대로 · `LAND`(1) 면 그 세션에 «지금 단위 마무리하고 인계 메모를 파일로 남겨» · `LATE`(3) 면 이미 늦었으니 인계 메모 착지부터 ·
|
|
241
297
|
`2` 는 입력 오류(«여유 있음» 이 아니다). 압축(`/compact`)은 사람이 친다.
|
|
242
298
|
|
|
299
|
+
### 옵트인 — 되돌릴 수 있는 유지보수는 묻지 않게
|
|
300
|
+
|
|
301
|
+
**기본값이 아니다.** 아무것도 안 적으면 FH 는 지금처럼 묻는다. 내 기기에서 도구 업그레이드나 모델 내려받기를
|
|
302
|
+
매번 승인하는 게 번거로울 때만, 내가 직접 아래 블록을 내 `CLAUDE.local.md`(gitignored)에 붙인다.
|
|
303
|
+
모양은 위 집약 절의 서브에이전트 상시 요청과 같다 — **내 말 그대로 · 끝나는 날 · 범위** 세 칸이 다 있어야 하고,
|
|
304
|
+
하나라도 빠지면 계속 묻는다. 세션은 이 블록을 스스로 지어내거나 늘리거나 연장하지 않는다.
|
|
305
|
+
|
|
306
|
+
🟡 **정직하게**: 서브에이전트 상시 요청은 `CLAUDE.md` §Agent Dispatch Operation 이 읽는 기록이지만, 이 블록을 읽는
|
|
307
|
+
FH 규칙은 없다. `CLAUDE.local.md` 는 세션 시작에 자동으로 실리므로 세션이 이 블록을 보고 판단으로 따른다 —
|
|
308
|
+
기계가 강제하지 않는다. 그래서 세 칸과 제외 줄을 빠짐없이 적는 게 중요하다.
|
|
309
|
+
|
|
310
|
+
🟡 **기계로 묶인 형제 장치가 따로 있다 — 헷갈리지 말 것.** FH 안의 정해진 동작 하나하나(예: 기본 브랜치 fast-forward
|
|
311
|
+
pull)는 등록부 `templates/consent_classes.yaml.example` 의 클래스를 내 `tracks/_meta/consent_classes.yaml` 에 옮기고
|
|
312
|
+
허락을 적으면 스크립트가 직접 확인하고 건너뛴다(`knowledge/shared/rules/operational_adaptation.md`). 그쪽은 한 동작씩
|
|
313
|
+
좁게 등록하고 기계가 강제한다. 아래 블록은 그 등록부로 셀 수 없는 **내 기기 유지보수 전반**을 덮는 산문 기록이고, 세션의 판단이 따른다.
|
|
314
|
+
FH 동작이면 등록부 쪽이 먼저다.
|
|
315
|
+
|
|
316
|
+
아래 `< >` 칸은 **반드시 내 것으로 바꾼다** — 예시 문장을 그대로 붙이면 내가 하지 않은 말이 기록된다.
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
## 내 기기 유지보수 위임 — 되돌릴 수 있는 건 묻지 않기 (옵트인)
|
|
320
|
+
utterance <오늘 날짜> "<내가 실제로 한 말 그대로>"
|
|
321
|
+
lease <오늘 날짜> → <끝나는 날> ← 예: 석 달. 지나면 다시 묻는다
|
|
322
|
+
scope 내가 소유하고 관리하는 이 기기의 되돌릴 수 있는 유지보수 — 공식 배포처(제작사 사이트 · 공식 패키지 관리자)의
|
|
323
|
+
도구 · 런타임 업그레이드 · 모델 내려받기 · 프로젝트 전용 격리 환경 안의 검증용 의존성 설치 · 임시 폴더 ·
|
|
324
|
+
격리 환경 만들기
|
|
325
|
+
조건 전후 상태(버전 등)를 기록 · 직후 기존 기능 확인 · 깨지면 멈추고 보고 · 내가 걸어 둔 예약 작업(cron 등)이
|
|
326
|
+
도는 시간은 피함 · 디스크를 크게 쓰는 내려받기는 크기를 먼저 한 줄로 알림
|
|
327
|
+
제외 발행 · 공개 · 삭제 · 이력 재작성 · 바깥 게시(이슈 · 메시지) · 돈 · 계정 · 배포 · 자격 증명(토큰 · 키체인) ·
|
|
328
|
+
다른 사람 기기 · 회사 데이터를 밖으로 보내기 · 전역 에이전트 설정(~/.claude 등) 쓰기
|
|
329
|
+
— 이건 계속 묻는다. 분류기 · 게이트 우회는 이 기록으로 열리지 않는다.
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
- 이 블록이 없애는 것은 **세션이 나에게 묻는 질문**이다. 되돌릴 수 없는 곳의 게이트(`CLAUDE.md` §Irreversibility
|
|
333
|
+
Gates)와 런타임의 권한 확인 · 자동 모드 분류기는 그대로 돈다 — 블록을 근거로 그것들을 넘기려 하면 안 된다.
|
|
334
|
+
- «되돌릴 수 있나» 가 애매하면 되돌릴 수 없는 쪽으로 친다. 예: 업그레이드는 범위 안이지만, 그 김에 옛 버전이나
|
|
335
|
+
옛 모델을 **지우는** 건 «삭제» 라 묻는다. 기존 설정 파일을 덮어쓰는 것도 되돌릴 사본이 없으면 묻는다.
|
|
336
|
+
- 철회는 블록을 지우거나 «유지보수도 물어봐» 라고 말하면 된다.
|
|
337
|
+
|
|
243
338
|
---
|
|
244
339
|
|
|
245
340
|
## 5. 더 읽을 것
|
package/docs/codex-compat.md
CHANGED
|
@@ -62,7 +62,7 @@ Backend defaults:
|
|
|
62
62
|
|
|
63
63
|
| `FH_BACKEND` | Command | Default model |
|
|
64
64
|
|---|---|---|
|
|
65
|
-
| `claude` | `claude --print --model "$FH_MODEL"` | `claude-sonnet-
|
|
65
|
+
| `claude` | `claude --print --model "$FH_MODEL"` | `claude-sonnet-5-5` |
|
|
66
66
|
| `codex` | `codex exec -m "$FH_MODEL" -` | `gpt-5.5` |
|
|
67
67
|
| `auto` | `codex` if present, otherwise `claude` | backend default |
|
|
68
68
|
|