Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(p5): CHANGELOG entry and wanted-pages behavior notice row
garrytanfbd84656abeb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d223db14c2..bae0c42ca6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,56 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.93.0] - 2026-10-06++**Links to pages you haven't written yet are no longer lost. gbrain keeps them, lists them, and connects them the moment the page exists.**++Before this release, writing `[[people/dana-example]]` on a meeting note before Dana had a page did nothing: the link was dropped, the write reported nothing unresolved, and creating Dana's page later never connected the meeting to her. Now every link to a missing page is remembered. `gbrain wanted` lists the missing pages with how many notes link to each, most-linked first, which doubles as a list of people and companies worth a page. When the page is created, the notes that link to it are revisited and the edges appear on their own. Remote agents' writes record their missing links too.++In the held-out test, writing pages one at a time in shuffled order used to lose 1,849 of 3,810 links. It now loses none, and every withheld person or company page showed up in the wanted list, over local writes and over HTTP.++### How to use it++```bash+gbrain wanted # missing pages, most-linked first (MCP: wanted_pages)+gbrain wanted --json+gbrain config set wanted_pages.enabled false # off switch+```++Say to your agent: *"Which people and companies do my notes link to that don't have pages yet?"*++### Measured and shipped off++Two more write-time helpers were built and measured on held-out data. Both failed their bars, so both ship off and stay available as opt-ins.++| Feature | Held-out result | Default | Turn on |+|---|---|---|---|+| Typed relation lines (`- works_at [[companies/acme-example]]` stores a `works_at` edge) | Read 18 of 696,295 list lines in public notes and transcripts as grammar lines, and all 18 were wrong (unfilled template slots like `- [Time] - [Event]`, and dictionary labels). Precision 0/18 against a 0.95 bar. | off | `gbrain config set line_grammar.enabled true` |+| "Did you mean an existing page?" hint when a write creates a page | Duplicate pages 3.06% → 2.22%, within noise; wrong merges 2.50% → 3.75%, past the one-point limit, all from `gpt-6.1-sol` | off | `gbrain config set put_page.similar_pages true` |++With typed relation lines on, a validity range on the line (`- works_at @effective[2021-03,2024-06) [[companies/acme-example]]`) is stored on the edge, so default graph reads hide a relationship that ended and `as_of` reads find it. In its held-out test, as-of accuracy on pages with ranges went from 0.228 to 1.000 (`line_grammar.effective_ranges`, on, applies only while typed relation lines are on).++### Things to watch++- The upgrade adds one table (`wanted_links`, migration v214) and re-extracts the links of every existing page once, through the background link sweep or `gbrain extract --stale`. That pass fills the wanted list for notes already in the brain and applies the link-typing change below.+- Link typing reads the verb next to each link, so when one sentence names two companies with different verbs, each company is typed by its own verb. On held-out pages, typing accuracy is unchanged.+- The background link sweep (`gbrain sweep --once`, the serve sweep) works on a managed brain again. It stopped on its first page because it wrote timeline rows past the managed writer; it now publishes them through it.++### Itemized changes++- **Wanted pages.** `src/core/wanted-links.ts` and `src/core/wanted-links-store.ts`; table `wanted_links` (migration `v214-wanted-links.ts`, graduation inventory `carry`, user data). `replaceDerivedLinks` replaces wanted rows with the origin's links on every extraction path; a live target updated after a row's `checked_at` makes the origin stale for extraction. `wanted_pages` op (`gbrain wanted`), source-scoped; remote callers never see targets only private pages reference. `wanted_pages.enabled` (on, held-out H4) and `wanted_pages.remote` (on, H8): the persistence `links` effect (`runLinksEffect`) records missing mention targets for remote writes.+- **Typed relation and fact lines.** `src/core/line-grammar.ts`, `src/core/machine-sections.ts`, `src/core/link-effective.ts`; `line_grammar.enabled` (off, H3), `line_grammar.allow_undeclared_types` (off), `line_grammar.effective_ranges` (on, H7). `put_page` reports a `line_grammar` block while it is on; `gbrain lint` rule `line-grammar`; agent convention `skills/conventions/line-grammar.md`.+- **Similar-page hint.** `src/core/similar-pages.ts`, `put_page.similar_pages` (off, H5b). The config read stays inside the candidate query, so the write's prepare phase still runs 25 statements.+- **Link typing.** `src/core/link-extraction.ts`: per-edge verb attachment, coordinated links share a verb, a verb before a preposition belongs to the next link (held-out H9, noninferior).+- **Sweep.** `runLinksTimelinePass` publishes each page's timeline as a `managed_maintenance_timeline_extract` request on a managed brain (`publishManagedPageTimeline`) instead of a raw batch the writer guard refused (`writer_coordinator_required`); a page whose request is pending or whose text changed mid-run stays unstamped for the next sweep (`test/managed-sweep-timeline.test.ts`).+- **Schema report.** `gbrain schema detect --fields`: per page type, the frontmatter keys, fact categories and relation types the pages use; 100% coverage proposed as required, 25% or more as optional. Read-only.+- **Behavior notice.** One `behavior_changes` row for wanted pages and the one-time link re-extraction (`LINK_EXTRACTOR_VERSION_TS` 2026-10-05T03:00:00Z).+- **Eval records.** `docs/eval/decisions/p5-dev-2026-10-04/` (first-run preregistration and verdicts: H1, H2, H4, H5a pass; H3 and H5b fail; H6 not run) and `docs/eval/decisions/p5-delta-2026-10-05/` (H7, H8, H9, N4 pass; the post-freeze advisory-role typing and temporal-lexicon changes failed their re-checks on sets G and H and were removed under amendment 3). Mirror: gbrain-evals#83.++## To take advantage of v0.60.93.0++Nothing to do. Wanted pages are on after the upgrade; run `gbrain wanted` to see the list.+## [0.60.92.0] - 2026-10-06**The Windows colon-slug managed-sync test no longer fails with `partial` when its first page publishes slowly.**diff --git a/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md b/docs/eval/decisions/p5-dev-2026-10-04/verdicts.mdindex fa22f57f87..a287cffc91 100644--- a/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md+++ b/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md@@ -10,7 +10,7 @@ Delta-run verdicts (H7 to H11) are in `../p5-delta-2026-10-05/verdicts.md`.| H2, written relation types reach the graph (template set B) | typed recall 0.811 → 1.000; 0 of 120 decoy types added | PASS | — || H4, forward references heal (local writes) | edges lost 1,849/3,810 → 0/3,738; withheld-entity recall 0 → 1.000 | PASS | `wanted_pages.enabled` on by default || H5a, similar-page hint on held-out name pools | lexical recall@3 0 → 0.980; hint on no-referent names 4.7% | PASS | H5b decides the default |-| H5b, agent loop duplicates (Claude Sonnet 5.5 and `gpt-6.1-sol`, 60 held-out tasks each) | duplicate-page rate 3.06% → 2.22% (−27% relative; 95% CI of the difference [−2.8, +1.1] points, crosses 0); wrong-merge rate 2.50% → 3.75% (+1.25 points against a bar of at most +1) | FAIL | `put_page.similar_pages` off by default; still available with `gbrain config set put_page.similar_pages true` |+| H5b, agent loop duplicates (Claude Sonnet 5.5 and `gpt-6.1-sol`, 60 held-out tasks each) | duplicate-page rate 3.06% → 2.22% (−27% relative; 95% CI of the difference [−2.8, +1.1] points, crosses 0); wrong-merge rate 2.50% → 3.75% (+1.25 points, 95% CI [−1.25, +3.75], against a bar of at most +1) | FAIL | `put_page.similar_pages` off by default; still available with `gbrain config set put_page.similar_pages true` || H3, junk stays out (minted frame, amendment 2) | 18 of 696,295 list lines minted (0.026 per 1,000), all fact lines, no relation lines; precision 0/18 (Wilson 95% [0.00, 0.18]), both judges agreed on every line; zero-tolerance classes clean | FAIL | `line_grammar.enabled` off by default || H6, typed lines help answers | | not run | the preregistration runs H6 only if H1 to H3 pass |diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex bf2b557051..14fd4aa191 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -246,6 +246,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }{ since: '0.60.79.0', text: 'Frontmatter is parsed as YAML 1.2: clock-like values such as `10:30` stay text (they were read as base-60 numbers, so 10:30 became 630), a leading zero is decimal (`010` is 10, not 8), `0o` marks octal, and `1_000` stays text. Re-syncing a page whose frontmatter used those forms stores the new values.' },{ since: '0.60.87.0', text: 'Near automatic context compaction, Claude Code and OpenClaw sessions get one notice per compaction segment asking the agent to save what it needs with `remember` (up to 20 facts per call). In the held-out test it raised accuracy after compaction from 51.7% to 63.0% and cost about 28% more per question (5% more per correct answer). `gbrain config set memory.pressure.enabled false` turns it off. Always-loaded core memory is new and off; `gbrain config set memory.core.enabled true` turns it on.' },{ since: '0.60.88.0', text: '`think` now answers with the current date (in `brain.timezone`) and each page\'s content date, so relative words like "last month" resolve against today and dates inside a page against that page. In the held-out test it raised accuracy from 74.2% to 88.2% with unchanged latency. Pass `reference_date` (MCP) or `--reference-date` (CLI) to answer as of another day.' },+ { since: '0.60.93.0', text: 'Links to pages that do not exist yet are now kept instead of dropped, including links in remote agents\' writes: `gbrain wanted` (MCP `wanted_pages`) lists them, most-linked first, and the edge appears once the page is created. Existing pages are re-extracted once to fill the list. In the held-out test no edge was lost and every withheld entity was listed. `gbrain config set wanted_pages.enabled false` turns it off.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */