Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/capy/6886-gate-286' into capy/6884-gate-287

garrytan8794ce8943c0
diff --cc CHANGELOG.md
index 4a40794d5f,eb3d27e160..1d446f56bd
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -10,26 -10,236 +10,256 @@@ credits are retained; no result has bee
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [Unreleased] - 2026-10-17
+
+**A batch of page purges no longer holds a source's write queue for hours (#6884).** Each page purge used to read and case-fold the whole write journal to find old requests that still carried the page's claims, so on a journal of about 540k requests one purge took about 20 minutes and a nightly purge batch blocked ordinary writes for about 2.8 hours. Now one sweep serves a batch of queued purges, later purges read only the rows added since, and the purge run stops submitting when the writer's queue is full instead of failing thousands of pages.
+
+### What you'd see
+
+| Situation | Before | Now |
+|---|---|---|
+| N purges queued for one source | N full journal sweeps; each receipt's `journal_sweep.scanned` equals the journal size | one sweep for up to 32 queued purges; the others scan only the rows added since (`journal_sweep.batch`, `journal_sweep.watermark`) |
+| `gbrain dream --phase purge` / `gbrain pages purge-deleted` with more expired pages than free queue room | thousands of `queue_capacity` failures, `managed_purge_failed`, each failure counted toward parking the page | submits only while the writer has room (background runs stop at `persistence.capacity.background_pause_pct`); the rest is `write_capacity_deferred` / `capacity_deferred`, the phase warns, the next run picks it up |
+
+### For contributors
+
+- `sweepRequestsForGroups` (`src/core/persistence/intent-redaction.ts`) runs the #6511 census once for several needle groups; `after` starts past an earlier ceiling.
+- The batch cache lives in process memory in `src/core/persistence/page-purge.ts` (`sweepForPurge`); the journal still never stores claims. No schema change and no compaction default changed.
+- `readOutstandingRoom` (`src/core/persistence/journal.ts`) reads the tighter of the principal's and the brain's outstanding caps.
+- Tests: `test/page-purge-batch-sweep-6884.test.ts` (PGLite and Postgres), `test/purge-deleted-capacity-6884.test.ts`.
+- Crash robot (#6896): `consumer:claiming` fires before every claim attempt, idle ticks included, so its pass count followed wall-clock time and a fault picked from the count role's total could go unreached (`competing_writers_one_page consumer:claiming#19`). `seamCounter` (`scripts/persistence/crash-robot.ts`) now counts that seam in claim epochs (distinct requests prepared so far); the unreached-fault check is unchanged.
+- `scripts/postgres-arm-weights.json` re-mined from the latest runs, so the Postgres-arm shards stay under their 20-minute step limit.
+
+ ## [0.60.286.0] - 2026-10-17
+
+ **Your brain keeps a private forecast journal: every prediction, when it was made, by when it had to come true, and how it turned out.** Takes that make a call ("Acme-example will reach $5M ARR by the end of 2024") now get a horizon, the last day the claim can come true. `gbrain takes journal` lists every prediction as resolved, overdue, open or undated, and it always counts the unresolved ones, so a track record can't look better by leaving its misses unresolved. `gbrain takes scorecard --group-by holder` (or `source`) ranks who has been right, with sample-size honesty built in. All of this stays on the brain host: remote agents and thin clients see exactly what they saw before.
+
+ ### What you'd see
+
+ | You run | You get |
+ |---|---|
+ | `gbrain takes horizon scan` | each take's stated deadline ("by the end of 2024" → 2024-12-31, "within 18 months" counted from its since date); nothing is written until you add `--apply` |
+ | `gbrain takes horizon set <slug> --row N --date YYYY-MM-DD` / `clear` | your own horizon for a take with no stated deadline; a scan never overwrites it |
+ | `gbrain takes journal` | every prediction with its time, claim, holder, weight, horizon, state and resolution; the totals count every open, overdue and undated prediction whatever `--state` or `--limit` shows |
+ | `gbrain takes scorecard --group-by holder` | one row per holder: accuracy, accuracy shrunk toward the brain-wide rate, a 95% interval, recency-weighted accuracy, Brier and Brier skill, how many resolutions cite a source, open and overdue counts, and `low_n` below `--min-n` (default 10) |
+
+ **When was a prediction made?** Where the belief ledger records a source, the journal gives the recorded time, and calls it certified on a managed source. Everywhere else it shows the take's since date, labelled `uncertified`, so you always know which dates you can lean on.
+
+ ### What to do after upgrading
+
+ Nothing runs on upgrade. A new migration adds the private `take_horizons` table; no take is touched. To date your takes, run `gbrain takes horizon scan`, look at the list, then run `gbrain takes horizon scan --apply`. Then `gbrain takes journal`.
+
+ ### Itemized changes
+
+ - New `gbrain takes horizon scan [--apply]`, `set` and `clear`, and new `gbrain takes journal`: trusted local only. They have no MCP op, and thin clients refuse them as host-bound.
+ - `gbrain takes scorecard` gains `--group-by holder|source`, `--min-n N` and `--source-id`. Without them the scorecard prints what it did before.
+ - `takes_scorecard` gains `group_by` and `min_n` for trusted local callers. A remote caller that passes either gets the new `scorecard_group_by_local_only` refusal. Without them, its answer is byte for byte what it was.
+ - `takes_list`, `takes_search` and `takes_scorecard` return the same output, locally and remotely, whether or not horizons exist.
+
+ ### For contributors
+
+ - `src/core/takes-horizon.ts` (the deadline parser and the horizon store) and `src/core/forecast-journal.ts` (the journal and the grouped statistics).
+ - `evals/forecast-journal/`: a $0 synthetic gate with a frozen preregistration. It uses 20 seeded cohorts of placeholder holders with known skill. On those cohorts the median Spearman ρ between true skill and shrunk accuracy is 0.905. The who-was-right set-F1 is 1.000, the denominator, `low_n` and labelling counts are exact, and 8/8 remote probes pass. Run it with `bun evals/forecast-journal/harness.ts --run`.
+
+ ## [0.60.285.0] - 2026-10-17
+
+ **Doctor can now find page edits that an earlier sync silently overwrote, and one repair puts them back (#6712).** Between v0.60.255.0 and v0.60.279.0, a plain incremental `gbrain sync` could publish a committed file edit over a page that had also been edited in the database (for example a `put_page` with `sync.write_through` off). v0.60.279.0 stopped new damage. This release finds the pages that were already hit, using records gbrain keeps permanently, and restores them with a preview first.
+
+ ### What you'd see
+
+ | Situation | Before | Now |
+ |---|---|---|
+ | a database edit an earlier sync overwrote | survived only as an old page version; nothing pointed at it | doctor `sync_overwritten_db_edits` warns and names the page; `gbrain repair overwritten-edits` previews a diff |
+ | applying the restore | no command | the page goes back to the edit through a database-only, revision-bound revert; the committed file is held `file_drift` when it differs, so sync never publishes it over the edit again |
+ | applying on a host that doesn't own the checkout | no command | the page is restored and the outcome is `restored_file_unheld`, naming the file-drift command to run on the owner host |
+ | a page whose history has no recorded writer, or a segmented page | not detectable | not reported, or reported `unknown`, and never restored automatically |
+
+ ### What to do after upgrading
+
+ Nothing runs on upgrade. Run `gbrain doctor --only sync_overwritten_db_edits --json`. If it warns, preview with `gbrain repair overwritten-edits --source <id>` (narrow with `--slug <slug>`), decide with the user, then apply with `--apply --expect <hash>` on the host that owns the checkout. Then resolve the `file_drift` hold it leaves, using `gbrain repair file-drift --source <id> --slug <slug>`.
+
+ ### Itemized changes
+
+ - `persistence/overwritten-edits.ts` scans `page_versions` for a revision whose writer was a database-only page write and whose archiver was a managed-sync import that changed the body. It reads only receipt columns that compaction keeps, and caps the scan at 500 candidates per source.
+ - The doctor check `sync_overwritten_db_edits` (BRAIN) warns only on high-confidence findings and counts `unknown` separately.
+ - The repair kind `overwritten-edits` is explicit-only and preview-bound. It rechecks the revision and the version digest, restores through `revert_version` with `databaseOnly: 'overwrite_restore'`, writes the `file_drift` hold on the owner host, and replays an apply that was interrupted after the restore committed.
+ - Tests: `test/overwritten-edits-6712.test.ts` runs on PGLite and Postgres: detect and restore, no false flag on normal sync history, a page that moved since the preview is refused, an interrupted apply replays, and a non-owner host reports the file left unheld. The doctor goldens gain the new row.
+
+ ## [0.60.284.0] - 2026-10-17
+
+ **Your agent can now finish a rename that sync split in two, find people and companies in every source it can read, and stop chasing warnings that only describe the past (fix wave 18).** When you move a note and rewrite it in the same commit, sync sometimes cannot tell it was a move, so it keeps the old page aside and starts a new one. Until now the only way out was to bring the old page back. Now one command, run after you agree, moves the old page's history, links and facts onto the new name, or closes the pair and lets the old page go.
+
+ Asking about a person or company now looks in every source you can read, not only the one you are connected to, and a context pack brings that entity's own facts with it. Facts pulled from your meetings get attached to the right person page more often, for free, before gbrain ever offers to pay for a re-read. Several doctor warnings learned to tell history from a live problem, so an agent stops "fixing" something that already healed. A batch of reliability fixes rides along: writer locks stay out of your checkout, a guarded eval stops every process it started, a Claude Code answer that ran past its length cap is never treated as complete, and `gbrain bootstrap harness` no longer reports success while old tokens still wait to be cleaned up.
+
+ ### What you'd see
+
+ | Situation | Before | Now |
+ |---|---|---|
+ | sync kept an old page aside after a move-and-edit (doctor `rename_identity_downgrades`) | the only offered fix was restoring the old page | `gbrain repair rename-identity --source <id> --slug <new-slug>` previews carrying the old page's history, links and facts onto the new slug; `--close` releases the pair instead. On a managed source only `--close` is available this release |
+ | `entity` or `context_pack` for a name that lives in another source you can read | `found: false` | the card, with `source_id`; `source_id` pins one source |
+ | `context_pack` for a person | cards plus recent hot facts | also `entity_facts[]`: up to 5 of each packed entity's own facts |
+ | a meeting page's facts about people it links | often stored with no entity | stored on the person or company the page links; `gbrain facts relink --conversation` links old ones at no cost |
+ | a meeting page titled like a person page | `volunteer_context` could point at the meeting | it points at the person page |
+ | doctor `facts_extraction_health` after the cause was fixed | kept warning and suggested raising the threshold | reports the 24 h count as history and names only jobs still dead, each with `gbrain jobs retry <id>` |
+ | a gbrain fence marker such as `<!--- gbrain:facts -->` | linked every page to a page titled "gbrain" | ignored; one rescan removes the false links |
+ | `gbrain bootstrap harness` with old shared-skills tokens still pending cleanup | exit 0 | exit 14 (`bootstrap_cleanup_pending`) with a per-token `cleanup` list and a `fix` |
+ | a GBRAIN_HOME inside the source checkout | the writer lock landed inside the checkout | the lock goes under `GBRAIN_COORDINATION_HOME`, else `~/.gbrain/persistence` |
+ | `scripts/eval-spend-guard.sh` interrupted, or SIGKILLed | helpers and grandchildren kept running | the whole process group stops; after a SIGKILL the next run reports the stale run and how to stop it, and kills nothing itself |
+ | a managed sync backlog that cannot be read | `nothing_pending` | `movement_state: unknown`; `gbrain sources writer movement` exits 1 with `movement_unknown` |
+ | a v0.11.0 upgrade on a Postgres brain with no `sync.repo_path` | wedged after three partial runs | completes, records Phase F as skipped and prints the install command |
+
+ ## To take advantage of v0.60.284.0
+
+ `gbrain upgrade` should do this automatically. If it didn't, or if `gbrain doctor` warns about a partial migration:
+
+ 1. **Run the orchestrator manually:**
+ ```bash
+ gbrain apply-migrations --yes
+ ```
+ 2. **Your agent reads `skills/migrations/v0.60.284.0.md` the next time you interact with it.** There is no schema migration. The note covers the rename remedy, the bootstrap exit 14, the coordination lock home for container installs and the one-time mention rescan.
+ 3. **Verify the outcome:**
+ ```bash
+ gbrain doctor --only rename_identity_downgrades,unlinked_facts,coordination_lock_location,facts_extraction_health --json
+ gbrain stats
+ ```
+ 4. **If any step fails or the numbers look wrong,** please file an issue:
+ https://github.com/garrytan/gbrain/issues with:
+ - output of `gbrain doctor`
+ - contents of `~/.gbrain/upgrade-errors.jsonl` if it exists
+ - which step broke
+
+ This feedback loop is how the gbrain maintainers find fragile upgrade paths. Thank you.
+
+ ### Itemized changes
+
+ #### Finishing a split rename (#6729)
+
+ - New explicit-only, preview-bound repair kind `gbrain repair rename-identity`. Without `--slug` it lists the open pairs. `--slug <new-slug>` (and `--from <old-slug>` when two pairs share a new slug) previews one pair; `--apply --expect <hash> --yes` (destructive consent) carries the old page id onto the new slug with its versions, timeline, links, facts and aliases, imports the new file as an edit and retires the provisional page. Facts of both pages survive, or the carry refuses `fact_rows_collide` before writing. `--close` settles the pair without moving anything. Both release the purge hold. `--all`, the maintenance cycle and the remediation plan never run it. Contributed by @javieraldape (PR #6732, rewritten).
+ - On a managed source carrying identity is not available yet: the preview states `managed_remedy_unavailable` and names `--close`, and an apply refuses with that code.
+ - The sync report, `gbrain sync status --json` (`identity_downgrades[].remedy`) and doctor `rename_identity_downgrades` name each pair's preview and apply commands. Doctor's fix is the first pair's apply behind `ask_user`; `gbrain restore` stays the named alternative wherever the source admits it.
+
+ #### Entities across sources and their facts (#6723, #6724, #6725)
+
+ - `entity` and `context_pack` resolve names across every source the caller can read: the home source first, then the others by id. `source_id` pins one source (refusals match `recall`), `context_pack` takes source-qualified `entity_refs`, and every card, `names` row and suggestion carries `source_id`. A bound connection whose own source misses a name gets a `source_binding_narrowed` notice. Sources outside the grant are never read. The new parameters are on the full MCP surface; the starter tool list is unchanged.
+ - Each pack card's activation verdict, newer mentions, records, page status and pinned questions now come from its own source.
+ - `context_pack` returns `entity_facts[]` (up to 5 per card, newest first, in the card's source and visibility) and renders a `## Entity facts` section before hot memory. A remote caller still never sees a private fact, and remote entity cards and packs still carry no open loops.
+ - `volunteer_context` and the retrieval reflex point at one page per name per source: the exact slug, then the linkable entity type, then anything else. Contributed by @javieraldape.
+
+ #### Conversation facts (#6731, #6764)
+
+ - `gbrain extract-conversation-facts` hints the page's own linked entities (frontmatter attendees and linked entity pages, same source, up to 40) to the extractor, and runs free write-time subject inference on facts that come back without an entity. Contributed by @troyhoffman-oss (design from #6736, reimplemented).
+ - New `gbrain facts relink --conversation` links existing conversation facts that name exactly one entity page, with no model call. Doctor `unlinked_facts` counts conversation rows on their own and prescribes the free relink first; only for rows it could not resolve does it offer a paid re-extraction of the named pages (up to 50), capped at `--max-cost-usd <N>` with the amount the user approves. A page already re-extracted on its current content is not offered again until it changes. A re-extraction keeps a relinked fact's entity.
+
+ #### Doctor tells history from live problems (#6761, #6758, #6759, #6778)
+
+ - `facts_extraction_health` reports its 24 h count as rolling history with an ages-out time and separately names facts-absorb jobs still dead.
+ - Facts absorb waits for its write up to the job deadline (was 5 s). A write still committing is logged `write_pending_accepted`, writer contention before admission `write_deferred_unadmitted`; neither counts toward the threshold.
+ - Agent-contract events record the gbrain version that wrote them; doctor `agent_contract` splits counts by build. Contributed by @Kkkkkuro (idea from #6790).
+ - `persistence_counter_drift` names each scope's direction and splits the receipts behind it.
+
+ #### Writer locks, processes and sync movement (#6765, #6774, #6719, #6781)
+
+ - A checkout that contains GBRAIN_HOME no longer gets its writer lock inside the checkout: a claim places it under `GBRAIN_COORDINATION_HOME` (absolute, outside the checkout), else `~/.gbrain/persistence`. A recorded lock always wins, a writer transfer keeps it, and a reservation an older release wedged is repaired by the next claim on its host. `gbrain sources writer status --json` shows `coordination_lock`, and the new doctor check `coordination_lock_location` warns when `GBRAIN_COORDINATION_HOME` disagrees with a recorded lock. Contributed by @lubosxyz.
+ - A graduation marker whose boot id or PID namespace this process cannot read is unknown, never alive. Contributed by @lubosxyz.
+ - A terminal write failure with origin `owner_exception` gets its own hint pointing at `gbrain write-request <id> --json` instead of a database-trigger guess. Contributed by @Kkkkkuro (idea from #6790).
+ - An unreadable managed sync backlog is `movement_state: unknown` (`unknown.reason: backlog_read_failed`) on every surface, and `gbrain sources writer movement` exits 1 with the new code `movement_unknown`.
+
+ #### Smaller fixes
+
+ - `claude-cli` rebuilds an answer Claude Code continued past its output cap from the event stream; when it cannot prove the full text, the call returns nothing, finishes `length` and reports `continuation_unproven` (#6791).
+ - The mention scan ignores HTML comments, so gbrain's fence markers stop linking every page to a page titled "gbrain" (#6740). One rescan runs on the next extract or maintenance pass. "Discussed in" timeline bullets the bug already wrote stay until you delete them by hand; they no longer come back.
+ - `gbrain-base-v2` is 1.4.0 and declares the `question` page type, so pinning a question no longer makes doctor warn (#6742).
+ - Atoms extracted from a page carry that page's content date, not the extraction run's (#6720). Existing atoms are not backfilled yet. Contributed by @javieraldape (idea from #6737).
+ - Dream-cycle summaries record `created:`, so they pass `gbrain lint`'s temporal check (#6773). Contributed by @lubosxyz.
+ - The patterns phase sends `expected_revision` when it updates an existing pattern page (#6779).
+ - An embedding provider that reports one over-long input as a 5xx is no longer retried as transient; the chunk is isolated and split (#6772). Contributed by @lubosxyz (reimplemented with stricter matching).
+ - `gbrain bootstrap harness` exits 14 (`bootstrap_cleanup_pending`) while earlier shared-skills enrollments or carried token ids still await cleanup; each carried id is revoked on its own once nothing holds it (#6743).
+ - The first Claude Code prompt hook in a new folder records `ok` with prompt-only context instead of `degraded` (#6739).
+ - On a Postgres brain with no `sync.repo_path` the v0.11.0 migration skips the autopilot install instead of wedging, a brain already wedged that way clears on the next `apply-migrations`, and wedged-migration advice names `migrations/completed.jsonl` (#6755). Contributed by @lubosxyz (#6769, reimplemented).
+ - Managed `gbrain sources add --kind google` keeps `--contacts-dir`, `--future-days` and `--loops-exclude-labels` (#6717). A managed google source added before this fix lacks them; set them again.
+ - `gbrain config set` accepts twelve keys gbrain already read at runtime but refused as unknown (#6780).
+ - `scripts/eval-spend-guard.sh` and `gbrain claw-test` stop their whole process group on an interrupt or timeout; a guard that was SIGKILLed leaves a run lease the next run reports (#6776, #6775). Contributed by @lubosxyz.
+ - The maintain skill falls back to `get_brain_health` without admin scope (#6748).
+
+ ### For contributors
+
+ - `bun run ci:local` hydrates the admin/dist volume from the worktree and refuses only on an unreadable tracked file (#6756).
+ - The OpenCode door test surfaces provider error events (#6049).
+ - Guides for reading `extract_health` halts (#6760) and for the dream triage threshold and synthesize cooldown (#6753).
+ - New error codes: `continuation_unproven`, `bootstrap_cleanup_pending` (exit 14), `fact_rows_collide`, `managed_remedy_unavailable`, `movement_unknown`. New exit code 14 in `src/core/exit-codes.ts`.
+ - `FACTS_ABSORB_REASONS` gains `write_pending_accepted` and `write_deferred_unadmitted`; `REPAIR_KINDS` gains `rename-identity`; new doctor check `coordination_lock_location`.
+ - Migration note: `skills/migrations/v0.60.284.0.md`.
+
+ ## [0.60.283.0] - 2026-10-17
+
+ **Facts about a person now land on that person's page, not on an old copy you retired.** If you keep an old page around for its history and mark it as replaced by the real one (`canonical: false`, `superseded_by: people/<name>`, or a status like `historical-retired-alias`), gbrain could still pick that old page when it filed new facts. It happened when the real page listed the name only in slug form (`alice-example`) and the extractor wrote it as `people/alice-example` or `Alice Example`: those spellings never matched the alias, and the name-matching fallback then chose the old page because its title carried the same words. One brain saw 91 fact writes go to the retired page in a day against 3 to the real one, and because that page was very large each write took minutes and slowed every other write behind it. Now a retired page is never chosen by a guess, a direct reference to it follows `superseded_by` to the real page, and aliases match whether the words are joined by spaces, hyphens, underscores or a directory prefix. Reported by @liuwenyong1985 (#6898).
+
+ ### What you'd see
+
+ | Situation | Before | Now |
+ |---|---|---|
+ | the extractor names `people/alice-example` or `Alice Example`, and the real page has the alias `alice-example` | the alias missed; a retired page with the same name words could win | resolves to the real page through its alias |
+ | an alias written `Dana Example` or `acme_example`, referenced as `dana-example` or `Acme Example` | no alias match | matches |
+ | a reference that is exactly a retired page's slug | that retired page | the page its `superseded_by` (or `merged_into`) names, up to 5 hops, same source, readable by the caller |
+ | the same, when the retired page names no target, the target is missing or private to the caller, or the chain loops | that retired page | unresolved, like an unknown name: extracted facts are saved without an entity |
+ | `gbrain recall --entity <retired-slug>` when the retired page names a target | the retired page's facts | the target page's facts (the retired page's own facts stay under its slug) |
+ | a retired page is the only page whose name matches a guess (name match, bare-name prefix, phantom merge) | it could be chosen | it is skipped |
+ | a person page whose `status` describes the person (`retired`, `archived`) | a candidate | still a candidate |
+
+ ### What to do
+
+ Nothing. No migration, nothing is rewritten on upgrade, and stored aliases are read as they are. Facts that already landed on a retired page stay there; move them by hand for now (`gbrain forget <id>`, then `gbrain remember "<fact>" --entity <slug>`).
+
+ ### Itemized changes
+
+ - `src/core/entities/resolve.ts`: a page is retired when its frontmatter has `canonical: false`, a `superseded_by` or `merged_into` target, or a `status` naming it an alias or a redirect. The fuzzy and same-name arms of both resolvers, bare-name prefix expansion and the phantom-merge candidate queries exclude retired pages in SQL before uniqueness is counted. The exact-slug, basename and alias arms follow a retired page's `superseded_by` (else `merged_into`; `[[...]]`, `.md` and a leading `/` are stripped) within the same source, at most 5 hops, refusing on a cycle, a missing or deleted target, or (strict resolver with `excludePrivate`) a private one. An exact hit that cannot be followed is reported as `fallback_slugify` (unresolved) by `resolveEntitySlugWithSource` and as `not_entity` by `resolveStrictEntityReference`. Relational recall's exact-title fallback skips retired pages too.
+ - Alias lookup tries the literal normalized reference first, then its words rejoined with a space, `-` and `_`; a slug-shaped reference uses its last segment, and a folded hit must sit in the same parent directory (`projects/acme-example` never resolves to a `companies/` page's alias). `normalizeAlias` itself is unchanged, so stored `page_aliases` rows, search's alias hop, mentions and CJK handling behave as before.
+ - Tests: `test/entity-resolve-retired-alias-6898.test.ts` (PGLite, including the facts backstop landing both spellings on the canonical page) and `test/e2e/entity-resolve-retired-alias-6898-postgres.test.ts` share the fixture and cases in `test/helpers/retired-alias-6898.ts`; both fail on the previous resolver.
+
+ ## [0.60.282.0] - 2026-10-17
+
+ **The take grader now has an eval, and you can review what it has graded.** Wave 4b W6: a preregistered take-grading eval measures which judge models may ever auto-resolve a take, the dream cycle's take grader stops counting evidence about a look-alike company, and `gbrain takes grades` lists its cached verdicts. Auto-resolve stays off.
+
+ ### What you'd see
+
+ | Situation | Before | Now |
+ |---|---|---|
+ | The take grader's evidence mentions a different company whose name only resembles the one in the claim | the judge could grade the claim on the other company's outcome | prompt `hybrid-evidence-v2` tells it that evidence does not count, so the verdict is `unresolvable` |
+ | The judge wraps its JSON answer in prose, or repeats an answer that agrees | no verdict ("judge output parse failed"), retried next cycle | the answer parses; two answers that disagree still give no verdict |
+ | You want to see what the grader concluded | only the database table `take_grade_cache` | `gbrain takes grades [--verdict v] [--min-confidence n] [--applied\|--unapplied] [--limit n] [--json]` lists the newest verdict per take and marks judges the eval has not measured |
+
+ ### What you need to do
+
+ Nothing. Verdicts are cached per prompt version, so the next cycles grade each eligible take once more within the phase's existing budget (`cycle.grade_takes.budget_usd`). No take's resolution changes. `gbrain takes grades` runs on the brain host; thin clients refuse it.
+
+ ### For contributors
+
+ `evals/take-grading/` holds the eval (908 seeded synthetic takes, dev and counted splits, `--check` at $0) and its preregistration. On the counted split (790 takes, $9.25), `gpt-6.1-sol` qualified: 496 applied verdicts, none wrong (95% upper bound 0.6%, bar 1%), so `GRADE_TAKES_MEASURED_MODELS` (`src/core/cycle/grade-takes-measured.ts`) lists it. `claude-sonnet-5-5` (121 applied, 1 wrong) and `claude-opus-5-5` (2 applied: right verdicts, confidence below 0.95) did not. Results are mirrored in gbrain-evals.
+
+ ## [0.60.281.0] - 2026-10-17
+
+ **A PGLite brain that is draining a large effects backlog answers requests sooner, and master CI is green again.** When the write owner starts on a backlog of queued embedding effects, its first tick ran the receipt compaction pass, the reservation sweep and the queue `VACUUM` back to back next to the drain, and each drain pass held the event loop for its whole reservation true-up. PGLite statements run synchronously, so a request (or a timer) waited behind all of it: about 0.3 s on a fast machine and 2.2 s on a slow CI runner, which failed `test/persistence-drain-latency.serial.test.ts` on master. Now each of those steps returns to the event loop before the next one, and a request waits behind one step at most.
+
+ ### What you'd see
+
+ | Situation | Before | Now |
+ |---|---|---|
+ | longest wait for a tool call while 8,000 no-op embedding effects drain (local PGLite) | 290 to 380 ms | 86 to 120 ms |
+ | the same on a host about as slow as the CI runner that failed (statements slowed 4.5x) | 1.9 to 2.1 s (over the 2 s bound in 2 of 3 runs) | 1.0 to 1.2 s |
+ | time to drain that backlog (local) | about 2.8 s | about 3.5 s |
+
+ ### What to do
+
+ Nothing. Nothing is rewritten on upgrade and there is no migration. Postgres brains are unaffected apart from the smaller settle batch.
+
+ ### Itemized changes
+
+ - `src/core/persistence/journal.ts`: new `yieldToEventLoop`, which resumes from the timer queue so a timer that came due during the last statement chain runs before the next chain. The consumer's effects drain uses it between passes (it used `setImmediate`, which ran the next pass ahead of due timers). `vacuumPersistenceQueues` vacuums each grown queue table in its own statement with a yield before each.
+ - `src/core/persistence/compaction-pass.ts` and `src/core/persistence/consumer.ts`: the compaction pass yields after compacting and after the reservation sweep step, and the consumer's maintenance chains yield between the compaction pass, the segment sweep, the queue vacuum and the planner statistics refresh.
+ - `src/core/persistence/embedding-noop-settle.ts`: `NOOP_SETTLE_BATCH` is 50 (was 200), because one pass and its reservation true-up hold the event loop on PGLite.
+ - `DRAIN_ANSWER_BOUND_MS` and every assertion of the drain latency test are unchanged.
+ - New `test/persistence-maintenance-yield.test.ts`: the queue `VACUUM` runs in a later event-loop turn than the size check, the compaction pass, the sweep and the pass record each run in their own turn, and a yield resumes after a timer that came due before it. All three fail on the previous code.
+
## [0.60.280.0] - 2026-10-17
**A managed brain can now make a commit searchable in seconds, and every managed source reports how long that takes.** Until now a commit reached search only when the next scheduled sync ran, which on a managed brain could be most of an hour. Turn on `sync.on_commit` and `gbrain serve` notices the commit within about 3 seconds, waits 3 more for the commit burst to settle, and runs one managed sync for that source. The setting is off by default, so nothing changes until you turn it on.
diff --cc scripts/postgres-arm-weights.json
index b977ae2d5b,c8ba7ff636..b8e43718f3
--- a/scripts/postgres-arm-weights.json
+++ b/scripts/postgres-arm-weights.json
@@@ -1,228 -1,209 +1,234 @@@
{
- "test/activation-unbound-rooted-6449.test.ts": 9284,
- "test/alias-source-cascade-5094.test.ts": 17842,
- "test/attribution-backfill-history.test.ts": 31870,
- "test/backstop-same-page-shadow-managed-6333.test.ts": 8705,
- "test/behavior-change-notice.test.ts": 7485,
- "test/belief-ledger-coverage.test.ts": 166599,
- "test/belief-ledger-group.test.ts": 27031,
- "test/belief-ledger-identity.test.ts": 49815,
- "test/belief-ledger-lifecycle.test.ts": 46622,
- "test/belief-ledger-page-at-time.test.ts": 72079,
- "test/belief-ledger-privacy.test.ts": 28941,
- "test/belief-ledger-purge-review.test.ts": 180501,
- "test/belief-ledger-purge.test.ts": 126292,
- "test/belief-ledger-restore.test.ts": 207254,
- "test/belief-ledger-touched.test.ts": 44337,
- "test/belief-ledger-trust.test.ts": 16620,
- "test/belief-ledger-w5-time-model.test.ts": 26157,
- "test/belief-ledger-weekly-diff.test.ts": 92312,
- "test/belief-ledger-weekly-probes.test.ts": 31822,
- "test/capacity-bounded-read-6803.test.ts": 7072,
- "test/capture-consent-admission.test.ts": 10019,
- "test/capture-dispatch-provenance-6524.test.ts": 5500,
- "test/chronicle-backfill-max-usd.test.ts": 6678,
- "test/claim-fifo-foreground-waiting.test.ts": 5151,
- "test/claim-lease-holder-only-6712.test.ts": 5389,
- "test/claude-cli-output-cap.test.ts": 5877,
- "test/colon-slug-windows-5032.test.ts": 8014,
- "test/company-brain-policy.test.ts": 19103,
- "test/company-brain-runtime.test.ts": 24994,
- "test/conversation-facts-oversized-sidecar.test.ts": 7809,
- "test/cycle/synthesize-concepts-merge.test.ts": 11358,
- "test/decide/conflict-proposals-managed.test.ts": 8221,
- "test/declared-lineage-visibility.test.ts": 6377,
- "test/derived-link-reconciliation.test.ts": 7970,
- "test/doctor-frontmatter-holds.test.ts": 12587,
- "test/doctor-image-embedding-coverage.test.ts": 5122,
- "test/doctor-keyword-plan-6495.test.ts": 4315,
- "test/doctor-routing-skill-pack-source.test.ts": 5706,
- "test/doctor-sync-freshness-skill-pack-6076.test.ts": 5785,
- "test/embed-stale-images-managed-6529.test.ts": 7282,
- "test/embedding-completion-atomic.serial.test.ts": 9072,
- "test/engine-sql-facts-keyset.test.ts": 8039,
- "test/extract-all-stamp-intersection.serial.test.ts": 9662,
- "test/extract-atoms-input-truncated-6503.test.ts": 12553,
- "test/extract-endpoint-revision.serial.test.ts": 6692,
- "test/extract-entities-managed.test.ts": 24302,
- "test/extract-timeline-from-meetings-managed.test.ts": 18803,
- "test/extraction-watermark-atoms.test.ts": 6396,
- "test/fact-fence-adoption-exits.test.ts": 27297,
- "test/fact-purge-lookup-timeout-6511.test.ts": 5302,
- "test/fence-repair-receipts.test.ts": 12461,
- "test/frontmatter-reserved-keys-6454.test.ts": 7753,
- "test/get-chunks-paging.test.ts": 9498,
- "test/graduation-copy.test.ts": 91685,
- "test/graduation-digest.test.ts": 2823,
- "test/graduation-drain.test.ts": 12628,
- "test/graduation-inventory.test.ts": 7163,
- "test/graduation-rollback.test.ts": 105824,
- "test/graduation-state.test.ts": 177500,
- "test/graduation-target.test.ts": 5209,
- "test/graduation-verify-sync-freshness.test.ts": 8112,
- "test/graduation-verify.test.ts": 23629,
- "test/grandfather-managed.test.ts": 61753,
- "test/harness-skills-epoch.test.ts": 5066,
- "test/held-read-signals.test.ts": 13418,
- "test/hold-action-chain-6712.test.ts": 18093,
- "test/import-frontmatter-key-order-5158.test.ts": 6175,
- "test/import-inline-chunk-keep.test.ts": 6653,
- "test/import-revision-concurrency.test.ts": 8044,
- "test/keyword-statement-timeout-knob-6495.test.ts": 12099,
- "test/keyword-timeout-negative-cache-6495.test.ts": 3814,
- "test/lane-apply-pipelining.test.ts": 3596,
- "test/large-pages/chunk-visibility.test.ts": 6968,
- "test/large-pages/managed-streamed-import.test.ts": 37661,
- "test/large-pages/managed-sync-segmented-rename.test.ts": 19650,
- "test/large-pages/segment-vector-reuse.test.ts": 7577,
- "test/large-pages/segmented-body-unreachable.test.ts": 5550,
- "test/large-pages/segmented-derived-work.test.ts": 41352,
- "test/large-pages/segmented-embedding-paths.test.ts": 16817,
- "test/large-pages/segmented-embedding.test.ts": 7812,
- "test/large-pages/segmented-shrink-below-ceiling.test.ts": 74376,
- "test/large-pages/segmented-versions.test.ts": 7776,
- "test/link-cross-source.test.ts": 22782,
- "test/link-preparation-shared-index.test.ts": 15006,
- "test/links-attendance-blocked.test.ts": 12107,
- "test/managed-cycle-pull-upstream.test.ts": 7681,
- "test/managed-facts-withdrawal-recovery-6506.test.ts": 13058,
- "test/managed-facts-withdrawn-skip-6506.test.ts": 9772,
- "test/managed-lint.test.ts": 14844,
- "test/managed-maintenance-links.test.ts": 8698,
- "test/managed-sweep-corpus-windows.test.ts": 12458,
- "test/managed-sweep-refused-window-retry.test.ts": 15932,
- "test/managed-sweep-timeline.test.ts": 8882,
- "test/managed-sync-blocked-job-6858.test.ts": 8470,
- "test/managed-sync-bulk.test.ts": 190692,
- "test/managed-sync-checkpoint-replaced.test.ts": 11409,
- "test/managed-sync-chunker-version.test.ts": 9931,
- "test/managed-sync-concurrent-write-hold.test.ts": 18325,
- "test/managed-sync-connection-loss.test.ts": 11573,
- "test/managed-sync-drain.test.ts": 11283,
- "test/managed-sync-foreground-priority.test.ts": 72326,
- "test/managed-sync-gate-markers-6858.test.ts": 7568,
- "test/managed-sync-group-completion.test.ts": 12431,
- "test/managed-sync-group-uncommitted-head.test.ts": 16913,
- "test/managed-sync-images-5493.test.ts": 13252,
- "test/managed-sync-keep-disk-6858.test.ts": 29944,
- "test/managed-sync-lanes.test.ts": 25933,
- "test/managed-sync-orphans-incarnation-6518.test.ts": 5135,
- "test/managed-sync-page-fault-holds.test.ts": 29462,
- "test/managed-sync-pinned-reads.test.ts": 42370,
- "test/managed-sync-preparation-stalled-holds.test.ts": 46088,
- "test/managed-sync-row-parity.test.ts": 9515,
- "test/managed-sync-stale-group-head.test.ts": 6533,
- "test/migration-persistence-request-id-index.test.ts": 8828,
- "test/migration-persistence-request-slug-index.test.ts": 9616,
- "test/owner-refusal.test.ts": 5600,
- "test/pack-relation-direction-engine.test.ts": 9911,
- "test/page-embedding-budget.test.ts": 8920,
- "test/page-embedding-content-validity.test.ts": 7314,
- "test/page-embedding-install-batch.test.ts": 4798,
- "test/page-prepare-shared-origin-6517.test.ts": 16003,
- "test/page-purge-batch-sweep-6884.test.ts": 11199,
- "test/page-purge-journal-timeout-6511.test.ts": 21522,
- "test/page-state-engine.test.ts": 3464,
- "test/persistence-background-pause.test.ts": 8793,
- "test/persistence-bounded-read-session.test.ts": 7302,
- "test/persistence-capacity-forecast.test.ts": 11973,
- "test/persistence-capacity-notices.test.ts": 8177,
- "test/persistence-commit-durability.test.ts": 5326,
- "test/persistence-deactivate.test.ts": 21418,
- "test/persistence-diagnostics.test.ts": 6990,
- "test/persistence-edit-embedding-reuse.test.ts": 5723,
- "test/persistence-embedding-noop-settle.test.ts": 9909,
- "test/persistence-file-import.test.ts": 35752,
- "test/persistence-git-subdir-origin.test.ts": 13254,
- "test/persistence-graph-publication.test.ts": 7635,
- "test/persistence-history-fixture.test.ts": 35273,
- "test/persistence-image-import.serial.test.ts": 7510,
- "test/persistence-import-batch.test.ts": 33402,
- "test/persistence-managed-lifecycle.test.ts": 18745,
- "test/persistence-managed-sync.test.ts": 86891,
- "test/persistence-manifest-git-scope.test.ts": 8735,
- "test/persistence-memory-mutations.test.ts": 13529,
- "test/persistence-page-authority.test.ts": 6882,
- "test/persistence-physical-root-device.test.ts": 7146,
- "test/persistence-preactivation-claim.test.ts": 11198,
- "test/persistence-publication-deadline.test.ts": 22092,
- "test/persistence-receipt-true-up.test.ts": 10487,
- "test/persistence-reconcile-git-dirty-6138.test.ts": 6410,
- "test/persistence-skill-bundles.serial.test.ts": 8508,
- "test/persistence-skill-crash.slow.test.ts": 53388,
- "test/persistence-skip-cost.test.ts": 7534,
- "test/persistence-sync-cursor-adoption.test.ts": 61990,
- "test/persistence-sync-cursor-options.test.ts": 9181,
- "test/persistence-sync-cursor-strategy-6696.test.ts": 10662,
- "test/persistence-sync-fence-holds.test.ts": 23901,
- "test/persistence-sync-holds.test.ts": 30027,
- "test/persistence-sync-lease.test.ts": 30332,
- "test/persistence-write-stall.test.ts": 5031,
- "test/persistence-writer-fences.test.ts": 4697,
- "test/physical-root-birth-tolerance-6501.test.ts": 12220,
- "test/purge-fact.test.ts": 8007,
- "test/purge-global-marker.test.ts": 8996,
- "test/purge-read-surfaces.test.ts": 14742,
- "test/recall-page-fill.test.ts": 9842,
- "test/remediation-manual-only.test.ts": 8827,
- "test/repair-apply-pending-6543.test.ts": 55271,
- "test/repair-embedding-effects.test.ts": 7390,
- "test/repair-failed-writes-conflict-6429.test.ts": 6414,
- "test/repair-failed-writes-drift-w411.test.ts": 6109,
- "test/repair-fences.test.ts": 25625,
- "test/repair-file-drift-deleted-6712.test.ts": 10053,
- "test/repair-frontmatter-keys-sweep-6454.test.ts": 5910,
- "test/repair-frontmatter.test.ts": 18084,
- "test/repair-receipt-compaction.test.ts": 6999,
- "test/scripts/test-stress-postgres.test.ts": 12256,
- "test/search/page-rank-cut.test.ts": 10231,
- "test/search/rerank-gate-hybrid.test.ts": 9142,
- "test/search/rerank-gate-telemetry.test.ts": 5410,
- "test/shared-content-freshness.test.ts": 5018,
- "test/shared-skills-catalog.test.ts": 55640,
- "test/shared-skills-retention-capacity.test.ts": 4121,
- "test/shared-skills-source-opt-out.test.ts": 5549,
- "test/shared-skills-writer-boundary.test.ts": 31540,
- "test/source-retire-missing-checkout.test.ts": 5742,
- "test/source-row-diagnostics.test.ts": 4111,
- "test/stats-health-source-scope.test.ts": 3000,
- "test/sync-capacity-preflight.test.ts": 7305,
- "test/sync-checkpoint-moved-6834.test.ts": 20692,
- "test/sync-drain-claims.test.ts": 16081,
- "test/sync-drain-effect-recovery-blocked.test.ts": 9370,
- "test/sync-drain-head-blocked-6543.test.ts": 5496,
- "test/sync-drain-inpass-stall.test.ts": 4746,
- "test/sync-drain-write-capacity.test.ts": 6989,
- "test/sync-exits-l4-6712.test.ts": 8965,
- "test/sync-frontmatter-recovery.test.ts": 7143,
- "test/sync-frontmatter-slug-conflict.test.ts": 5928,
- "test/sync-full-cursor-slices-6349.test.ts": 16103,
- "test/sync-full-untracked-import-5459.test.ts": 12730,
- "test/sync-group-member-order.test.ts": 14670,
- "test/sync-handler-drain-6706.test.ts": 30608,
- "test/sync-import-provenance-disk.test.ts": 9132,
- "test/sync-inexact-rename-6729.test.ts": 24135,
- "test/sync-legacy-holds.test.ts": 13011,
- "test/sync-legacy-retry-actions-6696.test.ts": 9037,
- "test/sync-legacy-slug-adoption-6727.test.ts": 11434,
- "test/sync-origin-live-wins-6517.test.ts": 4469,
- "test/sync-prescreen-both-delta-6712.test.ts": 17607,
- "test/sync-prescreen-drift-6712.test.ts": 71395,
- "test/sync-slug-root-mode-6694.test.ts": 12033,
- "test/sync-staged-catchup.test.ts": 10288,
- "test/sync-status-failure-detail-6513.test.ts": 6137,
- "test/sync-waiver-budget.test.ts": 6853,
- "test/sync-waiver-run-imports.test.ts": 11721,
- "test/take-resolution-survives-publish.test.ts": 5108,
- "test/takes-vector-lifecycle-5885.serial.test.ts": 14033,
- "test/terminal-failures-6650.test.ts": 15137,
- "test/trust-channel-writes.test.ts": 13473,
- "test/trust-guarded-supersession.test.ts": 10608,
- "test/trust-held-removals.test.ts": 16888,
- "test/trust-owner-actions.test.ts": 11135,
- "test/unbound-source-6536.test.ts": 7094,
- "test/unindexed-files.test.ts": 13399,
- "test/withdrawal-overlay-concurrency.test.ts": 5327,
- "test/withdrawal-publication-file.test.ts": 5480,
- "test/writer-status-owner-backends.test.ts": 6952
- "test/activation-unbound-rooted-6449.test.ts": 6988,
- "test/alias-source-cascade-5094.test.ts": 16666,
- "test/attribution-backfill-history.test.ts": 25788,
- "test/backstop-same-page-shadow-managed-6333.test.ts": 7387,
- "test/behavior-change-notice.test.ts": 7392,
- "test/belief-ledger-coverage.test.ts": 126854,
- "test/belief-ledger-group.test.ts": 16434,
- "test/belief-ledger-identity.test.ts": 51738,
- "test/belief-ledger-lifecycle.test.ts": 51359,
- "test/belief-ledger-page-at-time.test.ts": 40050,
- "test/belief-ledger-privacy.test.ts": 23543,
- "test/belief-ledger-purge-review.test.ts": 132400,
- "test/belief-ledger-purge.test.ts": 82113,
- "test/belief-ledger-restore.test.ts": 137755,
- "test/belief-ledger-touched.test.ts": 35900,
- "test/belief-ledger-trust.test.ts": 15917,
- "test/belief-ledger-w5-time-model.test.ts": 10050,
- "test/belief-ledger-weekly-diff.test.ts": 62250,
- "test/belief-ledger-weekly-probes.test.ts": 26000,
- "test/capacity-bounded-read-6803.test.ts": 3000,
- "test/capture-consent-admission.test.ts": 10340,
- "test/capture-dispatch-provenance-6524.test.ts": 7890,
- "test/chronicle-backfill-max-usd.test.ts": 6426,
- "test/claude-cli-output-cap.test.ts": 6616,
- "test/colon-slug-windows-5032.test.ts": 8787,
- "test/company-brain-policy.test.ts": 15903,
- "test/company-brain-runtime.test.ts": 26974,
- "test/conversation-facts-oversized-sidecar.test.ts": 5184,
- "test/cycle/synthesize-concepts-merge.test.ts": 10502,
- "test/decide/conflict-proposals-managed.test.ts": 6815,
- "test/declared-lineage-visibility.test.ts": 6849,
- "test/derived-link-reconciliation.test.ts": 8003,
- "test/doctor-frontmatter-holds.test.ts": 11210,
- "test/doctor-image-embedding-coverage.test.ts": 6208,
- "test/doctor-keyword-plan-6495.test.ts": 4346,
- "test/doctor-routing-skill-pack-source.test.ts": 5763,
- "test/embed-stale-images-managed-6529.test.ts": 8584,
- "test/embedding-completion-atomic.serial.test.ts": 6798,
- "test/engine-sql-facts-keyset.test.ts": 6582,
- "test/extract-all-stamp-intersection.serial.test.ts": 9341,
- "test/extract-atoms-input-truncated-6503.test.ts": 12114,
- "test/extract-endpoint-revision.serial.test.ts": 9158,
- "test/extract-entities-managed.test.ts": 29072,
- "test/extract-timeline-from-meetings-managed.test.ts": 21187,
- "test/extraction-watermark-atoms.test.ts": 6351,
- "test/fact-fence-adoption-exits.test.ts": 26963,
- "test/fact-purge-lookup-timeout-6511.test.ts": 8682,
- "test/fence-repair-receipts.test.ts": 11974,
- "test/forecast-journal.test.ts": 12000,
- "test/frontmatter-reserved-keys-6454.test.ts": 9760,
- "test/get-chunks-paging.test.ts": 6453,
- "test/graduation-copy.test.ts": 92395,
- "test/graduation-digest.test.ts": 3935,
- "test/graduation-drain.test.ts": 14809,
- "test/graduation-inventory.test.ts": 6326,
- "test/graduation-rollback.test.ts": 111365,
- "test/graduation-state.test.ts": 186463,
- "test/graduation-target.test.ts": 4130,
- "test/graduation-verify-sync-freshness.test.ts": 8934,
- "test/graduation-verify.test.ts": 25245,
- "test/grandfather-managed.test.ts": 55407,
- "test/harness-skills-epoch.test.ts": 4291,
- "test/held-read-signals.test.ts": 9120,
- "test/hold-action-chain-6712.test.ts": 40000,
- "test/import-frontmatter-key-order-5158.test.ts": 7496,
- "test/import-inline-chunk-keep.test.ts": 6570,
- "test/import-revision-concurrency.test.ts": 4485,
- "test/keyword-statement-timeout-knob-6495.test.ts": 13994,
- "test/lane-apply-pipelining.test.ts": 4014,
- "test/large-pages/chunk-visibility.test.ts": 7528,
- "test/large-pages/managed-streamed-import.test.ts": 38870,
- "test/large-pages/managed-sync-segmented-rename.test.ts": 16690,
- "test/large-pages/segment-vector-reuse.test.ts": 7486,
- "test/large-pages/segmented-body-unreachable.test.ts": 4675,
- "test/large-pages/segmented-derived-work.test.ts": 45646,
- "test/large-pages/segmented-embedding-paths.test.ts": 16576,
- "test/large-pages/segmented-embedding.test.ts": 8959,
- "test/large-pages/segmented-shrink-below-ceiling.test.ts": 67509,
- "test/large-pages/segmented-versions.test.ts": 9239,
- "test/link-cross-source.test.ts": 16240,
- "test/link-preparation-shared-index.test.ts": 13507,
- "test/links-attendance-blocked.test.ts": 9107,
- "test/managed-cycle-pull-upstream.test.ts": 9016,
- "test/managed-facts-withdrawal-recovery-6506.test.ts": 8291,
- "test/managed-facts-withdrawn-skip-6506.test.ts": 11603,
- "test/managed-lint.test.ts": 10341,
- "test/managed-maintenance-links.test.ts": 6276,
- "test/managed-sweep-corpus-windows.test.ts": 15047,
- "test/managed-sweep-refused-window-retry.test.ts": 11493,
- "test/managed-sweep-timeline.test.ts": 5607,
- "test/managed-sync-bulk.test.ts": 193028,
- "test/managed-sync-checkpoint-replaced.test.ts": 8941,
- "test/managed-sync-chunker-version.test.ts": 8968,
- "test/managed-sync-concurrent-write-hold.test.ts": 16198,
- "test/managed-sync-drain.test.ts": 10209,
- "test/managed-sync-foreground-priority.test.ts": 52904,
- "test/managed-sync-group-completion.test.ts": 11296,
- "test/managed-sync-group-uncommitted-head.test.ts": 18510,
- "test/managed-sync-images-5493.test.ts": 14953,
- "test/managed-sync-lanes.test.ts": 19286,
- "test/managed-sync-orphans-incarnation-6518.test.ts": 5169,
- "test/managed-sync-page-fault-holds.test.ts": 24587,
- "test/managed-sync-pinned-reads.test.ts": 29255,
- "test/managed-sync-preparation-stalled-holds.test.ts": 42860,
- "test/managed-sync-row-parity.test.ts": 11212,
- "test/managed-sync-stale-group-head.test.ts": 8122,
- "test/migration-persistence-request-slug-index.test.ts": 11093,
- "test/owner-refusal.test.ts": 6837,
- "test/pack-relation-direction-engine.test.ts": 7782,
- "test/page-embedding-budget.test.ts": 8388,
- "test/page-embedding-content-validity.test.ts": 6779,
- "test/page-embedding-install-batch.test.ts": 5564,
- "test/page-prepare-shared-origin-6517.test.ts": 17121,
- "test/page-purge-journal-timeout-6511.test.ts": 23239,
- "test/page-state-engine.test.ts": 6367,
- "test/persistence-background-pause.test.ts": 6386,
- "test/persistence-bounded-read-session.test.ts": 9664,
- "test/persistence-capacity-forecast.test.ts": 14088,
- "test/persistence-capacity-notices.test.ts": 7656,
- "test/persistence-commit-durability.test.ts": 6734,
- "test/persistence-deactivate.test.ts": 24753,
- "test/persistence-diagnostics.test.ts": 8770,
- "test/persistence-edit-embedding-reuse.test.ts": 6027,
- "test/persistence-embedding-noop-settle.test.ts": 10366,
- "test/persistence-file-import.test.ts": 37300,
- "test/persistence-git-subdir-origin.test.ts": 18315,
- "test/persistence-graph-publication.test.ts": 6258,
- "test/persistence-history-fixture.test.ts": 33255,
- "test/persistence-image-import.serial.test.ts": 8315,
- "test/persistence-import-batch.test.ts": 27787,
- "test/persistence-managed-lifecycle.test.ts": 21835,
- "test/persistence-managed-sync.test.ts": 88809,
- "test/persistence-manifest-git-scope.test.ts": 7881,
- "test/persistence-memory-mutations.test.ts": 13197,
- "test/persistence-page-authority.test.ts": 7632,
- "test/persistence-physical-root-device.test.ts": 7327,
- "test/persistence-preactivation-claim.test.ts": 12442,
- "test/persistence-publication-deadline.test.ts": 20426,
- "test/persistence-receipt-true-up.test.ts": 15138,
- "test/persistence-reconcile-git-dirty-6138.test.ts": 8445,
- "test/persistence-skill-bundles.serial.test.ts": 8866,
- "test/persistence-skill-crash.slow.test.ts": 43178,
- "test/persistence-skip-cost.test.ts": 7714,
- "test/persistence-sync-cursor-adoption.test.ts": 60388,
- "test/persistence-sync-cursor-options.test.ts": 11035,
- "test/persistence-sync-cursor-strategy-6696.test.ts": 11399,
- "test/persistence-sync-fence-holds.test.ts": 32583,
- "test/persistence-sync-holds.test.ts": 33680,
- "test/persistence-sync-lease.test.ts": 28063,
- "test/persistence-write-stall.test.ts": 6148,
- "test/persistence-writer-fences.test.ts": 6141,
- "test/physical-root-birth-tolerance-6501.test.ts": 13215,
- "test/purge-fact.test.ts": 9458,
- "test/purge-global-marker.test.ts": 6639,
- "test/recall-page-fill.test.ts": 18213,
- "test/remediation-manual-only.test.ts": 10764,
- "test/repair-apply-pending-6543.test.ts": 63980,
- "test/repair-embedding-effects.test.ts": 16658,
- "test/repair-failed-writes-conflict-6429.test.ts": 6471,
- "test/repair-failed-writes-drift-w411.test.ts": 7790,
- "test/repair-fences.test.ts": 22434,
- "test/repair-frontmatter-keys-sweep-6454.test.ts": 11598,
- "test/repair-frontmatter.test.ts": 25869,
- "test/repair-receipt-compaction.test.ts": 8748,
- "test/scripts/test-stress-postgres.test.ts": 12609,
- "test/search/page-rank-cut.test.ts": 12057,
- "test/search/rerank-gate-hybrid.test.ts": 11809,
- "test/search/rerank-gate-telemetry.test.ts": 5756,
- "test/shared-content-freshness.test.ts": 10820,
- "test/shared-skills-catalog.test.ts": 69953,
- "test/shared-skills-retention-capacity.test.ts": 7872,
- "test/shared-skills-source-opt-out.test.ts": 7528,
- "test/shared-skills-writer-boundary.test.ts": 31470,
- "test/source-retire-missing-checkout.test.ts": 5776,
- "test/source-row-diagnostics.test.ts": 4605,
- "test/stats-health-source-scope.test.ts": 3488,
- "test/sync-capacity-preflight.test.ts": 9493,
- "test/sync-drain-claims.test.ts": 16210,
- "test/sync-drain-head-blocked-6543.test.ts": 7583,
- "test/sync-drain-inpass-stall.test.ts": 6902,
- "test/sync-drain-write-capacity.test.ts": 11054,
- "test/sync-exits-l4-6712.test.ts": 15000,
- "test/sync-frontmatter-recovery.test.ts": 9314,
- "test/sync-frontmatter-slug-conflict.test.ts": 7546,
- "test/sync-full-cursor-slices-6349.test.ts": 19023,
- "test/sync-full-untracked-import-5459.test.ts": 10408,
- "test/sync-group-member-order.test.ts": 10911,
- "test/sync-handler-drain-6706.test.ts": 34366,
- "test/sync-import-provenance-disk.test.ts": 12766,
- "test/sync-legacy-holds.test.ts": 13590,
- "test/sync-legacy-retry-actions-6696.test.ts": 9241,
- "test/sync-origin-live-wins-6517.test.ts": 6075,
- "test/sync-prescreen-drift-6712.test.ts": 93074,
- "test/sync-slug-root-mode-6694.test.ts": 16023,
- "test/sync-staged-catchup.test.ts": 11428,
- "test/sync-status-failure-detail-6513.test.ts": 5932,
- "test/sync-waiver-budget.test.ts": 9112,
- "test/sync-waiver-run-imports.test.ts": 16156,
- "test/takes-vector-lifecycle-5885.serial.test.ts": 12541,
- "test/terminal-failures-6650.test.ts": 17078,
- "test/trust-channel-writes.test.ts": 12183,
- "test/trust-guarded-supersession.test.ts": 12870,
- "test/trust-owner-actions.test.ts": 13005,
- "test/unbound-source-6536.test.ts": 7861,
- "test/withdrawal-overlay-concurrency.test.ts": 5602,
- "test/withdrawal-publication-file.test.ts": 7149,
- "test/writer-status-owner-backends.test.ts": 5086
++ "test/activation-unbound-rooted-6449.test.ts": 7080,
++ "test/alias-source-cascade-5094.test.ts": 13657,
++ "test/attribution-backfill-history.test.ts": 31395,
++ "test/backstop-same-page-shadow-managed-6333.test.ts": 8930,
++ "test/behavior-change-notice.test.ts": 7265,
++ "test/belief-ledger-coverage.test.ts": 153852,
++ "test/belief-ledger-group.test.ts": 22963,
++ "test/belief-ledger-identity.test.ts": 47161,
++ "test/belief-ledger-lifecycle.test.ts": 46315,
++ "test/belief-ledger-page-at-time.test.ts": 69931,
++ "test/belief-ledger-privacy.test.ts": 21342,
++ "test/belief-ledger-purge-review.test.ts": 157926,
++ "test/belief-ledger-purge.test.ts": 101521,
++ "test/belief-ledger-restore.test.ts": 153790,
++ "test/belief-ledger-touched.test.ts": 37413,
++ "test/belief-ledger-trust.test.ts": 17303,
++ "test/belief-ledger-w5-time-model.test.ts": 20936,
++ "test/belief-ledger-weekly-diff.test.ts": 83970,
++ "test/belief-ledger-weekly-probes.test.ts": 31666,
++ "test/capacity-bounded-read-6803.test.ts": 8220,
++ "test/capture-consent-admission.test.ts": 8727,
++ "test/capture-dispatch-provenance-6524.test.ts": 4641,
++ "test/chronicle-backfill-max-usd.test.ts": 5856,
++ "test/claim-fifo-foreground-waiting.test.ts": 5540,
++ "test/claim-lease-holder-only-6712.test.ts": 5127,
++ "test/claude-cli-output-cap.test.ts": 5175,
++ "test/colon-slug-windows-5032.test.ts": 8021,
++ "test/company-brain-policy.test.ts": 12500,
++ "test/company-brain-runtime.test.ts": 23415,
++ "test/conversation-facts-oversized-sidecar.test.ts": 5179,
++ "test/cycle/synthesize-concepts-merge.test.ts": 7710,
++ "test/decide/conflict-proposals-managed.test.ts": 6319,
++ "test/declared-lineage-visibility.test.ts": 4802,
++ "test/derived-link-reconciliation.test.ts": 6857,
++ "test/doctor-frontmatter-holds.test.ts": 10190,
++ "test/doctor-image-embedding-coverage.test.ts": 5057,
++ "test/doctor-keyword-plan-6495.test.ts": 4106,
++ "test/doctor-routing-skill-pack-source.test.ts": 5019,
++ "test/doctor-sync-freshness-skill-pack-6076.test.ts": 5155,
++ "test/embed-stale-images-managed-6529.test.ts": 6696,
++ "test/embedding-completion-atomic.serial.test.ts": 6963,
++ "test/engine-sql-facts-keyset.test.ts": 4730,
++ "test/extract-all-stamp-intersection.serial.test.ts": 6042,
++ "test/extract-atoms-input-truncated-6503.test.ts": 9796,
++ "test/extract-endpoint-revision.serial.test.ts": 6049,
++ "test/extract-entities-managed.test.ts": 22323,
++ "test/extract-timeline-from-meetings-managed.test.ts": 14651,
++ "test/extraction-watermark-atoms.test.ts": 5406,
++ "test/fact-fence-adoption-exits.test.ts": 22460,
++ "test/fact-purge-lookup-timeout-6511.test.ts": 6849,
++ "test/fence-repair-receipts.test.ts": 8866,
++ "test/forecast-journal.test.ts": 19357,
++ "test/frontmatter-reserved-keys-6454.test.ts": 6992,
++ "test/get-chunks-paging.test.ts": 4456,
++ "test/graduation-copy.test.ts": 79474,
++ "test/graduation-digest.test.ts": 2569,
++ "test/graduation-drain.test.ts": 10445,
++ "test/graduation-inventory.test.ts": 4641,
++ "test/graduation-rollback.test.ts": 92093,
++ "test/graduation-state.test.ts": 148944,
++ "test/graduation-target.test.ts": 3186,
++ "test/graduation-verify-sync-freshness.test.ts": 5786,
++ "test/graduation-verify.test.ts": 16342,
++ "test/grandfather-managed.test.ts": 51437,
++ "test/harness-skills-epoch.test.ts": 3785,
++ "test/held-read-signals.test.ts": 7195,
++ "test/hold-action-chain-6712.test.ts": 19697,
++ "test/import-frontmatter-key-order-5158.test.ts": 4992,
++ "test/import-inline-chunk-keep.test.ts": 7131,
++ "test/import-revision-concurrency.test.ts": 4369,
++ "test/keyword-statement-timeout-knob-6495.test.ts": 13276,
++ "test/keyword-timeout-negative-cache-6495.test.ts": 4665,
++ "test/lane-apply-pipelining.test.ts": 4166,
++ "test/large-pages/chunk-visibility.test.ts": 5030,
++ "test/large-pages/managed-streamed-import.test.ts": 34960,
++ "test/large-pages/managed-sync-segmented-rename.test.ts": 17371,
++ "test/large-pages/segment-vector-reuse.test.ts": 4809,
++ "test/large-pages/segmented-body-unreachable.test.ts": 5557,
++ "test/large-pages/segmented-derived-work.test.ts": 43381,
++ "test/large-pages/segmented-embedding-paths.test.ts": 13763,
++ "test/large-pages/segmented-embedding.test.ts": 5288,
++ "test/large-pages/segmented-shrink-below-ceiling.test.ts": 64855,
++ "test/large-pages/segmented-versions.test.ts": 6054,
++ "test/link-cross-source.test.ts": 15083,
++ "test/link-preparation-shared-index.test.ts": 10715,
++ "test/links-attendance-blocked.test.ts": 7662,
++ "test/managed-cycle-pull-upstream.test.ts": 8624,
++ "test/managed-facts-withdrawal-recovery-6506.test.ts": 9421,
++ "test/managed-facts-withdrawn-skip-6506.test.ts": 7198,
++ "test/managed-lint.test.ts": 13167,
++ "test/managed-maintenance-links.test.ts": 6653,
++ "test/managed-sweep-corpus-windows.test.ts": 7317,
++ "test/managed-sweep-refused-window-retry.test.ts": 14166,
++ "test/managed-sweep-timeline.test.ts": 5961,
++ "test/managed-sync-blocked-job-6858.test.ts": 7039,
++ "test/managed-sync-bulk.test.ts": 190912,
++ "test/managed-sync-checkpoint-replaced.test.ts": 7369,
++ "test/managed-sync-chunker-version.test.ts": 6596,
++ "test/managed-sync-concurrent-write-hold.test.ts": 16015,
++ "test/managed-sync-connection-loss.test.ts": 9622,
++ "test/managed-sync-drain.test.ts": 8841,
++ "test/managed-sync-foreground-priority.test.ts": 68114,
++ "test/managed-sync-gate-markers-6858.test.ts": 5894,
++ "test/managed-sync-group-completion.test.ts": 10757,
++ "test/managed-sync-group-uncommitted-head.test.ts": 17431,
++ "test/managed-sync-images-5493.test.ts": 9749,
++ "test/managed-sync-keep-disk-6858.test.ts": 29794,
++ "test/managed-sync-lanes.test.ts": 25172,
++ "test/managed-sync-orphans-incarnation-6518.test.ts": 5088,
++ "test/managed-sync-page-fault-holds.test.ts": 28587,
++ "test/managed-sync-pinned-reads.test.ts": 31001,
++ "test/managed-sync-preparation-stalled-holds.test.ts": 41323,
++ "test/managed-sync-row-parity.test.ts": 10475,
++ "test/managed-sync-stale-group-head.test.ts": 4637,
++ "test/migration-persistence-request-id-index.test.ts": 6745,
++ "test/migration-persistence-request-slug-index.test.ts": 7897,
++ "test/on-commit-embedding.serial.test.ts": 11338,
++ "test/overwritten-edits-6712.test.ts": 40760,
++ "test/owner-refusal.test.ts": 6040,
++ "test/pack-relation-direction-engine.test.ts": 7827,
++ "test/page-embedding-budget.test.ts": 7150,
++ "test/page-embedding-content-validity.test.ts": 6492,
++ "test/page-embedding-install-batch.test.ts": 4743,
++ "test/page-prepare-shared-origin-6517.test.ts": 13467,
++ "test/page-purge-batch-sweep-6884.test.ts": 8964,
++ "test/page-purge-journal-timeout-6511.test.ts": 21023,
++ "test/page-state-engine.test.ts": 4191,
++ "test/persistence-background-pause.test.ts": 6890,
++ "test/persistence-bounded-read-session.test.ts": 7431,
++ "test/persistence-capacity-forecast.test.ts": 11129,
++ "test/persistence-capacity-notices.test.ts": 6387,
++ "test/persistence-commit-durability.test.ts": 5047,
++ "test/persistence-deactivate.test.ts": 21163,
++ "test/persistence-diagnostics.test.ts": 6904,
++ "test/persistence-edit-embedding-reuse.test.ts": 6130,
++ "test/persistence-embedding-noop-settle.test.ts": 8967,
++ "test/persistence-file-import.test.ts": 30452,
++ "test/persistence-git-subdir-origin.test.ts": 14477,
++ "test/persistence-graph-publication.test.ts": 6700,
++ "test/persistence-history-fixture.test.ts": 31095,
++ "test/persistence-image-import.serial.test.ts": 4976,
++ "test/persistence-import-batch.test.ts": 22807,
++ "test/persistence-managed-lifecycle.test.ts": 17680,
++ "test/persistence-managed-sync.test.ts": 84681,
++ "test/persistence-manifest-git-scope.test.ts": 6173,
++ "test/persistence-memory-mutations.test.ts": 10911,
++ "test/persistence-page-authority.test.ts": 6645,
++ "test/persistence-physical-root-device.test.ts": 6240,
++ "test/persistence-preactivation-claim.test.ts": 8934,
++ "test/persistence-publication-deadline.test.ts": 20063,
++ "test/persistence-receipt-true-up.test.ts": 10240,
++ "test/persistence-reconcile-git-dirty-6138.test.ts": 5606,
++ "test/persistence-skill-bundles.serial.test.ts": 6827,
++ "test/persistence-skill-crash.slow.test.ts": 47984,
++ "test/persistence-skip-cost.test.ts": 6177,
++ "test/persistence-sync-cursor-adoption.test.ts": 62618,
++ "test/persistence-sync-cursor-options.test.ts": 8590,
++ "test/persistence-sync-cursor-strategy-6696.test.ts": 9466,
++ "test/persistence-sync-fence-holds.test.ts": 27099,
++ "test/persistence-sync-holds.test.ts": 25686,
++ "test/persistence-sync-lease.test.ts": 29845,
++ "test/persistence-write-stall.test.ts": 6190,
++ "test/persistence-writer-fences.test.ts": 5493,
++ "test/physical-root-birth-tolerance-6501.test.ts": 7798,
++ "test/purge-fact.test.ts": 8285,
++ "test/purge-global-marker.test.ts": 6946,
++ "test/purge-read-surfaces.test.ts": 13857,
++ "test/recall-page-fill.test.ts": 9323,
++ "test/remediation-manual-only.test.ts": 9712,
++ "test/repair-apply-pending-6543.test.ts": 56229,
++ "test/repair-embedding-effects.test.ts": 7879,
++ "test/repair-failed-writes-conflict-6429.test.ts": 6627,
++ "test/repair-failed-writes-drift-w411.test.ts": 5448,
++ "test/repair-fences.test.ts": 23386,
++ "test/repair-file-drift-deleted-6712.test.ts": 11017,
++ "test/repair-frontmatter-keys-sweep-6454.test.ts": 6983,
++ "test/repair-frontmatter.test.ts": 19213,
++ "test/repair-receipt-compaction.test.ts": 7463,
++ "test/repair-rename-identity-6729.test.ts": 13304,
++ "test/scripts/test-stress-postgres.test.ts": 12090,
++ "test/search/page-rank-cut.test.ts": 13039,
++ "test/search/rerank-gate-hybrid.test.ts": 6503,
++ "test/search/rerank-gate-telemetry.test.ts": 4409,
++ "test/serve-head-watcher-managed.serial.test.ts": 7839,
++ "test/shared-content-freshness.test.ts": 4787,
++ "test/shared-skills-catalog.test.ts": 56965,
++ "test/shared-skills-retention-capacity.test.ts": 5946,
++ "test/shared-skills-source-opt-out.test.ts": 5563,
++ "test/shared-skills-writer-boundary.test.ts": 18563,
++ "test/source-retire-missing-checkout.test.ts": 5923,
++ "test/source-row-diagnostics.test.ts": 4855,
++ "test/stats-health-source-scope.test.ts": 3643,
++ "test/sync-capacity-preflight.test.ts": 7051,
++ "test/sync-checkpoint-moved-6834.test.ts": 18433,
++ "test/sync-drain-claims.test.ts": 13024,
++ "test/sync-drain-effect-recovery-blocked.test.ts": 7818,
++ "test/sync-drain-head-blocked-6543.test.ts": 5745,
++ "test/sync-drain-inpass-stall.test.ts": 5440,
++ "test/sync-drain-write-capacity.test.ts": 8850,
++ "test/sync-exits-l4-6712.test.ts": 8563,
++ "test/sync-freshness-6858.test.ts": 6052,
++ "test/sync-frontmatter-recovery.test.ts": 5760,
++ "test/sync-frontmatter-slug-conflict.test.ts": 5159,
++ "test/sync-full-cursor-slices-6349.test.ts": 14626,
++ "test/sync-full-untracked-import-5459.test.ts": 12878,
++ "test/sync-group-member-order.test.ts": 10886,
++ "test/sync-handler-drain-6706.test.ts": 30697,
++ "test/sync-import-provenance-disk.test.ts": 10333,
++ "test/sync-inexact-rename-6729.test.ts": 27158,
++ "test/sync-legacy-holds.test.ts": 12645,
++ "test/sync-legacy-retry-actions-6696.test.ts": 7968,
++ "test/sync-legacy-slug-adoption-6727.test.ts": 13131,
++ "test/sync-origin-live-wins-6517.test.ts": 5119,
++ "test/sync-prescreen-both-delta-6712.test.ts": 17527,
++ "test/sync-prescreen-drift-6712.test.ts": 64148,
++ "test/sync-slug-root-mode-6694.test.ts": 10436,
++ "test/sync-staged-catchup.test.ts": 11726,
++ "test/sync-status-failure-detail-6513.test.ts": 4494,
++ "test/sync-waiver-budget.test.ts": 6776,
++ "test/sync-waiver-run-imports.test.ts": 11953,
++ "test/take-resolution-survives-publish.test.ts": 4246,
++ "test/takes-vector-lifecycle-5885.serial.test.ts": 10833,
++ "test/terminal-failures-6650.test.ts": 15278,
++ "test/trust-channel-writes.test.ts": 12050,
++ "test/trust-guarded-supersession.test.ts": 10200,
++ "test/trust-held-removals.test.ts": 14461,
++ "test/trust-owner-actions.test.ts": 8266,
++ "test/unbound-source-6536.test.ts": 6158,
++ "test/unindexed-files.test.ts": 14783,
++ "test/withdrawal-overlay-concurrency.test.ts": 4453,
++ "test/withdrawal-publication-file.test.ts": 5275,
++ "test/writer-status-owner-backends.test.ts": 4581
}
diff --cc src/core/behavior-change-notice.ts
index 310bb91a03,f07af53cc6..08cd646877
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -766,9 -766,84 +766,87 @@@ export const BEHAVIOR_CHANGES: Readonly
{ since: '0.60.278.0', text: '`gbrain extract --stale --source <id>` now refuses with `invalid_params` naming `--source-id <id>` instead of running brain-wide; `--source fs` exits 2 `invalid_params` (it exited 1), and `--source db` refuses as ambiguous when a source is named `db`. Rendered extract fixes pin `--source-id`. The end-of-sync extraction nudge stays silent when doctor `links_extraction_lag` would not warn (attendance-blocked meetings no longer count), names both `gbrain extract --stale` and `gbrain extract --stale --catch-up` with estimates, and becomes a run-it-yourself step above two minutes; `extract --stale` JSON gains `actionable`, `attendance_blocked`, `mention_due` and `complete`; the per-source "still owe extraction" line counts only pages that sync imported; and an owner-delegated plain `extract --stale` keeps the 30-minute budget (`--catch-up` is carried through).' },
// #6712 #6887 (DB-only overwrite hotfix).
{ since: '0.60.279.0', text: 'On a managed brain an incremental `gbrain sync` no longer publishes a committed file edit over a page that was also edited in the database since its last import (for example a `put_page` with `sync.write_through` off). The file is held `file_drift` (side `both`) and the page keeps its edit; `gbrain repair file-drift --slug <slug>` previews both sides. A page deleted in the database is held the same way instead of being recreated from the file. A database change an import keeps (a tag, say) holds nothing: the edit imports and the tag stays. Before, only a first sync, `--full` or a failed delta guarded this case, and the plain sync overwrote the database edit with no hold.' },
+ // Wave 4b W6 take grading. `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
+ { since: '0.60.282.0', text: 'The dream cycle\'s take-grading phase (`grade_takes`) now asks its judge with prompt `hybrid-evidence-v2`: evidence about a different company, person or product whose name only resembles the one in the claim no longer counts toward a verdict. An answer with prose around its JSON, or a repeated answer that agrees, now parses instead of failing (two answers that disagree are still no verdict). Verdicts are cached per prompt version, so the next cycles grade each eligible take once more, within the phase\'s budget (`cycle.grade_takes.budget_usd`, default $3 a run). Auto-resolve stays off, so no take\'s resolution changes. New: `gbrain takes grades` lists the cached verdicts for review and marks judges the take-grading eval has not measured.' },
+
+ // Wave 18 lane 1 (#6778 #6761 #6791 #6773).
+ { since: '0.60.284.0', text: 'Facts absorb now waits for its write up to the job deadline instead of 5 s. A write still committing is logged `write_pending_accepted` and writer contention before admission `write_deferred_unadmitted`; neither counts toward the doctor\'s facts_extraction_health threshold, and persistent contention gets its own warning (`gbrain sources writer status --source <id> --json`).' },
+ { since: '0.60.284.0', text: 'facts_extraction_health reports its 24 h failure count as history (rolling, with an ages-out time) and separately names facts-absorb jobs still dead, with `gbrain jobs retry <id>` as the fix; it no longer suggests raising `facts.absorb_warn_threshold`, and the thresholds are unchanged.' },
+ { since: '0.60.284.0', text: 'A `claude-cli` answer that Claude Code continued after hitting its output cap is now rebuilt in full from the call\'s event stream (the CLI runs with `--verbose`) instead of returning only the text after the continuation as a complete answer. When the full text cannot be proven, the call returns no text and no tool calls, finishes `length` (callers retry or escalate as for any capped answer) and reports `providerMetadata[\'claude-cli\'].code = \'continuation_unproven\'` with reason `events_missing`, `no_assistant_events` or `segments_unmatched`, and one stderr line per reason per process naming its remedy (upgrade the claude CLI for the first two, raise the caller\'s output cap for the third).' },
+ { since: '0.60.284.0', text: 'Generated dream-cycle summaries now carry `created: <summary date>` in their frontmatter, so they pass `gbrain lint`\'s temporal check.' },
+ // Wave 18 lane 2 (#6743 #6739 #6755 #6729).
+ { since: '0.60.284.0', text: '`gbrain bootstrap harness` exits 14 (`bootstrap_cleanup_pending`, JSON `status: "cleanup_pending"`) instead of 0 when the harness is wired but earlier shared-skills enrollments or carried previous token ids are not cleaned up yet, and `--status` exits 14 instead of 1 for the same state; the JSON gains a per-id `cleanup` list and a `fix`. Each carried token id is now revoked on its own once no enrollment holds it, and an old enrollment whose token was already revoked finishes its local cleanup and counts as left (`credential_revoked`) instead of blocking every revocation. Doctor `bootstrap_harness_health` names each id as revoked (cleanup pending) or active and recommends leave before revoke.' },
+ { since: '0.60.284.0', text: 'The first Claude Code `user-prompt` hook in a new working folder now records heartbeat outcome `ok` with prompt-only context instead of `degraded` / `transcript_unreadable`: Claude Code creates `~/.claude/projects/<project>/` only after that prompt, so a transcript whose project folder does not exist yet reads as absent, the same as a not-yet-written transcript (#5465). It applies only when the missing folder is a direct child of an existing folder inside the projects root and the path has no `..` segment; any other missing path still fails closed. A missing transcript at `session-end` is still reported as degraded.' },
+ { since: '0.60.284.0', text: 'On a Postgres brain with no sync.repo_path, the v0.11.0 migration no longer runs `gbrain autopilot --install` during an upgrade. Phase F is recorded as skipped (reason no_repo_path) with the exact install command (the default source\'s path when it has one), the migration completes instead of wedging after three partial runs, and `gbrain doctor` shows a minions_migration line with that command until an autopilot is installed for the brain. A brain already wedged on v0.11.0 by partials that failed only the install phase is cleared automatically on the next apply-migrations run when its sync.repo_path is unset (a \'retry\' row with reason phase_f_no_repo_path is appended to migrations/completed.jsonl); with sync.repo_path set the --force-retry advice stands. Phase F ledger entries now carry a reason code (no_repo_path, autopilot_already_installed, install_failed). Separately, a direct `gbrain autopilot --install` with no --repo and no sync.repo_path now installs for the default source\'s local_path instead of refusing. Wedged-migration advice now names migrations/completed.jsonl (phases[].detail) instead of upgrade-errors.jsonl.' },
+ { since: '0.60.284.0', text: 'New explicit-only repair kind `gbrain repair rename-identity --source <id>` for an inexact Git rename that sync split into a delete plus an add (#6729). Without `--slug` the preview lists the open pairs with their preview commands. `--slug <new-slug>` (and `--from <old-slug>` when two pairs share it) previews one pair and binds both page ids, both revisions and the disposition into its hash; `--apply --expect <hash> --yes` (destructive consent; without `--yes` a non-interactive run exits 3 with the consent payload) carries the old page id onto the new slug with its version history, timeline, links, facts and aliases, imports the new file onto it as an edit and retires the provisional page (soft-deleted under a purged slug). Facts of both pages survive or the carry refuses `fact_rows_collide` before writing. Carrying identity is classic-only: on a managed source the preview states `managed_remedy_unavailable` and names `--close`, and an apply refuses with that code. `--close` settles the pair and moves nothing, on both kinds of source. Both settle the record (`disposition` remedied or closed), which releases the purge hold. `--all`, the maintenance cycle and the remediation plan never run it.' },
+ { since: '0.60.284.0', text: 'The #6729 sync report, `gbrain sync status --json` (`identity_downgrades[].remedy`) and doctor `rename_identity_downgrades` now name each open pair\'s remedy: the `gbrain repair rename-identity` preview argv, the apply argv bound to the plan hash, `consent: ["destructive"]` and what releases the purge hold. On a managed source the remedy is `--close` (`carry_unavailable: "managed_remedy_unavailable"`), because carrying identity is unavailable there. Doctor\'s fix is the first pair\'s apply (`ask_user`, with `preview_argv` and `plan_hash`); `gbrain restore <old-slug> --source-id <id> --force` stays the named alternative wherever the source admits a restore (`restore_available`, so not on an unbound Postgres source with a checkout); there the remedy is the only fix doctor offers, and `restore_unavailable_sources` lists those sources.' },
+ // Wave 18 lane 3 (#6740 #6742 #6720 #6731 #6764).
+ { since: '0.60.284.0', text: 'The entity mention scan no longer reads text inside HTML comments, so the `<!--- gbrain:... -->` fence markers stop producing `mentions` links to a page titled like a marker word (#6740). `MENTION_EXTRACTOR_VERSION` is now 6: the next `gbrain extract --stale` (or maintenance cycle) rescans every inline-body page once and removes the stale plain mention rows; `typed_ner` edges are untouched and segmented pages stay deferred as before. Entity cards and `get_backlinks` show a mention coverage notice (state `pending`) until that rescan finishes.' },
+ { since: '0.60.284.0', text: 'The bundled `gbrain-base-v2` schema pack (the `init` default, also inherited by `company-brain`) is now version 1.4.0 and declares the `question` page type the pinned-question writer stamps, so a pinned question no longer makes doctor `schema_pack_consistency` warn `page_type_undeclared` (#6742). Existing question pages keep their type; no data changes. The active pack identity reads `[email protected]+<hash>`.' },
+ { since: '0.60.284.0', text: 'A page-derived atom now carries its source page\'s content date as frontmatter `date` (the source\'s stored `effective_date`, else the same precedence import uses), so its `effective_date` is the date of the conversation or note it came from instead of the extraction run (#6720); `extracted_at` stays the processing stamp and transcript-derived atoms are unchanged. Atoms extracted before this release keep their run dates until re-extracted (`gbrain dream --phase extract_atoms` with `--force` re-pays the model); a preview-first backfill repair is planned.' },
+ { since: '0.60.284.0', text: '`gbrain extract-conversation-facts` (and the `conversation_facts_backfill` cycle phase) now tells the extractor which entities the conversation page itself links (its frontmatter attendees and the entity pages its body links, same source, up to 40 slugs), so facts about those people and companies are stored on their pages instead of a guess from a first name (#6731). A private entity is hinted only when the run writes private facts. The `extract_facts` operation\'s prompt and 5-hint cap are unchanged.' },
+ { since: '0.60.284.0', text: '`gbrain extract-conversation-facts` (and the `conversation_facts_backfill` cycle phase) now runs the free write-time subject inference on facts the extractor returns without an entity, so a fact naming exactly one entity page in full is stored on that entity (context note `entity inferred from mention`; off with `facts.entity_inference false`) (#6764). Doctor `unlinked_facts` counts the conversation extractor\'s unlinked rows on their own (origin `conversation`, no longer inside fence-owned) and, because `gbrain facts relink` never examines them, its fix is a bounded, source-qualified re-extraction of the pages with the most (`--slugs`, up to 50, `--force --max-cost-usd <N>` with the approved amount as the input `N`, preview `--dry-run`; paid, asks the user first). A `replaces` naming a conversation-derived fact now says to re-extract its page instead of hinting at a fence edit.' },
+ { since: '0.60.284.0', text: 'New `gbrain facts relink --conversation` links the conversation extractor\'s facts that were stored without an entity, for free: a fact naming exactly one entity page in full is linked (context note `entity relinked from mention`), one write per page (a receipted coordinator request on a managed brain), no model call (#6764). Doctor `unlinked_facts` now prescribes it first for those rows (consent none, the agent runs it, preview `--dry-run`); a fact it cannot resolve is recorded (`fact_relink_attempts` outcome `conversation_unresolved`), and only then does the doctor offer the paid re-extraction of its page, capped at the amount the user approves (`--max-cost-usd <N>`). A re-extraction of the page keeps a relinked fact\'s entity on the claim\'s new row. Rows the free pass could not resolve no longer count toward doctor\'s 25% new-fact warning. Once a page was re-extracted on its current content, doctor stops offering the paid re-extraction for it and lists the facts left for linking by hand (`--entity`); editing the page offers it again.' },
+ // Wave 18 lane 4 (#6725 #6723 #6724).
+ { since: '0.60.284.0', text: '`volunteer_context` and the retrieval reflex now point at one page per name per source: when a meeting, transcript or note page shares an entity page\'s exact title, the pointer goes to the explicit exact slug, then the linkable entity type, then anything else, as `entity` already chose (#6725). The choice runs after the privacy and activation gate, so a private or withheld entity page falls back to the readable page, and same-title pages in different sources are still both volunteered.' },
+ { since: '0.60.284.0', text: '`entity` and `context_pack` now resolve names across every source the caller can read, like `volunteer_context` (#6723): the home source first (the connection\'s source, or its GBRAIN_SOURCE / .gbrain-source binding), then the other readable sources sorted by id. A name only another readable source holds now returns a card instead of `found: false`; a name the home source holds still resolves there. `source_id` pins one source (refusals match `recall`: `scope_denied`, `not_found`, `invalid_params`), `context_pack` takes source-qualified `entity_refs`, and every card, `names` row and suggestion carries `source_id`. A bound connection\'s lookups that its own source misses get a `source_binding_narrowed` notice naming where each name resolved. Sources outside the grant are never read; a remote `__all__` still resolves nothing. Each pack card\'s activation verdict, newer mentions, records, page status and pinned questions now come from its own source: a pinned question joins the pack only when its source and `scope_entity` match a packed card, and a requested name that packs no card no longer pulls in a pin by slug.' },
+ { since: '0.60.284.0', text: '`context_pack` now returns `entity_facts[]`, the packed entities\' own facts (up to 5 per card, newest first, read in the card\'s own source and visibility), each tagged with its card\'s `source_id` and `slug` and carrying `fact_id`, confidence, `attributed_to`, provenance and trust (#6724). `facts[]` is unchanged hot memory. `text` gains a `## Entity facts` section before hot memory, and a fact in both renders once. Under `budget_tokens` entity facts pack after cards and before hot facts; a remote caller still never sees a private fact.' },
+ // Wave 18 lane 5 (#6781 #6780 #6719 #6758 #6759 #6772 #6765 #6774 #6776 #6775).
+ { since: '0.60.284.0', text: 'A managed sync backlog that cannot be read is now movement_state unknown (unknown.reason backlog_read_failed) on sources status, writer status and doctor, never nothing_pending (#6781). Doctor managed_sync_not_moving warns with details.health unknown, and gbrain sources writer movement exits 1 with the new code movement_unknown (--warn-only still exits 0) where it used to exit 0. Rerun the movement command; if the read keeps failing, run gbrain doctor --json.' },
+ { since: '0.60.284.0', text: 'gbrain config set now accepts twelve keys gbrain already reads at runtime but refused as unknown (#6780), including facts.absorb_warn_threshold, think.trajectory_enabled, embedding_image_ocr_max_usd and agent.search_snippet_chars; a source scan guard keeps every getConfig key registered.' },
+ { since: '0.60.284.0', text: 'A terminal write failure with origin owner_exception no longer gets the database-trigger hint (#6719): it says the owner hit an unexpected exception, nothing was committed and the cause is unknown, and points at gbrain write-request <id> --json (error_detail) and the consumer log; an origin that names no database refusal stays unknown instead of being read as a trigger.' },
+ { since: '0.60.284.0', text: 'Every agent-contract event now records the gbrain version that wrote it (#6758). When doctor agent_contract warns, details.builds splits the counted events into this_build, other_builds and unknown_build, details.incident is historical when none came from the running build, and the message names how many another build recorded. The warning and its 7-day window are unchanged.' },
+ { since: '0.60.284.0', text: 'Doctor persistence_counter_drift now names each drifting scope\'s direction (overcharge for a positive delta, a bounded charge with no data lost; undercount for a negative one) and splits the receipts behind it into requests and topology_changes (#6759). The check is still read-only; there is no counter reconcile repair yet.' },
+ { since: '0.60.284.0', text: 'An embedding error from a provider that reports one input over the model\'s context with a 5xx or no HTTP status (llama.cpp "larger than the max context size", Ollama 500 "input length exceeds the context length") is no longer retried as transient (#6772): the bad chunk is isolated, its siblings embed, and the over-length heal splits it. Only explicit token or context-limit wording counts; "input queue is too long", connection-limit and other 5xx errors still retry.' },
+ { since: '0.60.284.0', text: 'Writer coordination lock path fallback (#6765): when a checkout contains GBRAIN_HOME (or is it), its native writer lock no longer lands inside the checkout; a claim places it under GBRAIN_COORDINATION_HOME (absolute, outside the checkout), else ~/.gbrain/persistence, in a directory namespaced by the checkout and host, and refuses with storage_error when even that resolves inside the checkout. Ordinary layouts keep persistenceHome()/locks, and a path a reservation already records always wins. A writer transfer keeps the recorded lock (successor reservation first, then the host binding) instead of recomputing it from the accepting process\'s home. A reservation an older release wedged with its lock inside the checkout ("must live outside the canonical checkout") is repaired by the next claim on the host that reserved it. Who: brains whose source checkout contains GBRAIN_HOME, and container deployments. What to do: in a container, set GBRAIN_COORDINATION_HOME to a mounted directory outside the checkout so the lock survives recreation; re-run the claim on a wedged source; gbrain sources writer status --json shows onboarding.sources[].coordination_lock (path, rule, old_path_wedge, and coordination_home_ignored when GBRAIN_COORDINATION_HOME names another directory than the recorded lock, which wins; doctor coordination_lock_location warns about the same case).' },
+ { since: '0.60.284.0', text: 'A graduation intent marker that recorded a boot id or PID namespace this process cannot read now reads unknown, not alive, so a marker from another host or container is never taken as a live run because a local process shares its pid (#6774).' },
+ { since: '0.60.284.0', text: '`scripts/eval-spend-guard.sh` runs the guarded command in its own process group and stops the whole group (helpers and grandchildren included) on an interrupt, after the kill grace, and when the command exits leaving processes behind. A terminal stdin is now EOF (the command cannot read the terminal from its own group); pipe or redirect input if it needs any (#6776).' },
+ { since: '0.60.284.0', text: 'While its command runs, `scripts/eval-spend-guard.sh` keeps a run lease in `<ledger>.leases/<run_id>.lease` (run id, guard pid, process group id, host, boot id) and removes it once the run is reconciled. When a guard was SIGKILLed and its process group may still be running, the next guard on that host prints a STALE RUN report on stderr with the lease path, the pgid and the commands to inspect it (ps -o pid,pgid,cmd -g <pgid>) and stop it (kill -TERM -- -<pgid>), appends a cost-0 status "unknown" ledger row (stale_run_id, pgid, lease) and renames the lease to .reported; a later start retires a .reported lease once its group has exited or the host rebooted (or remove it by hand). Nothing is killed automatically, and the stale run\'s reservation stays counted at its estimate (#6776).' },
+ { since: '0.60.284.0', text: '`gbrain claw-test` runs each phase in its own process group: a phase timeout, SIGINT and SIGTERM stop everything the phase started, and SIGINT stops the running phase even when it was not sent from the terminal (a second SIGINT kills it) (#6775).' },
+ // #6712 follow-up (#6891).
+ { since: '0.60.285.0', text: 'New doctor check `sync_overwritten_db_edits` warns when an incremental managed sync published a committed file edit over a page that was also edited in the database since its last import, with no `file_drift` hold (the bug #6887 fixes): the database edit survives only in the page\'s history. It counts the pages per source from page history and write receipts (also after receipt compaction) and warns only when the records prove it; findings it cannot prove are counted as unknown. New explicit-only repair `gbrain repair overwritten-edits --source <id>` previews each page with a diff, and `--apply --expect <hash>` restores the edit as a new revision through a database-only `revert_version` bound to the previewed revision (a page that moved is `changed_since_preview`); it never rewrites the committed file. Only the host that owns the source\'s checkout compares that file and holds it `file_drift` when it differs from the restored page; on any other host the restore applies with the file left unheld (outcome `restored_file_unheld`), and the owner host runs `gbrain repair file-drift --source <id> --slug <slug> --prefer database` afterward to write the restored edit to the file (no command writes only the hold).' },
+ { since: '0.60.281.0', text: 'The dream cycle\'s take-grading phase (`grade_takes`) now asks its judge with prompt `hybrid-evidence-v2`: evidence about a different company, person or product whose name only resembles the one in the claim no longer counts toward a verdict. An answer with prose around its JSON, or a repeated answer that agrees, now parses instead of failing (two answers that disagree are still no verdict). Verdicts are cached per prompt version, so the next cycles grade each eligible take once more, within the phase\'s budget (`cycle.grade_takes.budget_usd`, default $3 a run). Auto-resolve stays off, so no take\'s resolution changes. New: `gbrain takes grades` lists the cached verdicts for review and marks judges the take-grading eval has not measured.' },
+
+ // Wave 18 lane 1 (#6778 #6761 #6791 #6773).
+ { since: '0.60.282.0', text: 'Facts absorb now waits for its write up to the job deadline instead of 5 s. A write still committing is logged `write_pending_accepted` and writer contention before admission `write_deferred_unadmitted`; neither counts toward the doctor\'s facts_extraction_health threshold, and persistent contention gets its own warning (`gbrain sources writer status --source <id> --json`).' },
+ { since: '0.60.282.0', text: 'facts_extraction_health reports its 24 h failure count as history (rolling, with an ages-out time) and separately names facts-absorb jobs still dead, with `gbrain jobs retry <id>` as the fix; it no longer suggests raising `facts.absorb_warn_threshold`, and the thresholds are unchanged.' },
+ { since: '0.60.282.0', text: 'A `claude-cli` answer that Claude Code continued after hitting its output cap is now rebuilt in full from the call\'s event stream (the CLI runs with `--verbose`) instead of returning only the text after the continuation as a complete answer. When the full text cannot be proven, the call returns no text and no tool calls, finishes `length` (callers retry or escalate as for any capped answer) and reports `providerMetadata[\'claude-cli\'].code = \'continuation_unproven\'` with reason `events_missing`, `no_assistant_events` or `segments_unmatched`, and one stderr line per reason per process naming its remedy (upgrade the claude CLI for the first two, raise the caller\'s output cap for the third).' },
+ { since: '0.60.282.0', text: 'Generated dream-cycle summaries now carry `created: <summary date>` in their frontmatter, so they pass `gbrain lint`\'s temporal check.' },
+ // Wave 18 lane 2 (#6743 #6739 #6755 #6729).
+ { since: '0.60.282.0', text: '`gbrain bootstrap harness` exits 14 (`bootstrap_cleanup_pending`, JSON `status: "cleanup_pending"`) instead of 0 when the harness is wired but earlier shared-skills enrollments or carried previous token ids are not cleaned up yet, and `--status` exits 14 instead of 1 for the same state; the JSON gains a per-id `cleanup` list and a `fix`. Each carried token id is now revoked on its own once no enrollment holds it, and an old enrollment whose token was already revoked finishes its local cleanup and counts as left (`credential_revoked`) instead of blocking every revocation. Doctor `bootstrap_harness_health` names each id as revoked (cleanup pending) or active and recommends leave before revoke.' },
+ { since: '0.60.282.0', text: 'The first Claude Code `user-prompt` hook in a new working folder now records heartbeat outcome `ok` with prompt-only context instead of `degraded` / `transcript_unreadable`: Claude Code creates `~/.claude/projects/<project>/` only after that prompt, so a transcript whose project folder does not exist yet reads as absent, the same as a not-yet-written transcript (#5465). It applies only when the missing folder is a direct child of an existing folder inside the projects root and the path has no `..` segment; any other missing path still fails closed. A missing transcript at `session-end` is still reported as degraded.' },
+ { since: '0.60.282.0', text: 'On a Postgres brain with no sync.repo_path, the v0.11.0 migration no longer runs `gbrain autopilot --install` during an upgrade. Phase F is recorded as skipped (reason no_repo_path) with the exact install command (the default source\'s path when it has one), the migration completes instead of wedging after three partial runs, and `gbrain doctor` shows a minions_migration line with that command until an autopilot is installed for the brain. A brain already wedged on v0.11.0 by partials that failed only the install phase is cleared automatically on the next apply-migrations run when its sync.repo_path is unset (a \'retry\' row with reason phase_f_no_repo_path is appended to migrations/completed.jsonl); with sync.repo_path set the --force-retry advice stands. Phase F ledger entries now carry a reason code (no_repo_path, autopilot_already_installed, install_failed). Separately, a direct `gbrain autopilot --install` with no --repo and no sync.repo_path now installs for the default source\'s local_path instead of refusing. Wedged-migration advice now names migrations/completed.jsonl (phases[].detail) instead of upgrade-errors.jsonl.' },
+ { since: '0.60.282.0', text: 'New explicit-only repair kind `gbrain repair rename-identity --source <id>` for an inexact Git rename that sync split into a delete plus an add (#6729). Without `--slug` the preview lists the open pairs with their preview commands. `--slug <new-slug>` (and `--from <old-slug>` when two pairs share it) previews one pair and binds both page ids, both revisions and the disposition into its hash; `--apply --expect <hash> --yes` (destructive consent; without `--yes` a non-interactive run exits 3 with the consent payload) carries the old page id onto the new slug with its version history, timeline, links, facts and aliases, imports the new file onto it as an edit and retires the provisional page (soft-deleted under a purged slug). Facts of both pages survive or the carry refuses `fact_rows_collide` before writing. Carrying identity is classic-only: on a managed source the preview states `managed_remedy_unavailable` and names `--close`, and an apply refuses with that code. `--close` settles the pair and moves nothing, on both kinds of source. Both settle the record (`disposition` remedied or closed), which releases the purge hold. `--all`, the maintenance cycle and the remediation plan never run it.' },
+ { since: '0.60.282.0', text: 'The #6729 sync report, `gbrain sync status --json` (`identity_downgrades[].remedy`) and doctor `rename_identity_downgrades` now name each open pair\'s remedy: the `gbrain repair rename-identity` preview argv, the apply argv bound to the plan hash, `consent: ["destructive"]` and what releases the purge hold. On a managed source the remedy is `--close` (`carry_unavailable: "managed_remedy_unavailable"`), because carrying identity is unavailable there. Doctor\'s fix is the first pair\'s apply (`ask_user`, with `preview_argv` and `plan_hash`); `gbrain restore <old-slug> --source-id <id> --force` stays the named alternative wherever the source admits a restore (`restore_available`, so not on an unbound Postgres source with a checkout); there the remedy is the only fix doctor offers, and `restore_unavailable_sources` lists those sources.' },
+ // Wave 18 lane 3 (#6740 #6742 #6720 #6731 #6764).
+ { since: '0.60.282.0', text: 'The entity mention scan no longer reads text inside HTML comments, so the `<!--- gbrain:... -->` fence markers stop producing `mentions` links to a page titled like a marker word (#6740). `MENTION_EXTRACTOR_VERSION` is now 6: the next `gbrain extract --stale` (or maintenance cycle) rescans every inline-body page once and removes the stale plain mention rows; `typed_ner` edges are untouched and segmented pages stay deferred as before. Entity cards and `get_backlinks` show a mention coverage notice (state `pending`) until that rescan finishes.' },
+ { since: '0.60.282.0', text: 'The bundled `gbrain-base-v2` schema pack (the `init` default, also inherited by `company-brain`) is now version 1.4.0 and declares the `question` page type the pinned-question writer stamps, so a pinned question no longer makes doctor `schema_pack_consistency` warn `page_type_undeclared` (#6742). Existing question pages keep their type; no data changes. The active pack identity reads `[email protected]+<hash>`.' },
+ { since: '0.60.282.0', text: 'A page-derived atom now carries its source page\'s content date as frontmatter `date` (the source\'s stored `effective_date`, else the same precedence import uses), so its `effective_date` is the date of the conversation or note it came from instead of the extraction run (#6720); `extracted_at` stays the processing stamp and transcript-derived atoms are unchanged. Atoms extracted before this release keep their run dates until re-extracted (`gbrain dream --phase extract_atoms` with `--force` re-pays the model); a preview-first backfill repair is planned.' },
+ { since: '0.60.282.0', text: '`gbrain extract-conversation-facts` (and the `conversation_facts_backfill` cycle phase) now tells the extractor which entities the conversation page itself links (its frontmatter attendees and the entity pages its body links, same source, up to 40 slugs), so facts about those people and companies are stored on their pages instead of a guess from a first name (#6731). A private entity is hinted only when the run writes private facts. The `extract_facts` operation\'s prompt and 5-hint cap are unchanged.' },
+ { since: '0.60.282.0', text: '`gbrain extract-conversation-facts` (and the `conversation_facts_backfill` cycle phase) now runs the free write-time subject inference on facts the extractor returns without an entity, so a fact naming exactly one entity page in full is stored on that entity (context note `entity inferred from mention`; off with `facts.entity_inference false`) (#6764). Doctor `unlinked_facts` counts the conversation extractor\'s unlinked rows on their own (origin `conversation`, no longer inside fence-owned) and, because `gbrain facts relink` never examines them, its fix is a bounded, source-qualified re-extraction of the pages with the most (`--slugs`, up to 50, `--force --max-cost-usd <N>` with the approved amount as the input `N`, preview `--dry-run`; paid, asks the user first). A `replaces` naming a conversation-derived fact now says to re-extract its page instead of hinting at a fence edit.' },
+ { since: '0.60.282.0', text: 'New `gbrain facts relink --conversation` links the conversation extractor\'s facts that were stored without an entity, for free: a fact naming exactly one entity page in full is linked (context note `entity relinked from mention`), one write per page (a receipted coordinator request on a managed brain), no model call (#6764). Doctor `unlinked_facts` now prescribes it first for those rows (consent none, the agent runs it, preview `--dry-run`); a fact it cannot resolve is recorded (`fact_relink_attempts` outcome `conversation_unresolved`), and only then does the doctor offer the paid re-extraction of its page, capped at the amount the user approves (`--max-cost-usd <N>`). A re-extraction of the page keeps a relinked fact\'s entity on the claim\'s new row. Rows the free pass could not resolve no longer count toward doctor\'s 25% new-fact warning. Once a page was re-extracted on its current content, doctor stops offering the paid re-extraction for it and lists the facts left for linking by hand (`--entity`); editing the page offers it again.' },
+ // Wave 18 lane 4 (#6725 #6723 #6724).
+ { since: '0.60.282.0', text: '`volunteer_context` and the retrieval reflex now point at one page per name per source: when a meeting, transcript or note page shares an entity page\'s exact title, the pointer goes to the explicit exact slug, then the linkable entity type, then anything else, as `entity` already chose (#6725). The choice runs after the privacy and activation gate, so a private or withheld entity page falls back to the readable page, and same-title pages in different sources are still both volunteered.' },
+ { since: '0.60.282.0', text: '`entity` and `context_pack` now resolve names across every source the caller can read, like `volunteer_context` (#6723): the home source first (the connection\'s source, or its GBRAIN_SOURCE / .gbrain-source binding), then the other readable sources sorted by id. A name only another readable source holds now returns a card instead of `found: false`; a name the home source holds still resolves there. `source_id` pins one source (refusals match `recall`: `scope_denied`, `not_found`, `invalid_params`), `context_pack` takes source-qualified `entity_refs`, and every card, `names` row and suggestion carries `source_id`. A bound connection\'s lookups that its own source misses get a `source_binding_narrowed` notice naming where each name resolved. Sources outside the grant are never read; a remote `__all__` still resolves nothing. Each pack card\'s activation verdict, newer mentions, records, page status and pinned questions now come from its own source: a pinned question joins the pack only when its source and `scope_entity` match a packed card, and a requested name that packs no card no longer pulls in a pin by slug.' },
+ { since: '0.60.282.0', text: '`context_pack` now returns `entity_facts[]`, the packed entities\' own facts (up to 5 per card, newest first, read in the card\'s own source and visibility), each tagged with its card\'s `source_id` and `slug` and carrying `fact_id`, confidence, `attributed_to`, provenance and trust (#6724). `facts[]` is unchanged hot memory. `text` gains a `## Entity facts` section before hot memory, and a fact in both renders once. Under `budget_tokens` entity facts pack after cards and before hot facts; a remote caller still never sees a private fact.' },
+ // Wave 18 lane 5 (#6781 #6780 #6719 #6758 #6759 #6772 #6765 #6774 #6776 #6775).
+ { since: '0.60.282.0', text: 'A managed sync backlog that cannot be read is now movement_state unknown (unknown.reason backlog_read_failed) on sources status, writer status and doctor, never nothing_pending (#6781). Doctor managed_sync_not_moving warns with details.health unknown, and gbrain sources writer movement exits 1 with the new code movement_unknown (--warn-only still exits 0) where it used to exit 0. Rerun the movement command; if the read keeps failing, run gbrain doctor --json.' },
+ { since: '0.60.282.0', text: 'gbrain config set now accepts twelve keys gbrain already reads at runtime but refused as unknown (#6780), including facts.absorb_warn_threshold, think.trajectory_enabled, embedding_image_ocr_max_usd and agent.search_snippet_chars; a source scan guard keeps every getConfig key registered.' },
+ { since: '0.60.282.0', text: 'A terminal write failure with origin owner_exception no longer gets the database-trigger hint (#6719): it says the owner hit an unexpected exception, nothing was committed and the cause is unknown, and points at gbrain write-request <id> --json (error_detail) and the consumer log; an origin that names no database refusal stays unknown instead of being read as a trigger.' },
+ { since: '0.60.282.0', text: 'Every agent-contract event now records the gbrain version that wrote it (#6758). When doctor agent_contract warns, details.builds splits the counted events into this_build, other_builds and unknown_build, details.incident is historical when none came from the running build, and the message names how many another build recorded. The warning and its 7-day window are unchanged.' },
+ { since: '0.60.282.0', text: 'Doctor persistence_counter_drift now names each drifting scope\'s direction (overcharge for a positive delta, a bounded charge with no data lost; undercount for a negative one) and splits the receipts behind it into requests and topology_changes (#6759). The check is still read-only; there is no counter reconcile repair yet.' },
+ { since: '0.60.282.0', text: 'An embedding error from a provider that reports one input over the model\'s context with a 5xx or no HTTP status (llama.cpp "larger than the max context size", Ollama 500 "input length exceeds the context length") is no longer retried as transient (#6772): the bad chunk is isolated, its siblings embed, and the over-length heal splits it. Only explicit token or context-limit wording counts; "input queue is too long", connection-limit and other 5xx errors still retry.' },
+ { since: '0.60.282.0', text: 'Writer coordination lock path fallback (#6765): when a checkout contains GBRAIN_HOME (or is it), its native writer lock no longer lands inside the checkout; a claim places it under GBRAIN_COORDINATION_HOME (absolute, outside the checkout), else ~/.gbrain/persistence, in a directory namespaced by the checkout and host, and refuses with storage_error when even that resolves inside the checkout. Ordinary layouts keep persistenceHome()/locks, and a path a reservation already records always wins. A writer transfer keeps the recorded lock (successor reservation first, then the host binding) instead of recomputing it from the accepting process\'s home. A reservation an older release wedged with its lock inside the checkout ("must live outside the canonical checkout") is repaired by the next claim on the host that reserved it. Who: brains whose source checkout contains GBRAIN_HOME, and container deployments. What to do: in a container, set GBRAIN_COORDINATION_HOME to a mounted directory outside the checkout so the lock survives recreation; re-run the claim on a wedged source; gbrain sources writer status --json shows onboarding.sources[].coordination_lock (path, rule, old_path_wedge, and coordination_home_ignored when GBRAIN_COORDINATION_HOME names another directory than the recorded lock, which wins; doctor coordination_lock_location warns about the same case).' },
+ { since: '0.60.282.0', text: 'A graduation intent marker that recorded a boot id or PID namespace this process cannot read now reads unknown, not alive, so a marker from another host or container is never taken as a live run because a local process shares its pid (#6774).' },
+ { since: '0.60.282.0', text: '`scripts/eval-spend-guard.sh` runs the guarded command in its own process group and stops the whole group (helpers and grandchildren included) on an interrupt, after the kill grace, and when the command exits leaving processes behind. A terminal stdin is now EOF (the command cannot read the terminal from its own group); pipe or redirect input if it needs any (#6776).' },
+ { since: '0.60.282.0', text: 'While its command runs, `scripts/eval-spend-guard.sh` keeps a run lease in `<ledger>.leases/<run_id>.lease` (run id, guard pid, process group id, host, boot id) and removes it once the run is reconciled. When a guard was SIGKILLed and its process group may still be running, the next guard on that host prints a STALE RUN report on stderr with the lease path, the pgid and the commands to inspect it (ps -o pid,pgid,cmd -g <pgid>) and stop it (kill -TERM -- -<pgid>), appends a cost-0 status "unknown" ledger row (stale_run_id, pgid, lease) and renames the lease to .reported; a later start retires a .reported lease once its group has exited or the host rebooted (or remove it by hand). Nothing is killed automatically, and the stale run\'s reservation stays counted at its estimate (#6776).' },
+ { since: '0.60.282.0', text: '`gbrain claw-test` runs each phase in its own process group: a phase timeout, SIGINT and SIGTERM stop everything the phase started, and SIGINT stops the running phase even when it was not sent from the terminal (a second SIGINT kills it) (#6775).' },
+ // #6712 follow-up (#6891).
+ { since: '0.60.283.0', text: 'New doctor check `sync_overwritten_db_edits` warns when an incremental managed sync published a committed file edit over a page that was also edited in the database since its last import, with no `file_drift` hold (the bug #6887 fixes): the database edit survives only in the page\'s history. It counts the pages per source from page history and write receipts (also after receipt compaction) and warns only when the records prove it; findings it cannot prove are counted as unknown. New explicit-only repair `gbrain repair overwritten-edits --source <id>` previews each page with a diff, and `--apply --expect <hash>` restores the edit as a new revision through a database-only `revert_version` bound to the previewed revision (a page that moved is `changed_since_preview`); it never rewrites the committed file. Only the host that owns the source\'s checkout compares that file and holds it `file_drift` when it differs from the restored page; on any other host the restore applies with the file left unheld (outcome `restored_file_unheld`), and the owner host runs `gbrain repair file-drift --source <id> --slug <slug> --prefer database` afterward to write the restored edit to the file (no command writes only the hold).' },
+ { since: '0.60.286.0', text: '`takes_scorecard` takes two new parameters, `group_by` (`holder` or `source`) and `min_n`, for trusted local callers: the answer then adds `groups` (per-holder or per-source accuracy, shrunk accuracy, a Wilson interval, recency-weighted accuracy, Brier and Brier skill, citations, open, overdue and unresolved counts, `low_n`) and `journal` totals from the private forecast journal. A remote caller that passes either parameter is refused with the new code `scorecard_group_by_local_only` instead of having it ignored; without them, remote and local output is unchanged. `gbrain takes scorecard --group-by holder|source [--min-n N]` is the CLI form; it and the new `gbrain takes journal` and `gbrain takes horizon` commands are host-bound, so a thin client refuses them.' },
+ // #6884 (GBRA-117): `since` is a placeholder equal to the branch's VERSION, restamped when the merge slot is called.
+ { since: '0.60.280.0', text: 'A batch of page purges no longer reads the whole write journal once per page: the first queued purge of a source sweeps once for its own claims and those of the purges queued behind it, and each of those scans only the journal rows added since. Purge receipts\' `journal_sweep` gains `batch` (how many purges that sweep covered) and `watermark` (the sequence a purge started past; null when it swept from the start). A purge whose claims changed since the batch sweep sweeps on its own as before.' },
+ { since: '0.60.280.0', text: 'The managed purge (autopilot purge phase, the purge job and `gbrain pages purge-deleted`) submits only while the writer has outstanding-request room (a background run stops at `persistence.capacity.background_pause_pct` of the cap). The rest is reported as `write_capacity_deferred` and counted in `capacity_deferred` (cycle: `purged_pages_capacity_deferred`, phase status warn) and is submitted by the next run, where it used to fail each page with `queue_capacity` (`managed_purge_failed`) and count each failure toward parking it.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */