Repository navigation
v3.47.0 — ### [3.47.0] — 2026-11-22
Minor by the version policy. fh-gate's review calls change behaviour: the default, goldfish and elephant review calls are read-only, and no review call loads the reviewed checkout's settings, hooks or instruction files (#1179, #1181, #1182, #1183). The opt-in /code-review call is still not read-only. The codex review no longer pins a model and the record names the model each pass used (#1186). The GitHub Action passes its inputs as data (#1176). There are new shipped lanes (D13–D17 in test_fh_gate_defaults_lanes.sh, L7 in test_action_yml_lanes.sh, two cases in templates/predelete_check.test.sh) and two judged procedure lines (#1180, #1185).
Two changes make a shipped gate refuse more by default; see their BREAKING (gate): entries:
- a codex review refuses (exit 10, nothing sent) when the user's codex config names a provider or base URL (#1183);
- every claude and codex review call now needs a backend CLI that knows the new flags, and fails closed (exit 10) on one that does not (#1179, #1181, #1183).
FH_REVIEWER=code-review currently always exits 10: headless /code-review does not return the structured object the gate needs (0 of 11 on claude 2.1.330). It stays opt-in and fails closed (#1186).
Items marked «not in the npm package» are in the repository checkout only.
Changed
- BREAKING (gate):
fh-gate(shipped), codex backend. Applies toFH_BACKEND=codex, and toautoandcrosswhen they pick codex.-
What changed: before any codex call,
fh-gatereads${CODEX_HOME:-~/.codex}/config.tomlas text and exits 10, with nothing sent, when one of these holds:- a line names
model_provider(other than"openai"),model_providers,openai_base_urlorchatgpt_base_url; - a line has a
\u,\Uor\xescape; - the file cannot be read, or its absence cannot be confirmed.
The message names the key and line, never the value.
- a line names
-
Why: codex review calls now drop the user config (
--ignore-user-config, see below), and that also drops any provider it names. Without this check, a review meant for a proxy or a company gateway would go to codex's default provider instead. Measured on codex 0.164.0: the provider config sent 3 of 3 reviews to the configured endpoint before, and the escaped-key form sent 8 requests a run; this change closed 3 of 3 with 0 requests. A plain config with a real login gave 4 of 4 SUCCESS. Measured with a file-backed ChatGPT login only; keyring and API-key logins are UNMEASURED. The rest of the user config (model, profiles, MCP servers, login storage) no longer applies to the review call either. -
What now blocks: a codex user config that names where requests go, uses one of those escapes, or cannot be read. The match is by text, so a profile table, a trailing comment or a value that merely contains one of those names closes too. In
crossmode the codex leg then fails, and the run is single-leg and says it is not decorrelated: a single leg's PASS or PENDING becomes ESCALATEcross-degradedunlessFH_GATE_CROSS_ALLOW_SINGLE=1. -
Remedy: use the claude backend, or run with a
CODEX_HOMEwhoseconfig.tomlnames no provider (#1183).
-
- BREAKING (gate):
fh-gate(shipped), every claude and codex review call.- What changed: the default call now passes the read-only flags, and every review call passes the new checkout flags (see below). claude needs
--tools,--strict-mcp-config,--disable-slash-commandsand--setting-sources; codex needs-s read-only,-cand--ignore-user-config. - What now blocks: a backend CLI too old for one of these flags fails the call, which fails closed (exit 10). In 3.46.0 the default call passed none of them, and the goldfish and elephant passes had only the tool flags and
-s read-only. Measured working on claude 2.1.330 and codex 0.164.0; the oldest working versions are UNMEASURED. - Remedy: update the backend CLI (#1179, #1181, #1183).
- What changed: the default call now passes the read-only flags, and every review call passes the new checkout flags (see below). claude needs
fh-gate(shipped), default review call: it gets the same read-only policy as the opt-in passes. On claude it runs with--tools Read,Glob,Grep --strict-mcp-config --disable-slash-commandsand the same allow and deny lists; on codex it runs with-s read-only. Both run at the repository root. Verdicts, exit codes, the prompt and outputs are unchanged. Before this, the call ran with whatever the backend CLI's settings allowed (#1179).fh-gate(shipped), all review calls: the checkout under review is treated as untrusted input (#1181, #1182, #1183, #1186).- claude gets
--setting-sources user. Measured on claude 2.1.330 with planted checkouts under/tmp: the checkout'sCLAUDE.md,CLAUDE.local.mdand.claude/rulestext did not reach the call (0 of 3; 3 of 3 without the flag), and a project SessionStart hook ran without the flag and not with it (one run each). - codex gets
-c project_doc_max_bytes=0and--ignore-user-config. Measured on codex 0.164.0: the checkout'sAGENTS.mdwas not sent, and when the user config marks the checkout trusted, its.codex/config.tomlMCP servers no longer start outside the sandbox (0 of 3; 3 of 3 before). The canary rule and two hook events in a trusted checkout did not apply either (0 of 3). Those canaries only. --bareis not used: it also drops OAuth and keychain login.
- claude gets
fh-gate(shipped), opt-inFH_REVIEWER=code-review: the call now loads none of the checkout's settings, hooks,CLAUDE.mdor.mcp.jsonservers (--setting-sources user), and its prompt comes after--, so claude reads it as a prompt. Before this, claude 2.1.330 read the prompt as the value of--disallowedToolsand the call never reached/code-review. It still exits 10 (see above). The call is still not read-only:/code-reviewneeds git's read commands (#1182, #1186).fh-gate(shipped), codex model: withFH_MODELunset, codex gets no-mand picks its own default. The old defaultgpt-5.5was refused for a ChatGPT login (HTTP 400). Measured:main2 of 2 exit 10, this change 2 of 2 SUCCESS, and codex pickedgpt-6.1-terra.FH_MODEL=<id>still passes-m <id>. To keep the old model, setFH_MODEL=gpt-5.5. The governance record'smodel:line now readscodex default (not pinned, resolved review <id>[, elephant <id>]). Each id is read from codex's own banner and is id-shaped orunknown. A parser that matchedgpt-5.5there sees a new string.fh-run.shandfh-goal.shstill default togpt-5.5; this is named here and not changed (#1186).- GitHub Action (
action.yml, not in the npm package):dry-run,version,files,levelandfail-onreach the run script throughenv:, and the script reads them as"$VAR". Before this, GitHub pasted them into the script as text, so a quote in a caller value (a file list built from PR data, say) became shell code. Input names, defaults, the exit-code mapping,fail-onand the outputs are unchanged. Behaviour change for callers: a caller whosefiles:value relied on the shell expanding it ($VARor$(…)inside the value) now gets the literal text. Compute the list in an earlier step and pass that step's output (#1176). templates/predelete_check.sh(shipped) ends with one question: is another session, worktree, live site or shared database or config using the target right now? SAFE means «merged», not «idle». Step 1 of the Destructive-Op Gate inclaude_md_full_reference.mdhas the same sentence. Exit codes and the SAFE/CHECK/REVIEW lines are unchanged (#1185)..claude/rules/fh_4axis_gate.mdandfh_4axis_gate_detail.md(shipped): a gate or lane repair takes at least one fail-before input from the change record (fix commit, issue or review finding) and names its source asinput-from=<…>(orinput-from=none(self-found)) on the firstcontrols:line. Record only: no new key and no hook check (#1180).
Added
-
test_fh_gate_defaults_lanes.sh(shipped) gains:- D13: the default call's flags, and that it runs from the repository root;
- D14: the
/code-reviewcall's--setting-sources userand--; - D15:
--ignore-user-configon every codex review call; - D16: the route guard's refusals and passes;
- D17: the unpinned codex model and the per-pass record.
test_fh_gate_absorb_lanes.sh,test_fh_gate_fusion_lanes.shandtest_fh_gate_regressions.shpinCODEX_HOME, so a runner whose codex config names a provider no longer turns them red (#1179, #1181, #1182, #1183, #1186). -
test_action_yml_lanes.sh(shipped; needs the repository'saction.yml) L7: no${{ }}of any form (bracket form included) insiderun:, and a run that imitates GitHub's substitution with a payload infiles(#1176). -
templates/predelete_check.test.sh(shipped): two cases for the closing question (#1185).
Docs
-
README.md,README.ko.md,README.ja.mdandREADME.zh.md(shipped), Door ①. Three things are added:- what a run costs: it sends the changed files to the logged-in backend and makes one review call there, up to two with
FH_BACKEND=crossand more with the opt-in layers;FH_DRY_RUN=1makes no call; - what it runs: the default review call can only read and loads nothing from the reviewed checkout;
FH_GATE_EXEC=onruns the repository's own lane scripts; - which exit codes fail a CI step: a plain step fails on every non-zero exit,
1PENDING included, while the Action passes PENDING by default.
The opt-in sentence says
/code-reviewis not read-only and currently always exits 10 (#1178, #1182, #1183, #1186). - what a run costs: it sends the changed files to the logged-in backend and makes one review call there, up to two with
-
From the release audit (outside reader, before the tag):
fh-gate --help(shipped) lists the two new causes of exit 10 and says that a plain CI step fails on 1 while the Action lets it pass;CHEATSHEET.md(shipped) says the/code-reviewopt-in currently always exits 10; each README says the execution layer's copy is not a sandbox. -
docs/codex-compat.md,fh_integration_contract.mdandagents_md_runtime_details.md(shipped): the codex model row and the record example match the unpinned default. Examples drop-m gpt-5.5(#1186). -
frontier-digestSKILL_detail.md(shipped): the HackerNews example encodes>as%3E. The raw form returned HTTP 400 and the encoded one HTTP 200. Every curl example carries--compressed, which saves size and fixes nothing (#1184). -
builtin_capability_map.md(shipped): instruction audits route to/doctor prompt-audit(Claude Code 2.1.283 or later), and coordinated threads to Projects (public beta). The map says what FH keeps on top of each (#1177).
— CHANGELOG: plugins/fh-meta/CHANGELOG.md · npm: @chrono-meta/fh-gate@3.47.0