Kinic Context Pack Workflow
Goal
Export a selected /Knowledge/... scope into an OKF v0.1 markdown bundle that another AI can read, then verify that the bundle is structurally valid and does not contain copied evidence source bodies.
Workflow
- Identify the
database_id and the /Knowledge/... root to export. - Export the scope with
context-pack export. - Verify the output directory with
context-pack verify. - Inspect the bundle with
context-pack inspect when a summary or JSON handoff record is useful. - Hand off the bundle only after verification passes.
Read Strategy
context-pack export is the preferred read path for handoff bundles; it uses query_context internally to collect scoped wiki nodes and evidence.- Do not pre-read the scope with ad hoc
read-node loops before export. - Use
context-pack inspect for local bundle summaries after export. - Use
export_snapshot or fetch_updates only through Store API/tool access outside this workflow when raw scope or delta reads are explicitly needed. Measure those raw reads with the Store API latency benchmark, not by adding ad hoc reads before context-pack export.
Commands
Export:
kinic-vfs-cli --database-id <db> context-pack export \
--root /Knowledge/projects/acme \
--out ./okf \
--expires-at 2026-09-22T00:00:00Z \
--trust-level team-approved \
--approved-by principal:aaaaa-aa
Verify:
kinic-vfs-cli context-pack verify ./okf
Inspect:
kinic-vfs-cli context-pack inspect ./okf --json
OKF Shape
Expected bundle shape:
index.md
log.md
facts/*.md
decisions/*.md
tasks/*.md
policies/*.md
notes/*.md
references/*.md
Reserved files:
index.md: progressive-disclosure entrypoint; no frontmatterlog.md: export history; no frontmatter
Concept files:
- every non-reserved
.md file has YAML frontmatter type is required and non-empty- Kinic-specific data lives under the
kinic: frontmatter extension
Directory meaning:
facts/*.md: settled fact concepts from fact-like wiki nodesdecisions/*.md: decision conceptstasks/*.md: task or plan conceptspolicies/*.md: style, preference, and do-not-do conceptsnotes/*.md: unclassified wiki nodes that are still normal OKF conceptsreferences/*.md: source reference concepts only; kinic.source_path must point under /Sources/...
Rules
- Do not export from
/Sources/... as the root. - Do not copy evidence source body text into
references/*.md. - Do not use
references/*.md for ordinary wiki notes. - Do not treat a passed
inspect summary as verification; run verify. - Do not use this skill to mutate the wiki.
- If
verify reports an expired kinic.expires_at, re-export from the source wiki instead of extending the local bundle by hand.
Output
For handoff, include:
- bundle path
- exported wiki root
- verification result
- inspect summary when requested
- any verification failure that blocks AI handoff