@chrono-meta/fh-gate 3.39.1 → 3.40.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 (46) hide show
  1. package/.claude/regression/probes_live.yaml +9 -2
  2. package/.claude-plugin/marketplace.json +4 -4
  3. package/CLAUDE.md +2 -2
  4. package/README.ja.md +20 -18
  5. package/README.zh.md +20 -18
  6. package/knowledge/shared/harness-core/claude_md_full_reference.md +8 -1
  7. package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +9 -0
  8. package/knowledge/shared/harness-core/fh_module_contract.md +55 -1
  9. package/knowledge/shared/harness-core/lease_record_channel.md +26 -2
  10. package/knowledge/shared/harness-core/onboarding_acceleration_autopilot.md +7 -0
  11. package/knowledge/shared/learnings/subagent_invocations_log.yaml +36 -0
  12. package/knowledge/shared/rules/operations.md +1 -0
  13. package/package.json +10 -1
  14. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  15. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  16. package/plugins/fh-meta/CHANGELOG.md +35 -0
  17. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  18. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  19. package/scripts/agent_tools_pin.txt +16 -0
  20. package/scripts/catch_tally.py +215 -0
  21. package/scripts/claim_precision_report.py +138 -0
  22. package/scripts/fh_module_check.py +182 -1
  23. package/scripts/generated_harness_check.py +4 -0
  24. package/scripts/package_coverage_check.sh +5 -0
  25. package/scripts/post_squash_verify.sh +53 -1
  26. package/scripts/pr_merge_verified.sh +56 -0
  27. package/scripts/probe_live_eval.sh +61 -0
  28. package/scripts/probe_live_eval_lib.py +47 -4
  29. package/scripts/selfcheck.sh +5 -0
  30. package/scripts/selfdev_merge_tier.sh +153 -0
  31. package/scripts/session_checklist.py +38 -1
  32. package/scripts/session_close_check.sh +67 -1
  33. package/scripts/sim_isolated_run.sh +62 -1
  34. package/scripts/test_agent_tools_pin_lanes.sh +73 -0
  35. package/scripts/test_catch_tally_lanes.sh +10 -0
  36. package/scripts/test_claim_precision_report_lanes.sh +77 -0
  37. package/scripts/test_fh_module_check_lanes.sh +106 -1
  38. package/scripts/test_generated_harness_check_lanes.sh +8 -0
  39. package/scripts/test_post_squash_verify_lanes.sh +23 -2
  40. package/scripts/test_pr_merge_verified_lanes.sh +55 -3
  41. package/scripts/test_probe_live_eval_lanes.sh +160 -5
  42. package/scripts/test_selfdev_merge_tier_lanes.sh +128 -0
  43. package/scripts/test_session_checklist_lanes.sh +57 -0
  44. package/scripts/test_session_close_chain_lanes.sh +93 -0
  45. package/scripts/test_sim_isolated_run_lanes.sh +67 -0
  46. package/templates/harness_birth_core.md +57 -0
@@ -155,14 +155,21 @@ probes:
155
155
  # polarity: present · input: "this harness is complex" · expect_re: "harness-doctor"
156
156
  # control_input: "오늘 날씨 어때?"
157
157
 
158
+ # 2026-11-09 calibration on the nightly evidence (tracks/_meta/live_eval_runs/*/G-TRIG-04, 180 primary reps).
159
+ # After the routing fix (#917, 10-19) 60 non-blackout reps all routed to the weekly harvest; "harvest-loop"
160
+ # matched 55/60 — every miss was a correct route that wrote «weekly harvest» without the skill name, and those
161
+ # 5 misses are the whole FLAKY record (10-31, 11-02, 11-05, 11-09 ×2). Known negatives = the 9 real misroutes to
162
+ # the session close (10-17..10-19): «weekly harvest» appears in 0/9. The old pattern itself accepted 2/9 of them
163
+ # (they name harvest-loop as close step ②) — that blind spot is unchanged by this widening and is named below.
164
+ # Measured after: 60/60 positives · 2/9 negatives (same as before) · 0/180 control reps.
158
165
  - id: G-TRIG-04
159
166
  polarity: present
160
167
  input: "wrap up this week"
161
- expect_re: "harvest-loop"
168
+ expect_re: "harvest-loop|weekly harvest"
162
169
  control_input: "오늘 날씨 어때?"
163
170
  construct: proxy
164
171
  claims: "/harvest-loop is proposed"
165
- unseen: "proposal vs mention"
172
+ unseen: "proposal vs mention; a misroute to the session close that names harvest-loop as close step ② passes (2/9 of the 10-17..19 misroutes); NEW with «weekly harvest»: a misroute that calls close step ② a «weekly harvest» would pass — 0/9 measured, not excluded (codex 2026-11-09)"
166
173
 
167
174
  - id: G-TRIG-05
168
175
  polarity: present
