Wiki Ingest
Purpose
Convert raw, unstructured sources into structured wiki pages stored in MemPalace. Each page has YAML frontmatter, mandatory Counter-Arguments section, bidirectional [[wikilinks]], and explored: false until human verification.
This is one of 4 wiki skills (ingest, query, lint, explore) that together implement the Brandvoice pattern on top of MemPalace.
When To Invoke
- New files appear in
raw/ that don't have a corresponding wiki entry
- User says "ingest", "add this to my wiki", or drops a file into
raw/
- Nightly scheduled cycle (configured via
/mxm-tasks)
- After any web research session (research agents auto-trigger)
Inputs
- Source files in
raw/:
raw/clippings/ — web clips, article dumps
raw/ideas/ — freeform notes, brain dumps
raw/sources/ — PDFs, papers, transcripts
raw/x-archive/ — social exports
Workflow
- Scan
raw/ for files not yet referenced by any MemPalace drawer (compare against mempalace_search results filtered by source path).
- For each unprocessed source:
- Detect type: tweet, article, PDF, transcript, note, bookmark, paper
- If URL: fetch full content via WebFetch
- Extract: key claims, concepts, entities, dates, counter-arguments, citations
- Apply 80% relevance filter — skip if signal is weak (vague, redundant, off-topic)
- Create source summary page in MemPalace:
- Wing:
wing_knowledge
- Room:
sources
- Drawer: page body with YAML frontmatter (see schema below)
- Create or UPDATE concept/entity pages (never overwrite — merge):
- Concepts → wing
wing_knowledge, room concepts
- Entities (people, tools, companies) → wing
wing_knowledge, room entities
- Add bidirectional
[[wikilinks]] between all related pages (use mempalace_kg_add to record relationships in the graph layer).
- Set
explored: false on all new/updated pages.
- Update wiki index: append TLDR entries to MemPalace drawer
wing_knowledge/index/index-md.
- Append to wiki log: timestamp, source name, pages created/updated → MemPalace drawer
wing_knowledge/log/log-md.
Page Schema (MemPalace drawer frontmatter)
---
title: ""
created: YYYY-MM-DD
updated: YYYY-MM-DD
tags: []
sources: [] # paths to raw/ files
confidence: high | medium | low
explored: false # AI-generated → human verification needed
startup: null # set if scoped to a specific startup
---
Mandatory Page Sections (in order)
- TLDR — 2–3 sentence summary
- Main Content — H2/H3 structured body
- Counter-Arguments — data gaps, opposing evidence, caveats (NEVER skip)
- Related —
[[wikilinks]] to other pages (≥2 inbound for new pages)
- Sources — links back to raw/ files
Quality Rules
- Apply 80% relevance filter — skip sources with weak signal
- Every page MUST have Counter-Arguments section
- Never duplicate pages — merge into existing pages when topic overlaps
- Confidence defaults to
medium unless source is official/verified
- Naming: lowercase kebab-case (
agent-memory-patterns)
- One concept per page — split any page over 500 lines
MemPalace Integration
mempalace_add_drawer({
wing: "wing_knowledge",
room: "sources" | "concepts" | "entities" | "syntheses",
content: "<full-page-with-frontmatter>",
source_file: "raw/sources/<original>.pdf",
added_by: "wiki-ingest"
})
mempalace_kg_add({
subject: "<entity-or-concept>",
predicate: "mentioned_in" | "related_to" | "contradicts" | "extends",
object: "<related-entity-or-concept>",
source_closet: "<drawer-id>"
})
Output Format
Wiki Ingest Report:
Sources processed: [N]
Skipped (low signal): [N]
Pages created:
- sources/[slug] (confidence: medium, explored: false)
- concepts/[slug] (confidence: medium, explored: false)
- entities/[slug] (confidence: high, explored: false)
KG triples added: [N]
Index entries appended: [N]
Log appended: 1 entry @ [ISO timestamp]
Next: review pending pages with `/mxm-wiki explore`
Confidence: 🟢 HIGH (relevance ≥80%, all pages have Counter-Arguments)
Handoff
- Pages created → notify
wiki-explore for the next verification pass
- Contradictions detected during ingest → escalate to
wiki-lint
- Pages tagged with regulated topic (GDPR/HIPAA/etc.) → notify
compliance-officer for review
- New concepts that should propagate to brand voice → notify
brand-guardian
Maxim Behavioral Layer
- Confidence tagging: 🟢 HIGH when relevance ≥80% and all pages structured correctly | 🟡 MEDIUM when partial structure | 🔴 LOW when relevance filter rejected most sources
- Frameworks: LLM Wikid pattern (sources → structured wiki with bidirectional links +
explored: false default + Counter-Arguments)
- Ethics gate: never ingest sources containing PII without
data-privacy-officer review
Source References
FINAL_RELEASE_CHANGES/Brandvoice-wiki-example.md — original pattern
documents/reference/AGENTS.md — agent usage guide for the wiki layer
.claude/skills/memory-palace/SKILL.md — MemPalace integration patterns
Copyright (c) 2026 iSystematic Inc. Maxim product. BSL 1.1.
1---2name: wiki-ingest3description: Converts raw, unstructured sources into structured wiki pages with YAML frontmatter, Counter-Arguments sections, and bidirectional wikilinks, storing them in MemPalace.4---56# Wiki Ingest78## Purpose910Convert raw, unstructured sources into structured wiki pages stored in MemPalace. Each page has YAML frontmatter, mandatory Counter-Arguments section, bidirectional `[[wikilinks]]`, and `explored: false` until human verification.1112This is one of 4 wiki skills (ingest, query, lint, explore) that together implement the Brandvoice pattern on top of MemPalace.1314## When To Invoke1516- New files appear in `raw/` that don't have a corresponding wiki entry17- User says "ingest", "add this to my wiki", or drops a file into `raw/`18- Nightly scheduled cycle (configured via `/mxm-tasks`)19- After any web research session (research agents auto-trigger)2021## Inputs2223- Source files in `raw/`:24 - `raw/clippings/` — web clips, article dumps25 - `raw/ideas/` — freeform notes, brain dumps26 - `raw/sources/` — PDFs, papers, transcripts27 - `raw/x-archive/` — social exports2829## Workflow30311. **Scan** `raw/` for files not yet referenced by any MemPalace drawer (compare against `mempalace_search` results filtered by source path).322. **For each unprocessed source:**33 - **Detect type**: tweet, article, PDF, transcript, note, bookmark, paper34 - **If URL**: fetch full content via WebFetch35 - **Extract**: key claims, concepts, entities, dates, counter-arguments, citations36 - **Apply 80% relevance filter** — skip if signal is weak (vague, redundant, off-topic)373. **Create source summary page** in MemPalace:38 - Wing: `wing_knowledge`39 - Room: `sources`40 - Drawer: page body with YAML frontmatter (see schema below)414. **Create or UPDATE concept/entity pages** (never overwrite — merge):42 - Concepts → wing `wing_knowledge`, room `concepts`43 - Entities (people, tools, companies) → wing `wing_knowledge`, room `entities`445. **Add bidirectional `[[wikilinks]]`** between all related pages (use `mempalace_kg_add` to record relationships in the graph layer).456. **Set `explored: false`** on all new/updated pages.467. **Update wiki index**: append TLDR entries to MemPalace drawer `wing_knowledge/index/index-md`.478. **Append to wiki log**: timestamp, source name, pages created/updated → MemPalace drawer `wing_knowledge/log/log-md`.4849## Page Schema (MemPalace drawer frontmatter)5051```yaml52---53title: ""54created: YYYY-MM-DD55updated: YYYY-MM-DD56tags: []57sources: [] # paths to raw/ files58confidence: high | medium | low59explored: false # AI-generated → human verification needed60startup: null # set if scoped to a specific startup61---62```6364## Mandatory Page Sections (in order)65661. **TLDR** — 2–3 sentence summary672. **Main Content** — H2/H3 structured body683. **Counter-Arguments** — data gaps, opposing evidence, caveats (NEVER skip)694. **Related** — `[[wikilinks]]` to other pages (≥2 inbound for new pages)705. **Sources** — links back to raw/ files7172## Quality Rules7374- Apply 80% relevance filter — skip sources with weak signal75- Every page MUST have Counter-Arguments section76- Never duplicate pages — merge into existing pages when topic overlaps77- Confidence defaults to `medium` unless source is official/verified78- Naming: lowercase kebab-case (`agent-memory-patterns`)79- One concept per page — split any page over 500 lines8081## MemPalace Integration8283```84mempalace_add_drawer({85 wing: "wing_knowledge",86 room: "sources" | "concepts" | "entities" | "syntheses",87 content: "<full-page-with-frontmatter>",88 source_file: "raw/sources/<original>.pdf",89 added_by: "wiki-ingest"90})9192mempalace_kg_add({93 subject: "<entity-or-concept>",94 predicate: "mentioned_in" | "related_to" | "contradicts" | "extends",95 object: "<related-entity-or-concept>",96 source_closet: "<drawer-id>"97})98```99100## Output Format101102```103Wiki Ingest Report:104Sources processed: [N]105Skipped (low signal): [N]106Pages created:107 - sources/[slug] (confidence: medium, explored: false)108 - concepts/[slug] (confidence: medium, explored: false)109 - entities/[slug] (confidence: high, explored: false)110KG triples added: [N]111Index entries appended: [N]112Log appended: 1 entry @ [ISO timestamp]113Next: review pending pages with `/mxm-wiki explore`114Confidence: 🟢 HIGH (relevance ≥80%, all pages have Counter-Arguments)115```116117## Handoff118119- Pages created → notify `wiki-explore` for the next verification pass120- Contradictions detected during ingest → escalate to `wiki-lint`121- Pages tagged with regulated topic (GDPR/HIPAA/etc.) → notify `compliance-officer` for review122- New concepts that should propagate to brand voice → notify `brand-guardian`123124## Maxim Behavioral Layer125126- **Confidence tagging**: 🟢 HIGH when relevance ≥80% and all pages structured correctly | 🟡 MEDIUM when partial structure | 🔴 LOW when relevance filter rejected most sources127- **Frameworks**: LLM Wikid pattern (sources → structured wiki with bidirectional links + `explored: false` default + Counter-Arguments)128- **Ethics gate**: never ingest sources containing PII without `data-privacy-officer` review129130## Source References131132- `FINAL_RELEASE_CHANGES/Brandvoice-wiki-example.md` — original pattern133- `documents/reference/AGENTS.md` — agent usage guide for the wiki layer134- `.claude/skills/memory-palace/SKILL.md` — MemPalace integration patterns135136---137_Copyright (c) 2026 iSystematic Inc. Maxim product. BSL 1.1._