@chrono-meta/fh-gate 3.42.0 → 3.44.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 (71) hide show
  1. package/.claude/regression/probes_live.yaml +16 -8
  2. package/.claude/rules/fh_4axis_gate.md +8 -0
  3. package/.claude-plugin/marketplace.json +4 -4
  4. package/AGENTS.md +9 -0
  5. package/README.ja.md +2 -0
  6. package/README.ko.md +2 -0
  7. package/README.md +2 -0
  8. package/README.zh.md +2 -0
  9. package/docs/HOW_FH_DIFFERS.en.md +37 -0
  10. package/docs/HOW_FH_DIFFERS.md +39 -0
  11. package/docs/USER_GUIDE.md +208 -2
  12. package/docs/model_tier_expectations.md +8 -4
  13. package/knowledge/shared/harness-core/claude_md_full_reference.md +10 -0
  14. package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +18 -0
  15. package/knowledge/shared/harness-core/fh_module_contract.md +19 -0
  16. package/knowledge/shared/harness-core/governance_engineering_definition.md +16 -0
  17. package/knowledge/shared/harness-core/measurement-integrity-checklist.md +24 -0
  18. package/knowledge/shared/learnings/subagent_invocations_log.yaml +42 -0
  19. package/knowledge/shared/plugin-catalog/recommended_plugins.md +53 -9
  20. package/package.json +13 -1
  21. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  22. package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +49 -14
  23. package/plugins/fh-commons/skills/ko-tech-writer/SKILL_detail.md +60 -0
  24. package/plugins/fh-commons/skills/ko-tech-writer/fixtures/sense_negative.md +30 -0
  25. package/plugins/fh-commons/skills/ko-tech-writer/fixtures/sense_positive.md +56 -0
  26. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  27. package/plugins/fh-meta/CHANGELOG.md +55 -2
  28. package/plugins/fh-meta/skills/auto-decorrelation/SKILL.md +45 -1
  29. package/plugins/fh-meta/skills/edit-manifest/SKILL.md +14 -1
  30. package/plugins/fh-meta/skills/harvest-loop/SKILL.md +1 -1
  31. package/plugins/fh-meta/skills/meta-prompt-builder/SKILL.md +19 -0
  32. package/plugins/fh-meta/skills/sim-conductor/SKILL_detail.md +3 -3
  33. package/plugins/fh-meta/skills/steel-quench/SKILL_detail.md +8 -4
  34. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  35. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  36. package/scripts/agy_launch_guard.sh +49 -0
  37. package/scripts/agy_remote_run.sh +187 -0
  38. package/scripts/capability_registry_check.sh +15 -2
  39. package/scripts/codex_launch_guard.sh +87 -0
  40. package/scripts/finding_fleet.sh +35 -2
  41. package/scripts/finding_verifier.sh +6 -2
  42. package/scripts/ko_tech_writer_calibrate.py +88 -1
  43. package/scripts/live_eval_trace.py +141 -0
  44. package/scripts/package_coverage_check.sh +7 -0
  45. package/scripts/pr_merge_verified.sh +7 -0
  46. package/scripts/prepush_guard_check.sh +33 -20
  47. package/scripts/probe_live_eval.sh +6 -3
  48. package/scripts/probe_live_eval_lib.py +92 -2
  49. package/scripts/remote_marker_gate.sh +56 -0
  50. package/scripts/selfcheck.sh +58 -2
  51. package/scripts/session_checklist.py +109 -5
  52. package/scripts/session_close_check.sh +16 -0
  53. package/scripts/sidecar_calibrate.sh +10 -2
  54. package/scripts/sidecar_wait.sh +21 -1
  55. package/scripts/sim_isolated_run.sh +17 -2
  56. package/scripts/test_agy_launch_guard_lanes.sh +227 -0
  57. package/scripts/test_agy_remote_run_lanes.sh +228 -0
  58. package/scripts/test_codex_launch_guard_lanes.sh +138 -0
  59. package/scripts/test_finding_pipeline_lanes.sh +6 -2
  60. package/scripts/test_fixture_guard_coverage_lanes.sh +71 -10
  61. package/scripts/test_live_eval_trace_lanes.sh +191 -0
  62. package/scripts/test_meta_prompt_restate_lanes.sh +36 -0
  63. package/scripts/test_mutation_probe_lanes.sh +26 -6
  64. package/scripts/test_pr_merge_verified_lanes.sh +23 -0
  65. package/scripts/test_preprep_speech_coach_lanes.sh +18 -2
  66. package/scripts/test_prepush_guard_failure_visibility_lanes.sh +152 -0
  67. package/scripts/test_remote_marker_gate_lanes.sh +96 -0
  68. package/scripts/test_session_checklist_lanes.sh +205 -0
  69. package/scripts/test_session_close_lanes.sh +7 -0
  70. package/scripts/test_sidecar_calibrate_lanes.sh +4 -0
  71. package/scripts/test_sidecar_wait_stdin.sh +18 -0
@@ -0,0 +1,30 @@
1
+ <!-- S35 낱말 뜻 흔들림 — 늘어놓기(a) known-negative. 대상 낱말과 앞 글자가 겹치는 다른 낱말만 담았다 — 한 건도 잡히면 안 된다. -->
2
+ <!-- 🟥 표면이 같은 동형어(재고 = 재다+고 / 재고 = 재고품, 셀 = 세다 / 셀 = cell, 쓴 = 쓰다 / 쓴맛)는 여기 넣지 않았다 — 표면으로 못 가르고, 가르는 것은 (b) 판단 단계다. -->
3
+
4
+ 쓰레기 파일을 정리했다.
5
+ 쓰나미 경보 시스템을 예로 든다.
6
+ 써클 모양 아이콘을 넣었다.
7
+ 써드파티 라이브러리를 검토했다.
8
+ 써머리 섹션을 앞으로 옮겼다.
9
+ 세계 여러 팀이 같은 방식을 택했다.
10
+ 세션이 끊기면 다시 연결한다.
11
+ 세부 항목은 부록에 둔다.
12
+ 센터에서 받은 자료다.
13
+ 센서 값이 튀었다.
14
+ 셀프 리뷰는 짝 리뷰를 대신하지 못한다.
15
+ 세면대 사진은 빠졌다.
16
+ 재료 목록을 정리했다.
17
+ 재현 절차를 적었다.
18
+ 재시작 뒤에 다시 확인한다.
19
+ 재지정된 경로를 확인했다.
20
+ 재보험 사례는 다루지 않는다.
21
+ 재면접 일정이 잡혔다.
22
+ 글쓰기 교재를 참고했다.
23
+ 공작기계 제조사 사례다.
24
+ 세다리 의자 사진은 뺐다.
25
+ 서버가 쓰러진 사례다.
26
+ 쓰라린 실패에서 배웠다.
27
+ 고양이를 쓰다듬는 사진이다.
28
+ 잽싸게 되돌렸다.
29
+ 재도전 일정을 잡았다.
30
+ 재지급 절차는 다루지 않는다.
@@ -0,0 +1,56 @@
1
+ <!-- S35 낱말 뜻 흔들림 — 늘어놓기(a) known-positive. 줄마다 활용형 하나 · 기대 낱말은 줄 끝 주석에. -->
2
+ <!-- 문장은 만든 일반 예문이다(어느 원고의 문장도 아니다). 뜻은 일부러 섞었다 — 이 레인은 뜻을 가르지 않고 «빠짐없이 늘어놓는가»만 잰다. -->
3
+
4
+ 설계 문서를 쓰다 보면 용어가 흔들린다. <!-- 쓰다 -->
5
+ 이 스크립트는 캐시를 쓴다. <!-- 쓰다 -->
6
+ 보고서를 쓰는 사람이 따로 있다. <!-- 쓰다 -->
7
+ 예전에 쓰던 도구를 그대로 둔다. <!-- 쓰다 -->
8
+ 이 옵션을 쓰면 속도가 빨라진다. <!-- 쓰다 -->
9
+ 초안을 쓰고 나서 검토를 받는다. <!-- 쓰다 -->
10
+ 기본값을 쓰되 경로만 바꾼다. <!-- 쓰다 -->
11
+ 같은 설정을 써서 다시 돌린다. <!-- 쓰다 -->
12
+ 지난주에 결과 요약을 썼다. <!-- 쓰다 -->
13
+ 저희는 이 방식을 씁니다. <!-- 쓰다 -->
14
+ 그 함수는 쓸 수 없다. <!-- 쓰다 -->
15
+ 이 값은 쓰지 않는다. <!-- 쓰다 -->
16
+ 문서 쓰기가 늦어졌다. <!-- 쓰다 -->
17
+ 건수를 세다 보니 하나가 빠졌다. <!-- 세다 -->
18
+ 실패한 줄을 센다. <!-- 세다 -->
19
+ 경고를 세는 스크립트가 있다. <!-- 세다 -->
20
+ 통과로 세지 않았다. <!-- 세다 -->
21
+ 줄을 세어 보니 열둘이었다. <!-- 세다 -->
22
+ 건수를 세고 나서 표에 적었다. <!-- 세다 -->
23
+ 중복을 세면 숫자가 부푼다. <!-- 세다 -->
24
+ 어제 다시 셌다. <!-- 세다 -->
25
+ 항목을 셉니다. <!-- 세다 -->
26
+ 몇 번인지 셀 수 없다. <!-- 세다 -->
27
+ 응답 시간을 재다 보면 편차가 크다. <!-- 재다 -->
28
+ 지연을 잰다. <!-- 재다 -->
29
+ 메모리를 재는 도구를 붙였다. <!-- 재다 -->
30
+ 속도를 재어 기록했다. <!-- 재다 -->
31
+ 크기를 재고 나서 비교했다. <!-- 재다 -->
32
+ 같은 조건에서 재면 값이 같다. <!-- 재다 -->
33
+ 어제 다시 쟀다. <!-- 재다 -->
34
+ 처리량을 잽니다. <!-- 재다 -->
35
+ 아직 재지 않았다. <!-- 재다 -->
36
+ 그 길이는 잴 수 없다. <!-- 재다 -->
37
+ 기계가 판정을 내린다. <!-- 기계 -->
38
+ 이 단계는 기계적으로 처리한다. <!-- 기계 -->
39
+ 이 함수는 여러 곳에서 쓰인다. <!-- 쓰다 -->
40
+ 그 값은 기본값으로 쓰입니다. <!-- 쓰다 -->
41
+ 캐시를 쓰거나 끄거나 둘 중 하나다. <!-- 쓰다 -->
42
+ 고객이 직접 쓰신 후기다. <!-- 쓰다 -->
43
+ 이 변수는 나중에 쓰일 예정이다. <!-- 쓰다 -->
44
+ 다시 세야 한다. <!-- 세다 -->
45
+ 몇 개인지 셀까 고민했다. <!-- 세다 -->
46
+ 줄을 세거나 건너뛴다. <!-- 세다 -->
47
+ 한 번 세봤다. <!-- 세다 -->
48
+ 같은 조건에서 다시 재야 한다. <!-- 재다 -->
49
+ 시간을 재거나 기록만 남긴다. <!-- 재다 -->
50
+ 그 값은 예전에 기본값으로 쓰였다. <!-- 쓰다 -->
51
+ 이 옵션은 끄고 쓰도 된다. <!-- 쓰다 -->
52
+ 초안 작성 후 검토 요청 씀. <!-- 쓰다 -->
53
+ 나중에 다시 셀 것이다. <!-- 세다 -->
54
+ 대충 세도 된다. <!-- 세다 -->
55
+ 같은 방식으로 재도 된다. <!-- 재다 -->
56
+ 지연은 이렇게 재죠. <!-- 재다 -->
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.42.0",
3
+ "version": "3.44.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -2,16 +2,69 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### [3.44.0] — 2026-11-17
6
+
7
+ Minor by the version policy: new shipped guards and a remote runner for the cross-family sidecars (#1123, #1125, #1127), a new `--senses` listing and lane in `ko-tech-writer` (#1128), and judged procedure changes in shipped skills and canon. One change makes an existing path refuse more by default — FH scripts now start `agy` only through `agy_launch_guard.sh`, so a gemini fleet member you ran on purpose fails as refused until it runs isolated; see the `BREAKING (gate):` entry for the remedy (#1123). The same change makes `finding_fleet.sh` stop with exit 1 before any member runs when it cannot create or prove its agy shim (for example a read-only or noexec `/tmp`), so a codex-only fleet on such a machine stops too (#1123). Two other refusals are new and narrower: a codex arm is refused when its prompt, arguments or working folder name a configured company-repo root (#1127), and `sidecar_wait.sh` now reports a sidecar that rejected its model as `HARNESS-ERROR` instead of `COMPLETE` (#1127). The live-eval report can now exit 2 (`INVALID-COMPARISON`) when its arms loaded different plugin sets — a report verdict, not a commit or publish gate (#1121). This repository's own required `validate` check now proves every selfcheck shard passed without the GitHub API (#1130) — repository CI only, nothing shipped changes.
8
+ ### Added
9
+ - `scripts/codex_launch_guard.sh` (shipped): FH's codex verifier arms (`finding_fleet.sh` codex rows — including rows that call `codex` by name, through a shim first on `PATH` — `finding_verifier.sh --family codex`, the `sidecar_calibrate.sh` probe) start codex only through it. It refuses (exit 3, `HARNESS-ERROR: CODEX-REFUSED`, codex not started) when the prompt on stdin, an argument or the working folder names a root in the operator's company-repo list (`FH_COMPANY_ROOTS`, or the gitignored `.claude/rules/.company-roots`); otherwise codex runs with the prompt byte-for-byte and its own exit code. With no list configured it runs and prints «CODEX-GUARD: no company roots configured — not checked». A list that exists but cannot be read, an unreadable prompt or a failed matcher also refuses (exit 3). `.gitignore` now lists `.claude/rules/.company-roots`. It is a string check on paths (as given, real path, without `/private`, with `~`), not isolation. Not covered: a custom fleet row that calls codex by absolute path or resets `PATH` (it skips the shim), and the runtime adapters `fh-run.sh` · `fh-goal.sh` · `fh-gate.sh`, where codex is the user's own agent. `sidecar_wait.sh` reports a guard refusal as `HARNESS-ERROR reason=guard-refused`. Lanes `scripts/test_codex_launch_guard_lanes.sh` (shipped). (#1127)
10
+ - `scripts/agy_remote_run.sh` (shipped): the route FH ships for agy (the `container` / `os-user` markers remain for an isolated environment you built, unchecked by the guard) — it runs agy only as a separate OS user on another machine over ssh (frozen inputs copied in, output and requested files copied back, only its own `fh_agy_<stamp>_<hex>` work folder removed) and never starts a local agy. `--canary` (no agy) measures that the remote user cannot read the `FH_AGY_REMOTE_DENY` paths and writes a local receipt; runs are refused (exit 3) without a PASS receipt under 7 days old for the same settings, and a route that is down exits 4. `agy_launch_guard.sh` honours the new `FH_AGY_ISOLATION=remote-os-user` only when the target is this runner. Host, account and paths come from the environment only. Lanes `scripts/test_agy_remote_run_lanes.sh` (shipped) use a fake ssh/scp; the PowerShell side is not exercised by the lanes. (#1125)
11
+ - BREAKING (gate): `scripts/agy_launch_guard.sh` (shipped). FH scripts now start `agy` only through it, and it refuses (exit 3, `AGY-REFUSED` on stderr) unless `FH_AGY_ISOLATION` is exactly `container` or `os-user`. Covered callers: `finding_fleet.sh` (the default gemini row, custom rows that write `AGY_BIN`, and custom rows that call `agy` by name — through a shim put first on `PATH`; both rounds), `finding_verifier.sh --family gemini`, and `sidecar_calibrate.sh` (which now prints a `REFUSED` row instead of reading the refusal as an answer). Why: agy runs its own shell and file tools even in `--mode plan` and sends what they print to the cloud model; on 2026-11-16 a review run searched the whole machine, read its own answer key and sent file names from another repository on that machine. If you ran a gemini member on purpose, it now fails as a refused member until you run it inside a container or a separate OS user (or as a remote OS user through `scripts/agy_remote_run.sh`, `FH_AGY_ISOLATION=remote-os-user`, #1125) and set the marker there. `--sandbox` does not count: a canary test the same day showed `agy --mode plan --sandbox` reading files outside its cwd and in the home directory. The marker is self-declared: the guard checks that you said it, not that it is true — set it only where a canary check confirmed the isolation. Not covered: a fleet row that calls agy by absolute path or resets `PATH`. `auto-decorrelation` §Step 2 states the rule; lanes `scripts/test_agy_launch_guard_lanes.sh` (shipped). (#1123)
12
+ - `ko-tech-writer` S35, word-sense drift, as a procedure rather than a word list (shipped: `SKILL.md`, `SKILL_detail.md`, `fixtures/sense_positive.md`, `fixtures/sense_negative.md`, `scripts/ko_tech_writer_calibrate.py`). `ko_tech_writer_calibrate.py --senses FILE` lists occurrences of 쓰다/세다/재다/기계 (enumerated endings; compounds are not matched) with their context; a person or model then groups them by sense and flags the minority sense, and a coverage line says that 0 hits is not «none». New lane C22 checks the listing on a constructed inflection fixture and 0 hits on 27 lines of collision words; the sense grouping itself has no lane and stays a judgment. The same change adds a draft-time term table (Step 1), reading cited papers from the abstract (Step 4) and a provisional seeded whole-document pass after a correction round (Step 5) (#1128)
13
+ ### Changed
14
+ - `sidecar_wait.sh`: a sidecar CLI that refuses the requested model now gets `SIDECAR_VERDICT=HARNESS-ERROR exit=<n> reason=model-not-available` and exit 3, instead of `COMPLETE` — which read as «the reviewer answered and found nothing». Measured 2026-11-16: codex `-m gpt-5.5` and `-m gpt-5` return HTTP 400 «not supported when using Codex with a ChatGPT account» (rc 1). Documented examples (`sidecar_wait.sh` usage, `auto-decorrelation`, `sim-conductor`) no longer pin those models; they use the CLI default. `auto-decorrelation` records that codex's `--sandbox read-only` limits writes, not reads (canary files in cwd, another temp folder and the home directory were all read), so codex arms get public diffs only. Lane `test_sidecar_wait_stdin.sh` P10/P10b. (#1127)
15
+ - live-eval: the init plugin list (each plugin's source and version, never its path) is now part of the surface that `INVALID-COMPARISON` compares, next to the tool and MCP lists. Arms that loaded different plugins, or the same plugin at different versions, or one arm whose init has no plugin list, make the probe `INVALID-COMPARISON` with no pass rate and the run exits 2. Arms with the same plugins score as before. Why: the 2026-11-15 nightly had two probes where one rep loaded one more built-in plugin than the rest, with tools and MCP equal, and the report counted one surface. The plugins are still loaded from the operator's HOME; pinning them is not in this change. Lanes TR14–TR18 in `scripts/test_live_eval_trace_lanes.sh` (shipped). (#1121)
16
+ - `ko-tech-writer` S11/S16/S19/S23 carry the 2026-11-15 operator full-read pairs (shipped). S11 gives bare section numbers a unit and splits shared-unit number pairs; S16 adds a cross-asset term check that splits by meaning and never bulk-replaces; S19/S23 gain four pairs; Step 5 adds context-only neighbour blocks and a provisional beginner cold-read stop rule. No lane or script changed (#1120)
17
+ - `governance_engineering_definition.md` (shipped): the supervising placement is one root window over work sessions that each do one task in sequence. Provisional and proposal-only: when a multi-day task piles up in a session with other tasks, the governor proposes in one line moving it to a re-enterable work session; coupled work is not split (#1117)
18
+ ### Fixed
19
+ - `scripts/prepush_guard_check.sh` (shipped): when a known pair breaks, the closing `❌ BLOCKED` line now names every broken pair with its exit code and elapsed seconds (`… 5 known pair(s) broke after 10s: <pair> (rc=0, 1s); …`), and every pair line carries an `[Ns]` stamp. `selfcheck.sh` shows a failing check through its ❌-line extractor instead of the last 12 lines, with the check's total elapsed time. Why: a downstream consumer got `BLOCKED — a known pair broke` from a long selfcheck under heavy load with the pair cut off above the 12-line tail, so nobody could tell which pair broke or whether it timed out. The cause of that failure is still unmeasured; pass/fail verdicts do not change. Lane `scripts/test_prepush_guard_failure_visibility_lanes.sh` (shipped) plants a broken pair and checks the names survive the tail. (#1129)
20
+ - `session_checklist.py extract --out` (shipped) no longer drops the parts of an existing sheet that the table parser does not consume — a result section below the table, a preface, prose in between, fenced code and hand-written notes are kept in order under «이전 결과서의 표 밖 내용», so a re-run over its own output is byte-identical. An orphan row whose first cell is `-` was read as a separator and lost on the second re-extract; it now survives. Lanes L55–L58 and KR1 in `scripts/test_session_checklist_lanes.sh` (shipped) (#1108)
21
+ - `scripts/test_preprep_speech_coach_lanes.sh` (shipped): the `ffmpeg`-absent probe first resolves the real interpreter (`sys.executable` under the normal PATH), then runs it under the empty PATH. A downstream consumer saw it die with rc 127 where `python3` is a bash shim (pyenv), so the code under test was never reached. An unresolved interpreter now exits 10 (a setup error, not a pass), and a new control shows the shim case both ways (#1126)
22
+ - `.github/workflows/validate.yml` (not in the npm package): the required `validate` check no longer calls the GitHub API to prove every selfcheck shard passed. Each shard's last step writes its own job output `leg_<i>=passed:<i>/<N>`, and the check reads only `needs.selfcheck.result` and `needs.selfcheck.outputs`; a missing, extra, empty or mislabelled key, unreadable outputs, or a result other than `success` is red. The `validate` job no longer needs `actions: read` or a token. Why: a downstream consumer on GitHub Enterprise got HTTP 401 from the jobs listing with the job token although every shard had passed, so the required check could never go green; no «API failed → pass» fallback was added. `scripts/test_ci_validate_shard_count_lanes.sh` (not in the npm package) runs the step against fixtures built for the workflow's own shard count and reads the workflow as YAML to check the wiring (22 lanes; it needs PyYAML, which CI installs) (#1130)
23
+
24
+ ### Docs
25
+ - `knowledge/shared/plugin-catalog/recommended_plugins.md` (shipped) category 0.5 is re-enumerated from the live `claude-plugins-official` directory: 43 plugins (7 new, none removed), replacing a 36-plugin snapshot. Each row gains the plugin's own description and an «already covered / FH overlap» column, plus two notes: every enabled plugin also loads into headless `claude -p` runs (live-eval reports differing sets as `INVALID-COMPARISON`, #1121), so enable plugins only where clearly used; and the LSP plugins need their language server installed separately (#1122)
26
+ - `docs/USER_GUIDE.md` §4 (shipped) opens with a table comparing one Claude Code session working in sequence, one session plus subagents or worktrees, and FH, quoting two Anthropic lines with their source. It adds how work sessions stack under a supervising governor, how to ask for a close-time sweep, and an opt-in lease block for reversible maintenance on your own machine (no FH rule reads it). `AGENTS.md` points to it (#1116)
27
+
28
+ ### [3.43.0] — 2026-11-15
29
+
30
+ Minor by the version policy: a new shipped tool and lane for live-eval (#1099), a new shipped lane for `meta-prompt-builder` (#1103), and new judged procedures in shipped skills and rules. Nothing here makes an existing commit or publish gate refuse more by default, so no `BREAKING (gate)` line applies. Two checks are stricter, and neither is a consumer gate: the live-eval report can now exit 2 with `INVALID-COMPARISON` (#1099), and the checkout-only fixture-guard ratchet counts more git calls (#1097). The one new refusal path in a shipped gate script is opt-in: `remote_marker_gate.sh` reads PR bodies over the API only when `RMG_PR_LOOKUP=1` is set, and a failed lookup then exits 10 (#1105). If you run the 3.42.0 package's `test_fixture_guard_coverage_lanes.sh` directly, it no longer fails on the checkout floor (#1097). Items marked «not in the npm package» are in the repository checkout only.
31
+
32
+ ### Added
33
+ - `scripts/live_eval_trace.py` and `scripts/test_live_eval_trace_lanes.sh` (shipped). `probe_live_eval.sh` now records each arm's event stream by default (`sim_isolated_run.sh --trace`; `FH_LIVE_TRACE=0` restores text-only runs). A probe may carry `behave:` (`read=<re>` / `first_read=<re>`), scored from successful top-level tool calls rather than the reply text. A PASS with no trace is marked `MENTION-ONLY` in its row, and the report header counts those rows. Arms that saw different init tool/MCP lists, or an arm with no init, make the run `INVALID-COMPARISON`: no pass rate, and the run exits 2 (as `UNCALIBRATED` already did). This is a report verdict, not a commit gate, but a nightly run can now exit 2 where it used to print a pass rate. Four of the 12 live probes now check a file read; the other eight stay text-scored, by name. `ablation_calibrate.sh` (not in the npm package) passes `--strict-mcp-config` in all three arms (#1099).
34
+ - `meta-prompt-builder` Step 3 item 4, a restate check: before dispatch, a separate context-free reader restates each draft's GOAL / DONE / CONSTRAINTS and marks each RESTATABLE or GUESS. A GUESS becomes `[WARN: brief not restatable — <field>]`; restating your own draft does not count, and no reader means `NOT RUN`, not a pass. New lane `scripts/test_meta_prompt_restate_lanes.sh` (shipped) checks the record shape (#1103).
35
+ - `pr_merge_verified.sh` prints one line before the merge asking which path the defect travels and whether the `--rerun` lane's control was red on the unfixed target via that path. It checks nothing, blocks nothing and does not change the exit code. It stays quiet when every changed file is a doc or a lane (#1106).
36
+ - `session_close_check.sh` prints a record-only `ⓘ ⑤-done-anchor` line listing today's «완료» lines in `fh_completed_<date>.md` that name no commit, PR, run id, path or URL. The close check's exit code does not change. `claude_md_full_reference.md §Session Wrap-up` gains a paragraph: a «완료» line names its world state and what is still unresolved (#1100).
37
+ - `scripts/remote_marker_gate.sh`: with `RMG_PR_LOOKUP=1` and `RMG_REPO=<owner/name>`, a run with no PR body file asks GitHub for the PRs that contain the commit and appends the bodies of those whose head is this repo and branch. A failed or unreadable lookup exits 10, never «no PR». Without `RMG_PR_LOOKUP` the script behaves as before. This repo's `validate.yml` sets it on push runs, so a `claude/*` PR whose marker is only in its PR body no longer goes red on push while green on pull_request at the same HEAD (#1105).
38
+ - `scripts/ablation_verdict.py` (not in the npm package): renders an ablation null result as `NOT-DETECTED@N=<n>` with the minimum detectable drop at that N, plus `DETECTED`, `INSTRUMENT-UNCONFIRMED` and `INPUT-ERROR`. The self-dev loop's ablation steps now use it instead of a builder-written «no loss». What the loop may merge does not change (#1096).
39
+ - `scripts/builder_card_files_check.py` (not in the npm package): checks a builder Context Card's `files:` block (`editable` · `required` · `inspect-only` · `protected`) against the builder tree's changes. Exit 0 `CLEAN`, 1 `VIOLATION`, 2 `HARNESS-ERROR`. Nothing calls it yet except its lanes. `dispatch_conditional_prohibition.md` gains a bullet on what goes in the block and who runs the check (#1111).
40
+
41
+ ### Changed
42
+ - `measurement-integrity-checklist.md §Measured-Loop`: the runs that chose a candidate do not count toward promoting it, as a three-sample table (choosing · promoting · reporting). `edit-manifest` gains a fresh-sample guard (only events dated after the entry count, the selection evidence never counts, a `redefine` is a new version), and `harvest-loop` 6-b keeps an approved addition provisional until later events decide. `probe_scope_check.sh` and the ablation log (not in the npm package) carry the same rule (#1112).
43
+ - `dispatch_conditional_prohibition.md` and `.claude/rules/fh_4axis_gate.md`: a Context Card or root brief is restated by a fresh reader before it is sent, and a `soul:` line before design; the result goes inside the `soul-check:` grounds. No new marker field and no hook check (#1113).
44
+ - `fh_module_contract.md §2d`: before building a module whose purpose is accuracy, measure the bare model on the real path; at the ceiling, record `NOT-DETECTED@N` and do not build. Modules whose value is not accuracy are out of scope (#1109).
45
+ - `ko-tech-writer` S30 now lists declarative passives (`~된 적`, `~된 채`) and asks for `[확인 필요: …]` instead of inventing an actor; S31 says an English parenthetical is not a gloss (#1095).
46
+
47
+ ### Fixed
48
+ - `test_fixture_guard_coverage_lanes.sh` run inside an installed package (no `.git`) skips its live case by name and prints `1 skipped (not a pass)`; before, it failed on the checkout floor (3.42.0 package: 9 passed, 1 failed). Git captured into a variable now counts as a git reference, and a guard line inside a heredoc body no longer counts as a guard. That makes the ratchet stricter: a lane it passed before can now fail it, and the script names one known over-block that fails closed. At release the live scan is green in the checkout (#1097).
49
+ - `capability_registry_check.sh --self-test` no longer flakes under parallel load: two substring checks used `printf | grep -q` under `pipefail`, which returned 141 on SIGPIPE. No assertion was loosened (#1097).
50
+ - `test_mutation_probe_lanes.sh` exits 0 on macOS: lane N6 counts processes with `ps` when `/proc` is absent, and S7-5 (Linux subreaper) prints `NOT-APPLICABLE on Darwin` and is not counted as passed. On Linux a missing `/proc` or `setsid` is still red (#1101).
51
+
52
+ ### Docs
53
+ - `docs/HOW_FH_DIFFERS.md` (Korean) and `docs/HOW_FH_DIFFERS.en.md`: how FH differs from the common idea of a harness; a pointer line in each README (#1102).
54
+ - `docs/USER_GUIDE.md §4`: choosing and starting an intensive or a supervising governor. The session-ledger scripts and `governor_landing_check.py` it names are clone-only (not in the npm package). `AGENTS.md §Governor Operation` points to it (#1107).
55
+ - `docs/model_tier_expectations.md`: Opus 5.5 rows with the vendor's effort guidance and its source, the role verdict `UNMEASURED`, and a refresh rule for new models (#1114).
56
+ - 3.42.0 notes reworded from the release review (#1098); the subagent invocation log gains the 2026-11-14 dispatches (#1104).
57
+
5
58
  ### [3.42.0] — 2026-11-14
6
59
 
7
60
  Minor by the version policy: a new shipped ratchet lane (#1091) and new judged checks in the `ko-tech-writer` skill (#1092). Nothing here makes an existing gate refuse more, so no `BREAKING (gate)` line applies. If you run 3.41.0 from an npm install and have a companion store configured as a git repo, you have been seeing a `LANE-TRIPWIRE HARNESS-ERROR … is not a readable git repo` line at every session start; 3.42.0 removes it (#1093). The new ratchet lane is checkout-only: `selfcheck.sh` skips it in an installed package, and running it directly there fails by design.
8
61
 
9
62
  ### Added
10
- - `scripts/test_fixture_guard_coverage_lanes.sh` (shipped): a ratchet lane. A `scripts/test_*.sh` or `scripts/*_lanes.sh` that calls git must source `fixture_guard_lib.sh` before its first git call. It is a checkout-only suite: `selfcheck.sh` skips it in an installed package, which ships fewer lanes (70 against a floor of 80). Run directly inside the package, its live case fails on that floor while its nine planted calibration cases pass (#1091).
63
+ - `scripts/test_fixture_guard_coverage_lanes.sh` (shipped): a ratchet lane: it fails as soon as any git-calling lane lacks the guard, so coverage cannot slip back. A `scripts/test_*.sh` or `scripts/*_lanes.sh` that calls git must source `fixture_guard_lib.sh` before its first git call. It is a checkout-only suite: `selfcheck.sh` skips it in an installed package, which ships fewer lanes: the live case counts the git-calling lanes it scans (86 in the checkout at release, 70 in the 3.42.0 package) against a floor of 80. Run directly inside the package, its live case fails on that floor while its nine planted calibration cases pass (#1091).
11
64
  - `ko-tech-writer` skill: five new judged checks S30–S34 (agentless passive, first-defined concept in quotes with a gloss, introduce a cited study before its numbers, progress statements that go stale before publication, colloquial register), a second example pair for S17, and a Step 4 check of citation descriptions against the linked abstract and a later-finalized sibling (#1092).
12
65
 
13
66
  ### Fixed
14
- - 78 test lanes now source `fixture_guard_lib.sh` before any git call, so running one directly from a shell with an exported `GIT_DIR` or `GIT_INDEX_FILE` no longer writes into, or reads from, the exported repo. This closes the «not yet covered» gap noted under 3.41.0 (#1091).
67
+ - 78 test lanes now source `fixture_guard_lib.sh` before their first git call; at release the live scan found all 86 git-calling lanes in the checkout guarded. So running one directly from a shell with an exported `GIT_DIR` or `GIT_INDEX_FILE` no longer writes into, or reads from, the exported repo. This holds for the git calls the line scan sees; git reached through a variable and a guard line inside a heredoc were not seen by the 3.42.0 scan. This closes the «not yet covered» gap noted under 3.41.0 (#1091).
15
68
  - Session start no longer runs the lane-identity tripwire when the FH folder is not a git repository. Before, an npm-installed copy (not a git repo) with a configured git companion store printed `LANE-TRIPWIRE HARNESS-ERROR: … is not a readable git repo` at every session start (measured on the published 3.41.0 package). Called directly, `lane_identity_tripwire.sh` still exits 2 on a non-repo, and `--strict` is unchanged (#1093).
16
69
 
17
70
  ### Docs
@@ -50,6 +50,38 @@ single-session even when sidecars are available.
50
50
 
51
51
  ## Step 2 — Sidecar discovery (mechanical, the anti-power-waste core)
52
52
 
53
+ 🟥 **A cloud agent CLI with tools enabled must not run on a machine where company repositories are
54
+ readable.** That covers `agy` in every mode (`--mode plan` included) and any similar CLI that runs its
55
+ own shell or file tools: what those tools print goes to the cloud model. Measured 2026-11-16: given an
56
+ empty temp directory as cwd, `agy -p --mode plan` searched the whole filesystem and the home directory,
57
+ read the run's answer key in 45 of 83 conversations, and sent file names from a company repository on
58
+ the same machine to the model. **Allowed instead**: a tool-less API call (prompt and excerpt only, no
59
+ tools offered), or the CLI inside a container or a separate OS user that can see only the frozen inputs.
60
+ **`--sandbox` is not isolation**: measured 2026-11-16 with canary files, `agy -p --mode plan --sandbox`
61
+ read files it was pointed at in its cwd, in another temp folder and in the home directory. FH's scripts
62
+ start agy only through `scripts/agy_launch_guard.sh`, which refuses (exit 3, `AGY-REFUSED`) unless
63
+ `FH_AGY_ISOLATION=container` or `FH_AGY_ISOLATION=os-user`. The marker is self-declared — the guard checks
64
+ that you said it, not that it is true — so set it only inside a container or OS user where a canary check
65
+ has confirmed it (canary files outside the frozen inputs, agy asked to read those exact paths, every read
66
+ fails). Being
67
+ discovered below makes agy a *candidate*, not a recruit: on the host, without the marker, it is not
68
+ recruitable. Lanes: `scripts/test_agy_launch_guard_lanes.sh`.
69
+
70
+ **The route FH ships for agy: a separate OS user on another machine** — `scripts/agy_remote_run.sh` (the `container` / `os-user` markers remain for an isolated environment you built yourself, and the guard cannot check those).
71
+ Set `FH_AGY_BIN=<repo>/scripts/agy_remote_run.sh` and `FH_AGY_ISOLATION=remote-os-user` (the guard honours
72
+ that value only for this runner). Configuration is environment-only (`FH_AGY_REMOTE` = ssh target,
73
+ `FH_AGY_REMOTE_DENY` = `;`-separated paths that user must not read). First run
74
+ `agy_remote_run.sh --canary` — no agy, a plain remote shell tries every deny path (all must be refused)
75
+ and a positive file (must be readable) and writes a local receipt. Runs are refused without a PASS
76
+ receipt under 7 days old for the same settings, and a route that is down is a refusal (exit 4), never a
77
+ local agy. The receipt is the record of that measurement, not proof of isolation. **Name what the remote
78
+ user can still read**: on the operator's machine measured 2026-11-16, the remote user cannot read the
79
+ admin profile, the shared Public folder, the admin WSL home or the two data-drive roots, but still lists
80
+ or opens 8 sub-items the operator accepted — game folders, the two recycle bins, an antivirus decoy
81
+ folder and three device-information files — because those carry their own explicit allow entries that an
82
+ inherited deny does not override. Lanes: `scripts/test_agy_remote_run_lanes.sh` (fake ssh/scp; the
83
+ PowerShell side was run for real once).
84
+
53
85
  Build the available panel at run time; absent tools **and unreachable endpoints** drop off silently:
54
86
  ```bash
55
87
  # Sidecar-callable CLIs only. **Scope discipline**: the probe list is NOT "every agent CLI that exists".
@@ -154,11 +186,23 @@ diversity vs the orchestrator** (orchestrator = Claude/opus → recruit GPT or G
154
186
  > does not exist until the process has exited.
155
187
 
156
188
  ```bash
157
- printf '%s' "$prompt" | bash scripts/sidecar_wait.sh out.txt 900 -- codex exec -m gpt-5.5 -
189
+ printf '%s' "$prompt" | bash scripts/sidecar_wait.sh out.txt 900 -- bash scripts/codex_launch_guard.sh codex exec -
158
190
  # → SIDECAR_VERDICT=COMPLETE exit=0 bytes=48489 (read out.txt)
159
191
  # → SIDECAR_VERDICT=TIMEOUT waited=900s bytes=0 (still alive — NOT a result)
160
192
  # → SIDECAR_VERDICT=EMPTY exit=0 (the only state that means "it said nothing")
193
+ # → SIDECAR_VERDICT=HARNESS-ERROR exit=1 reason=model-not-available (exit 3 — nothing was reviewed)
161
194
  ```
195
+ No `-m` pin by default: the CLI default answers, while a pinned model can be retired under you —
196
+ on 2026-11-16 `-m gpt-5.5` and `-m gpt-5` returned HTTP 400 «not supported when using Codex with a
197
+ ChatGPT account» (rc 1). Pin only a model `sidecar_calibrate.sh` has just shown answering.
198
+ 🟥 **Send codex only public diffs.** Its `--sandbox read-only` limits writes, not reads: measured
199
+ 2026-11-16 with canary files, it read paths in its cwd, in another temp folder and in the home
200
+ directory. A codex arm on a machine that holds company checkouts must never be given company
201
+ material, and the sandbox flag is not a reason to relax that. FH starts codex verifier arms through
202
+ `scripts/codex_launch_guard.sh`, which refuses (exit 3, `HARNESS-ERROR: CODEX-REFUSED`) when the prompt, an
203
+ argument or the working folder names a root in the operator's company-repo list (`FH_COMPANY_ROOTS` or the
204
+ gitignored `.claude/rules/.company-roots`); with no list it runs and says «not checked». It is a string check
205
+ on paths, not isolation: a relative path or pasted file content without its path is not seen.
162
206
 
163
207
  The runner **refuses to emit a verdict while the process is alive**, so "the sidecar returned
164
208
  nothing" becomes unsayable until it has actually exited. Grep the typed `SIDECAR_VERDICT=` line;
@@ -171,6 +171,16 @@ Then score `match_score`: **1.0** = evidence clearly confirms the prediction ·
171
171
  > (proposal lists, curator decisions) as verification evidence. Evidence sources are limited
172
172
  > to primary signals — raw utterance logs, invocation counts, git history, friction signals —
173
173
  > that exist independently of any harvest-loop run.
174
+ >
175
+ > **Fresh-sample guard (2026-11-15, FH-2)**: evidence counts only if the **underlying events** are
176
+ > dated after the entry's `date` — a grep or a cumulative count run today still counts only events
177
+ > after that date — and are **not part of the selection evidence**: every observation used to choose
178
+ > or shape the edit (the prompting signal, utterance or session, trial fixes, candidate comparisons).
179
+ > That evidence chose the edit; scoring the edit on it again is selecting and promoting on one sample,
180
+ > and it confirms by construction. Name what was excluded in `verification_note`. If only selection
181
+ > or pre-edit evidence exists, the entry stays `pending` — not `verified`. A `redefine` (Step V3) is a
182
+ > new version: give it a new `date`, and the evidence that prompted the redefinition becomes selection
183
+ > evidence for it.
174
184
 
175
185
  **Step V3 — Apply Validation Gate**
176
186
 
@@ -205,7 +215,10 @@ Apply `verified_at`, `verification_note`, `gate_decision` to each resolved entry
205
215
 
206
216
  ## Validation Gate Logic
207
217
 
208
- Mirrors SkillOpt's validation gate (the held-out gate over its selection-split score):
218
+ Mirrors SkillOpt's validation gate (the held-out gate over its selection-split score). What FH
219
+ holds out is time: the prompting observation and everything dated before the edit are the selection
220
+ side; only later primary signals decide (Fresh-sample guard, Step V2). Without that guard the gate
221
+ would be held out in name only:
209
222
 
210
223
  ```
211
224
  IF verified evidence shows improvement:
@@ -187,7 +187,7 @@ FAIL routing: First FAIL → 1 re-synthesis allowed. FAIL after re-synthesis →
187
187
 
188
188
  **6-a Skill Usage Leaderboard**: Record skills called this session in `tracks/_meta/skill_usage.md`. Flag 4+ weeks no-call → deprecation candidate.
189
189
 
190
- **6-b Harness Evolution Cadence** (4-week cycle): Scan skills with `complexity_routing`. Aggregate escalation records from `fh_signal_*.md`. Valid conditions = keep; never activated in 4 weeks = removal candidate; pattern in fh_signal = addition candidate. No auto-modification — output candidates then require user approval.
190
+ **6-b Harness Evolution Cadence** (4-week cycle): Scan skills with `complexity_routing`. Aggregate escalation records from `fh_signal_*.md`. Valid conditions = keep; never activated in 4 weeks = removal candidate; pattern in fh_signal = addition candidate. No auto-modification — output candidates then require user approval. An approved addition is **provisional**: the `fh_signal` pattern that nominated it is selection evidence, so its edit-manifest entry is decided only by later events (edit-manifest §Fresh-sample guard).
191
191
 
192
192
  > **Detail**: See `SKILL_detail.md §Step6-Detail` — bash scripts for STALE detection, memory scan, skill usage leaderboard, evolution cadence aggregation — read when executing Step 6.
193
193
 
@@ -106,6 +106,22 @@ Before outputting the generated prompt draft, check against 3 criteria.
106
106
  2. **Done When measurability**: Is Done When a measurable event in the M/S/R framework?
107
107
  3. **Context alignment**: Does the Context match the "target" scope defined in the agent's SKILL.md?
108
108
 
109
+ 4. **Restate check (cold reader)** — the procedure for the judged Done-When row below («read one
110
+ draft cold»). Hand **each** draft — its text only, no conversation, no repo — to a separate reader
111
+ (a fresh subagent, Sonnet or Haiku, or a different model family) and ask it to restate **GOAL**
112
+ (what is true when finished) · **DONE** (the observable check) · **CONSTRAINTS** (what not to
113
+ touch), marking each `RESTATABLE` or `GUESS`, and to list the questions it would need answered.
114
+ Any `GUESS` field is `[WARN: brief not restatable — <field>]`; its questions are the fix list.
115
+ Do not tell the reader which draft you suspect. Restating your own draft yourself does not count —
116
+ the failure this answers is the author filling gaps from context the receiver never gets. Record
117
+ the reader's model and keep its raw reply next to the draft. Dispatching the reader follows the
118
+ usual dispatch consent; if no reader can be dispatched, mark the row `NOT RUN`, never `RESTATABLE`.
119
+ Measured once (2026-11-14, one reader per brief, briefs written by the same author — `UNCALIBRATED`):
120
+ 4 briefs made vague on purpose → 4/4 not restatable on all three fields; 4 briefs meant to be clear →
121
+ 3/4 restatable, the fourth flagged an undefined term the author then judged real. This shows the
122
+ check flags briefs made vague, not a false-alarm rate. Idea from the comprehension stage of
123
+ https://github.com/google/elephant-goldfish-model ; the procedure here is FH's own.
124
+
109
125
  Items that fail the check are marked `[WARN]` and the decision is delegated to the user.
110
126
 
111
127
  **Step 3 bias prevention**: When checking Goal achievability, Read the agent's SKILL.md to directly verify (directly compare allowed-tools list). Since generator and validator are the same LLM, self-validation without external reference repeats bias.
@@ -183,6 +199,9 @@ Version / baseline: the Step 3 checklist and the WARN-trigger table in
183
199
  ☐ [WARN] items are surfaced to the user with the reason, and
184
200
  the decision is the user's (mandatory-pass)
185
201
  ☐ Drafts are handed over for review, not dispatched (mandatory-pass)
202
+ ☐ Step 3 item 4 ran on every draft with a separate reader;
203
+ each GUESS field is a recorded [WARN] or was fixed and re-read (mandatory-pass — NOT RUN is
204
+ recorded, never counted as pass)
186
205
  ☐ The drafts are usable by the target agent as written (judged — adversarial pairing:
187
206
  generator and validator are the
188
207
  same model, so self-validation
@@ -173,14 +173,14 @@ Run multi-team? (a) Full panel (b) Claude sub-agents only (c) Skip to Area B
173
173
  | T1 Gemini | `gemini` pipe | beginner · main-player · challenger | `echo PROMPT \| gemini` |
174
174
  | T2 Copilot | `gh copilot suggest` | challenger · expert | `gh copilot suggest -t shell` |
175
175
  | T3 Ollama | `ollama run` | challenger | `ollama run llama3 PROMPT` |
176
- | T4 Codex | `npx @openai/codex exec` | challenger · edge-case-hunter | `echo PROMPT \| npx @openai/codex exec -m gpt-5 -` |
176
+ | T4 Codex | `npx @openai/codex exec` | challenger · edge-case-hunter | `echo PROMPT \| npx @openai/codex exec -` (no `-m`: `gpt-5` returns HTTP 400 as of 2026-11-16) |
177
177
 
178
178
  > **사이드카 대기는 기계로 한다** — `scripts/sidecar_wait.sh` 경유가 필수 형식이고, 타입 verdict
179
- > (`COMPLETE`/`TIMEOUT`/`EMPTY`)만 읽는다. **`EMPTY` 만이 "사이드카가 아무 말 안 했다"** 이다.
179
+ > (`COMPLETE`/`TIMEOUT`/`EMPTY`/`HARNESS-ERROR`)만 읽는다. `HARNESS-ERROR` = CLI 가 모델을 거절했다(아무것도 검토 안 됨). **`EMPTY` 만이 "사이드카가 아무 말 안 했다"** 이다.
180
180
  > 출력 파일을 눈으로 보고 판정하지 마라 — 살아있는 프로세스와 죽은 프로세스가 같은 0바이트를
181
181
  > 낸다(2026-07-29 실측: 1초/30초 만에 읽고 정상 동작 중인 사이드카 2종을 '실패'로 기록,
182
182
  > 실제로는 4건의 진짜 finding 이 나왔다). 정본 = `auto-decorrelation` SKILL.md §S-1b.
183
- | T5 agy | `agy -p` (gemini successor) | challenger · beginner | `agy -p "PROMPT"` — argument form only (stdin pipe prints help); timebox+retry hard rule (intermittent hang class); -p auto-approves tools → trusted artifacts only |
183
+ | T5 agy | `agy -p` (gemini successor) | challenger · beginner | `agy -p "PROMPT"` — argument form only (stdin pipe prints help); timebox+retry hard rule (intermittent hang class); -p auto-approves tools → trusted artifacts only; start it only through `scripts/agy_launch_guard.sh` (refuses unless `FH_AGY_ISOLATION=container\|os-user` — never on a host where company repos are readable, auto-decorrelation §Step 2) |
184
184
 
185
185
  ### CLI detection bash
186
186
 
@@ -300,7 +300,7 @@ Default team-persona assignments:
300
300
  | **T4 Codex** | `npx @openai/codex exec` | devil · edge-case-hunter |
301
301
 
302
302
  > **사이드카 대기는 기계로 한다** — `scripts/sidecar_wait.sh` 경유가 필수 형식이고, 타입 verdict
303
- > (`COMPLETE`/`TIMEOUT`/`EMPTY`)만 읽는다. **`EMPTY` 만이 "사이드카가 아무 말 안 했다"** 이다.
303
+ > (`COMPLETE`/`TIMEOUT`/`EMPTY`/`HARNESS-ERROR`)만 읽는다. `HARNESS-ERROR` = CLI 가 모델을 거절했다(아무것도 검토 안 됨). **`EMPTY` 만이 "사이드카가 아무 말 안 했다"** 이다.
304
304
  > 출력 파일을 눈으로 보고 판정하지 마라 — 살아있는 프로세스와 죽은 프로세스가 같은 0바이트를
305
305
  > 낸다(2026-07-29 실측: 1초/30초 만에 읽고 정상 동작 중인 사이드카 2종을 '실패'로 기록,
306
306
  > 실제로는 4건의 진짜 finding 이 나왔다). 정본 = `auto-decorrelation` SKILL.md §S-1b.
@@ -363,7 +363,10 @@ fi
363
363
  # ── T5: agy (Antigravity) — gemini successor ──────────────
364
364
  # Constraints: argument form only (`agy -p "PROMPT"`); timebox+retry is a hard rule
365
365
  # (intermittent hang class, ~50% observed 2026-06-11); -p auto-approves tool execution,
366
- # so feed only trusted artifacts — never untrusted external content. Serial by design
366
+ # so feed only trusted artifacts — never untrusted external content. 🟥 Its tools also READ the
367
+ # machine and send what they print to the cloud model: start it only through
368
+ # scripts/agy_launch_guard.sh, which refuses unless FH_AGY_ISOLATION=container|os-user — never on a
369
+ # host where company repositories are readable (auto-decorrelation §Step 2). Serial by design
367
370
  # (worst case ~6 min if the hang class fires on every call) — do NOT copy the T1-T4
368
371
  # `VAR=$(...) &` pattern: it assigns inside a background subshell.
369
372
  if [[ " ${TEAMS[*]} " =~ " agy " ]]; then
@@ -372,8 +375,9 @@ if [[ " ${TEAMS[*]} " =~ " agy " ]]; then
372
375
  # pipe can outlive it (same gap as `timeout` without process-group kill).
373
376
  tb() { perl -e 'alarm shift; exec @ARGV' "$@"; }
374
377
  agy_call() { # $1=prompt — 60s timebox, 1 retry on empty
375
- local out; out=$(tb 60 agy -p "$1" 2>/dev/null)
376
- [ -z "$out" ] && out=$(tb 60 agy -p "$1" 2>/dev/null)
378
+ local g="${FH_DIR:-.}/scripts/agy_launch_guard.sh" out
379
+ out=$(tb 60 bash "$g" agy -p "$1" 2>/dev/null)
380
+ [ -z "$out" ] && out=$(tb 60 bash "$g" agy -p "$1" 2>/dev/null)
377
381
  printf '%s' "$out"
378
382
  }
379
383
  A_DEVIL=$(agy_call "[Devil] Adversarial reviewer, no prior context.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.42.0",
3
+ "version": "3.44.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.42.0",
3
+ "version": "3.44.0",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env bash
2
+ # agy_launch_guard.sh — every FH launch of agy (the Antigravity CLI) goes through here.
3
+ #
4
+ # WHY. agy runs its own tools (shell commands, file reads) even in `--mode plan`, and what those tools
5
+ # print goes into the conversation the cloud model reads. Measured 2026-11-16 on a review run with an
6
+ # empty temp directory as cwd: agy ran a filesystem-wide `find` and a recursive `grep` over the home
7
+ # directory, read the run's answer key in 45 of 83 conversations, and the search output carried file
8
+ # names from a company repository checked out on the same machine. Claude-side deny rules do not bind
9
+ # agy. 🟥 `--sandbox` is NOT isolation: measured 2026-11-16 (canary test), `agy -p --mode plan --sandbox`
10
+ # from a fresh temp cwd read three canary files it was pointed at — one in cwd, one in another temp
11
+ # folder, one in the home directory. It restricts the terminal at most; file reads go through.
12
+ #
13
+ # RULE. A cloud agent CLI with tools enabled must not run on a machine where company repositories are
14
+ # readable. Allowed instead: a tool-less API call (that does not use agy, so it does not come here), or
15
+ # agy inside a container or a separate OS user that can see only the frozen inputs of the task.
16
+ #
17
+ # MARKER. FH_AGY_ISOLATION=container or FH_AGY_ISOLATION=os-user, or FH_AGY_ISOLATION=remote-os-user
18
+ # (honoured only when the target is scripts/agy_remote_run.sh beside this guard). Unset, empty, or any other value
19
+ # (including 1 / yes / true) is refused. 🟥 The marker is self-declared: this script checks that you
20
+ # said it, not that it is true — it cannot see a container or an OS user. Set it only inside a container
21
+ # or OS user where a canary check has confirmed it: place a canary file outside the frozen inputs (in
22
+ # the host home directory and in another temp folder), ask agy to read those exact paths, and set the
23
+ # marker only if every read fails. Never on the host that holds company repositories, and never because
24
+ # of `--sandbox`.
25
+ #
26
+ # Usage: bash scripts/agy_launch_guard.sh <agy-binary> [agy arguments...]
27
+ # Exit: 3 = refused, agy was not started · 2 = usage · otherwise agy's own exit code
28
+ set -uo pipefail
29
+ [ $# -ge 1 ] || { echo "usage: agy_launch_guard.sh <agy-binary> [agy arguments...]" >&2; exit 2; }
30
+ case "${FH_AGY_ISOLATION-}" in
31
+ container|os-user) exec "$@" ;;
32
+ remote-os-user)
33
+ # Honoured for ONE route only: the target must be FH's remote runner beside this guard, which runs
34
+ # agy as a separate OS user on another machine and itself refuses without a fresh canary receipt.
35
+ _here="$(cd "$(dirname "$0")" && pwd -P)"
36
+ _tgt_dir="$(cd "$(dirname "$1")" 2>/dev/null && pwd -P)"
37
+ if [ "$_tgt_dir/$(basename "$1")" = "$_here/agy_remote_run.sh" ] && [ -f "$_here/agy_remote_run.sh" ]; then
38
+ exec bash "$_here/agy_remote_run.sh" "${@:2}"
39
+ fi
40
+ echo "AGY-REFUSED: FH_AGY_ISOLATION=remote-os-user is honoured only when the target is $_here/agy_remote_run.sh (got: $1)." >&2
41
+ exit 3 ;;
42
+ esac
43
+ {
44
+ echo "AGY-REFUSED: agy was not started (FH_AGY_ISOLATION=${FH_AGY_ISOLATION-<unset>})."
45
+ echo " agy runs shell and file tools and sends their output to a cloud model, so it must not run where"
46
+ echo " company repositories are readable. Run it in a container or a separate OS user that sees only the"
47
+ echo " frozen inputs, then set FH_AGY_ISOLATION=container|os-user there — or use a tool-less API call."
48
+ } >&2
49
+ exit 3