@@ -11,25 +11,25 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "3.39.1",
14
+ "version": "3.40.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.39.1",
20
+ "version": "3.40.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.39.1",
26
+ "version": "3.40.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.39.1",
32
+ "version": "3.40.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
@@ -66,9 +66,9 @@ Isolated delegation is part of the identity: dispatch separable work (blind eval
66
66
  | Signal | Go to |
67
67
  |---|---|
68
68
  | a work-shaped request outside harness topics | read `intent_marshaling_general_work.md` **before** composing: scan installed skills/agents/mapped harnesses mechanically, propose one line, run — run-first covers reversible FH-native steps only; a sibling's ask-tier and any outward action keep their gates |
69
- | "connect / map this project" · "harness-ify this project" | `knowledge/shared/rules/auto_project_mapping.md` (§6 Full-Harness) |
69
+ | "connect / map this project" · "harness-ify this project" | `knowledge/shared/rules/auto_project_mapping.md` (§6 Full-Harness) — where no harness exists yet, also the birth core below |
70
70
  | "diagnose / improve this harness" in a mapped project | `knowledge/shared/harness-core/field_harness_diagnostic.md` — nothing auto-fixed; company data never leaves the machine |
71
- | "new project / accelerate this project" | `knowledge/shared/harness-core/onboarding_acceleration_autopilot.md` |
71
+ | "new project / accelerate this project" · "set up a harness (CLAUDE.md, rules, skills) for X" in a new or empty project, any domain | `knowledge/shared/harness-core/onboarding_acceleration_autopilot.md` — and when no harness exists there yet, **read `templates/harness_birth_core.md` before writing the first file**: every born harness carries its five parts |
72
72
  | "cut this section / is it load-bearing" | ablation procedure (`scripts/probe_scope_check.sh` header) — never decide by eye |
73
73
  | "measure this / prove it fires" · a load-bearing conclusion resting on reps < 3 | Measured-Loop (`measurement-integrity-checklist.md §Measured-Loop`) via `scripts/sim_isolated_run.sh` — never sim in the live repo |
74
74
  | about to call a material work product done / merged / published | `agent-composer` §Author-Exposure Table |
package/README.ja.md CHANGED
@@ -31,9 +31,9 @@
31
31
 
32
32
  | 得られるもの | 実際には | 根拠 |
33
33
  |---|---|---|
34
- | **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠とその限界) · 方法論と統制されたアブレーション: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
35
- | **引き継がれる記憶** | `tracks/` に各セッションで学んだことが残り、2 回目のセッションは 1 回目が止まったところから始まります。 | 設計意図です。セッション終了時に `tracks/_meta/` のカードが更新され、次のセッションが起動時にそれを読みます([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。このページには計測された効果へのリンクはありません。2 回目のセッションから現れる効果でもあります。 |
36
- | **検査を選んでくれる相手** | 「このプロジェクトを診断して」または「このプロジェクトを加速して」と言うと、直すもの・入れるものの優先順位つき一覧が返ります。項目ごとに承認するまで何も変更されません。 | [`CLAUDE.md`](CLAUDE.md) に記述あり(§Field-Harness Diagnostic)。どのくらいの頻度で当たるかのベンチマークはなし |
34
+ | **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠) · 方法論と統制されたアブレーション: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
35
+ | **引き継がれる記憶** | `tracks/` に各セッションで学んだことが残り、2 回目のセッションは 1 回目が止まったところから始まります。 | セッション終了時に `tracks/_meta/` のカードが更新され、次のセッションはそのカードから始まります([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。 |
36
+ | **検査を選んでくれる相手** | 「このプロジェクトを診断して」または「このプロジェクトを加速して」と言うと、直すもの・入れるものの優先順位つき一覧が返ります。項目ごとに承認するまで何も変更されません。 | 手順は [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic にあります。各項目はあなたが承認してから反映されます |
37
37
 
38
38
  ゲートはエージェントだけでなく、あなたのミスも見つけて止めます — 2026-08-22 の一日でFH の作者を7回止め、そのうち作者が先に気づいたものは一つもありませんでした([ゲートが止めた一日](docs/GATE_DAY.md))。
39
39
 
@@ -79,7 +79,7 @@ cd ~/projects/forge-harness && claude # その後に入力: hi (ま
79
79
 
80
80
  ## 一枚の図で見る仕組み
81
81
 
82
- 意図された流れです。どの段階がコードで強制され、どの段階が AI に従えと伝えたルールによるのかは、下の「できること・できないこと」の表と [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md) にあります。
82
+ 意図された流れです。どの段階がコードで強制され、どの段階が AI に従えと伝えたルールによるのかは、下の「FH がすること、そしてどこまでか」の表と [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md) にあります。
83
83
 
84
84
  ```mermaid
85
85
  flowchart TD
@@ -108,22 +108,24 @@ flowchart TD
108
108
  2. **作者は最悪のレビュアーです。** AI と作り終えたあと、あなたはその成果物の擁護者になります。だから意味のある検査は、あなたの推論を見たことのないレビュアーによる検査です — [`docs/WHY.md`](docs/WHY.md)。
109
109
  3. **不可逆な境界には機械を、判断の余地は残す。** 元に戻せないところで止め、測っていないものは測っていないと認めます — [`docs/ETHOS.md`](docs/ETHOS.md)。
110
110
 
111
- ## できること・できないこと
111
+ ## FH がすること、そしてどこまでか
112
112
 
113
- | できること | できないこと(リポジトリ自身が述べているもの) |
113
+ | すること | どこまでか |
114
114
  |---|---|
115
- | マージ前に diff を判定し、何を失ったかを名指しする | **事後のレビューの代わりになること。** 人に届くものを小さくするだけで、不要にはしません。実際の画面と実際の状態で動かして初めて現れるものは、引き続き人の仕事です |
116
- | git フックでコミットとプッシュを止める(ルール、スクリプト、削除、強制プッシュ) | **止まることの保証。** フックはクライアント側で、`--no-verify` で迂回できます。サーバー側の下限は「main は PR のみ」と必須の CI チェックです。pre-commit フックは FH 自体を開発するためのものです — 自分のリポジトリには入れず、そちらでは入口 ① を使ってください |
117
- | プロジェクトの教訓を次のセッションに持ち越す | **どこでも同じように動くこと。** 挨拶であなたの言語に合わせるのは、機械的な下限のない文章のルールです。2026-08-21 のブラインドテストでは、挨拶のあるバリエーションでメニューが出ませんでした |
118
- | 別のモデル系列(Codex、Gemini、ローカル)でレビューを回し、ひとつの系列が見落とすものを拾う | **Claude Code の外で完全に使えること。** 他のランタイムは方法論と `fh-gate`/`fh-run` は得られますが、自動運転は得られません([`docs/codex-compat.md`](docs/codex-compat.md)) |
119
- | 短い依頼からプロジェクト用のハーネスを作る | **完成したハーネスを注文どおりに出すこと。** それを担うインキュベーターは一度だけ出力し、その回も全フローを飛ばしています — 進む方向であって、出荷された機能ではありません |
120
-
121
- ## 根拠とその限界
122
-
123
- - **実在する第三者の diff(2026-05-31)。** OpenCode の AI が書いた `permission/arity.ts`(163 行、CI は緑)に `fh-gate` を実行しました。CI が見逃した A 等級の指摘が 2 件あり、判定は BLOCKED でした。
124
- - **穴を仕込んだテスト、モデル固定(2026-07-14)。** 他の二つのモデルが書いた fail-open の穴が八つ。通常のレビュー 5/8(そのうち 2 件は別のバグを指していた)· + FH の degrade-direction レンズ 6/8 · + 二つ目のモデル系列 8/8、誤検知 0。**単一の試行、小さなサンプルです。** 要点は、単一モデルの 2 回の実行が*同じ*二つの穴を見落としたことです。方法は [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md)、ほかの実行は [`docs/OUTPUT_EVIDENCE.md`](docs/OUTPUT_EVIDENCE.md) にあります。
125
- - **成熟度は主張ではなく等級です。** 下に名前を挙げた五つのアイデンティティは、[`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md) で日付つきの等級を持ちます。どれかに頼る前に、その等級を読んでください。
126
- - このページの数(**スキル 46 · エージェント 14**)は、`plugins/`(`fh-meta`、`fh-commons`、`fh-qp`、`fh-preprep`)配下のスキルフォルダとエージェントファイルを 2026-10-10 に数えたものです。フレーズ集: [`CHEATSHEET.md` §12](CHEATSHEET.md#12-skills--agents--what-each-does-and-what-to-say)。
115
+ | マージ前に diff を判定し、何を失ったかを名指しする | 人に届くものを小さく、鋭くする前段です。実際の画面と実際の状態で動かして初めて現れるものは、人が確認します |
116
+ | git フックでコミットとプッシュを止める(ルール、スクリプト、削除、強制プッシュ) | フックが配線されたチェックアウトでは、コミットとプッシュを止めます。クライアント側のフックは `--no-verify` で意図的に越えられるので、最後の防衛線はサーバー側(「main は PR のみ」と必須の CI チェック)です。pre-commit フックは FH 自体の開発用です。自分のリポジトリでは入口 ① を使ってください |
117
+ | プロジェクトの教訓を次のセッションに持ち越す | セッションカードと記録で持ち越します。挨拶であなたの言語に合わせるような、書かれたルールとして動く部分はモデルによってばらつきがあり、計測しながら調整しています |
118
+ | 別のモデル系列(Codex、Gemini、ローカル)でレビューを回し、ひとつの系列が見落とすものを拾う | Claude Code の外でも、git フックのゲートと `AGENTS.md` のオンボーディングは動きます(Antigravity で実測 2026-10-12、3/3)。`fh-gate` は Codex バックエンドでも動きます。フックで動くセッション自動化は、まだ Claude Code 専用です([`docs/codex-compat.md`](docs/codex-compat.md)) |
119
+ | 短い依頼からプロジェクト用のハーネスを作る | インキュベーターは正式なフローでツールを一つ出力し、そのツールは対象ハーネスに配線されて実データで動きました(2026-08-21)。ハーネス単位の出力は次の段階です |
120
+
121
+ ## 根拠
122
+
123
+ - 実在する第三者の diff(2026-05-31)。OpenCode の AI が書いた `permission/arity.ts`(163 行、CI は緑)に `fh-gate` を実行しました。CI が見逃した A 等級の指摘 2 件により、判定は BLOCKED でした。
124
+ - 別のランタイム(2026-10-12)。Antigravity CLI(Gemini)のセッションで、挨拶のオンボーディングと git フックのゲートがそれぞれ 3/3 で動きました。
125
+ - インキュベーターの正式な出力(2026-08-21)。チャンバー実行 #15 が正式なフロー(順序の証人つき)でツールを出力し、そのツールは対象ハーネスで実データに対して動きました(正式な出力はこれまで 1 件)。
126
+ - 穴を仕込んだテスト、モデル固定(2026-07-14)。他の二つのモデルが書いた fail-open の穴が八つ。通常のレビュー 5/8(そのうち 2 件は別のバグを指していた)· + FH の degrade-direction レンズ 6/8 · + 二つ目のモデル系列 8/8、誤検知 0(単一の試行)。単一モデルの実行は二つとも*同じ*二つの穴を見落とし、二つ目の系列がその両方を捉えました。方法は [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md)、ほかの実行は [`docs/OUTPUT_EVIDENCE.md`](docs/OUTPUT_EVIDENCE.md) にあります。
127
+ - 成熟度は主張ではなく等級です。下に名前を挙げた五つのアイデンティティは、それぞれ [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md) に日付つきの等級とその根拠を持ちます。
128
+ - このページの数(スキル 47 · エージェント 14)は、`plugins/`(`fh-meta`、`fh-commons`、`fh-qp`、`fh-preprep`)配下のスキルフォルダとエージェントファイルを 2026-11-01 に数えたものです。フレーズ集: [`CHEATSHEET.md` §12](CHEATSHEET.md#12-skills--agents--what-each-does-and-what-to-say)。
127
129
 
128
130
  ## 使い始めると出会う言葉
129
131
 
package/README.zh.md CHANGED
@@ -31,9 +31,9 @@
31
31
 
32
32
  | 你得到 | 实际表现 | 证据 |
33
33
  |---|---|---|
34
- | **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据以及它薄弱的地方) · 方法与受控消融实验:[arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
35
- | **能延续的记忆** | `tracks/` 记录每次会话学到的东西,第 2 次会话从第 1 次停下的地方开始。 | 设计意图。会话结束时更新 `tracks/_meta/` 里的卡片,下次会话启动时读取它([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。本页没有链接任何实测收益;而且它要从第 2 次会话起才看得出来。 |
36
- | **替你挑检查的帮手** | 说“诊断这个项目”或“加速这个项目”,你会得到一份按优先级排序的待修复/待安装清单。逐项批准之前不会改动任何东西。 | 描述见 [`CLAUDE.md`](CLAUDE.md)(§Field-Harness Diagnostic);没有关于它命中率的基准测试 |
34
+ | **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据) · 方法与受控消融实验:[arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
35
+ | **能延续的记忆** | `tracks/` 记录每次会话学到的东西,第 2 次会话从第 1 次停下的地方开始。 | 会话结束时更新 `tracks/_meta/` 里的卡片,下次会话从这张卡片开始([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。 |
36
+ | **替你挑检查的帮手** | 说“诊断这个项目”或“加速这个项目”,你会得到一份按优先级排序的待修复/待安装清单。逐项批准之前不会改动任何东西。 | 流程写在 [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic。每一项都要在你批准之后才会落地 |
37
37
 
38
38
  门禁拦的不只是 agent,也包括你自己的错误:2026-08-22 这一天,门禁拦住了FH 的作者七次,其中没有一次是作者自己先发现的([门禁拦截的一天](docs/GATE_DAY.md))。
39
39
 
@@ -79,7 +79,7 @@ cd ~/projects/forge-harness && claude # 然后输入:hi (或 안
79
79
 
80
80
  ## 一张图看懂它如何运作
81
81
 
82
- 这是设计上的流程。哪些步骤由代码强制、哪些由被告知要遵守的 AI 规则承担,见下方“能做与不能做”表和 [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md)。
82
+ 这是设计上的流程。哪些步骤由代码强制、哪些由被告知要遵守的 AI 规则承担,见下方“FH 做什么,做到哪一步”表和 [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md)。
83
83
 
84
84
  ```mermaid
85
85
  flowchart TD
@@ -108,22 +108,24 @@ flowchart TD
108
108
  2. **作者是最差的审查者。** 和 AI 一起做完之后,你就成了它的辩护人,所以真正算数的检查,是由从未见过你的推理过程的审查者做的——[`docs/WHY.md`](docs/WHY.md)。
109
109
  3. **在不可逆的边界上放机器;判断保持开放。** 在无法撤销的地方拦住,并承认你没有测量的东西——[`docs/ETHOS.md`](docs/ETHOS.md)。
110
110
 
111
- ## 能做与不能做
111
+ ## FH 做什么,做到哪一步
112
112
 
113
- | 能做 | 不能做(仓库自己说明的) |
113
+ | 它做什么 | 做到哪一步 |
114
114
  |---|---|
115
- | 在合并前判定 diff,并点名它丢掉了什么 | **取代事后审查。** 它让到达人手里的东西变少,而不是变得不必要。只有在真实屏幕、真实状态下运行才会暴露的问题,仍然是人的工作 |
116
- | 通过 git 钩子拦住提交和推送(规则、脚本、删除、强制推送) | **保证一定拦住。** 钩子在客户端,`--no-verify` 可以绕过;服务端的底线是“main 只能走 PR”加上必需的 CI 检查。它的 pre-commit 钩子是用来开发 FH 本身的——不要装进你自己的仓库,那里请用门 ① |
117
- | 把一个项目的经验带入下一次会话 | **在所有地方表现一致。** 问候时匹配你的语言是一条没有机械底线的文字规则;2026-08-21 的一次盲测中,有一种问候变体没有出现菜单 |
118
- | 让另一个模型家族(Codex、Gemini、本地)做审查,抓住单一家族漏掉的东西 | **在 Claude Code 之外完整可用。** 其他运行时得到方法论和 `fh-gate`/`fh-run`,得不到自动驾驶([`docs/codex-compat.md`](docs/codex-compat.md)) |
119
- | 根据一句简短的请求为项目搭建框架 | **按需产出成品框架。** 将来要做这件事的孵化器只产出过一次,而且那次跳过了完整流程——这是前进的方向,不是已发布的功能 |
120
-
121
- ## 证据,以及它薄弱的地方
122
-
123
- - **一份真实的第三方 diff(2026-05-31)。** 对 OpenCode 中 AI 所写的 `permission/arity.ts`(163 行,CI 全绿)运行 `fh-gate`:判定 BLOCKED,依据是 CI 漏掉的两个 A 级发现。
124
- - **埋洞测试,模型固定(2026-07-14)。** 另外两个模型写下的八个 fail-open 漏洞。普通审查 5/8(其中 2 个找错了 bug)· + FH 的 degrade-direction 视角 6/8 · + 第二个模型家族 8/8,误报 0。**单次抽样,样本很小。** 要点是两次单模型运行漏掉了*同样*的两个漏洞。方法见 [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md);更多运行见 [`docs/OUTPUT_EVIDENCE.md`](docs/OUTPUT_EVIDENCE.md)。
125
- - **成熟度是评级,不是宣称。** 下面列出的五重身份在 [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md) 中带有注明日期的等级;依赖其中任何一个之前,先读它的等级。
126
- - 本页的数字(**46 个技能 · 14 个 agent**)是 `plugins/`(`fh-meta`、`fh-commons`、`fh-qp`、`fh-preprep`)下的技能文件夹和 agent 文件,统计于 2026-10-10。用语手册:[`CHEATSHEET.md` §12](CHEATSHEET.md#12-skills--agents--what-each-does-and-what-to-say)。
115
+ | 在合并前判定 diff,并点名它丢掉了什么 | 它是前置的一道关,让到达人手里的东西更小、更清晰。只有在真实屏幕、真实状态下运行才会暴露的问题,由人来检查 |
116
+ | 通过 git 钩子拦住提交和推送(规则、脚本、删除、强制推送) | 在接好钩子的检出里拦住提交和推送。客户端钩子可以用 `--no-verify` 有意跳过,所以最后一道防线在服务端(“main 只能走 PR”加上必需的 CI 检查)。它的 pre-commit 钩子是用来开发 FH 本身的;在你自己的仓库里,请用门 ① |
117
+ | 把一个项目的经验带入下一次会话 | 通过会话卡片和记录带过去。以文字规则方式运行的部分(例如问候时匹配你的语言)会因模型而异,正在对照测量结果调整 |
118
+ | 让另一个模型家族(Codex、Gemini、本地)做审查,抓住单一家族漏掉的东西 | 在 Claude Code 之外,git 钩子门禁和 `AGENTS.md` 引导同样可用(2026-10-12 在 Antigravity 上实测,3/3),`fh-gate` 也能在 Codex 后端上运行。由钩子驱动的会话自动化目前仍只支持 Claude Code([`docs/codex-compat.md`](docs/codex-compat.md)) |
119
+ | 根据一句简短的请求为项目搭建框架 | 孵化器已经通过正式流程产出过一个工具,这个工具接入了目标框架,并在真实数据上运行过(2026-08-21)。产出完整框架是下一步 |
120
+
121
+ ## 证据
122
+
123
+ - 一份真实的第三方 diff(2026-05-31)。对 OpenCode 中 AI 所写的 `permission/arity.ts`(163 行,CI 全绿)运行 `fh-gate`:判定 BLOCKED,依据是 CI 漏掉的两个 A 级发现。
124
+ - 另一个运行时(2026-10-12)。在 Antigravity CLI(Gemini)会话中,问候引导和 git 钩子门禁各自 3/3 生效。
125
+ - 孵化器的一次正式产出(2026-08-21)。Chamber 运行 #15 通过正式流程(有顺序见证)产出了一个工具,该工具随后在目标框架中跑了真实数据(目前正式产出 1 次)。
126
+ - 埋洞测试,模型固定(2026-07-14)。另外两个模型写下的八个 fail-open 漏洞。普通审查 5/8(其中 2 个找错了 bug)· + FH 的 degrade-direction 视角 6/8 · + 第二个模型家族 8/8,误报 0(单次抽样)。两次单模型运行漏掉了*同样*的两个漏洞,第二个模型家族把这两个都抓到了。方法见 [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md);更多运行见 [`docs/OUTPUT_EVIDENCE.md`](docs/OUTPUT_EVIDENCE.md)。
127
+ - 成熟度是评级,不是宣称。下面列出的五重身份,各自在 [`ship_readiness_gate.md`](knowledge/shared/harness-core/ship_readiness_gate.md) 中带有注明日期的等级及其依据。
128
+ - 本页的数字(47 个技能 · 14 个 agent)是 `plugins/`(`fh-meta`、`fh-commons`、`fh-qp`、`fh-preprep`)下的技能文件夹和 agent 文件,统计于 2026-11-01。用语手册:[`CHEATSHEET.md` §12](CHEATSHEET.md#12-skills--agents--what-each-does-and-what-to-say)。
127
129
 
128
130
  ## 用起来之后会遇到的词
129
131
 
@@ -343,7 +343,8 @@ change>'`** — it records the PR head *before* the merge deletes it, merges wit
343
343
  above, then re-runs your lane on the merged `main` and compares every file the branch touched. A
344
344
  green `gh pr merge` only says the merge happened, not that the squash carried the branch
345
345
  (2026-09-21: four merges, none checked). `--rerun` is required and refused before merging if it is
346
- missing or does nothing (`true`, `echo …`).
346
+ missing or does nothing (`true`, `echo …`), and when it would print nothing on success (`grep -q …`, `… >/dev/null`) — a
347
+ silent pass reads as an instrument failure after the merge (`verify-incomplete`), so end it with `&& echo '<what passed>'`.
347
348
 
348
349
  **Two layers.** Shift-left = `templates/.git-hooks/pre-push` blocks a direct push to `main`/`master` unless
349
350
  `MAIN_PUSH_OK=1` (logged, same shape as `DESTRUCTIVE_OP_OK`; known-pair calibrated). The **hard floor is server-side**
@@ -1233,6 +1234,12 @@ Closing phrase detected ("wrap up", "done", "good work", "end session", etc. —
1233
1234
  outcomes. ⑤ is ATOMIC and owns BOTH writes: (a) append any close-time finding to
1234
1235
  `fh_completed_{date}.md` FIRST, (b) then write the card. Once ⑤ starts, `fh_completed`
1235
1236
  is CLOSED — a later append re-opens the violation ⑤ exists to prevent.
1237
+ **(a) always carries a `## 잡은 것` section** (2026-11-08 operator: the methods prove their
1238
+ worth on hard real work, so count it at each close): one row per defect this session caught,
1239
+ `| 결함 | 잡은 방법 | 놓친 쪽 | 근거 |`. 잡은 방법 ∈ `cross-family` · `revert-probe` · `control` ·
1240
+ `lens` · `gate` · `lane` · `operator` · `self`; 놓친 쪽 ∈ `author` (this session — your own work or
1241
+ claim) · `plain-review` · `lane` · `gate` · `none`; 근거 = PR · commit · file:line. Nothing caught → the line `0건 — <what you
1242
+ looked at>`; a bare `0건` is unrecorded, not zero. Count: `python3 scripts/catch_tally.py`.
1236
1243
  **Late finding (named case)**: a finding that surfaces AFTER (b) — including while writing
1237
1244
  the final message to the operator — means ⑤ is **not done**. Re-run ⑤ **whole**: append,
1238
1245
  then **rewrite the card**. Appending alone is the violation; the card must never be older
@@ -368,3 +368,12 @@ How to apply:
368
368
  cost spread of up to 3× between harnesses began, with no consistent accuracy advantage (arXiv:2610.04433 — digest summary, paper not opened). Tokens
369
369
  are not cost (cache reads and writes bill differently). Shrinking resident text is a candidate lever; its saving is
370
370
  established only by the same two-arm run after a diet.
371
+
372
+ ## §Lease-Line-Scope — which operator answers need a lease line (2026-11-10)
373
+
374
+ A RECORDED standing request needs a lease line; a per-PR operator answer («머지해», «초록이면 머지») does not —
375
+ its record is the merge receipt's `--lease 'operator <date> «quote» (#PR)'` plus the transcript. Only
376
+ scope-widening standing grants need a line, and one given remotely (the operator cannot run the apply script)
377
+ reads as a one-time grant for that session until the operator applies its draft at the desk
378
+ (`lease_line_apply.sh apply` / `apply-all`). Canonical text and the measurement that dropped the
379
+ permission-prompt path: `knowledge/shared/harness-core/lease_record_channel.md` §무엇이 리스 줄을 필요로 하나.
@@ -54,6 +54,60 @@ Unknown key or unknown enum value = BLOCK. Missing required field = BLOCK.
54
54
 
55
55
  **A measurement engine is not a verdict entry.** A command that exits 0 even when it finds something wrong (it reports a number or a list, and the caller decides) does not go under `provides.verdicts` — a caller reads 0 there as «proceed». Declare it as a skill or a plain script; only a command whose 0 means «pass» is a verdict entry.
56
56
 
57
+ ## 2b. Runtime dependencies — stdlib-only, or a named missing state
58
+
59
+ A module's Python runs wherever the module is loaded — including a floor environment the author never saw. So:
60
+
61
+ - **Default: standard library only.** No third-party import in any `.py` the module ships (skill folders, command
62
+ files, `files`).
63
+ - **If a dependency is unavoidable**, the import is guarded (`try: … except ImportError`) and its absence exits
64
+ **2 (UNMEASURED)** with one line that names the missing module. Never a traceback, never a guess, never folded into a
65
+ pass or a block.
66
+ - `check` reads every shipped `.py` (AST, honouring a coding cookie): an **unguarded** non-stdlib import — `import`,
67
+ `from … import`, or `importlib.import_module` / `__import__` with a literal name (positional or `name=`; a bare
68
+ `import_module(…)` only when the file imported it from `importlib`), at top level or inside a function —
69
+ BLOCKs; a **guarded** one is a NOTE naming the module and line; an unparsable file is UNMEASURED. «Guarded» means the
70
+ import runs inside the `try` body (a `def`, `lambda` or generator expression written inside the `try` runs later
71
+ and is not guarded by it) and the handler
72
+ catches `ImportError` / `ModuleNotFoundError` / `Exception` / `BaseException` by name or as `builtins.<name>`, and the
73
+ file does not bind that name (or `builtins`) anywhere — assignment, parameter, `except … as`, def/class, import alias. A module the package ships in the importing file's folder or an ancestor folder (a
74
+ `.py`, or a folder with `__init__.py`) is not a dependency; a same-named file elsewhere in the module does not count.
75
+ Lanes RD1–RD18; probes `rtguard` `rtscan` `rtpkg` `rtdyn` `rtnear` `rtdef` `rtshadow` `rtattr` `rtenc` `rtwalk`
76
+ `rtkw` `rtbuiltins` `rtarg` `rtmeth` `rtgen` each turn their lanes red.
77
+ - **Why the guard is not enough** (measured, fh-cartridges A/B C10, 2026-11-08): `cart-ghaudit` guarded PyYAML and
78
+ named its absence exactly as above — and the isolated runner's first `python3` had no PyYAML, so 9/9 inline and 5/9
79
+ cart runs got rc 2. In the inline arm the no-guess contract turned that into no answer (2/6 against bare 6/6); the cart
80
+ runs fell back to reading by hand. A guarded dependency is a
81
+ typed failure, not a working module. That is why the guarded case is a NOTE the installer must read, and why the fix
82
+ proposed there is stdlib-only (fh-cartridges PR #19, open on 2026-11-09: a built-in reader for the YAML subset
83
+ workflows use; script output byte-identical on 224 local workflow files).
84
+ - **Named residual — passes unseen**: shell scripts calling `jq`, `yq`, `node` and the like are not read, and a
85
+ computed import name (`import_module(name)`) is not followed. **Errs toward BLOCK**: an aliased exception
86
+ (`from builtins import ImportError as E`), a folder added by `sys.path` edits, and a default argument, decorator or
87
+ generator consumed at once (`list(__import__("x") for …)`) inside a guarded `try` (treated as unguarded). Codex found
88
+ a new edge form in each of four rounds; the rounds were capped there and these forms are named instead. «stdlib» means the stdlib of the interpreter running `check`.
89
+
90
+ ## 2c. Descriptions name the question shapes, not only the activity
91
+
92
+ A skill that should route itself is chosen from its `description`. Measured (fh-cartridges A/B C7–C12, Sonnet, live
93
+ `claude -p`, cart arm only installed): requests that named an activity («the postmortem's time to resolve», «security
94
+ review of the workflows», «the version bump for this API change») called the skill **9/9**; yes/no and counting
95
+ questions about the same artifacts («is the delta ready to merge?», «how many files reference X?», «will this
96
+ migration wipe data?») called it **1/9, 0/9, 0/9** — answered directly, the listing never consulted.
97
+
98
+ - A description lists, besides the activity, the **question shapes** users ask about that artifact — yes/no
99
+ («ready to merge?», «reversible?», «will it lose data?») and counting («how many …?») — inside the same artifact
100
+ scope (a delta spec, a name in code, a SQL migration), so the question does not widen the trigger to every
101
+ «ready to merge?».
102
+ - The description is a YAML plain scalar: it may not contain `: ` (the first rewrite did, and admission refused the
103
+ frontmatter as unparsable — the check worked).
104
+ - `scripts/generated_harness_check.py` reports **W8 (info)** for a skill description with no question example
105
+ (`?`). Info only: it never changes a verdict, because a question mark is a proxy for the shape, not proof of routing.
106
+ - **Not proven yet**: a no-token proxy (subagents shown the listing and asked which skill they would call) was at
107
+ ceiling before and after (9/9 targets, 0/8 false triggers; fh-cartridges PR #20, open on 2026-11-09) — it does not
108
+ reproduce the live failure. The live effect is measured only by runs that install the module and do not hint it; the
109
+ next such run is pre-registered (fh-cartridges `evidence/AB_PREREG_HAIKU_C7-C12.md`) and has no results yet.
110
+
57
111
  ## 3. Install-time check (`scripts/fh_module_check.py check`)
58
112
 
59
113
  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. Exit code 3 means different things in different FH scripts (in `governor_landing_check.py` it is LATE); read each script's own exit table, never assume 3 means the same thing.
@@ -97,7 +151,7 @@ Measured on the pilot: without `files:` the export failed with «missing scripts
97
151
 
98
152
  ## 6. Calibration of the checker
99
153
 
100
- `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.
154
+ `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, runtime dependencies RD1–RD18). `FH_MODULE_PROBE=<name>` neuters one check in a temp copy; the matching lane must go red.
101
155
 
102
156
  Pilot: `plugins/fh-commons/skills/ko-tech-writer/fh-module.yaml`.
103
157
  Second module (2026-11-06): `plugins/fh-commons/skills/persona-cast/fh-module.yaml` — the doorway skill, its six lens agents and the Step 4 merge engine `scripts/persona_cast_merge.py`; `export` is STANDALONE with 10 files.
@@ -1,7 +1,6 @@
1
1
  # 리스 기록 채널 — 세션은 초안, 기록은 운영자 (G3, 2026-11-07)
2
2
 
3
3
  > 맥락 유지 엔진(`fh_three_layer_canon.md` §2)의 «쓰는 절반» 중 권한 기록 자리. 흡수 대기열 AQ-20261107-11.
4
- > 브리프 `tracks/_meta/brief_governor_role_items_2026-11-07.md` §G3.
5
4
 
6
5
  ## 왜
7
6
 
@@ -16,6 +15,29 @@
16
15
  2. 세션은 `check <초안>` 으로 들어갈 자리(그 절의 «제외» 줄 바로 앞)를 미리 보여 줄 수 있다(읽기만).
17
16
  3. 운영자가 자기 터미널에서 `bash scripts/lease_line_apply.sh apply <초안>` — 들어갈 줄을 보고, 화면에 뜬 4자 확인 코드를
18
17
  쳐야 기록된다. 쓰기 전에 시각이 붙은 백업을 만든다.
18
+ 4. 초안이 쌓였으면(원격으로 일한 날) 책상에서 `bash scripts/lease_line_apply.sh apply-all` 한 번 — 대기 중인 초안 전부를
19
+ «넣을 것 · 이미 있는 것 · 건너뛴 것(이유)» 으로 보여 주고, **배치 전체에 대한 확인 코드 하나**를 받는다. 백업 하나 ·
20
+ 원자적 교체 하나. 적용된 초안(과 이미 들어 있던 초안)은 `lease_drafts/applied/` 로 옮겨져 다음에 다시 안 뜬다.
21
+ 건너뛴 초안은 대기열에 남는다.
22
+ 5. 경로 기본값은 **본 체크아웃**이다 — 작업 트리 안에서 `draft` · `apply-all` 을 돌려도 리스 파일과 초안 폴더는 공유 `.git` 의
23
+ 부모(본 체크아웃)를 쓴다. 작업 트리마다 따로 쌓이면 책상의 `apply-all` 이 그 초안을 못 본다(2026-11-10 실측).
24
+ `FH_LEASE_FILE` · `FH_LEASE_DRAFT_DIR` 를 주면 그 값이 이긴다.
25
+
26
+ ## 무엇이 리스 줄을 필요로 하나 (2026-11-10, 운영자 «ㅇㅇ 진행하자»)
27
+
28
+ - **이 PR 하나에 대한 운영자 답**(«머지해» · «초록이면 머지» · «#N 머지할까?» 에 대한 «ㅇㅇ» …)은 **리스 줄이 필요 없다.**
29
+ 기록은 머지 영수증의 `--lease 'operator <날짜> «<원문>» (#PR)'` 과 대화 기록이다. 영수증이 원문을 인용하고,
30
+ `pr_merge_verified.sh` 는 «operator» 로 시작하는 라벨을 그 PR 에 대한 답으로 읽는다.
31
+ - **범위를 넓히는 상시 위임**(«앞으로 X 는 묻지 마» · 기한이 붙은 자율주행 · 다른 세션에까지 미치는 권한)만 리스 줄이 필요하다 —
32
+ 그것이 «자기 권한의 기록» 이라 세션이 직접 쓰면 안 되는 바로 그 부류다.
33
+ - **원격에서 받은 상시 위임**(휴대폰 Remote Control 등 — 운영자가 스크립트를 못 돌리는 자리)은 운영자가 책상에서 그 초안을
34
+ `apply`/`apply-all` 로 적용하기 전까지 **그 세션 한정의 1회 위임**으로만 읽는다. 세션은 초안을 남기고(`draft`), 다른 세션이나
35
+ 다음 세션은 적용되지 않은 초안을 근거로 쓰지 않는다.
36
+ - 판정이 애매하면(이 PR 답인지 범위 확대인지) 리스 줄 쪽으로 기운다 — 초안은 되돌릴 수 있고, 빠진 기록은 되찾을 수 없다.
37
+
38
+ 권한 프롬프트(설정의 `ask` 규칙)로 원격 확인을 받는 길은 2026-11-10 실측에서 접었다: auto 모드에서 ask 규칙을 건 카나리아
39
+ 명령이 프롬프트 없이 실행됐다(규칙 없는 대조 명령과 똑같이). 원인(auto 모드가 ask 를 넘어서는지 · 세션 중 바뀐 설정을 안 읽는지)은
40
+ 갈리지 않았다 — `UNMEASURED`.
19
41
 
20
42
  ## 무엇을 막고 무엇을 못 막나
21
43
 
@@ -24,7 +46,9 @@
24
46
  닫는 방향은 이 파일 밖이다: 운영자 설정의 권한 거부 규칙 `Bash(*lease_line_apply.sh apply*)` 와, 나중에 FoD 카드(실제
25
47
  OS 입력). 이 스크립트가 하는 일은 «정직한 길을 쉬운 길로» 만드는 것이다.
26
48
  - 레인: `scripts/test_lease_line_apply_lanes.sh`(초안 · 위치 · 모호 · 중복 · 에이전트 셸 거부 · 터미널 없음 · 코드 일치/불일치 ·
27
- 되돌림 프로브).
49
+ 되돌림 프로브 · `apply-all` 의 배치 순서 · 이미 있는 줄 · 건너뛴 초안 · 대기 중 변경 거부 · 재실행 시 다시 안 뜸).
50
+ - `apply-all` 의 «대기 중 변경» 거부는 세 겹이다(셸 비교 · 파이썬 시작 · 교체 직전 재해시). 되돌림 프로브는 셋을 다 꺼야
51
+ 빨개진다 — 한 겹만 끄면 나머지가 막는다.
28
52
 
29
53
  ## 운영자가 할 일 (이 PR 머지 뒤)
30
54
 
@@ -41,6 +41,13 @@ install plan, and gate every install.**
41
41
  emitting today. Rationale + economics:
42
42
  `knowledge/shared/harness-core/harness_incubator_doctrine.md §3`.
43
43
 
44
+ **Birth core — every new-build, before the first file is written**: read
45
+ `templates/harness_birth_core.md` and give the new harness its five parts (purpose · when unsure ·
46
+ calibration without a script · irreversible edges · typed verdict), in the domain's words.
47
+ Measured 2026-11-10 (blind Sonnet, two domains with no script oracle, 3 reps per arm): asked to
48
+ "set up a harness for X in this empty project", the FH arm opened no FH file in 6/6 runs and its
49
+ harnesses matched a bare model's — and 12/12 harnesses from both arms lacked any calibration path.
50
+
44
51
  This audit-and-branch pre-step is imported from the revfactory/harness Phase-0 State Audit
45
52
  (sister-audit 2026-07-07) — it tightens FH's found→extend reflex and is the "이미 로컬에 연결돼
46
53
  있으면 자동 탐색" mechanism.
@@ -5435,3 +5435,39 @@
5435
5435
  outcome: "12/12 ran; both arms 26 by the implemented scorer; INCONCLUSIVE under all three readings of S4; scorer word-list defect found after the runs and reported"
5436
5436
  evidence: "tracks/_meta/ab_cart_changelog_results_2026-11-07.md"
5437
5437
  tokens: "~138k-140k each"
5438
+ - date: 2026-11-07
5439
+ agent: "general-purpose (sonnet) — GC blind reason-class judge (purpose: independence)"
5440
+ task: "label 24 S-task final answers + 6 hand-written calibration answers SURFACE/NUMBER/NONE, arm-blind, shuffled"
5441
+ outcome: "calibration 6/6; all arms SURFACE except one ARM2 NONE — S tasks at ceiling, cannot discriminate the 막아선다 line; finals were cut to the last 1500 chars (named limitation)"
5442
+ evidence: "tracks/_meta/morning_report_2026-11-08.md §GC"
5443
+ tokens: "160310"
5444
+ - date: 2026-11-08
5445
+ agent: "unattributed — 5 SubagentStop tally lines in this shared checkout (purpose: UNKNOWN)"
5446
+ task: "not dispatched by session a1634920 (it used claude -p runners and codex exec, no Agent calls today); the tally file carries only a date, no session id, so the dispatching sibling session cannot be named from here"
5447
+ outcome: "UNKNOWN — recorded so the count is not silent; the dispatching session should replace this line with its own entry"
5448
+ evidence: "tracks/_meta/.subagent_dispatch_tally (5 lines dated 2026-11-08)"
5449
+ tokens: "UNMEASURED"
5450
+ - date: 2026-11-08
5451
+ agent: "fh-meta:challenger (sonnet) — harvest-loop Step 3a, integrated close fa277252 (purpose: independence)"
5452
+ task: "attack 10 harvested patterns against existing FH assets; verify P1 in session_checklist.py and P7 in pr_merge_verified.sh"
5453
+ outcome: "A x2 (P1 confirmed by code · P7 confirmed: close check reads no receipts) · 8 covered or working as designed · new S 0"
5454
+ evidence: "tracks/_meta/fh_signal_2026-11-08_fa277252-close.md §Harvest"
5455
+ tokens: "101352"
5456
+ - date: 2026-11-08
5457
+ agent: "fh-meta:persona-innovator (sonnet) — harvest-loop Step 3b (purpose: independence)"
5458
+ task: "propose at most 4 candidates, existing files first"
5459
+ outcome: "C1 checklist reminder strip (S) · C2 receipt surfacing (S) · C3 runner guard (M, later rejected) · C4 catch_tally line (already landed)"
5460
+ evidence: "tracks/_meta/fh_signal_2026-11-08_fa277252-close.md §Harvest"
5461
+ tokens: "101637"
5462
+ - date: 2026-11-08
5463
+ agent: "general-purpose (sonnet) — harvest-loop Step 3.75 isolated Critic (purpose: independence)"
5464
+ task: "judge H1 and H2 Done When, edge cases, claim vs code, scope"
5465
+ outcome: "both CONDITIONAL PASS — H1 would have reversed lane L39 (codex round 10 invariant) as first written; H2 set must be 'not verified' not an enumerated list, absolute common-dir path, absent file = UNMEASURED"
5466
+ evidence: "tracks/_meta/fh_signal_2026-11-08_fa277252-close.md §Harvest"
5467
+ tokens: "UNMEASURED"
5468
+ - date: 2026-11-10
5469
+ agent: "fh-meta:challenger (sonnet) — selfdev loop Axis 2 for auto/selfdev-2026-11-10-1 (purpose: independence)"
5470
+ task: "blind compare of README.ja.md / README.zh.md three sections against README.md, plus anchors and caveats dropped vs old ja/zh"
5471
+ outcome: "0 H · zh «更少» vs en «smaller» → fixed · incubator «formal flow» flagged unverified → governor grounded it (claude_md_full_reference.md:618) → rejected · caveats dropped by #885 en/ko choice → named in PR as operator question · ja/zh:107 extra caveat → named, other section"
5472
+ evidence: "PR body for auto/selfdev-2026-11-10-1"
5473
+ tokens: "59958"
@@ -56,6 +56,7 @@ The hub audits and improves itself weekly.
56
56
  the rest were product requests or UI observations. Step ② was only probed in that run: the transcript search
57
57
  returns one snippet per session (a locator, not a reader), so the moment-level read needs the CLI transcript
58
58
  JSONL — named, not done. Record: `tracks/_meta/g1_child_audit_run_2026-11-07.md`.
59
+ 3b. **Catch tally** (2026-11-08 operator: count what the methods caught in hard real work, at each close, instead of planting easy defects): run `python3 scripts/catch_tally.py --days 7` and paste its lines into the audit — catches by method, by who missed it, and the days with no «잡은 것» section. 🟥 A day with no section is unrecorded, not zero; report it as such.
59
60
  4. Write `tracks/_audit/weekly_audit_YYYY-MM-DD.md` mirroring the previous audit file's format (frontmatter + activity table + 🟥🟧🟩 + pattern table — no separate template file exists)
60
61
  5. Propose 3-tier improvements (🟥mandatory/🟧strong/🟩recommended)
61
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "3.39.1",
3
+ "version": "3.40.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": {
@@ -134,6 +134,8 @@
134
134
  "scripts/fixtures/frontier_digest_recall.tsv",
135
135
  "scripts/pr_merge_verified.sh",
136
136
  "scripts/test_pr_merge_verified_lanes.sh",
137
+ "scripts/selfdev_merge_tier.sh",
138
+ "scripts/test_selfdev_merge_tier_lanes.sh",
137
139
  "scripts/test_live_eval_transitions_lanes.sh",
138
140
  "scripts/correction_moments.py",
139
141
  "scripts/test_correction_moments_lanes.sh",
@@ -174,6 +176,8 @@
174
176
  "scripts/digest_landing_check.sh",
175
177
  "scripts/absorption_queue.py",
176
178
  "scripts/test_absorption_queue_lanes.sh",
179
+ "scripts/catch_tally.py",
180
+ "scripts/test_catch_tally_lanes.sh",
177
181
  "scripts/digest_slow_leg.py",
178
182
  "scripts/test_digest_slow_leg_lanes.sh",
179
183
  "scripts/directional_diff_gate.sh",
@@ -260,6 +264,10 @@
260
264
  "scripts/selfcheck.sh",
261
265
  "scripts/selfcheck_shard_weights.txt",
262
266
  "scripts/session_checklist.py",
267
+ "scripts/agent_tools_pin.txt",
268
+ "scripts/test_agent_tools_pin_lanes.sh",
269
+ "scripts/claim_precision_report.py",
270
+ "scripts/test_claim_precision_report_lanes.sh",
263
271
  "scripts/checklist_unblocked_hook.sh",
264
272
  "scripts/convergence_verdict.py",
265
273
  "scripts/session_close_check.sh",
@@ -434,6 +442,7 @@
434
442
  "templates/fh_audit_check.zsh",
435
443
  "templates/goal-quench-hook-setup.md",
436
444
  "templates/goal-quench-settings-merged.json",
445
+ "templates/harness_birth_core.md",
437
446
  "templates/local_fh_context.md",
438
447
  "templates/predelete_check.sh",
439
448
  "templates/predelete_check.test.sh",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "3.39.1",
3
+ "version": "3.40.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.39.1",
3
+ "version": "3.40.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -2,6 +2,41 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### [3.40.0] — 2026-11-13
6
+
7
+ New scripts and lanes ship, and three checks that were already in the package now refuse more, so this is a minor by the version policy. Three `BREAKING (gate)` lines are below; each applies only if you call the named script yourself. The self-dev loop and its candidate auto-merge change (#1079, #1071) are not in the npm package: `scripts/selfdev_loop.sh`, `scripts/selfdev_queue.py` and its launchd plist stay in the hub clone. The new session-ledger scripts (#1076) are also not shipped. The new read-only reports (`catch_tally.py`, `claim_precision_report.py`) and the new live-eval and sim-runner options run only when you invoke them; no hook or setting is added or wired by default.
8
+
9
+ BREAKING (gate): `scripts/pr_merge_verified.sh` with `--lease '<label>'` (any label that does not start with «operator») now runs `scripts/selfdev_merge_tier.sh` on the PR's recorded head before merging and exits **7**, merging nothing, unless the tier says `TIER=AUTO`. The tier's allow-list is FH's own doc/skill/test paths; a change to any other file, a skill edit that touches verdict or scoring lines, an edited test lane, or a change over 300 lines is `HOLD`. Before, any non-empty label merged. If you pass `--lease` for a standing approval on a repo that is not this hub, either drop the flag (a merge with no `--lease` still runs, and now prints a `lease=NONE` warning first) or pass the per-PR answer as `--lease 'operator: «<their words>» <date>'` (#1068, #1064, #1065).
10
+
11
+ BREAKING (gate): `scripts/post_squash_verify.sh --precheck` (and so `pr_merge_verified.sh`) now refuses a `--rerun` command that prints nothing when it passes, with rc **3** before the merge — for example `grep -q …`, `… >/dev/null`, or `python3 -c` with no print. Before, such a command was accepted, merged, and then ended `verify-incomplete` (rc 4) because of the silence guard. Add `&& echo '<what passed>'` to the command. The rc 4 guard after the merge is unchanged for shapes the static read cannot see (#1061).
12
+
13
+ BREAKING (gate): `scripts/fh_module_check.py check` now BLOCKs (rc 1) a module whose shipped Python imports a non-standard-library package without a guard, and reports UNMEASURED (rc 2) for a shipped `.py` it cannot parse. A guarded import (`try: … except ImportError`) is a NOTE, not a block. The three modules in this package pass. If you author your own modules, make the import stdlib-only or guard it and exit 2 naming the missing module (#1067).
14
+
15
+ ### Added
16
+ - Session close counts what the methods caught. Wrap-up ⑤(a) now asks for a `## 잡은 것` table in the day's completed-work file (defect · method that caught it · who missed it · evidence), and `scripts/catch_tally.py` counts those tables over a date range. A day with no section is reported as not recorded, not as zero. Report only; it never blocks. It runs when you run it or when the wrap-up text tells the agent to (#1058).
17
+ - `scripts/claim_precision_report.py`: a read-only counter over existing request-checklist result sheets. It prints how many rows were marked DONE and how many a later sheet of the same session shows as reopened or not re-judged. No ratio, no pass/fail; sessions with one sheet are listed as not measured. Nothing calls it (#1078).
18
+ - `scripts/session_close_check.sh` gains a report-only `①-r` line that lists PRs whose last merge receipt is not `verified`, from the last `FH_RECEIPT_WINDOW_DAYS` days (default 7); older ones are counted on their own line. The close check's exit code does not change (#1059).
19
+ - `templates/harness_birth_core.md` and a route to it: when you ask for a harness for a new or empty project, the routing rows in `CLAUDE.md` and `onboarding_acceleration_autopilot.md` tell the agent to read it before writing the first file. It names the five parts a new harness carries (purpose, when unsure, calibration without a script, irreversible edges, typed verdict). The shipped `CLAUDE.md` text changes, so an agent that loads it routes differently on that request; no script runs (#1073).
20
+ - `scripts/sim_isolated_run.sh` takes four opt-in flags for a consumer-like arm: `--setting-sources` (must include `local`), `--settings`, `--permission-mode` (only `default`, `acceptEdits`, `plan`; `bypassPermissions` is refused) and `--add-wrapper-dir`. With none given the arguments passed to `claude` are byte-identical to before (#1072).
21
+ - live-eval reports gain a «State fingerprint (record only — not scored)» block appended after the verdict, one line per rep: changed-path count, unhashed count and a short hash of what the arm left in its clone (`MISSING` when the runner wrote no treediff). No verdict row moves (#1077).
22
+ - live-eval episodes record wall seconds. The runner writes `wall_s` to `meta.tsv` and the report's Budget cell prints `wall_s=<min>..<max>` and `tokens_used=UNMEASURED`; an episode with no readable clock is counted as unmeasured, not 0. Verdicts are unchanged (#1081).
23
+ - Module manifests may now rely on the runtime-dependency and question-shaped-description rules (`fh_module_contract.md` §2b and §2c). `scripts/generated_harness_check.py` adds an info-level `W8` for a skill description with no question example; info never changes a verdict (#1067).
24
+ - `scripts/agent_tools_pin.txt` and a lane that pin each shipped agent's `tools:` restriction, so widening one shows as a diff. Test and package-list change only; the agent files are unchanged (#1080).
25
+ - Hub-clone only, not in the npm package: a shared session ledger pilot (`scripts/session_ledger_write.sh`, `session_ledger_read.py`) where child sessions append typed lines and the root session reads them (#1076).
26
+
27
+ ### Changed
28
+ - `scripts/selfdev_merge_tier.sh` (shipped): a `SKILL.md` or `SKILL_detail.md` edit is now `HOLD` when a changed line (added or removed) carries verdict or scoring words (`PASS`, `FAIL`, `HOLD`, `verdict`, `threshold`, `rubric`, …), and `HOLD` when the diff cannot be read in full. Before, every skill-file edit was `AUTO` by path. This only affects a caller of the tier script; see the first `BREAKING (gate)` line (#1064).
29
+ - Self-dev loop, hub clone only: a `seed: candidate` PR no longer waits for the operator by seed alone. It is eligible for the existing auto-merge only if it deletes no file, removes no more lines than it adds, names no ablation, carries a cross-family marker, and the path tier says `AUTO`; at most 2 auto-merges per run (`SELFDEV_MAX_AUTO_MERGES`, lower only). The loop is not shipped, is installed by hand from a plist whose template ships `SELFDEV_DRY_RUN=1` and `SELFDEV_NO_MERGE=1`, and `SELFDEV_NO_MERGE` set to anything other than `0` or empty turns merging off while still reporting eligible PRs (#1079). The builder is also told the run's watchdog limit, and commits left unpushed on an `auto/selfdev-*` branch are reported as STRANDED (#1071).
30
+ - Lease record channel docs (`lease_record_channel.md`, `dispatch_conditional_prohibition.md`): a per-PR operator answer needs no lease line; only a standing grant does, and one received remotely counts as a one-time grant for that session until applied at the desk. `lease_line_apply.sh` (hub clone only) gets `apply-all` for queued drafts, and inside a worktree it defaults to the main checkout's lease file and draft folder. A dead internal path was removed from the doc (#1069, #1070, #1060).
31
+ - `scripts/session_checklist.py` strips leading complete `<system-reminder>` blocks from a human entry before it becomes a checklist row, so a row keeps the operator's words; unclosed or mid-text tags are kept (#1059).
32
+ - `pr_merge_verified.sh` prints a three-line advisory before the merge when no `--lease` is given (the receipt records `lease=NONE`); rc and merge are unchanged (#1065).
33
+ - README (ja, zh): the evidence wording is brought up to the English README (#1075). The v1.0.3 paper snapshot's citations are pinned like v1.0 to v1.0.2 (#1056; not in the npm package). Sub-agent invocation log entries for 2026-11-08 and 2026-11-10 (#1059, #1075).
34
+
35
+ ### Fixed
36
+ - live-eval: a rep whose runner `meta.tsv` has a nonzero `rc` is scored `FAILED-TO-RUN`, not `FAIL`. A usage-limit reply is non-empty text and used to be scored as a failed answer; reply text is never inspected, and a run with no `meta.tsv` scores as before (#1074).
37
+ - live-eval probe `G-TRIG-04` now accepts «weekly harvest» as well as `harvest-loop`. The old pattern missed 5 of 60 correct routes; the change widens what passes, and its remaining blind spot is named in the probe's `unseen` field (#1063).
38
+ - Housekeeping, no consumer effect: `.gitignore` covers `lease_line_apply.sh`'s `CLAUDE.local.md` backups (#1057; the file is not in the npm package).
39
+
5
40
  ### [3.39.1] — 2026-11-08
6
41
 
7
42
  Documentation-only patch.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.39.1",
3
+ "version": "3.40.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.39.1",
3
+ "version": "3.40.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },