@chrono-meta/fh-gate 3.39.0 → 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.
- package/.claude/regression/probes_live.yaml +9 -2
- package/.claude-plugin/marketplace.json +4 -4
- package/CLAUDE.md +2 -2
- package/README.ja.md +22 -20
- package/README.ko.md +2 -2
- package/README.md +2 -2
- package/README.zh.md +22 -20
- package/knowledge/shared/harness-core/claude_md_full_reference.md +8 -1
- package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +9 -0
- package/knowledge/shared/harness-core/fh_module_contract.md +68 -3
- package/knowledge/shared/harness-core/governor_landing_before_compact.md +4 -4
- package/knowledge/shared/harness-core/lease_record_channel.md +26 -2
- package/knowledge/shared/harness-core/onboarding_acceleration_autopilot.md +7 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +36 -0
- package/knowledge/shared/rules/operations.md +1 -0
- package/package.json +10 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +45 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/agent_tools_pin.txt +16 -0
- package/scripts/catch_tally.py +215 -0
- package/scripts/claim_precision_report.py +138 -0
- package/scripts/fh_module_check.py +182 -1
- package/scripts/generated_harness_check.py +4 -0
- package/scripts/package_coverage_check.sh +5 -0
- package/scripts/post_squash_verify.sh +53 -1
- package/scripts/pr_merge_verified.sh +56 -0
- package/scripts/probe_live_eval.sh +61 -0
- package/scripts/probe_live_eval_lib.py +47 -4
- package/scripts/selfcheck.sh +5 -0
- package/scripts/selfdev_merge_tier.sh +153 -0
- package/scripts/session_checklist.py +38 -1
- package/scripts/session_close_check.sh +67 -1
- package/scripts/sim_isolated_run.sh +62 -1
- package/scripts/test_agent_tools_pin_lanes.sh +73 -0
- package/scripts/test_catch_tally_lanes.sh +10 -0
- package/scripts/test_claim_precision_report_lanes.sh +77 -0
- package/scripts/test_fh_module_check_lanes.sh +106 -1
- package/scripts/test_generated_harness_check_lanes.sh +8 -0
- package/scripts/test_post_squash_verify_lanes.sh +23 -2
- package/scripts/test_pr_merge_verified_lanes.sh +55 -3
- package/scripts/test_probe_live_eval_lanes.sh +160 -5
- package/scripts/test_selfdev_merge_tier_lanes.sh +128 -0
- package/scripts/test_session_checklist_lanes.sh +57 -0
- package/scripts/test_session_close_chain_lanes.sh +93 -0
- package/scripts/test_sim_isolated_run_lanes.sh +67 -0
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|
実際のプロジェクトで Claude Code(または他のコーディングエージェント)を使っていて、同じ説明の繰り返しや、変更が誤りだったと気づくのが遅すぎることに疲れている人のためのものです。得られるものは三つです。
|
|
31
31
|
|
|
32
|
-
ゲートはエージェントだけでなく、あなたのミスも見つけて止めます — 2026-08-22 の一日で作者を7回止め、そのうち作者が先に気づいたものは一つもありませんでした([ゲートが止めた一日](docs/GATE_DAY.md))。
|
|
33
|
-
|
|
34
32
|
| 得られるもの | 実際には | 根拠 |
|
|
35
33
|
|---|---|---|
|
|
36
|
-
| **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](
|
|
37
|
-
| **引き継がれる記憶** | `tracks/` に各セッションで学んだことが残り、2 回目のセッションは 1 回目が止まったところから始まります。 |
|
|
38
|
-
| **検査を選んでくれる相手** | 「このプロジェクトを診断して」または「このプロジェクトを加速して」と言うと、直すもの・入れるものの優先順位つき一覧が返ります。項目ごとに承認するまで何も変更されません。 | [`CLAUDE.md`](CLAUDE.md)
|
|
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
|
+
|
|
38
|
+
ゲートはエージェントだけでなく、あなたのミスも見つけて止めます — 2026-08-22 の一日でFH の作者を7回止め、そのうち作者が先に気づいたものは一つもありませんでした([ゲートが止めた一日](docs/GATE_DAY.md))。
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
@@ -79,7 +79,7 @@ cd ~/projects/forge-harness && claude # その後に入力: hi (ま
|
|
|
79
79
|
|
|
80
80
|
## 一枚の図で見る仕組み
|
|
81
81
|
|
|
82
|
-
意図された流れです。どの段階がコードで強制され、どの段階が AI
|
|
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 フックでコミットとプッシュを止める(ルール、スクリプト、削除、強制プッシュ) |
|
|
117
|
-
| プロジェクトの教訓を次のセッションに持ち越す |
|
|
118
|
-
| 別のモデル系列(Codex、Gemini、ローカル)でレビューを回し、ひとつの系列が見落とすものを拾う |
|
|
119
|
-
| 短い依頼からプロジェクト用のハーネスを作る |
|
|
120
|
-
|
|
121
|
-
##
|
|
122
|
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
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.ko.md
CHANGED
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
실제 프로젝트에서 Claude Code(또는 다른 코딩 에이전트)를 쓰면서, 같은 말을 반복하는 일이나 잘못된 변경을
|
|
32
32
|
너무 늦게 알게 되는 일에 지친 분들을 위한 것입니다. 얻는 것은 세 가지입니다.
|
|
33
33
|
|
|
34
|
-
게이트는 에이전트만이 아니라 당신의 실수도 잡습니다 — 2026-08-22 하루에 작성자를 일곱 번 막았고, 그중 작성자가 먼저 알아챈 것은 하나도 없었습니다([게이트가 막은 하루](docs/GATE_DAY.md)).
|
|
35
|
-
|
|
36
34
|
| 얻는 것 | 실제로는 | 근거 |
|
|
37
35
|
|---|---|---|
|
|
38
36
|
| **머지 전 게이트** | 변경이 들어오기 *전에* diff 를 판정하고, 판정문은 그 변경이 무엇을 잃었는지 이름으로 짚어 줍니다. 판정은 grep 으로 뒤지는 글이 아니라 타입이 있는 값(`PASS · PENDING · BLOCKED · ESCALATE`)입니다. 에이전트가 쓴 코드뿐 아니라 직접 쓴 코드에도 동작합니다. | 아래 데모 GIF · 남이 쓴 코드에 돌린 실행과 구멍을 심은 시험(표본 크기 포함): [근거](#근거) · 방법론과 통제된 제거 실험: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
39
37
|
| **이어지는 기억** | `tracks/` 에 세션마다 배운 것이 남아서, 두 번째 세션이 첫 번째 세션이 멈춘 자리에서 시작합니다. | 세션을 마칠 때 `tracks/_meta/` 의 카드가 갱신되고, 다음 세션은 그 카드를 읽고 시작합니다([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
40
38
|
| **검사를 대신 골라 주는 상대** | "이 프로젝트 진단해줘" 또는 "이 프로젝트 가속화해줘"라고 하면 고치거나 설치할 것의 우선순위 목록을 받습니다. 항목마다 승인하기 전에는 아무것도 바뀌지 않습니다. | 절차는 [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic 에 있습니다. 항목마다 승인한 뒤에만 반영합니다 |
|
|
41
39
|
|
|
40
|
+
게이트는 에이전트만이 아니라 당신의 실수도 잡습니다 — 2026-08-22 하루에 FH 작성자를 일곱 번 막았고, 그중 작성자가 먼저 알아챈 것은 하나도 없었습니다([게이트가 막은 하루](docs/GATE_DAY.md)).
|
|
41
|
+
|
|
42
42
|
<p align="center">
|
|
43
43
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
44
44
|
</p>
|
package/README.md
CHANGED
|
@@ -34,14 +34,14 @@ every session: rules it follows, checks that block bad changes, and a record of
|
|
|
34
34
|
For people who use Claude Code (or another coding agent) on real projects and are tired of repeating
|
|
35
35
|
themselves or of finding out too late that a change was wrong. You get three things:
|
|
36
36
|
|
|
37
|
-
The gates catch you, not only your agent: on 2026-08-22 they blocked the author seven times, and the author caught none of those first ([one day of gate blocks](docs/GATE_DAY.md)).
|
|
38
|
-
|
|
39
37
|
| You get | In practice | Evidence |
|
|
40
38
|
|---|---|---|
|
|
41
39
|
| **A gate before merge** | A diff is judged *before* it lands, and the verdict names what the change lost. The verdict is a typed value (`PASS · PENDING · BLOCKED · ESCALATE`), not text you grep. It works on your own code, not only an agent's. | Demo GIF below · a run on code someone else wrote and a planted-hole test, with sample sizes: [Evidence](#evidence) · method and controlled ablation: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
42
40
|
| **Memory that carries over** | `tracks/` keeps what each session learned, so session 2 starts where session 1 stopped. | At session end the card in `tracks/_meta/` is updated, and the next session starts from it ([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
43
41
|
| **Someone who picks the check for you** | Say "diagnose this project" or "accelerate this project" and you get a ranked list of what to fix or install. Nothing is changed until you approve each item. | The procedure is in [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic. Each item lands only after you approve it |
|
|
44
42
|
|
|
43
|
+
The gates catch you, not only your agent: on 2026-08-22 they blocked the author of FH seven times, and the author caught none of those first ([one day of gate blocks](docs/GATE_DAY.md)).
|
|
44
|
+
|
|
45
45
|
<p align="center">
|
|
46
46
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
47
47
|
</p>
|
package/README.zh.md
CHANGED
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|
适合在真实项目里使用 Claude Code(或其他编码 agent),厌倦了重复同样的话、或者发现改动有误时已经太晚的人。你会得到三样东西:
|
|
31
31
|
|
|
32
|
-
门禁拦的不只是 agent,也包括你自己的错误:2026-08-22 这一天,门禁拦住了作者七次,其中没有一次是作者自己先发现的([门禁拦截的一天](docs/GATE_DAY.md))。
|
|
33
|
-
|
|
34
32
|
| 你得到 | 实际表现 | 证据 |
|
|
35
33
|
|---|---|---|
|
|
36
|
-
| **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](
|
|
37
|
-
| **能延续的记忆** | `tracks/` 记录每次会话学到的东西,第 2 次会话从第 1 次停下的地方开始。 |
|
|
38
|
-
| **替你挑检查的帮手** | 说“诊断这个项目”或“加速这个项目”,你会得到一份按优先级排序的待修复/待安装清单。逐项批准之前不会改动任何东西。 |
|
|
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
|
+
|
|
38
|
+
门禁拦的不只是 agent,也包括你自己的错误:2026-08-22 这一天,门禁拦住了FH 的作者七次,其中没有一次是作者自己先发现的([门禁拦截的一天](docs/GATE_DAY.md))。
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<img src="https://raw.githubusercontent.com/chrono-meta/forge-harness/main/docs/demo/gate-block.gif" alt="regression guard blocking a change that dropped a Done When section, then passing once it is restored" width="820">
|
|
@@ -79,7 +79,7 @@ cd ~/projects/forge-harness && claude # 然后输入:hi (或 안
|
|
|
79
79
|
|
|
80
80
|
## 一张图看懂它如何运作
|
|
81
81
|
|
|
82
|
-
这是设计上的流程。哪些步骤由代码强制、哪些由被告知要遵守的 AI
|
|
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 钩子拦住提交和推送(规则、脚本、删除、强制推送) |
|
|
117
|
-
| 把一个项目的经验带入下一次会话 |
|
|
118
|
-
| 让另一个模型家族(Codex、Gemini、本地)做审查,抓住单一家族漏掉的东西 |
|
|
119
|
-
| 根据一句简短的请求为项目搭建框架 |
|
|
120
|
-
|
|
121
|
-
##
|
|
122
|
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
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` §무엇이 리스 줄을 필요로 하나.
|
|
@@ -12,12 +12,21 @@ tags: [module, manifest, core-floor, restriction-union, install-check]
|
|
|
12
12
|
> - `capability_composition_contract.md` - how constraints merge (strictest-wins, closed enums, typed invocation). A module's `adds_constraints` and the merge of two modules are that contract's rules, unchanged.
|
|
13
13
|
> - `fh_integration_contract.md` - the verdict vocabulary and exit codes a caller sees. A module's verdict entry points use the same three-way split.
|
|
14
14
|
|
|
15
|
+
## 0. Words used here
|
|
16
|
+
|
|
17
|
+
| Word | Means |
|
|
18
|
+
|---|---|
|
|
19
|
+
| **module** = **cartridge** | the unit that has a manifest (`fh-module.yaml`) and can be plugged in or pulled out. The two words name the same thing; this contract says *module*. |
|
|
20
|
+
| **skill** / **agent** | what a module provides (`provides.skills` / `provides.agents`). A skill is not a module. |
|
|
21
|
+
| **plugin** | the distribution unit — how files reach a machine (a Claude Code plugin). One plugin can ship several modules, or none. |
|
|
22
|
+
| **UNMEASURED** | the check could not be run or read. Never a pass. |
|
|
23
|
+
|
|
15
24
|
## 1. Core floor (no module may weaken)
|
|
16
25
|
|
|
17
26
|
1. Irreversible-op gates: publish, delete, history-rewrite (CLAUDE.md Irreversibility Gates).
|
|
18
27
|
2. Fail-closed: a check whose tooling is down blocks.
|
|
19
28
|
3. Company-data boundary: company data never leaves the machine.
|
|
20
|
-
4.
|
|
29
|
+
4. UNMEASURED is never PASS. (One spelling: `UNMEASURED` — the checker's exit-code name. `NOT_MEASURED` in older text means the same.)
|
|
21
30
|
|
|
22
31
|
5. **Added hooks may only observe.** A module hook cannot allow, rewrite input (`updatedInput`), set a `permissionDecision`, touch `core.hooksPath`, `.git/hooks` or `settings*.json`, or chmod/rm hook files. **In v0 only `SessionEnd` is open to modules.** Gating events (`PreToolUse`, `PermissionRequest`) and every event that can inject context or block (PostToolUse via `additionalContext`, SessionStart, UserPromptSubmit, Stop, SubagentStop, PreCompact, git-pre-commit, git-pre-push) are **closed**: a text scan of a hook body cannot prove it never emits a decision (`decision.behavior`, a key built from pieces) — cross-family review 2026-10-18 showed both — so these events are closed rather than scanned. Reopening them needs the core wrapper below. `action: add` alone is not harmless; commands are shape-checked and scanned (section 3).
|
|
23
32
|
|
|
@@ -43,9 +52,65 @@ Unknown key or unknown enum value = BLOCK. Missing required field = BLOCK.
|
|
|
43
52
|
| `files` | optional list of repo-relative paths the module ships besides its skill/agent folders and command files; `export` copies exactly these |
|
|
44
53
|
| `records` | optional list of paths the module writes (used by removal) |
|
|
45
54
|
|
|
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
|
+
|
|
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
|
+
|
|
46
111
|
## 3. Install-time check (`scripts/fh_module_check.py check`)
|
|
47
112
|
|
|
48
|
-
Exit codes: **0 OK, 1 BLOCK, 2 UNMEASURED, 3 OK-but-UNCALIBRATED** (valid, no verdict entry points, `calibration: UNCALIBRATED`; callers must not treat 3 as a clean pass). Unreadable, empty, or non-mapping input is 2; PyYAML missing is 2; an internal error is 2. Nothing unreadable or unknown exits 0.
|
|
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.
|
|
49
114
|
|
|
50
115
|
**Caller rule:** proceed only on rc==0. rc==3 = refuse, unless an explicit operator flag installs the module inert (no hooks, no verdicts active). Anything else (1, 2, or any other code) = refuse.
|
|
51
116
|
|
|
@@ -86,7 +151,7 @@ Measured on the pilot: without `files:` the export failed with «missing scripts
|
|
|
86
151
|
|
|
87
152
|
## 6. Calibration of the checker
|
|
88
153
|
|
|
89
|
-
`bash scripts/test_fh_module_check_lanes.sh` - known-positive (valid module), known-negatives (disable, override, shadow, reorder, unknown enum, unknown key, unrouted publish, garbage / empty / missing manifest, removal with dependant, merge in both orders). `FH_MODULE_PROBE=<name>` neuters one check in a temp copy; the matching lane must go red.
|
|
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.
|
|
90
155
|
|
|
91
156
|
Pilot: `plugins/fh-commons/skills/ko-tech-writer/fh-module.yaml`.
|
|
92
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,12 +1,12 @@
|
|
|
1
1
|
# 착지 후 압축 — 거버너가 관할 세션의 압축 시점을 앞당긴다 (G2′, 2026-11-07)
|
|
2
2
|
|
|
3
|
-
> 맥락 유지 엔진(`fh_three_layer_canon.md` §2)의 «시점» 보강.
|
|
3
|
+
> 맥락 유지 엔진(`fh_three_layer_canon.md` §2)의 «시점» 보강.
|
|
4
4
|
> 출처: 운영자 2026-11-07 «거버너가 세션압축에 준비하라고 하고 난후에, 그쪽이 정리후 지금 바로 압축할지를
|
|
5
|
-
> 질문으로 띄우면 내가 확인할수있겠네».
|
|
5
|
+
> 질문으로 띄우면 내가 확인할수있겠네».
|
|
6
6
|
|
|
7
7
|
## 왜
|
|
8
8
|
|
|
9
|
-
자동 압축은 일이 어디까지 왔는지 모르고 터진다. 2026-11-07 하위 세션
|
|
9
|
+
자동 압축은 일이 어디까지 왔는지 모르고 터진다. 2026-11-07 하위 세션 하나는 착지 전에 약 96% 에서
|
|
10
10
|
자동 압축됐다(→ 21%). 거버너가 97% 를 읽고 «착지 후 압축» 메시지를 보냈을 때 그 세션은 일하는 중이라 메시지가
|
|
11
11
|
큐에 걸렸고, 그 사이 자동 압축이 먼저 왔다. 표시값 `autoCompactsAtPercent: 97` 과 실제 발화(~96%)도 달랐다.
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
| 턴 증가량 | 3 %p | 추정 | **UNCALIBRATED** |
|
|
39
39
|
| 큐 지연 | 1 턴 | 2026-11-07 메시지가 진행 중 턴 뒤에 걸림 | n=1 |
|
|
40
40
|
|
|
41
|
-
⇒ 기본 문턱 90%.
|
|
41
|
+
⇒ 기본 문턱 90%. 근거는 위 세 칸이고, 그중 둘은 아직 측정 전이다.
|
|
42
42
|
|
|
43
43
|
## 문턱 실측 계획 (미실행)
|
|
44
44
|
|
|
@@ -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
|
|