Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
feat(p5): line_grammar.enabled off by default (held-out H3 failed its precision bar; H6 not run); record H3
garrytan88dfad8759ab
diff --git a/docs/architecture/key-files/graph-and-facts.md b/docs/architecture/key-files/graph-and-facts.mdindex 30f40be0e9..a021c60e2c 100644--- a/docs/architecture/key-files/graph-and-facts.md+++ b/docs/architecture/key-files/graph-and-facts.md@@ -109,7 +109,7 @@ rejection of serve-only flags before a brain opens.- `src/core/trajectory-format.ts` — shared `formatTrajectoryBlock(points, entitySlug, opts)` consumed by both `gbrain think` (production) and the LongMemEval harness (benchmark). Groups by `(metric ?? event_type)`, per-metric cap 20, total cap 100, knowledge_update intent annotates value-change rows with `(superseded prior)`. Emits a `<trajectory entity="...">` XML envelope — `INJECTION_PATTERNS` in `src/core/think/sanitize.ts` escapes `</trajectory>`, `<trajectory ...>` open tags, and attribute injection so adversarial fact text can't break out. Pinned by `test/trajectory-format.test.ts`.-- `src/core/line-grammar.ts` + `src/core/machine-sections.ts` — the line grammar: `parseLineGrammar` reads list items in a page body as typed relation lines (`- works_at [[companies/x]] (context)`: one type token or quoted phrase, exactly one link, optional `(context)`, optional `@effective[start,end)`, an optional trailing `[Source: ...]` citation) and fact lines (`- [category] claim #tag (context)`). Guards: a category is one letter-led token (timecodes, dates, citations, footnotes, task boxes and bracket phrases never match), `x`/`todo`/`done`/`wip` are refused, and code, blockquotes, HTML comments, frontmatter and the machine-written sections from `rolePriorSuppressedRanges` (now in `machine-sections.ts`, shared with type inference) are skipped. Prose after the link, two links, stoplisted generic words and verbs the active pack does not declare fall back to inference with a diagnostic. `statedRelationTypes` feeds `extractPageLinks` (and the filesystem scan in `commands/extract.ts`): the stated type wins for the link on its line, except an `attended` line on a meeting page, which stays with canonical attendance. `parseEffectiveQualifier` normalizes ISO ranges to half-open `[from, until)` dates and refuses everything else unpeeled. `lineGrammarOptions` resolves `line_grammar.enabled` (default on) and `line_grammar.allow_undeclared_types`. Fact lines are reported (put_page `line_grammar`, `gbrain lint` rule `line-grammar`, `schema detect --fields`), not projected into `facts`. Pinned by `test/line-grammar.test.ts` (incl. a timeout-bounded adversarial input), `test/link-extraction-line-grammar.test.ts`, `test/put-page-line-grammar.test.ts`.+- `src/core/line-grammar.ts` + `src/core/machine-sections.ts` — the line grammar: `parseLineGrammar` reads list items in a page body as typed relation lines (`- works_at [[companies/x]] (context)`: one type token or quoted phrase, exactly one link, optional `(context)`, optional `@effective[start,end)`, an optional trailing `[Source: ...]` citation) and fact lines (`- [category] claim #tag (context)`). Guards: a category is one letter-led token (timecodes, dates, citations, footnotes, task boxes and bracket phrases never match), `x`/`todo`/`done`/`wip` are refused, and code, blockquotes, HTML comments, frontmatter and the machine-written sections from `rolePriorSuppressedRanges` (now in `machine-sections.ts`, shared with type inference) are skipped. Prose after the link, two links, stoplisted generic words and verbs the active pack does not declare fall back to inference with a diagnostic. `statedRelationTypes` feeds `extractPageLinks` (and the filesystem scan in `commands/extract.ts`): the stated type wins for the link on its line, except an `attended` line on a meeting page, which stays with canonical attendance. `parseEffectiveQualifier` normalizes ISO ranges to half-open `[from, until)` dates and refuses everything else unpeeled. `lineGrammarOptions` resolves `line_grammar.enabled` (default off: held-out verdict H3 failed its precision bar) and `line_grammar.allow_undeclared_types`. Fact lines are reported (put_page `line_grammar`, `gbrain lint` rule `line-grammar`, `schema detect --fields`), not projected into `facts`. Pinned by `test/line-grammar.test.ts` (incl. a timeout-bounded adversarial input), `test/link-extraction-line-grammar.test.ts`, `test/put-page-line-grammar.test.ts`.- `src/core/wanted-links.ts` + `src/core/wanted-links-store.ts` — wanted pages. `collectWantedLinks` turns an origin's link candidates (each body markdown link / wikilink carries an `authoredRef` from `extractPageLinks`) and unresolved frontmatter names into `wanted_links` rows: a reference is wanted only when every alternative resolution failed with `missing_target`/`cross_source` (an unqualified target existing only in another source is wanted in the origin source; a qualified target in a source the origin may not link to is not). Bare prose paths never become rows. `replaceWantedLinks` runs inside `replaceDerivedLinks` (`opts.wanted`, per producer `body`/`frontmatter`), so every extraction path (managed put_page and stale sweep via `links-preparation.ts`, unmanaged `extract`, the serve sweep, source reconciliation) replaces rows atomically with links; it locks slug targets and stamps a row `-infinity` when its exact target already exists. `WANTED_ORIGIN_IS_STALE` in `engine-sql/pages.ts` joins the stale-for-extraction predicate: a live target (exact slug, or basename for `ref_kind='name'`) updated after `checked_at` makes the origin stale, so the next sweep creates the edge; restore and rename bump `updated_at`. `listWantedPages` backs the `wanted_pages` op (`gbrain wanted`): source-scoped, private origins excluded before aggregation for remote callers, soft-deleted origins never count, bare-name targets list `existing_matches`. `wanted_pages.enabled` (default on). Migration v214. Pinned by `test/wanted-links.test.ts` + `test/e2e/wanted-links-postgres.test.ts`.diff --git a/docs/eval/decisions/p5-delta-2026-10-05/verdicts.md b/docs/eval/decisions/p5-delta-2026-10-05/verdicts.mdindex 881c6177a2..a1b12718e7 100644--- a/docs/eval/decisions/p5-delta-2026-10-05/verdicts.md+++ b/docs/eval/decisions/p5-delta-2026-10-05/verdicts.md@@ -30,5 +30,6 @@ and idiomatic leaves, exchange moves, first-day starts). Link typing is as at `0## First run-First-run verdicts are in `../p5-dev-2026-10-04/verdicts.md`: H5b (agent loop duplicates) failed, so-`put_page.similar_pages` is off by default. H3 (junk audit) and H6 (typed lines help answers) are pending.+First-run verdicts are in `../p5-dev-2026-10-04/verdicts.md`. H5b (agent loop duplicates) failed, so+`put_page.similar_pages` is off by default. H3 (junk audit) failed, so `line_grammar.enabled` is off by default and H6+did not run. H7's `line_grammar.effective_ranges` stays on by default and applies once a user turns the grammar on.diff --git a/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md b/docs/eval/decisions/p5-dev-2026-10-04/verdicts.mdindex 00f41758d3..fa22f57f87 100644--- a/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md+++ b/docs/eval/decisions/p5-dev-2026-10-04/verdicts.md@@ -1,18 +1,39 @@# P5 first run: held-out verdicts-The custodian (P0) ran every first-run cell on frozen build `21befeb5b` against baseline master `6622a119e`, under-`preregistration.md` and its amendments. Each verdict sets the default the preregistration's feature table names.+The custodians ran every first-run cell on frozen build `21befeb5b` against baseline master `6622a119e`, under+`preregistration.md` and its amendments (P0; H3 computed by the second custodian from P0's run). Each verdict sets the default the preregistration's feature table names.Delta-run verdicts (H7 to H11) are in `../p5-delta-2026-10-05/verdicts.md`.| Hypothesis | Result | Verdict | Outcome ||---|---|---|---|-| H1, link typing does not regress (world-v1) | any-type match 0.493 → 0.493; type accuracy 0.747 → 0.767; 240/240 pages extract identically with the grammar on and off | PASS | counts toward `line_grammar.enabled` |-| H2, written relation types reach the graph (template set B) | typed recall 0.811 → 1.000; 0 of 120 decoy types added | PASS | counts toward `line_grammar.enabled` |+| H1, link typing does not regress (world-v1) | any-type match 0.493 → 0.493; type accuracy 0.747 → 0.767; 240/240 pages extract identically with the grammar on and off | PASS | — |+| 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` |-| H3, junk stays out | | pending | `line_grammar.enabled` needs H3 and H6 |-| H6, typed lines help answers | | pending | runs after H3 |+| 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 |++## H3++Corpora: LongMemEval-S haystack sessions as markdown (17,319 pages, 668,711 list lines), LoCoMo transcripts (183 pages,+no list lines) and a CC0 public notes vault (1,020 pages, 27,584 list lines). Judges: Claude Sonnet 5.5 and+`gpt-6.1-sol`; a disagreement would have counted as wrong, and there were none.++- **Root cause.** Every minted line is a fact line whose bracketed list prefix is not a category: unfilled template+ slots in schedule skeletons (`- [Time] - [Event]`, 15 lines on two pages) and dictionary usage labels (3 lines on one+ page). The fact-line category rule accepts any single letter-led bracketed word at the start of a list item. A+ placeholder/skeleton guard is the fix; it changes the grammar after the freeze, so it ships in a follow-up with its+ own held-out frame, not in this PR.+- **Denominator.** The frame held only 18 minted lines, so all 18 were labeled instead of the planned 300, and the+ precision interval is wide. It still sits wholly below the bar: the upper bound is 0.18.+- **Zero-tolerance classes.** No line was minted from the 1,714 timecode, 168 citation, 108 task-marker, 76 date and 61+ machine-section list lines.+- **Harness error.** 1 of 18,522 pages (8 list lines) failed the write cross-check. Even if all 8 had minted correctly,+ precision would be 8/26 (Wilson upper bound 0.50), so the verdict cannot change.+- **Consequence.** `line_grammar.enabled` needs H1, H2, H3 and H6, so it ships off by default and H6 does not run. With+ the grammar off, `line_grammar.effective_ranges` (on by default, H7) has nothing to store until a user turns the+ grammar on.## H5b by modeldiff --git a/docs/guides/line-grammar.md b/docs/guides/line-grammar.mdindex e8e7ab4661..36420bb884 100644--- a/docs/guides/line-grammar.md+++ b/docs/guides/line-grammar.md@@ -1,14 +1,24 @@# Typed lines, wanted pages and similar-page hintsThree write-path features keep the graph honest without an LLM call: typed-relation and fact lines a person can type in any editor, a queue of link-targets that have no page yet, and an opt-in "did you mean an existing page?"-hint when a write creates a page.+relation and fact lines a person can type in any editor (opt-in), a queue of+link targets that have no page yet, and an opt-in "did you mean an existing+page?" hint when a write creates a page.## Typed relation lines-A list item that names a relation type and exactly one link states that-link's type:+Off by default; turn the line grammar on with+`gbrain config set line_grammar.enabled true`. While it is off, these lines are+ordinary list text and their links keep their inferred types. In the held-out+junk audit, the grammar read 18 of 696,295 list lines in public notes and+transcripts as grammar lines, and none of the 18 were real: all were fact+lines, mostly unfilled template slots (`- [Time] - [Event]`) and a few+dictionary usage labels. That failed the 0.95 precision bar. No relation line+was minted, and no timecode, citation, task box, date or machine-written+section was read.++When it is on, a list item that names a relation type and exactly one link+states that link's type:```markdown- works_at [[companies/acme-example]] (since 2024)@@ -23,7 +33,7 @@ same rule `add_link` follows; set `line_grammar.allow_undeclared_types true`to accept any snake_case verb. The full convention for agents is[`skills/conventions/line-grammar.md`](../../skills/conventions/line-grammar.md).-**Say to your agent:** *"Record that alice-example works at acme-example since 2024, as a typed line on her page."*+**Say to your agent:** *"Turn on typed relation lines, then record that alice-example works at acme-example since 2024 as a typed line on her page."*## Fact lines@@ -46,6 +56,7 @@ default graph reads hide it and `as_of` reads find it. A range on a type thatis not a dated relationship, or on a link the page does not store with thattype, is reported and stores nothing. `gbrain config set line_grammar.effective_ranges false` turnsrange storage off; the next extraction of each page drops its stored ranges.+Ranges are stored only while the line grammar is on.## What `put_page` reportsdiff --git a/plugin-variants/gbrain-coding/skills/conventions/line-grammar.md b/plugin-variants/gbrain-coding/skills/conventions/line-grammar.mdindex 11443a2532..deec303462 100644--- a/plugin-variants/gbrain-coding/skills/conventions/line-grammar.md+++ b/plugin-variants/gbrain-coding/skills/conventions/line-grammar.md@@ -4,6 +4,13 @@ Two line shapes in a page's compiled truth carry structure that gbrain readswith zero LLM calls. Write them when the relationship type or the factcategory is known; write prose for everything else.+gbrain reads these lines only when `line_grammar.enabled` is on, and it is off+by default. Check with `gbrain config get line_grammar.enabled`. While it is+off, a relation line is plain list text: its link keeps the inferred type, and+`put_page` returns no `line_grammar` block. Turn it on only when the user asks+or agrees (`gbrain config set line_grammar.enabled true`); for one typed edge+now, use `add_link` instead.+## Typed relation lines```markdowndiff --git a/plugin-variants/gbrain-daily/skills/conventions/line-grammar.md b/plugin-variants/gbrain-daily/skills/conventions/line-grammar.mdindex 11443a2532..deec303462 100644--- a/plugin-variants/gbrain-daily/skills/conventions/line-grammar.md+++ b/plugin-variants/gbrain-daily/skills/conventions/line-grammar.md@@ -4,6 +4,13 @@ Two line shapes in a page's compiled truth carry structure that gbrain readswith zero LLM calls. Write them when the relationship type or the factcategory is known; write prose for everything else.+gbrain reads these lines only when `line_grammar.enabled` is on, and it is off+by default. Check with `gbrain config get line_grammar.enabled`. While it is+off, a relation line is plain list text: its link keeps the inferred type, and+`put_page` returns no `line_grammar` block. Turn it on only when the user asks+or agrees (`gbrain config set line_grammar.enabled true`); for one typed edge+now, use `add_link` instead.+## Typed relation lines```markdowndiff --git a/plugin/skills/conventions/line-grammar.md b/plugin/skills/conventions/line-grammar.mdindex 11443a2532..deec303462 100644--- a/plugin/skills/conventions/line-grammar.md+++ b/plugin/skills/conventions/line-grammar.md@@ -4,6 +4,13 @@ Two line shapes in a page's compiled truth carry structure that gbrain readswith zero LLM calls. Write them when the relationship type or the factcategory is known; write prose for everything else.+gbrain reads these lines only when `line_grammar.enabled` is on, and it is off+by default. Check with `gbrain config get line_grammar.enabled`. While it is+off, a relation line is plain list text: its link keeps the inferred type, and+`put_page` returns no `line_grammar` block. Turn it on only when the user asks+or agrees (`gbrain config set line_grammar.enabled true`); for one typed edge+now, use `add_link` instead.+## Typed relation lines```markdowndiff --git a/skills/conventions/line-grammar.md b/skills/conventions/line-grammar.mdindex 11443a2532..deec303462 100644--- a/skills/conventions/line-grammar.md+++ b/skills/conventions/line-grammar.md@@ -4,6 +4,13 @@ Two line shapes in a page's compiled truth carry structure that gbrain readswith zero LLM calls. Write them when the relationship type or the factcategory is known; write prose for everything else.+gbrain reads these lines only when `line_grammar.enabled` is on, and it is off+by default. Check with `gbrain config get line_grammar.enabled`. While it is+off, a relation line is plain list text: its link keeps the inferred type, and+`put_page` returns no `line_grammar` block. Turn it on only when the user asks+or agrees (`gbrain config set line_grammar.enabled true`); for one typed edge+now, use `add_link` instead.+## Typed relation lines```markdowndiff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex 92622b57fa..e757501582 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -50,7 +50,7 @@"conventions/cron-via-minions.md": "badb1cd6cd825d6f1ac0b6b28cc47e5d80facc783a3e59a14146ae901ee0f933","conventions/cross-modal.yaml": "c012c3d72614a87b1ee698173dce2a0fb0d057a54df7aab87993c4b07fff6280","conventions/exec-output.md": "2bf371ac3ec4987eff7cc13cd3ea8cc97c46bd43f588eec024ff27f3171bc58f",- "conventions/line-grammar.md": "6f7e18594feafaf46d9ab9168f4e6df259c1c47e61a4ce43b9202ff9c12fdef9",+ "conventions/line-grammar.md": "9d00254359153064e9fc0959d8c15743b5ff860890ed556178185bee32c7aeb1","conventions/model-routing.md": "c0d5031e4372c108d7e94346dc2958c21389f3b67544524578bbc9ea32d53c34","conventions/path-discipline.md": "8af5415721bd115e6979c96688bcf542a32675809ada9aaedbb6706a40926954","conventions/quality.md": "8aa681001114689d34268ccadaf0e2ff07b8f68aa5987c093a8c4a7a744f12a6",diff --git a/src/core/config.ts b/src/core/config.tsindex 4af7127eea..3b59b4cca1 100644--- a/src/core/config.ts+++ b/src/core/config.ts@@ -1607,12 +1607,12 @@ export const KNOWN_CONFIG_KEYS: readonly string[] = ['wanted_pages.enabled',// Remote writes (the persistence `links` effect) record missing mention targets too. On by default (held-out verdict H8).'wanted_pages.remote',- // Line grammar (src/core/line-grammar.ts): typed relation lines on by default;- // undeclared relation types fall back to inference unless allowed.+ // Line grammar (src/core/line-grammar.ts): typed relation lines, off by default+ // (held-out verdict H3); undeclared relation types fall back to inference unless allowed.'line_grammar.enabled','line_grammar.allow_undeclared_types',// Validity ranges on typed relation lines stored as dated edge transitions- // (core/link-effective.ts). On by default (held-out verdict H7).+ // (core/link-effective.ts). On by default (held-out verdict H7); applies while line_grammar.enabled is on.'line_grammar.effective_ranges',// put_page "did you mean an existing page?" advisory on creates (core/similar-pages.ts). Off by default (held-out verdict H5b).'put_page.similar_pages',diff --git a/src/core/line-grammar.ts b/src/core/line-grammar.tsindex 18f4b5fdde..c5f30e6808 100644--- a/src/core/line-grammar.ts+++ b/src/core/line-grammar.ts@@ -323,21 +323,20 @@ function parseRelationContent(content: string, declared: ReadonlySet<string> | n}const FALSY = new Set(['false', '0', 'no', 'off']);+const isTrue = (value: string | null) => value != null && ['true', '1', 'yes', 'on'].includes(value.trim().toLowerCase());-/** `line_grammar.enabled` (default on) and `line_grammar.allow_undeclared_types` (default off). */+/** `line_grammar.enabled` (default off, held-out verdict H3) and `line_grammar.allow_undeclared_types` (default off). */export async function lineGrammarOptions(engine: { getConfig(key: string): Promise<string | null> }): Promise<{ enabled: boolean; allowUndeclaredTypes: boolean }> {const read = (key: string) => engine.getConfig(key).catch(() => null);const [enabled, allow] = await Promise.all([read('line_grammar.enabled'), read('line_grammar.allow_undeclared_types')]);- return { enabled: enabled == null || !FALSY.has(enabled.trim().toLowerCase()),- allowUndeclaredTypes: allow != null && ['true', '1', 'yes', 'on'].includes(allow.trim().toLowerCase()) };+ return { enabled: isTrue(enabled), allowUndeclaredTypes: isTrue(allow) };}-/** `line_grammar.effective_ranges` (default on; needs the grammar on): store relation-line ranges on edges (core/link-effective.ts). */+/** `line_grammar.effective_ranges` (default on; applies only while `line_grammar.enabled` is on): store relation-line ranges on edges (core/link-effective.ts). */export async function effectiveRangesEnabled(engine: { getConfig(key: string): Promise<string | null> }): Promise<boolean> {const read = (key: string) => engine.getConfig(key).catch(() => null);const [ranges, enabled] = await Promise.all([read('line_grammar.effective_ranges'), read('line_grammar.enabled')]);- const on = (value: string | null) => value == null || !FALSY.has(value.trim().toLowerCase());- return on(ranges) && on(enabled);+ return (ranges == null || !FALSY.has(ranges.trim().toLowerCase())) && isTrue(enabled);}/**diff --git a/test/link-effective.test.ts b/test/link-effective.test.tsindex 6d2b3ed4ac..8f5ab3d481 100644--- a/test/link-effective.test.ts+++ b/test/link-effective.test.ts@@ -1,7 +1,8 @@/*** Validity ranges on typed relation lines (`- works_at @effective[a,b) [[x]]`)* stored as dated edge transitions (producer 'inline', core/link-effective.ts)- * (`line_grammar.effective_ranges`, on by default).+ * (`line_grammar.effective_ranges`, on by default; applies only while the+ * grammar, off by default, is on: setup checks nothing is stored before enabling it).** Protects: an ended range hides the edge from default graph reads and shows* it to as_of reads; an open range keeps it live; editing the range replaces@@ -38,6 +39,9 @@ beforeAll(async () => {engine = new PGLiteEngine(); await engine.connect({}); await engine.initSchema(); resetGateway();await put('companies/acme-example', 'type: company\ntitle: Acme', 'A company.');await put('companies/widget-co', 'type: company\ntitle: Widget', 'Another company.');+ await put('people/alice-example', 'type: person\ntitle: Alice', '- works_at @effective[2021-03,2024-06) [[companies/acme-example]]');+ expect(await inline()).toEqual([]);+ await engine.setConfig('line_grammar.enabled', 'true');});afterAll(async () => { await engine.disconnect(); resetGateway(); });diff --git a/test/put-page-line-grammar.test.ts b/test/put-page-line-grammar.test.tsindex 25e4ab2fd3..d7fa84e3e4 100644--- a/test/put-page-line-grammar.test.ts+++ b/test/put-page-line-grammar.test.ts@@ -1,7 +1,7 @@/*** put_page reports what the line grammar read: typed relation lines (stored* with the page's links), fact lines (page text only) and near-misses with- * their fix. Managed PGLite brain.+ * their fix. The grammar is off by default (`line_grammar.enabled`). Managed PGLite brain.*/import { expect, test } from 'bun:test';import { randomUUID } from 'node:crypto';@@ -13,8 +13,17 @@ const put = (ctx: OperationContext, slug: string, body: string, type = 'person')submitPageMutation(ctx, { operation: 'put_page', params: { slug, request_id: randomUUID(),content: `---\ntype: ${type}\ntitle: ${slug}\n---\n\n${body}\n` } }) as Promise<Record<string, any>>;+test('the grammar is off by default (held-out verdict H3): put_page reads no typed lines', async () => {+ await managedBrain(async ({ ctx }) => {+ await put(ctx, 'companies/acme-example', 'Acme.', 'company');+ const written = await put(ctx, 'people/alice-example', '- works_at [[companies/acme-example]] (since 2024)\n- [preference] Prefers oat milk');+ expect((written.outcome ?? written).line_grammar).toBeUndefined();+ });+}, 120_000);+test('put_page types the stated relation, reports fact lines and explains near-misses', async () => {await managedBrain(async ({ engine, ctx }) => {+ await engine.setConfig('line_grammar.enabled', 'true');await put(ctx, 'companies/acme-example', 'Acme.', 'company');const written = await put(ctx, 'people/alice-example', ['Alice builds things.',