Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/gbra155-entity-recall

garrytan3274528ac123
diff --cc src/core/behavior-change-notice.ts
index 58841bfb90,51ccf1faf1..a8f23ad2ae
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -1029,9 -1029,12 +1029,15 @@@ export const BEHAVIOR_CHANGES: Readonly
{ since: '0.60.330.0', text: 'Classic `gbrain sync --full` no longer deletes pages it cannot prove were removed (#7130): when Git cannot list the history that shows their files were committed (a dangling ref fails `git log --all`), it keeps every stale page with a warning, where before it skipped the never-committed check and deleted them all. With readable history it deletes as before.' },
{ since: '0.60.330.0', text: 'The autopilot purge phase and the `purge` job no longer hard-delete a page that a managed sync soft-deleted unless another live page of the same source has identical content (#7130). Each sync deletion now leaves a durable record (op_checkpoints `sync-delete-tombstone`; a tombstone from before this release is recognized by its uncompacted `managed_sync_delete` receipt, and one whose receipt was compacted is not). Held pages are reported as `sync_delete_unreviewed` in the phase\'s `purged_pages_blocked` and counted in `held`, and the phase reports warn. `gbrain pages purge-deleted` still purges them after consent: its dry run reports `sync_unreviewed` and its consent text names how many of the set are sync deletions with no live twin and that a purged page can only come back from a backup. The purge phase\'s recovery window (pages and orphan clone temp dirs), and the `purge` job\'s default, now follow `purge.retention_hours` instead of a fixed 72 hours. It can only lengthen the window (default and minimum 72, so a 72-hour restore promise always holds); `gbrain config set` refuses a smaller value.' },
{ since: '0.60.330.0', text: 'New doctor check `uncommitted_sync_deletions` and explicit-only repair kind `gbrain repair uncommitted-deletions --source <id>` (#7130): on each managed source\'s owner host, doctor warns about soft-deleted pages a sync removed although Git never held their recorded file (`.gitignore` excludes it, or no commit holds it and it is not on the disk), bounded to 20,000 tombstones per source and 2,000 Git evidence reads per run. The repair previews each page (slug, recorded path, deletion time, evidence, whether a sync deleted it) with a hash; `--apply --expect <hash> --yes` restores exactly that set, each page live and database-only (detached: it forgets its recorded file and no file is written), so the next sync keeps it. Pages another writer deleted join only with `--include-ambiguous`; a sync deletion is recognized by its record or receipt for the page\'s current tombstone. A preview reads one bounded window, newest page id first, and `--after <page-id>` (named in the preview\'s `next_after` and in the doctor message) continues past it. It refuses off the owner host (`not_owner_host`) and a changed plan (`preview_changed`); without `--yes` a non-interactive run exits 3 and changes nothing. Pages already purged cannot be restored by this command; only a backup (pg_dump, or `gbrain backup create`) can bring them back. It never runs on upgrade or automatically.' },
+ // Wave B follow-ups lane F2 (#7106: a managed import or sync of a new page over 4 MiB replies at commit). `since` is stamped at the merge slot.
+ { since: '0.60.331.0', text: 'A managed `gbrain import` or `gbrain sync` of a new page over 4 MiB stored in segments now replies when the write commits, before its search index is built, instead of waiting for that build (which on a loaded host outlasted the 30 s import wait and replied `write_pending`). The import result and the write\'s receipt say `searchable: "pending"` and `projection: "pending"`; the import result also carries the `request_id`, `searchable_retry_after_ms` and `searchable_fix`. Read the receipt again (`gbrain write-request -- <request_id>`, `get_write_request`) at that interval until it says `searchable: true`; search finds the page from then on. The build no longer holds up the source\'s next write either. A new page up to 4 MiB, and an edit of a page stored in segments, is still searchable when its import replies (`searchable: true`). A `put_page` of a new page over 4 MiB, whose receipt already said `searchable: "pending"`, now also replies at commit instead of after the build.' },
+ // Wave B follow-ups lane F3 (#7122 remote append_page mention links). `since` is stamped at the merge slot.
+ { since: '0.60.331.0', text: 'A remote `append_page` to the body of a page now adds plain `mentions` links (link source `mcp-remote-mention`) for the `[[wikilinks]]`, markdown links and page paths in the appended text, to existing pages the writer can see inside its grant, as a remote `put_page` does. The post-commit pass reads only the appended text, never the rest of a large page, and never removes a link. `gbrain config set mcp.remote_auto_links off` turns it off.' },
+ // Wave B follow-ups lane F4 (an abandoned lane preparation bars its worktree). `since` is stamped at the merge slot.
+ { since: '0.60.331.0', text: 'During a managed sync that publishes in lanes, a page whose preparation ran past its budget is no longer claimed and prepared again by another lane while the abandoned preparation still runs; that worktree now waits for it, as a sync without lanes always did, until it settles or `persistence.preparation_ceiling_ms` passes. A foreground write to that worktree waits the same way meanwhile. The page keeps its `preparation_deadline` reason until it is claimed again.' },
+ { since: '0.60.330.0', text: '`gbrain entity <name>` now resolves one unambiguous name variant when no exact name matches (a nickname, an initial, a title in front, reversed order, a one-letter surname typo, a surname only one page has), across every source you can read, and says so in `card.match`; a variant two pages share is a miss with `ambiguous: true`. Cards list `possible_duplicates` (title-prefixed person pages, never merged), and a miss or a card with no backlinks or facts while mention coverage is incomplete lists the pages whose text names it (`text_mentions`). The human miss line is now just "No entity found."; timing and mention coverage print on their own lines. `gbrain config set entity.name_variants false` (or `variants: false`) keeps exact names only. Doctor adds `person_title_duplicates`, which lists such pairs with the merge to review and changes nothing.' },
+ { since: '0.60.330.0', text: '`gbrain recall <entity>` on a local brain now reads every slug the entity\'s facts may be saved under, as the recall operation already did (identity siblings, the title subject, and the bare basename when no other page claims it), so facts saved before the page existed show up. `gbrain recall "<name> <topic words>"` that matched nothing as one entity or text now recalls the leading or trailing name\'s facts with the topic matches first, with a note naming the entity. `recall --entity <x>` is accepted (never split or widened to a text match). With `GBRAIN_FAIL_ON_EMPTY=1`, a recall or entity lookup that matches nothing exits 12 (`no_results`); by default it still exits 0, and recall\'s list `--json` adds `status: "no_results"`.' },
+ { since: '0.60.330.0', text: 'A search for an identifier (an email, a URL, a phone number in any common format, a long number, a hex id or a code such as an invoice number) now puts the pages that contain it verbatim first (`exact_lookup: identifier`) before the ranked results; dates and ordinary words are unchanged.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */