OKF Maintain / Curate
Keep the knowledge graph healthy and reviewable. This plugin owns Catalog + ContextPack; do not invent domain nouns while curating.
Maintenance checklist
- Broken links — every Markdown link to a
.mdtarget resolves inside the bundle. - Orphans — concepts with no inbound or outbound edges (except intentional roots).
- Index drift — subdirectory
index.mdcatalogs (type: Catalog) list actual children. - Log hygiene —
log.mdhas recent entries for structural changes. - Staleness — nodes past
stale_afteror long-unchanged high-degree concepts. - Trust gaps — schema-declared high-impact types (
x-impact: highon the owning plugin) withverified: false. - Frontmatter completeness —
type,title,description,timestamp. - Migration — if
okf_versionis missing or0.1, plan upgrade to0.2. Noun split (0.8 family): followdocs/user_guide/noun-ownership-migration.md— install owning plugins first; retype only DEKC pipelineWorkflow→IngestionJob; do not invent domain nouns here.
Process
- Locate bundle root.
- Run deterministic checks:
# Prefer official CLI okf validate <bundle> # Fallback python3 "${CLAUDE_PLUGIN_ROOT}/scripts/okf-graph.py" validate <bundle> python3 "${CLAUDE_PLUGIN_ROOT}/scripts/okf-graph.py" orphans <bundle> - Produce a curation report with severity (
error/warn/info) and suggested fixes. - Apply safe automatic fixes only when asked or clearly desired:
- Regenerate index listings from directory contents
- Append log entries for performed maintenance
- Fix obvious relative→absolute link rewrites only with confirmation if many files change
- For migrations v0.1 → v0.2:
- Set
okf_version: "0.2"on root index - Ensure absolute-link convention is documented
- Add
catalogs/,knowledge/,packs/only if missing - Do not seed AgentNode / Workflow / TicketLink catalogs (those belong to AGER / PKC)
- Do not delete legacy concepts
- Set
- For the 0.8 noun-ownership cut: do not retype files just because this plugin no longer ships their schema. Install the owning plugin. See
docs/user_guide/noun-ownership-migration.md.
Report template
# OKF Curation Report — <bundle>
Date: ...
## Errors
- ...
## Warnings
- ...
## Info
- ...
## Applied fixes
- ...
## Recommended follow-ups
- [ ] ...
Rules
- Prefer small, reviewable commits/changesets over mass rewrites.
- Never invent domain content while curating.
- Preserve user wording in concept bodies; only fix structure/metadata when needed.
- After fixes, re-validate.
Done when
- Report delivered (and optional fixes applied)
- Validation error count is zero or remaining errors are explicitly listed as deferred