Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/agents/src/kb-add/__tests__/write-note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { composeFilename, writeNote } from '../write-note.ts';
const baseFrontmatter: Frontmatter = {
title: 'Sample',
recordType: 'assertion',
created: '2026-05-24',
updated: '2026-05-24',
created: '2026-05-24T09:14:22Z',
updated: '2026-05-24T13:58:12Z',
tags: ['sample'],
extra: {},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: A recurring insight
recordType: insight
created: 2026-05-01
updated: 2026-05-01
created: 2026-05-01T08:14:22Z
updated: 2026-05-01T15:47:05Z
captured-at: 2026-05-22T10:00:00.000Z
repo: owner/repo-insight
summary: A recurring flaky-timer insight
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: A plain assertion
recordType: assertion
created: 2026-05-01
updated: 2026-05-01
created: 2026-05-01T09:33:51Z
updated: 2026-05-01T16:02:38Z
# Deliberately bare to exercise the legacy YYYY-MM-DD age-parsing path of `computeAgeDays`.
last-verified: 2026-04-20
tags: [plain]
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: A note with a mixed addressed-by list
recordType: assertion
created: 2026-04-01
updated: 2026-04-01
created: 2026-04-01T07:41:36Z
updated: 2026-04-01T14:26:09Z
addressed-by:
- '#1'
- 42
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: A note addressed by a single reference
recordType: assertion
created: 2026-04-01
updated: 2026-04-01
created: 2026-04-01T10:05:47Z
updated: 2026-04-01T17:08:44Z
addressed-by: owner/repo#7
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: A custom insight record
recordType: insight
captured-at: 2026-05-22T10:00:00.000Z
repo: owner/repo-custom
# Deliberately bare to exercise the legacy YYYY-MM-DD age-parsing path of `computeAgeDays`.
last-verified: 2026-04-10
summary: A custom insight surfaced during review
tags: [custom]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Cycle node A
recordType: assertion
diataxis: concept
created: 2026-01-01
updated: 2026-01-01
created: 2026-01-01T08:49:16Z
updated: 2026-01-01T13:12:40Z
tags: [cycle]
superseded-by: cycle-b.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Cycle node B
recordType: assertion
diataxis: concept
created: 2026-01-01
updated: 2026-01-01
created: 2026-01-01T09:52:18Z
updated: 2026-01-01T15:19:03Z
tags: [cycle]
superseded-by: cycle-a.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Note with a dangling successor
recordType: assertion
diataxis: reference
created: 2026-01-01
updated: 2026-01-01
created: 2026-01-01T07:28:53Z
updated: 2026-01-01T12:30:27Z
tags: [orphan]
superseded-by: does-not-exist.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Malformed note
diataxis: howto
tags: [unterminated
created: 2026-01-01
created: 2026-01-01T10:21:58Z
---

A note whose frontmatter YAML cannot be parsed; it should degrade to a low-signal candidate.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Note with an unparseable last-verified
recordType: assertion
diataxis: reference
created: 2026-01-01
updated: 2026-01-01
created: 2026-01-01T08:03:44Z
updated: 2026-01-01T14:35:09Z
tags: [meta]
last-verified: not-a-date
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Legacy archival runbook
recordType: assertion
diataxis: howto
created: 2024-03-01
updated: 2024-03-01
created: 2024-03-01T09:17:05Z
updated: 2024-03-01T15:58:33Z
tags: [archive]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Meeting notes
recordType: assertion
diataxis: note
created: 2026-05-01
updated: 2026-05-01
created: 2026-05-01T07:46:29Z
updated: 2026-05-01T13:41:50Z
tags: [meeting]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Daily log
recordType: assertion
diataxis: note
created: 2026-06-01
updated: 2026-06-01
created: 2026-06-01T10:34:12Z
updated: 2026-06-01T17:22:08Z
tags: [journal]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Interim deployment guide
recordType: assertion
diataxis: howto
created: 2025-09-01
updated: 2025-09-01
created: 2025-09-01T08:58:37Z
updated: 2025-09-01T14:09:24Z
tags: [deploy]
superseded-by: new-guide.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Multi-match snippet fixture
recordType: assertion
diataxis: howto
created: 2026-03-01
updated: 2026-03-01
created: 2026-03-01T09:05:51Z
updated: 2026-03-01T16:13:47Z
tags: [test]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
title: Current deployment guide
recordType: assertion
diataxis: howto
created: 2026-04-01
updated: 2026-04-01
created: 2026-04-01T07:39:18Z
updated: 2026-04-01T12:51:36Z
tags: [deploy, stable]
# Deliberately bare to exercise the legacy YYYY-MM-DD age-parsing path of `computeAgeDays`.
last-verified: 2026-04-15
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Old deployment guide
recordType: assertion
diataxis: howto
created: 2025-06-01
updated: 2025-06-01
created: 2025-06-01T10:12:40Z
updated: 2025-06-01T15:33:29Z
tags: [deploy, deprecated]
superseded-by: mid-guide.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Working with Node.js streams
recordType: assertion
diataxis: howto
created: 2026-01-10
updated: 2026-01-10
created: 2026-01-10T08:24:09Z
updated: 2026-01-10T14:47:55Z
tags: [nodejs, streams]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: React hooks reference
recordType: assertion
diataxis: reference
created: 2026-02-01
updated: 2026-02-01
created: 2026-02-01T09:41:33Z
updated: 2026-02-01T16:28:02Z
tags: [react, hooks]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Brewing coffee
recordType: assertion
diataxis: howto
created: 2026-03-01
updated: 2026-03-01
created: 2026-03-01T07:53:16Z
updated: 2026-03-01T13:24:40Z
tags: [kitchen]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ describe('parseStatusFile', () => {
projectRoot: '/test',
branch: 'main',
task: 'test',
startedAt: '2026-01-01',
startedAt: '2026-01-01T08:17:34Z',
status: 'completed',
// missing phases
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: How to rebase onto main
recordType: assertion
created: 2026-05-01
updated: 2026-05-14
created: 2026-05-01T09:22:35Z
updated: 2026-05-14T15:08:51Z
tags: [git, rebase]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Broken note
recordType: assertion
tags: [unclosed, list
created: 2026-05-01
created: 2026-05-01T10:48:16Z
---

# Note with malformed YAML frontmatter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Note with irregular spacing
recordType: assertion
created: 2026-05-01
updated: 2026-05-14
created: 2026-05-01T08:05:47Z
updated: 2026-05-14T14:12:38Z
tags:
- git
- whitespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Note with optional fields
recordType: assertion
created: 2026-05-01
updated: 2026-05-14
created: 2026-05-01T07:41:09Z
updated: 2026-05-14T16:53:24Z
tags: [git, reference]
type: reference
last-verified: 2026-05-10
last-verified: 2026-05-10T11:34:09Z
applies-to: [git 2.45+, Bitbucket Cloud]
sources: [https://git-scm.com/docs/git-rebase]
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { frontmatterSchema } from '../frontmatter-schema.ts';
const validFrontmatter = {
title: 'A note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T10:17:29Z',
updated: '2026-05-14T14:39:58Z',
tags: ['git', 'rebase'],
extra: {},
};
Expand Down
6 changes: 3 additions & 3 deletions packages/kb/src/frontmatter/__tests__/parse-note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe(parseNoteContent, () => {
expect(note.frontmatter).toEqual({
title: 'How to rebase onto main',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T09:22:35Z',
updated: '2026-05-14T15:08:51Z',
tags: ['git', 'rebase'],
extra: {},
});
Expand Down Expand Up @@ -62,7 +62,7 @@ describe(parseNoteContent, () => {

expect(note.frontmatter?.extra).toEqual({
type: 'reference',
'last-verified': '2026-05-10',
'last-verified': '2026-05-10T11:34:09Z',
'applies-to': ['git 2.45+', 'Bitbucket Cloud'],
sources: ['https://git-scm.com/docs/git-rebase'],
});
Expand Down
28 changes: 14 additions & 14 deletions packages/kb/src/frontmatter/__tests__/round-trip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: keyword,
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: {},
};
Expand Down Expand Up @@ -92,8 +92,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { token: literal },
};
Expand All @@ -116,8 +116,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { note: value },
};
Expand All @@ -137,8 +137,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { count },
};
Expand All @@ -154,8 +154,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { flag },
};
Expand All @@ -170,8 +170,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { maybe: null },
};
Expand All @@ -187,8 +187,8 @@ describe('frontmatter round-trip idempotence', () => {
const frontmatter: Frontmatter = {
title: 'a note',
recordType: 'assertion',
created: '2026-05-01',
updated: '2026-05-14',
created: '2026-05-01T07:48:16Z',
updated: '2026-05-14T16:21:44Z',
tags: [],
extra: { meta },
};
Expand Down
Loading
Loading