Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(changelog): fix wave 15 entry

garrytan14a9b53e8d14
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a453c2ff8..cf6b72f7db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,183 @@ credits are retained; no result has been reassigned to another provider. Origina
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [0.60.177.0] - 2026-10-12
+
+**Fix wave 15: a managed brain can no longer be routed to the wrong writer or lose pages it imported, the pages that refused every write since an old import write again, and every wedge the wave reproduced has a named exit.** A missing or malformed persistence-mode row used to read as "unmanaged" in more than a hundred places, so an impossible empty read on CI sent a managed brain through the legacy writer; it now refuses with `storage_error` everywhere. A `--full` sync kept deleting pages imported from untracked working-tree files; it keeps them. A first or `--full` sync above the cursor bound finishes in slices instead of refusing. Some 80,000 pages whose stored frontmatter still carried the parser's reserved keys refused every write as `source_changed`; the comparison ignores those keys and a consented sweep cleans them. Conversation-facts extraction no longer lists a page twice and blocks the whole batch, `projections drain` no longer spins forever on one stale row, backups no longer fail on a stale socket, prefix-bound agents can `remember`, doctor stops echoing registration credentials, Haiku 5.5 long prompts are charged at the tier Anthropic bills, and Google contacts without an email get a page. Fifty-nine changes across seven areas; one additive migration (v239); no paid model call is added anywhere.
+
+### Itemized changes
+
+### Managed sync authority and data safety
+
+- **Persistence mode is read fail-closed (#6482.** Every reader of `persistence_brain.enabled` (writes, sync, connectors, activation and deactivation, maintenance, shared-skills setup, trust backfill, autopilot's automatic-sync gate) goes through one strict predicate in `src/core/persistence/managed-mode.ts`: exactly one row with a boolean `enabled` answers, anything else (no row, two rows, `enabled` not a boolean) refuses with `storage_error` (`detail: persistence_mode_unknown`, fix `gbrain sources writer status --probe --json`, verify `gbrain doctor --json`) and changes nothing. Only a well-formed `enabled: false` row selects the unmanaged path. `gbrain sources writer status --json` and the writer diagnostics report a malformed row as `mode: 'unknown'` with `mode_problem` instead of refusing, so the probe the fix names still works. A guard test keeps new raw reads out of `src/`. The issue stays open for the mechanism that wrote the bad row.
+- **A managed `gbrain sync --full` keeps pages imported from the working tree (#5459 adjacent).** The full tree walk judges a page that is absent from the Git tree by its stored import provenance after the working-tree pass: a page imported from an untracked working-tree file, or with unknown provenance, is kept while its file is still present (`working_tree_kept` in the result); a page imported from a Git blob still follows Git, and a tracked Git deletion is applied even when an untracked copy lingers. Pages are no longer soft-deleted by a `--full` walk they never belonged to.
+- **A sync above the cursor bound completes in slices (#6349.** A first sync, a `--full` sync or one commit whose entries exceed the 100,000-entry / 16 MiB cursor bound no longer refuses `request_too_large`: discovery is cut into path-ordered slices (every import slice, then bounded deletion slices) pinned at one target, each slice is checkpointed in `op_checkpoints` (`managed-sync-slice`, keyed by source, incarnation and cursor options) in the same transaction as its cursor, and `last_commit` moves only when the whole target settles. A scheduled sync takes one slice per run, `gbrain sync --drain` takes them all, and the CLI prints `[sync] sliced catch-up: committed the <phase> slice of <commit> through <path>`. One file whose manifest entry alone exceeds the byte bound still refuses by name with nothing written.
+- **Autopilot stops queueing syncs for a plain content directory (PR #6465).** One predicate, `automaticSyncSkip` in `src/core/sync-policy.ts`, decides for the freshness loop, the full-cycle fan-out, `gbrain sync --all` and the queued sync handler: a disabled source (`sync_disabled`), a pending activation (`activation_pending`) or a directory that is not a Git checkout (`sync_not_applicable`) is skipped with the reason stated once per source per process (`freshness_sync_skipped` / `fanout_sync_skipped` events), naming `gbrain import <dir> --source <id>`; a sync job an older daemon already queued completes as `{ skipped: true, reason: 'sync_not_applicable' }` instead of dying. Contributed by @mattverlaque. Supersedes #6465.
+- **The persistence consumer reserves its idle lane once (#6352 residual.** `acquireIdleLane` is single-flight: concurrent first callers (the probe and the publication) share one in-flight reservation, a caller that aborts while it is in flight falls back and leaves the lane tracked for the next caller, and `stop` releases a connection the moment it arrives. No second pool connection is reserved and none leaks past `stop`.
+- **A lane fault keeps its name through the cancel (#6402 residual.** When a parallel publish lane steps down after `lock_timeout` or `statement_timeout`, the released rows carry `blocked_reason: lane_<fault>`, the later knock-on cancel says "did not commit after <fault> on its lane group" instead of the generic predecessor text, and `gbrain sync status --json` reports the fault as `last_error.detail`. The verdict stays `retry`; the detail says the database, not the page, ended the group.
+- **The sync import drain states its pool (#6366.** `[sync] imports start: N file(s), concurrency C · pool max=<n> checked_out=<n> waiters=<n>` is printed once when the imports start and again in the stall watchdog's stop line, so the next hang report carries the connection evidence. PGLite, which has no pool, prints the line without the suffix.
+
+### Persistence identity, activation and frontmatter drift
+
+- **Pages whose stored frontmatter still carries `type`, `title`, `tags` or `slug` write again (#6454).** Older imports kept the parser's four reserved keys inside `pages.frontmatter`; a file can never carry them into the parsed object, so for those rows the canonical file and the database copy never matched and every coordinated write was refused `source_changed` (tens of thousands of pages on the reported brain). The file/database comparison (publication, `gbrain sources reconcile`, file repairs) now strips those four top-level keys on both sides, as the parser does; a real body, title or tag drift still refuses with the file and the row untouched. Doctor `stale_frontmatter_keys` counts the rows and names `gbrain repair frontmatter-keys --source <id>` (preview; the printed `--apply --expect <plan_hash>` strips them in coordinated batches of 1000 and advances each swept page's `knowledge_revision` once). Writes refused this way whose receipt is retained replay with `gbrain repair failed-writes --source <id>`.
+- **Published page files render the page's own columns (#6454).** A legacy row whose stored frontmatter also held a `type` or `title` that disagreed with the columns used to render the stored value, and stored `tags` rendered when the page had none; the next write of such a page renders the columns and drops the stale keys. Nested keys of the same names and the `slug:` stamp for underivable slugs are unchanged.
+- **A checkout whose directory birth time reads a few nanoseconds apart between processes no longer refuses every write (#6501).** The persisted physical-root stamp now matches the live directory when the two birth times are within 1 µs; token, brain, worktree, root, inode and device still have to match exactly, a damaged or zero stamp still refuses, and the in-process file target check, the staging identity and the transfer prepare/accept comparison stay exact. When the inode or birth time moved beyond that while everything else matches (a checkout restored or recreated at its recorded path), the `recovery_required` refusal carries detail `physical_root_directory_changed` and names the exit, `gbrain sources writer transfer prepare/accept <source> --self-transfer --confirm-relocated-root` (`writer status --json` prints it filled in). The drift this covers was reported on APFS and was not reproduced natively on APFS in this release's tests; the tolerance is sized to the reported numbers.
+- **Database-only brains activate managed persistence (#6449).** On a brain whose `sync.write_through` is `false`, a source with a checkout path but no canonical owner no longer refuses `gbrain sources writer activate` with `writer_registration_required`: `writer status` already reported it `database_only`, and activation now agrees, listing it under `database_only_sources` and leaving it unbound. Page writes to it stay database-only, `gbrain sync` on it refuses `owner_unavailable` naming the `writer claim` to run, and turning `sync.write_through` back on does not claim it, not even on PGLite (activation records the listed sources in `persistence.database_only_sources`; deactivation clears it): the next write refuses with `detail: unbound_source` and the claim, or publishes database-only under `persistence.unbound_write=database_only`. With `sync.write_through` on, the activation refusal now names `gbrain sources writer claim <id> --path <root> --dry-run --json` and the database-only alternative. Contributed by @uncfreak1255-code (diagnosis, #5737).
+- **Prefix-bound grants can `remember` (#5913).** `remember` is on the allow-list of write operations a slug-bound client may call: a `memory-writer` or `coding-agent` grant with `--bound-slug-prefixes` lists it, a save against an entity under the prefixes commits, and a save against an entity outside them, or with no entity (`memory/unattributed`), is refused by the slug fence with nothing saved. `replaces` naming a fact outside the prefixes answers exactly like an id that does not exist. `forget` and `forget_fact` stay off the list: a withdrawal reaches pages the fenced slug does not name. Existing bound grants keep their operation snapshot until `gbrain auth rescope`; doctor `grant_new_ops_available` points at it.
+- **Managed checkouts get a durability block that does not route around the owner (#5808).** The rules `gbrain sources harden` writes into `AGENTS.md`/`RESOLVER.md` told agents to run the commit-and-push helper after every write and to pull --rebase before writing; on a managed canonical worktree both bypass the persistence owner. `gbrain sources writer git-durability <source> --enable` (and `--pat-file`) now rewrites the block in place to a managed variant: page writes go through gbrain, files that are not pages are committed with plain git and ride the owner's next push, and the checkout is never pulled, rebased or reset. The rewrite is idempotent, touches nothing outside the markers, is reported as `agents` in the preview, and is left for you to commit. [Files that are not pages](docs/architecture/topologies.md#files-that-are-not-pages) documents the push route, and doctor `git_convergence` names it for a managed root.
+- **Renaming a page (#5915).** [Documented](docs/guides/live-sync.md#renaming-a-page): move the file, commit, `gbrain sync --source <id>` (`--no-pull` on a managed source); the move imports onto the same page row, so links, facts, timeline and versions survive. `put_page` at a new slug with the same `frontmatter.id` and content resolves to the existing page by design; there is no `rename_page` operation.
+
+- **One-time header change on legacy rows (#6454).** A page whose stored frontmatter held a `type`/`title` disagreeing with its columns renders the columns on its next write, so that file's header can change once. The repair sweep advances `knowledge_revision` on every swept page: a client holding an older revision gets one `revision_conflict` and re-reads.
+- **Birth-time contract (#6501).** A stamp 1 ns from the live birth time was treated as a different directory before; it is now the same directory, and only the device is compared for a device-only change. Anything beyond 1 µs still refuses, now with the detail and the named exit.
+- **`persistence.database_only_sources` (#6449)** is written by `writer activate` and cleared by `writer deactivate`; it is not a setting to edit. A source on it is claimed only by an explicit `gbrain sources writer claim`.
+- **`--enable` writes one file under the canonical root (#5808):** the durability block in `AGENTS.md`/`RESOLVER.md`. It is not committed; `git status` shows it until you commit it.
+
+### Extraction, facts and projections
+
+**Conversation extraction reaches every turn once, projection drains never spin on one row, and `extract_health` says why rounds stopped.**
+
+Long conversation pages used to lose their tail twice: once when the page walk paged by `OFFSET` over a timestamp other writers kept touching (a page listed twice tripped the writer's duplicate guard and then blocked forever), and again when the windowing code clipped a dense conversation to one truncated chunk and stamped it complete. Both are gone. A `projections drain` that met one queue row whose revision had moved under it used to loop until its 50-transaction cap; it now heals the row under the page guard. And when extraction rounds halt, the 7-day rollup now records the reason, so `gbrain doctor` names it instead of a bare count.
+
+| Where | What changed |
+|---|---|
+| `gbrain extract-conversation-facts` | Pages are walked by slug keyset (`PageFilters.slugAfter`, single-source contract), `updated_desc` has `slug, source_id, id` tiebreakers, each page is claimed once per run (`pages_skipped_duplicate_listing`), entries are de-duplicated before the byte-cap flush, and a request the writer refused as `invalid_params` resubmits its stored entries on the next run with zero model calls, bounded by 3 failed requests per page version, one failed request counted once however many pages it listed (#6500). |
+| `gbrain extract-conversation-facts` windows | Eligibility is decided before windowing; a window closes at 30 messages or when its rendered text, header included, would exceed 6,500 characters; the next turn opens a new window instead of being truncated; a turn too long for one window is split at sentence boundaries with its speaker and timestamp repeated; the 31st reply of a 31-turn group is extracted on its own instead of dropped; clipped input never gets a completeness stamp. A dense page takes more extractor calls than before, under the same cost cap. Contributed by @jordanschwartz-js (PR #6267). |
+| `gbrain projections drain` / migration drain | A queue row whose revision no longer matches its page is re-keyed to the live revision and rebuilt in the same pass, or deleted when the page is already projected or belongs to a dead source incarnation, always as a compare-and-set on the exact `(source_incarnation, slug, revision)` listed so a newer trigger-queued row survives. A page whose content moves during its rebuild is deferred by `updated_at` and reported once under `failed` with a `revision_conflict:` reason; the drain continues while a pass rebuilt, removed, failed or deferred a row and stops on a no-op pass. Contributed by @daveove (PR #6400). |
+| `extract_health` doctor check | `extract_rollup_7d.halt_reasons` (migration v239, DDL only: `JSONB NOT NULL DEFAULT '{}'`) counts halts per closed reason (`provider_auth`, `provider_billing`, `provider_rate_limit`, `provider_model_not_found`, `no_pricing`, `integrity_guard`, `item_error`); `unknown` is computed on read as `halt_count − Σ halt_reasons`, so older rows and older writers need no backfill. The increment runs in the same UPSERT with bound `$N::text` parameters. The check reports `halt_reasons` and `top_halt_reason` and names the top reason in its warn line. Contributed by @Masashi-Ono0611 (PR #5498). |
+| Fact dedup on explicit lanes (shadow, #6333) | When a page is re-extracted and a new claim sits within cosine 0.85 of a fact the same page and session produced earlier, with no diverging number, date, amount or negation, the backstop counts it as `would_dedup_same_page` and prints one stderr line naming the matched fact id. Nothing is dropped or expired. The three negative fixtures (a city correction, approved→rejected, email→phone) are counted too, which is the measured false-positive rate the drop path has to beat first; the #6334 reproduction made this measurable. |
+| `extract` and sync link walks | `capturedLinkEndpoints(links, metadata, origin)` excludes the source-qualified origin page itself, so a page whose own revision moved between the census and its snapshot read is written from the live read instead of deferred, in both DB walks and `links-preparation.ts`; a self-referencing link's target type comes from the live page. Contributed by @javieraldape (PR #6498). |
+| `gbrain embed --stale` | Progress counts chunks exactly: the total grows by the heal delta before the callback, `done <= total` at every tick (including an oversized stale chunk that splits into several), and the CLI reporter carries the grown total through `ProgressReporter.setTotal` (#5968). |
+| `add_timeline_entry` / `get_timeline` | Both descriptions name the correction route (`edit_page` with `expected_revision`), and the add receipt returns `bullet`, the exact rendered line in the page (#5970). Four other starter descriptions (`get_ingest_log`, `list_write_requests`, `traverse_graph`, `list_link_sources`) lose a few redundant words so the served tool list stays inside its 25,000-character budget. |
+| `extract_atoms` phase | A schema pack that declares a built-in extractable type (meeting, source, article, video, book, original) as `extractable: false` is honored, the way facts extraction already did; a pack that does not mention a type keeps it extractable. gbrain-base is unchanged; on gbrain-recommended, `source` pages stop being atom-extracted (#5756). |
+| Facts extractor prompt | Two explicit non-USD examples (`"Seed round: €620K"` → `unit=EUR`, `"CAD 2.75M committed"` → `unit=CAD`) and the rule that a bare `$` is USD while a stated currency is preserved as the unit and never converted. Contributed by @jordanschwartz-js (PR #6274). |
+
+- **`pages_skipped_duplicate_listing` in `extract-conversation-facts` output** is new and expected to be small; a large count means a writer is churning timestamps under the walk, not a bug in the walk.
+- **More extractor calls per dense conversation page.** Pages already stamped complete from clipped input are not re-extracted automatically; a `--force` run picks up the tail.
+- **`[facts-backstop] #6333 shadow:` stderr lines** are measurement only. Nothing is dropped; the counter feeds the decision on whether a same-page dedup rule ever ships.
+- **`revision_conflict:` rows under `failed` in `projections drain --json`** mean the page changed during its rebuild and stays queued; they clear on the next run.
+- **Migration v239** is additive and reversible by dropping the column; rows written by older writers simply read as `unknown` halts.
+
+Supersedes #6267, #6400, #6498, #5498. Fixes #6500, #6474, #5968, #5970, #5756, #5495. Addresses #6333 (shadow counter only; #6334 stays open).
+
+### Doctor, backup, repair, decide and takes
+
+**Doctor stops echoing registration secrets and stops crying wolf: an HTTP registration is probed credential-free, a renamed machine is not a second supervisor, a repair run finishes past one bad item, and a brain owner can turn the shared-skills migration off.**
+
+- `gbrain doctor --only harness_wiring` no longer reports `http_serve_missing` unseen on a Postgres, `database_url` or `remote_mcp` brain: it probes the registration's `/health` (deep on the host, shallow from a thin client) without any credential. A healthy gbrain answer is `wired_running` with `mcp_access: unverified` (a listener is proven, this registration's token and tool access are not; confirm tools in a new session), a refused local `http:` port keeps `http_serve_missing` with the `serve --http` fix, and anything else (`https:` refused, DNS or TLS errors, a timeout, a redirect, a 503 or a non-gbrain answer) is `http_serve_unreachable` or `http_serve_unhealthy` with no fix. Every doctor message and JSON prints registered URLs without userinfo, query or fragment, so a token in a registration never reaches a log or an issue paste (#6453; contributed by @thebergerking91, supersedes #6477).
+- A remote backup probe starts only when its full two-second slot is left in the sweep budget; a remote the budget cannot afford is deferred with `budget_exhausted` and keeps its first-pass verified evidence instead of being reported on a half-run probe. A killed probe says `cause: timeout`, an exiting one `cause: exit` (#6499).
+- `gbrain repair <kind> --apply` no longer stops the whole run when one item is refused with `invalid_params` (a slug the grammar no longer accepts) or `source_changed` (file and database copies disagree): the item is listed in `failed[]` with its reason and left exactly as it was, the remaining items are repaired, and the command exits 1. A failed item is not retried by a resumed run; the next full scan (the printed apply command) retries it. `gbrain doctor --remediate` reports a repair step with failed items as `failed`, never `completed`; the content lane and maintenance phases warn on them (PR #6459; contributed by @Masashi-Ono0611, supersedes #6459).
+- `takes_add` refuses a malformed holder (`""`, whitespace, `Not A Slug!`, `people/Bad Slug`) with `invalid_params` before anything is written, trims and uses a padded valid one (`" world "` is stored as `world`), validates an explicit supersede override the same way (never the inherited holder, so legacy bare holders stay supersedable), and every takes write round-trips the fence it is about to publish, so a page can no longer be wedged into `invalid_fence` by its own previous write. A page whose stored holder is already malformed is routed to `gbrain repair fences` (#6450; contributed by @kuangmi-bit and @uncfreak1255-code, supersedes #6475).
+- `gbrain doctor` `supervisor_singleton` no longer reports "a second supervisor" when only the machine's hostname label changed (macOS `.local`/`.lan`/DHCP): the supervisor PID file records the lock hostname on its third line, the same pid under the recorded host is `ok` with `host_label_drift` and both labels, an older two-line PID file warns with `same_pid_host_label_differs` and wording that names both readings, and a different pid keeps the original warning. `jobs supervisor stop` still refuses a recycled pid (PR #6463; contributed by @Masashi-Ono0611, supersedes #6463).
+- `gbrain decide status` shows `newer reference available` only when a shipped reference exists for the same slot, call site, provider and model as the calibration in use (the conflict slot's `sweep` line no longer points at the `review_withdraw` row), and the command it prints runs: `gbrain decide calibrations adopt ref:<id>` adopts a shipped reference verbatim; an unknown id is refused with nothing written (#6497).
+- `gbrain config set shared_skills.migration.enabled false` declines the v0.53.0 shared-skills migration for every machine on the brain: `gbrain apply-migrations` (the install postinstall, `gbrain upgrade` and `gbrain post-upgrade` included) skips it with no inventory and no config writes, `--list` and `--dry-run` show it `declined` with the key, `gbrain doctor` and `get_health.migrations.declined` report it, and an explicit `--migration 0.53.0` refuses with `migration_declined` (exit 3) naming the command that turns it back on. Set it to `true` and run `apply-migrations --yes` to adopt shared skills later (#6466).
+- A provider 404 (`model_not_found`) now says which setting selected the failing model and how to change it: "Selected via models.tier.reasoning. Fix: gbrain config set models.tier.reasoning <provider>:<model>"; an environment variable or a `config.json` pin says what to clear, a deprecated key names the `models.*` key to set instead, the built-in default names the tier key, and an embedding 404 names `embedding_model` with the doctor route (never a bare `config set`, since it re-embeds the brain) (#5304).
+- The memory boundaries guide now says how the remote privacy boundary treats a takes or facts marker quoted in code: readers ignore it since 0.60.97.0 and a marker written into a cell is encoded since 0.60.162.0, while remote readers still lose the tail after a quoted begin marker and a remote replace of such a page is refused, because the boundary only ever hides more. No boundary change (#5395).
+- PR #6444's YAML scalar round-trip regression test joins the suite against the fix that shipped in 0.60.168.0 (#6432; contributed by @harjothkhara, supersedes #6444).
+
+- `gbrain repair <kind> --apply` contract change: a per-item `invalid_params` or `source_changed` refusal used to reject the whole run (the pinned `repair-command.test.ts` case "a terminal failure does not block the retry" expected `rejects`); it is now a recorded `failed[]` entry with the item's bytes untouched, exit 1, and the remaining items applied. Scripts that relied on the first bad item aborting the run must read `failed[]` (`--json`) or the `FAILED` lines instead.
+- `get_health.migrations` gains a sixth key, `declined` (an array of versions), and `apply-migrations --list --json` rows can carry `status: 'declined'` with `opt_out.key`; consumers that enumerate the migration statuses or the block's keys should accept both.
+- `supervisor_singleton` now reads a third PID-file line; an older supervisor's two-line file still works and warns (`same_pid_host_label_differs`) under a label change until that supervisor restarts.
+- `BEHAVIOR_CHANGES` rows for #6453, PR #6459 and #6466 carry `since: '0.60.176.0'` provisionally; the integrator restamps them with the release version (three behavior-change-notice tests fail until then).
+
+### CI, flakes, Windows and tooling
+
+- **Backups no longer fail on a stale IPC socket (#5312).** `gbrain backup` (and the in-agent setup's "back up the complete local database" step) used to stop with a bare `ENOTSUP` / errno 28 when a killed `gbrain serve` had left `.gbrain-resolve.sock` or `.gbrain-persistence.sock` in the data directory. The command now probes each of gbrain's own socket files, takes the local IPC lock, and removes the ones nothing listens on before the dump; each removal is listed in the archive's `omitted` inventory. Any other socket, FIFO or symlink in the data directory is left alone and the backup refuses with the new `backup_dump_failed` code naming it, with the fix (`gbrain errors backup_dump_failed`). Verified on Linux; on Windows the stale-socket path goes through the native lock binding and has not been exercised on a native runner. Contributed by @xiaopeng6390.
+- **`divergenceSafePull` never autostashes, and a source can pull with merge (#5429).** A pull with uncommitted changes in the source checkout now runs with `--no-autostash` so a conflict can no longer leave the working tree stashed and half-applied; the documented "reports conflicts, never destroys" contract holds for dirty trees too. New verb `gbrain sources set-pull-strategy <id> rebase|merge` (`pull_strategy` in `sources list --json`): a source set to `merge` pulls with `--no-rebase`, and a conflicting merge is aborted with `MERGE_HEAD` verified gone, so a brain whose remote rewrites history stops reporting `conflict_aborted` on every cycle. Default stays `rebase`.
+- **Four more subprocess sites launch through the spawn seam (#4992).** The Stop-hook push and backup check in `gbrain hook`, brain-repo durability, hardened git and the Claude CLI language model now spawn through `src/core/spawn.ts` with `gitChildEnv`, so on Windows they open no console window and git never inherits a caller's `GIT_DIR`. The not-yet-migrated list shrinks by five entries; the remaining batches and the orphan reaper follow in a later wave. Contributed by @rokas-tarasevicius (#6105).
+- **The write gate's cost is now measured, not timed (#6490).** `assessWriteGate` can report the work it did (characters normalized and scanned, windows, pattern checks, regex calls) through an optional counters object, and the perf test asserts those counts on a 300 KB typical page and a 5 MB adversarial page instead of wall-clock ratios between rounds, which flaked on loaded runners while proving nothing about the gate. The absolute quiet-round bound and the 5 MB linear bound stay.
+- **A publication deadline can be driven by a test clock.** `boundPublication` accepts an injectable scheduler (`later`), so its "overdue after the grace" test no longer fails when a busy runner stalls the real timers for more than 10 ms. The production path is unchanged (real timers, unref'd).
+- **The backlinks memory test measures what it claims (#6494).** The child process that scans backlinks runs with a 512 MiB JavaScriptCore RAM budget, so its peak RSS tracks retained memory instead of the GC's choice on a 64 GiB runner; the bounds are unchanged, and the retained-body mutant still fails them.
+- **One switch for every paid CI lane (#5903).** The repository variable `GBRAIN_PAID_LANES=0` turns off Tier 2 (LLM Skills), the hermes door's paid leg and the OpenCode credentialed lane, for forks and spend freezes. Each lane writes a visible "paid lanes disabled" summary, and `e2e-status` accepts Tier 2 as skipped only under that exact value; every other skip, failure or cancellation still fails the aggregate.
+- **Faster `verify` on CI.** The typecheck's `.tsbuildinfo` is cached between runs on Linux and macOS, and the macOS validation job runs two checks at a time; the 240 s per-check cap is unchanged.
+- The Windows unit row's note on the private-IPC segfault (#6462) cites the upstream fix, oven-sh/bun#40023; the file returns to the row once a Bun release carries it.
+- The v0.60.174.0 entry's results link points at the published `RESULTS.md` on gbrain-evals `main`.
+
+- `test/write-gate-perf.slow.test.ts` no longer asserts p50/p95 ratios between a quiet and a loaded round; it asserts measured work counters (#6490). A regression in the gate's scanning now shows up as a count, not a timing.
+- A source set to `pull_strategy: merge` produces merge commits in the brain repository on every divergent pull (#5429). Leave the default `rebase` for a linear history.
+
+### Harness, providers and connectors
+
+- **Subagent turns that produced nothing now stop as errors, never as a clean answer** (#6448 items 2/3). A subagent job whose final model turn had an empty or whitespace-only body (a thinking-only turn) ends with `stop_reason: error`; a turn the provider stopped with `refusal` ends `refusal`. Both used to be reported as `end_turn`. A resumed job whose stored transcript already ends on such a turn is answered from the transcript with that stop reason instead of being sent back to the provider as an assistant prefill, which Haiku 5.5 and Sonnet 4.6+ reject with HTTP 400. Contributed by @javieraldape.
+- **Haiku 5.5 long prompts are priced the way Anthropic bills them** (#6448 item 1). A request whose input exceeds 100K tokens is charged at the long-prompt tier for the whole request, not only for the tokens above the line. Cost estimates, the ledger and budget reservations agree; other models' pricing is unchanged.
+- **Synopsis generation reuses the page document across its per-chunk calls** (#6341). The page text is sent as a cacheable prompt block, so a long page summarized chunk by chunk pays input tokens for the document once per cache window instead of once per chunk. The synopsis text and its prompt version are unchanged. Contributed by @spiky02plateau.
+- **Google contacts import phone numbers and contact groups; phone-only contacts get a page** (#6324). Person pages gain `phones:` (E.164 where Google supplies it) and `groups:` (user-created groups; Google's built-in groups are omitted). A contact with phones but no email address, which used to produce no page at all, now gets one, at `contact-<id-hash>` when it also has no name. The contacts sync cursor is now recorded together with the field mask that minted it, so a changed mask lists every contact once instead of wedging on a rejected token. Contributed by @javieraldape.
+- **Hosted embedding models declare their per-input token caps** (#5922). DashScope `text-embedding-v1`/`v2` (2,048), Google `gemini-embedding-001` (2,048), Zhipu `embedding-3` (3,072) and `embedding-2` (512), OpenAI `text-embedding-3-*` (8,191) and Mistral `mistral-embed` (8,192) now chunk to their documented limits; Gemini used to truncate long chunks silently. Contributed by @harrylabsj.
+- **A chunk the embedding provider rejects as too long is split and retried instead of failing on every pass** (#5347). For a model with no declared cap, the rejection (HTTP 400/413/422 naming an input-length problem) derives a cap, the page's chunks are re-split to it and re-embedded on the next pass, at most three times per page; the failure line names the fix when the descent stops, and unrelated errors never rewrite chunks. Contributed by @lubosxyz.
+- **`gbrain decide` accepts gateway-published TypeSafe model ids and refuses an unpriced one before anything is sent** (#5980). A provider id such as `typesafe:org/model@2026-01` configured against a self-hosted or gateway-fronted endpoint is now valid; when no tariff and no `pricing.overrides` entry prices it, the slot refuses with `unpriced_model` under a dollar cap instead of recording `$0` for an unknown cost. `gbrain errors unpriced_model` explains the fix.
+- **The Mistral EU regional endpoint is documented** (#5302), along with what the default endpoint does and does not assure about where requests are processed; `gbrain providers test mistral` shows the configured base URL.
+- **`gbrain eval cross-modal` honors the judge-model pins in `models.eval.cross_modal.slot_*`** (#6486). Each slot resolves flag → brain pin → built-in default, through the same reader the nightly probe already uses; a pinned slot counts as explicit for the model substitution rule. Without a brain, or when the brain cannot be opened, the built-in defaults still apply.
+
+- **Google contacts: one full contact list per source after upgrading.** The People API ties a sync token to the request that minted it; because the field mask grew, the first contacts sweep after this release lists every contact once (within the usual quota) and then continues incrementally. `gbrain sync --full` is not needed. A group rename or deletion reaches a page when that contact next changes or on `--full`.
+- **Embedding re-chunking on four hosted encoders.** On a brain embedding with DashScope v1/v2, Gemini `gemini-embedding-001` or Zhipu `embedding-2`/`embedding-3`, the next `gbrain embed` or `embed --stale` pass splits stored chunks above the new cap and re-embeds the pieces (billed as ordinary embedding tokens).
+- **`decide` with an unpriced TypeSafe id now refuses** where it used to run and log `$0`. Add the tariff under `pricing.overrides` (see `docs/ai-providers/typesafe.md`) or pick a priced id.
+- **Subagent `end_turn` no longer covers an empty answer.** Callers that counted `end_turn` as success will see `error` or `refusal` for turns that produced nothing; the queue's terminal-state policy is unchanged.
+
+### Config knobs and code-intel precision
+
+- `cycle.propose_takes.types` narrows the `propose_takes` candidate set to a JSON array of page
+ types (`gbrain config set cycle.propose_takes.types '["meeting","analysis"]'`), applied as a
+ `type = ANY(...)` arm after the existing source filter so a scoped run never widens. Unset
+ keeps today's behaviour; a value that is not a JSON array is reported on stderr once and
+ ignored. (#5213)
+- `autopilot.git_pull false` turns the autopilot's automatic Git pulls off for every source
+ while leaving the rest of the sync tick (embedding, maintenance, held-file retries) running.
+ Each tick prints one `git_pull: off` status line and emits a `git_pull_disabled` NDJSON event
+ so the opt-out is visible, never silent. Contributed by @uncfreak1255-code. (#6451)
+- `cycle.lint.enabled false` skips the cycle's lint phase, which reports `status: skipped` with
+ the exact `gbrain config set cycle.lint.enabled true` hint instead of running; `gbrain cycle
+ --once lint` still runs it on purpose, so a one-off lint never needs the key flipped twice.
+ Contributed by @dovstern. Supersedes #6369. (#6369)
+- `synthesize` / `think`: the pages the model reads are budgeted by two new keys,
+ `think.pages_budget_chars` (4 000–200 000, default 12 000) and `think.excerpt_ceiling_chars`
+ (600–200 000, default 2 400). `gbrain config set` refuses an out-of-range value; a stored bad
+ value keeps the default and warns `THINK_BUDGET_CONFIG_IGNORED:<key>`. The budget is soft: the
+ 600-character floor wins for big gathers, and even with both keys raised the model sees the
+ gathered chunk whole, not the full page. Responses add `evidence_truncated` (true when any
+ page reached the model in part) and `citations[] { slug, source_id, row_num }`, the frozen
+ `sources[]` with provenance; `sources[]` itself is unchanged. (#5461)
+- `list_skills` accepts `query` and ranks the host-rendered catalog by lexical token overlap
+ against name, description and triggers (exact name match first, then score, then the
+ catalog's order); the output without `query` is byte-identical to before. On a shared catalog
+ or `schema_version: 2`, `query` is refused with `invalid_params` instead of being silently
+ ignored. (#6471)
+- `code_blast` / `code_flow` follow the symbol resolver's outcome: a resolved edge steps to that
+ chunk and the next hop is read by chunk identity (new `chunkId` arm on `getCallersOf` /
+ `getCalleesOf`, SQL once in the code-edges domain, same source filter), so two files whose
+ top-level `helper` share a name no longer fan into each other's callers or callees two hops
+ out. Node `chunk_id` is now directional: the caller's chunk on a callers hop, the resolved
+ callee's chunk on a callees hop, absent for an unresolved callee. (#5439)
+- Docs: the timeline `Source:` delimiter accepts the spaced hyphen (` - `) as well as ` — ` and
+ ` | `; GBRAIN_RECOMMENDED_SCHEMA.md and the maintain skill say so, and the parser test pins
+ it. (#5282)
+
+- `test/cycle-abort.test.ts` source-text pin updated to the six-argument `runPhaseLint(...)`
+ call (new trailing `{ once }` option).
+- `test/fixtures/goldens/cli/tools-json.json` regenerated: `list_skills` gains `query`
+ (advertised `fullSurfaceOnly`) and its `limit` description is shortened to "Page size or
+ ranked count (1-100)." to stay under the per-tool schema budget.
+- `test/fixtures/goldens/exports/types.json` regenerated twice (additive): `ThinkResult.
+ evidence_truncated?: boolean` and `chunkId?: number` on both `getCallersOf` / `getCalleesOf`
+ façade signatures.
+- `test/fixtures/goldens/sql-text/code-edges.json` and `_driver.json` gained the two `chunkId`
+ variants (no existing statement text changed).
+- `synthesize` response schema (`src/core/verbs.ts`) gains two optional properties
+ (`evidence_truncated`, `citations`); `required` is unchanged and `protocol_version` stays 1.
+- `WalkNode.chunk_id` semantics changed for `code_flow` (callee hop now carries the callee's
+ chunk, previously the caller's); `code_blast` is unchanged.
+- `scripts/module-size-limits.tsv`: `src/core/config.ts` 1950 → 1955 (four rationale rows);
+ new row `src/commands/config.ts 1507` (crossed the unlisted 1500 cap by the set-time
+ validation hook for the two think keys). `scripts/function-size-baseline.tsv`: `runConfig`
+ 776 → 781 with rationale (same hook).
+- `src/core/operation-manifest.generated.ts` and `llms-full.txt` regenerated (`regen:all`);
+ `test/fixtures/goldens/postgres-engine-gauge/acquires-by-case.json` and
+ `rls-scope-inventory.json` gained the two `chunkId` cases.
+
+### Credits
+
+Contributed by @daveove (PR #6400), @jordanschwartz-js (PRs #6267, #6274), @javieraldape (PRs #6478, #6489, #6498), @Masashi-Ono0611 (PRs #5498, #6459, #6463), @spiky02plateau (PR #6341), @harrylabsj (PR #5922), @lubosxyz (PR #5347), @thebergerking91 (PR #6477), @kuangmi-bit (#6475), @uncfreak1255-code (#5737, #6451), @dovstern (PR #6369), @mattverlaque (PR #6465), @xiaopeng6390 (#5312 diagnosis), @rokas-tarasevicius (#6105), @harjothkhara (PR #6444 test). Each carried diagnosis or test has a `Co-Authored-By:` trailer on its commit.
+
+Supersedes #6400, #6267, #6498, #5498, #6478, #6489, #6341, #5922, #6477, #6475, #6459, #6463, #6369, #6465.
+
## [0.60.176.0] - 2026-10-12
**Remote forget refusals and entity cards respect visibility and withdrawal.** A remote `forget` never withdraws, or names, an active fact on a page the caller cannot read; when one would be reached, it is refused with a `claim_linked:` message that names no fact. A remote `remember` refuses a withdrawn claim the caller cannot see the same way it refuses an unreadable page. The entity card's `identity_excerpt` no longer shows a forgotten fact row. Local callers keep their detailed refusals.