Skip to content

Latest commit

 

History

History
166 lines (118 loc) · 9.43 KB

File metadata and controls

166 lines (118 loc) · 9.43 KB

Example KB Walkthrough

Treat example-kb/ as a tiny finished knowledge base that has already been used for a few sessions.

The point of this walkthrough is not to explain the whole protocol again. It is to show where to look first, what each page is doing, and how this example lines up with the acceptance scenarios in evals/.

Best First Read

If you only want the fastest possible tour, read these pages in order:

  1. wiki/active.md
  2. wiki/recent.md
  3. wiki/index.md
  4. wiki/projects/agent-memory-boundary.md
  5. wiki/insights/candidates-should-stay-supplementary.md
  6. meta/candidates/index.md
  7. meta/lint-reports/2026-04-06-example-maintenance-pass.md

That sequence answers the main questions a new user usually has:

  • What topic is active right now?
  • What changed most recently?
  • Which pages matter?
  • What is the current project thesis?
  • What conclusion is already durable?
  • What is still unresolved?
  • Has this KB actually been maintained?

What You Are Looking At

This example has one central thread: Atomic Knowledge should behave like compiled work memory, not like a broad remember everything memory layer.

The pages are small, but together they show a complete lifecycle:

That is why this fixture stays small but still feels complete.

Page Roles

Route 1: Ingest

Use this route when the user brings a new source that overlaps the same topic.

Read in this order:

  1. wiki/active.md
  2. wiki/recent.md
  3. wiki/index.md
  4. wiki/projects/agent-memory-boundary.md
  5. wiki/insights/candidates-should-stay-supplementary.md
  6. wiki/concepts/work-memory.md
  7. wiki/entities/mem0.md
  8. meta/candidates/index.md only if the new material feels valuable but still provisional
  9. raw/sources/2026-04-04-mem0-overview.md only if you need to compare against the existing grounding

What this route demonstrates in the example:

  • the KB already has one source and one active thread
  • new material should usually update existing pages, not create duplicates
  • candidate capture is available, but only for unresolved reusable judgments

Matching eval: ../evals/01-ingest-and-writeback.md

Route 2: Query / Continuation

Use this route when the user says things like continue our earlier thread, based on our knowledge base, or asks for a comparison or synthesis that should reuse existing work.

Read in this order:

  1. wiki/active.md
  2. wiki/recent.md
  3. wiki/index.md
  4. wiki/projects/agent-memory-boundary.md
  5. wiki/insights/candidates-should-stay-supplementary.md
  6. wiki/concepts/work-memory.md if the answer needs the definition layer
  7. meta/candidates/candidate-promotion-needs-a-second-anchor.md only if the formal pages do not already settle the answer

What this route demonstrates in the example:

  • formal wiki pages answer the main question
  • the candidate layer is supplementary, not the first authority
  • the answer should clearly separate settled pages from tentative notes

Matching eval: ../evals/02-research-query.md

Route 3: Candidate Resolution

Use this route when the user wants to resolve an existing candidate through promote, merge, or drop.

Read in this order:

  1. meta/candidates/index.md
  2. meta/candidates/candidate-promotion-needs-a-second-anchor.md
  3. wiki/active.md
  4. wiki/recent.md
  5. wiki/projects/agent-memory-boundary.md
  6. wiki/insights/candidates-should-stay-supplementary.md to avoid duplicating an already-settled rule

What this route demonstrates in the example:

  • there is one open candidate ready for a real decision
  • the natural destination is usually the project page, not a new insight page
  • the resolved candidate example shows what a completed lifecycle looks like

Matching eval: ../evals/03-candidate-resolution.md

Route 4: Maintenance

Use this route before relying on the KB for a new synthesis, after several updates, or when the candidate queue may have gone stale.

Read in this order:

  1. meta/lint-status.json
  2. wiki/active.md
  3. wiki/recent.md
  4. wiki/index.md
  5. wiki/projects/agent-memory-boundary.md
  6. wiki/insights/candidates-should-stay-supplementary.md
  7. meta/candidates/index.md
  8. meta/candidates/candidate-promotion-needs-a-second-anchor.md
  9. meta/lint-reports/2026-04-06-example-maintenance-pass.md if you need the prior baseline

What this route demonstrates in the example:

  • maintenance is not just syntax checking
  • entry pages and candidate queue are reviewed together
  • lint output becomes durable filesystem state, not just chat commentary

Matching eval: ../evals/04-maintenance-pass.md

Example KB To Eval Mapping

Eval Example KB anchor Why it fits
01-ingest-and-writeback.md wiki/projects/agent-memory-boundary.md, wiki/concepts/work-memory.md, wiki/entities/mem0.md There is already one active topic, so a new source has an obvious destination.
02-research-query.md wiki/active.md, wiki/recent.md, wiki/projects/agent-memory-boundary.md, wiki/insights/candidates-should-stay-supplementary.md These pages already settle the main retrieval question.
03-candidate-resolution.md meta/candidates/candidate-promotion-needs-a-second-anchor.md -> wiki/projects/agent-memory-boundary.md The fixture already contains one open note with a natural merge target.
04-maintenance-pass.md meta/lint-status.json, meta/candidates/index.md, wiki/log.md, meta/lint-reports/2026-04-06-example-maintenance-pass.md The baseline maintenance artifacts already exist, so the user can rehearse a real pass.

If You Want The Smallest Useful Tour

Read only these five files:

  1. wiki/active.md
  2. wiki/recent.md
  3. wiki/projects/agent-memory-boundary.md
  4. wiki/insights/candidates-should-stay-supplementary.md
  5. meta/candidates/index.md

That is the most compact path for understanding what the KB currently believes, what is still open, and how the example should behave under the acceptance scenarios.