Skip to content

v3.40.0 — ### [3.40.0] — 2026-11-13

Choose a tag to compare

@github-actions github-actions released this 13 Nov 06:24
· 157 commits to main since this release
ed150bb

New scripts and lanes ship, and three checks that were already in the package now refuse more, so this is a minor by the version policy. Three BREAKING (gate) lines are below; each applies only if you call the named script yourself. The self-dev loop and its candidate auto-merge change (#1079, #1071) are not in the npm package: scripts/selfdev_loop.sh, scripts/selfdev_queue.py and its launchd plist stay in the hub clone. The new session-ledger scripts (#1076) are also not shipped. The new read-only reports (catch_tally.py, claim_precision_report.py) and the new live-eval and sim-runner options run only when you invoke them; no hook or setting is added or wired by default.

BREAKING (gate): scripts/pr_merge_verified.sh with --lease '<label>' (any label that does not start with «operator») now runs scripts/selfdev_merge_tier.sh on the PR's recorded head before merging and exits 7, merging nothing, unless the tier says TIER=AUTO. The tier's allow-list is FH's own doc/skill/test paths; a change to any other file, a skill edit that touches verdict or scoring lines, an edited test lane, or a change over 300 lines is HOLD. Before, any non-empty label merged. If you pass --lease for a standing approval on a repo that is not this hub, either drop the flag (a merge with no --lease still runs, and now prints a lease=NONE warning first) or pass the per-PR answer as --lease 'operator: «<their words>» <date>' (#1068, #1064, #1065).

BREAKING (gate): scripts/post_squash_verify.sh --precheck (and so pr_merge_verified.sh) now refuses a --rerun command that prints nothing when it passes, with rc 3 before the merge — for example grep -q …, … >/dev/null, or python3 -c with no print. Before, such a command was accepted, merged, and then ended verify-incomplete (rc 4) because of the silence guard. Add && echo '<what passed>' to the command. The rc 4 guard after the merge is unchanged for shapes the static read cannot see (#1061).

BREAKING (gate): scripts/fh_module_check.py check now BLOCKs (rc 1) a module whose shipped Python imports a non-standard-library package without a guard, and reports UNMEASURED (rc 2) for a shipped .py it cannot parse. A guarded import (try: … except ImportError) is a NOTE, not a block. The three modules in this package pass. If you author your own modules, make the import stdlib-only or guard it and exit 2 naming the missing module (#1067).

Added

  • Session close counts what the methods caught. Wrap-up ⑤(a) now asks for a ## 잡은 것 table in the day's completed-work file (defect · method that caught it · who missed it · evidence), and scripts/catch_tally.py counts those tables over a date range. A day with no section is reported as not recorded, not as zero. Report only; it never blocks. It runs when you run it or when the wrap-up text tells the agent to (#1058).
  • scripts/claim_precision_report.py: a read-only counter over existing request-checklist result sheets. It prints how many rows were marked DONE and how many a later sheet of the same session shows as reopened or not re-judged. No ratio, no pass/fail; sessions with one sheet are listed as not measured. Nothing calls it (#1078).
  • scripts/session_close_check.sh gains a report-only ①-r line that lists PRs whose last merge receipt is not verified, from the last FH_RECEIPT_WINDOW_DAYS days (default 7); older ones are counted on their own line. The close check's exit code does not change (#1059).
  • templates/harness_birth_core.md and a route to it: when you ask for a harness for a new or empty project, the routing rows in CLAUDE.md and onboarding_acceleration_autopilot.md tell the agent to read it before writing the first file. It names the five parts a new harness carries (purpose, when unsure, calibration without a script, irreversible edges, typed verdict). The shipped CLAUDE.md text changes, so an agent that loads it routes differently on that request; no script runs (#1073).
  • scripts/sim_isolated_run.sh takes four opt-in flags for a consumer-like arm: --setting-sources (must include local), --settings, --permission-mode (only default, acceptEdits, plan; bypassPermissions is refused) and --add-wrapper-dir. With none given the arguments passed to claude are byte-identical to before (#1072).
  • live-eval reports gain a «State fingerprint (record only — not scored)» block appended after the verdict, one line per rep: changed-path count, unhashed count and a short hash of what the arm left in its clone (MISSING when the runner wrote no treediff). No verdict row moves (#1077).
  • live-eval episodes record wall seconds. The runner writes wall_s to meta.tsv and the report's Budget cell prints wall_s=<min>..<max> and tokens_used=UNMEASURED; an episode with no readable clock is counted as unmeasured, not 0. Verdicts are unchanged (#1081).
  • Module manifests may now rely on the runtime-dependency and question-shaped-description rules (fh_module_contract.md §2b and §2c). scripts/generated_harness_check.py adds an info-level W8 for a skill description with no question example; info never changes a verdict (#1067).
  • scripts/agent_tools_pin.txt and a lane that pin each shipped agent's tools: restriction, so widening one shows as a diff. Test and package-list change only; the agent files are unchanged (#1080).
  • Hub-clone only, not in the npm package: a shared session ledger pilot (scripts/session_ledger_write.sh, session_ledger_read.py) where child sessions append typed lines and the root session reads them (#1076).

Changed

  • scripts/selfdev_merge_tier.sh (shipped): a SKILL.md or SKILL_detail.md edit is now HOLD when a changed line (added or removed) carries verdict or scoring words (PASS, FAIL, HOLD, verdict, threshold, rubric, …), and HOLD when the diff cannot be read in full. Before, every skill-file edit was AUTO by path. This only affects a caller of the tier script; see the first BREAKING (gate) line (#1064).
  • Self-dev loop, hub clone only: a seed: candidate PR no longer waits for the operator by seed alone. It is eligible for the existing auto-merge only if it deletes no file, removes no more lines than it adds, names no ablation, carries a cross-family marker, and the path tier says AUTO; at most 2 auto-merges per run (SELFDEV_MAX_AUTO_MERGES, lower only). The loop is not shipped, is installed by hand from a plist whose template ships SELFDEV_DRY_RUN=1 and SELFDEV_NO_MERGE=1, and SELFDEV_NO_MERGE set to anything other than 0 or empty turns merging off while still reporting eligible PRs (#1079). The builder is also told the run's watchdog limit, and commits left unpushed on an auto/selfdev-* branch are reported as STRANDED (#1071).
  • Lease record channel docs (lease_record_channel.md, dispatch_conditional_prohibition.md): a per-PR operator answer needs no lease line; only a standing grant does, and one received remotely counts as a one-time grant for that session until applied at the desk. lease_line_apply.sh (hub clone only) gets apply-all for queued drafts, and inside a worktree it defaults to the main checkout's lease file and draft folder. A dead internal path was removed from the doc (#1069, #1070, #1060).
  • scripts/session_checklist.py strips leading complete <system-reminder> blocks from a human entry before it becomes a checklist row, so a row keeps the operator's words; unclosed or mid-text tags are kept (#1059).
  • pr_merge_verified.sh prints a three-line advisory before the merge when no --lease is given (the receipt records lease=NONE); rc and merge are unchanged (#1065).
  • README (ja, zh): the evidence wording is brought up to the English README (#1075). The v1.0.3 paper snapshot's citations are pinned like v1.0 to v1.0.2 (#1056; not in the npm package). Sub-agent invocation log entries for 2026-11-08 and 2026-11-10 (#1059, #1075).

Fixed

  • live-eval: a rep whose runner meta.tsv has a nonzero rc is scored FAILED-TO-RUN, not FAIL. A usage-limit reply is non-empty text and used to be scored as a failed answer; reply text is never inspected, and a run with no meta.tsv scores as before (#1074).
  • live-eval probe G-TRIG-04 now accepts «weekly harvest» as well as harvest-loop. The old pattern missed 5 of 60 correct routes; the change widens what passes, and its remaining blind spot is named in the probe's unseen field (#1063).
  • Housekeeping, no consumer effect: .gitignore covers lease_line_apply.sh's CLAUDE.local.md backups (#1057; the file is not in the npm package).

— CHANGELOG: plugins/fh-meta/CHANGELOG.md · npm: @chrono-meta/fh-gate@3.40.0