From 91e643553ed78de0b3383a74492ed0a15c579254 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Mon, 22 Jun 2026 23:06:03 -0400 Subject: [PATCH] feat(pkm): add compiled wiki layer, packet promotion, and retrieval checks to research skills - Add compiled wiki maintenance, retrieval lint, and packet promotion steps to knowledge-gardener skill - Restructure research-vault workflow with source ingest, answer filing, and pre-completion lint pass - Add Log.md for tracking ingest, queries, and corrections - Enhance Claims template with provenance, supports/contradicts, and confidence tracking - Add Compiled Pages table and Raw Source Rules to packet template - Enhance atomic notes with frontmatter, promotion status, and structured links - Distinguish source claims, synthesis, user opinions, and open questions throughout This implements a Karpathy-style compiled wiki approach where raw sources stay immutable, packet notes are the maintained synthesis layer, and reusable notes can be promoted to the main vault. --- common/pkm/knowledge-gardener/SKILL.md | 22 +++++++- common/pkm/research-vault/SKILL.md | 30 ++++++++--- .../references/research-packet-template.md | 52 +++++++++++++++++-- 3 files changed, 93 insertions(+), 11 deletions(-) diff --git a/common/pkm/knowledge-gardener/SKILL.md b/common/pkm/knowledge-gardener/SKILL.md index 3471565..50840cd 100644 --- a/common/pkm/knowledge-gardener/SKILL.md +++ b/common/pkm/knowledge-gardener/SKILL.md @@ -61,10 +61,26 @@ project: "" 7. Research Capture - Store source summary in vault. - - Extract key claims, evidence, and follow-up questions. + - Extract key claims, evidence, confidence, and follow-up questions. + - Distinguish raw source claims, agent synthesis, user opinions, and open questions. - Convert durable insights into permanent notes. -8. Zettelkasten Conversion +8. Compiled Wiki Maintenance + - For bounded research topics, maintain a Karpathy-style compiled wiki layer: immutable raw sources → maintained concept/claim/synthesis notes → retrievable answers. + - On ingest, update existing pages before creating duplicates; the graph should get denser, not just larger. + - File durable query answers back into notes, then add or update links from indexes/MOCs. + - Keep a lightweight log of ingests, filed answers, lint passes, promotions, and major corrections when the folder has a `Log.md` or equivalent. + +9. Retrieval Lint + - Check for unsupported claims, stale or contradictory claims, orphan notes, missing backlinks, missing glossary terms, and unanswered questions. + - Verify a future agent can answer the main question from the maintained notes without rereading raw sources. + +10. Packet Promotion + - Treat research packets as incubators and the main vault as the indexed library. + - Promote notes only when they are reusable beyond the packet, stand alone, have evidence/provenance, and connect to existing vault concepts. + - Leave a link behind in the packet and update relevant indexes/MOCs. + +11. Zettelkasten Conversion - Convert source note into atomic permanent notes. - Add explicit links and one short structure note (MOC-lite) when useful. @@ -74,6 +90,8 @@ project: "" - Prefer additive edits and clear section boundaries. - Keep writing concise and skimmable. - Keep tags focused and reusable. +- Keep citations close to claims; do not let synthesized notes obscure source provenance. +- Before finalizing research edits, run a retrieval check: likely future questions should have obvious entry points through indexes, links, claims, or glossary terms. - Rebuild semantic index after major note creation/refactor sessions. ## Operational Commands diff --git a/common/pkm/research-vault/SKILL.md b/common/pkm/research-vault/SKILL.md index be025fe..bee1bbb 100644 --- a/common/pkm/research-vault/SKILL.md +++ b/common/pkm/research-vault/SKILL.md @@ -10,7 +10,7 @@ Use when the user wants to learn or research a topic conversationally and save t ## Packet -Create one vault folder per research run, normally `Research/ /`, containing all notes from the run: `Index.md`, `Sources.md`, `Synthesis.md`, `Claims.md`, `Questions.md`, `Conversation.md`, `Glossaries.md`, and any atomic notes. Load `references/research-packet-template.md` before writing packet files or when exact structure matters. +Create one vault folder per research run, normally `Research/ /`, containing all notes from the run: `Index.md`, `Sources.md`, `Synthesis.md`, `Claims.md`, `Questions.md`, `Conversation.md`, `Glossaries.md`, `Log.md`, and any atomic notes. Treat the packet as a Karpathy-style compiled wiki for the topic: raw sources stay immutable, packet notes are the maintained synthesis layer, and this skill is the schema. Load `references/research-packet-template.md` before writing packet files or when exact structure matters. ## Workflow @@ -18,11 +18,14 @@ Create one vault folder per research run, normally `Research/ /` unless the vault has a clearer conve - [[Questions]] - [[Conversation]] - [[Glossaries]] +- [[Log]] ## Related Vault Notes - +## Compiled Pages +| Page | Type | One-line purpose | Source basis | Status | +|---|---|---|---|---| +| | source summary \| concept \| claim cluster \| synthesis \| promoted | | | draft \| reviewed \| promoted | + ## Open Questions - ``` @@ -43,6 +49,10 @@ Use inside `Research/ /` unless the vault has a clearer conve ## Notes - + +## Raw Source Rules +- Preserve raw source files as immutable evidence. +- Add interpretation in packet notes, not inside the source file. ``` Include source links, books, papers, docs, videos, examples, search terms, or relevant vault notes only when they improve learning or evidence quality. @@ -71,12 +81,16 @@ Include source links, books, papers, docs, videos, examples, search terms, or re ```markdown # Claims -## Claim: +## Claim: +- Type: source claim | synthesis | opinion | open question - Evidence: - Source: - Confidence: high | medium | low +- Supports: +- Contradicts or complicates: - Implications: - Related notes: +- Last checked: ``` ### `Questions.md` @@ -118,6 +132,22 @@ Include source links, books, papers, docs, videos, examples, search terms, or re Record important answers, corrections, and scope decisions as the session progresses. +### `Log.md` + +```markdown +# Log + +Append one entry for each ingest, query filed back into the packet, lint pass, promotion, or major correction. + +## YYYY-MM-DD HH:MM — +- Input: +- Files read: +- Files changed: +- Claims added or revised: +- Links added: +- Open issues: +``` + ### `Glossaries.md` ```markdown @@ -136,14 +166,30 @@ Add every acronym, abbreviation, domain-specific phrase, specialized term, jargo ## Atomic note ```markdown +--- +id: +aliases: [] +tags: [research, atomic-note] +area: +project: [[]] +--- # ## Idea + ## Why it matters + ## Evidence or source +- Claim: [[Claims#Claim ]] +- Source: -## Related notes -- +## Links +- Broader: +- Related: +- Contrasts: + +## Promotion status +- Packet-local | candidate for main vault | promoted to [[path/to/promoted note]] ```