Agent Wiki Ingest¶
Implement the LLM-Wiki "ingest" operation: read a source, update affected pages, refresh index and log.
When to use¶
- A new file lands in
knowledge/agent-wiki/raw/. - "Ingest this" / "add this to the wiki" / "process this source".
Procedure¶
- Read
AGENTS.mdfor current schema and conventions. - Read the source from
raw/in full. - Determine classification (SPB-01) by inspecting source content. If
private_sensitive, stop and re-route —private_sensitivecontent does not belong in the markdown wiki; capture into AnyType instead viapkm-capture. - Discuss with user (briefly) which entity/concept/topic pages this source affects. If user input not available, propose and write speculatively under a "Proposed updates" header.
- Create source page at
wiki/sources/<slug>.mdusing the source page template fromAGENTS.md. - Update affected pages:
- For each affected entity/concept/topic, revise relevant sections.
- Add cross-links both ways.
- Flag contradictions explicitly under a
## Contradictions / open questionsblock; never silently overwrite. - Update
index.md: add new source row; refresh summaries of pages whose meaning changed. - Append
log.mdwith format## [<yyyy-mm-dd>] ingest | <source title>and bullets for pages updated and contradictions flagged. - Verifier handoff — invoke
verifierto confirm new pages exist, are valid markdown, and cross-references resolve.
Anti-patterns¶
- Don't ingest
private_sensitivecontent into the markdown wiki. - Don't update pages without filing the source page first.
- Don't omit contradictions — they're a feature.
- Don't skip the log entry.
Compatibility¶
- Read access to
raw/,wiki/,index.md,log.md. - Write access scoped to wiki/* and the index/log.
- Optional: AnyType cross-references via
anytype:<id>in frontmatter. - Cloud model use only if the highest-classification source in the batch permits.