Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(timeline): document the spaced hyphen as an accepted Source delimiter (#5282)
garrytan5d38ad9e2351
diff --git a/docs/GBRAIN_RECOMMENDED_SCHEMA.md b/docs/GBRAIN_RECOMMENDED_SCHEMA.mdindex f9da4355be..b11dc439e6 100644--- a/docs/GBRAIN_RECOMMENDED_SCHEMA.md+++ b/docs/GBRAIN_RECOMMENDED_SCHEMA.md@@ -293,6 +293,17 @@ History of interactions, temperature, dynamic.- **YYYY-MM-DD** | Source — What happened.```+The timeline row grammar is `- **YYYY-MM-DD** | Source — Summary`. The+`Source — Summary` delimiter is a dash with a space on each side: the em dash+(`—`), the en dash (`–`) and the plain hyphen (` - `) are all accepted, so a+house style that never types an em dash writes+`- **2026-01-03** | Meeting - Agreed on the Q2 plan` and gets `source: Meeting`.+A colon is not a delimiter: `- **2026-01-02** | Meeting: Agreed on the Q2 plan`+still parses as a dated entry, but its source is recorded as `markdown` and the+whole `Meeting: Agreed on the Q2 plan` text is the summary, because `Note: …`+and `TODO: …` are ordinary prose. gbrain's own writers (`add_timeline_entry`,+the extractors) keep writing the em dash.+All sections are optional — include what you have, leave empty sections as `[No data yet]` rather than omitting them. **The structure itself is a prompt for future enrichment.** When a section says `[No data yet]`, the agent knows what to look for next time it encounters this person.The principle: facts are table stakes. Context is the value.diff --git a/plugin-variants/gbrain-coding/skills/maintain/SKILL.md b/plugin-variants/gbrain-coding/skills/maintain/SKILL.mdindex e7b1d285ae..1028ef5827 100644--- a/plugin-variants/gbrain-coding/skills/maintain/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/maintain/SKILL.md@@ -291,6 +291,9 @@ gbrain dream --json # CycleReport JSON`git add` / `commit` / `push`. Either commit yourself or let `gbrain autopilot`handle it.Parses `- **YYYY-MM-DD** | Source — Summary` and `### YYYY-MM-DD — Title` formats.+The `Source — Summary` dash may be an em dash, an en dash or a spaced hyphen (` - `);+a colon (`Source: Summary`) is prose, so the row keeps `source: markdown` and the+whole text as its summary.Note: extracted entries improve structured queries (`gbrain timeline`), not vector search.### Autopilot checkdiff --git a/plugin/skills/maintain/SKILL.md b/plugin/skills/maintain/SKILL.mdindex e7b1d285ae..1028ef5827 100644--- a/plugin/skills/maintain/SKILL.md+++ b/plugin/skills/maintain/SKILL.md@@ -291,6 +291,9 @@ gbrain dream --json # CycleReport JSON`git add` / `commit` / `push`. Either commit yourself or let `gbrain autopilot`handle it.Parses `- **YYYY-MM-DD** | Source — Summary` and `### YYYY-MM-DD — Title` formats.+The `Source — Summary` dash may be an em dash, an en dash or a spaced hyphen (` - `);+a colon (`Source: Summary`) is prose, so the row keeps `source: markdown` and the+whole text as its summary.Note: extracted entries improve structured queries (`gbrain timeline`), not vector search.### Autopilot checkdiff --git a/skills/maintain/SKILL.md b/skills/maintain/SKILL.mdindex 9303499b44..654240493e 100644--- a/skills/maintain/SKILL.md+++ b/skills/maintain/SKILL.md@@ -290,6 +290,9 @@ gbrain dream --json # CycleReport JSON`git add` / `commit` / `push`. Either commit yourself or let `gbrain autopilot`handle it.Parses `- **YYYY-MM-DD** | Source — Summary` and `### YYYY-MM-DD — Title` formats.+The `Source — Summary` dash may be an em dash, an en dash or a spaced hyphen (` - `);+a colon (`Source: Summary`) is prose, so the row keeps `source: markdown` and the+whole text as its summary.Note: extracted entries improve structured queries (`gbrain timeline`), not vector search.### Autopilot checkdiff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex 69794209ef..a1fa9070a6 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -94,7 +94,7 @@"idea-lineage/SKILL.md": "8cb36179dbf94abc17065613b8e773b1bb2b22670742aa77347b91ac885a05c5","idea-lineage/routing-eval.jsonl": "ee2e00704b9accb7dd58bb8f126a3bc04a2c40be499180fa505dbf6d5061cd41","ingest/SKILL.md": "1acc220ce6e9e65876fa2ccede6ce11f9c75457feb6695ef904955f8debecaae",- "maintain/SKILL.md": "74e1249bac87b7ae6492bd3dbfd6a4d1ef630b199d3747f438f8e161f56e9b76",+ "maintain/SKILL.md": "2a1d99b68a58a6f67ee88c871bb1185f4f73b99d26a7ed38ac56b2e12a21e5ce","manifest.json": "357aa185d380f0a357cb15cd513317e290cbc5fcf5ca4e3860b0e829fdcbf1e4","mcp-access/SKILL.md": "c2ff223b4461ba5817c6c0e7b50a1006866204b6c1d4bd905e52809350ecd092","measure-before-you-fix/SKILL.md": "11906da29a1a31976b13d4796b686d9a9981825737846a85f32d88bf431b9b36",diff --git a/test/extract-stamp-source-3957.test.ts b/test/extract-stamp-source-3957.test.tsindex aab1341669..161233f7b0 100644--- a/test/extract-stamp-source-3957.test.ts+++ b/test/extract-stamp-source-3957.test.ts@@ -90,6 +90,21 @@ describe('#3957 parseTimelineEntries — FS/DB source split parity', () => {expect(db[0].source).toBe(fs[0].source);});+ test('#5282: a spaced hyphen is an accepted Source delimiter; a colon stays prose', () => {+ for (const dash of ['-', '–', '—']) {+ const line = `- **2026-01-03** | Meeting ${dash} Agreed on the Q2 plan`;+ const db = parseTimelineEntries(line);+ const fs = extractTimelineFromContent(line, 'x');+ expect(db).toEqual([{ date: '2026-01-03', summary: 'Agreed on the Q2 plan', detail: '', source: 'Meeting' }]);+ expect({ source: fs[0].source, summary: fs[0].summary }).toEqual({ source: 'Meeting', summary: 'Agreed on the Q2 plan' });+ }+ const colon = '- **2026-01-02** | Meeting: Agreed on the Q2 plan';+ const db = parseTimelineEntries(colon);+ const fs = extractTimelineFromContent(colon, 'x');+ expect(db).toEqual([{ date: '2026-01-02', summary: 'Meeting: Agreed on the Q2 plan', detail: '', source: 'markdown' }]);+ expect({ source: fs[0].source, summary: fs[0].summary }).toEqual({ source: 'markdown', summary: 'Meeting: Agreed on the Q2 plan' });+ });+test('Chinese pipe-separated bullet splits too', () => {const db = parseTimelineEntries('- 2020年1月2日 | 董事会 — 决定融资');expect(db).toHaveLength(1);