Maintenance operations catalogue should stage distillation into instructions
Type: note ยท Status: current
Periodic operations start as manual procedures. A catalogue keeps them visible, comparable, and editable while they are still being learned. Once an operation is stable enough, it should be distilled into kb/instructions/ as an execution-oriented procedure.
This note is that staging ground.
Distillation pipeline
- Capture the operation here after first useful use.
- Re-run in varied contexts and tighten ambiguous steps.
- Mark as ready when inputs, outputs, and decision points are stable.
- Distill into
kb/instructions/and link back from this catalogue.
Catalogue
Orphan note detection
- Trigger: heartbeat run, user request, or pre-release hygiene pass
- Output: list of notes with no inbound links
- Distillation status: staging
for f in kb/notes/*.md; do
fname=$(basename "$f")
rg -q "$fname" --glob "*.md" kb/notes/ || echo "Orphan: $f"
done
Raw text capture detection
- Trigger: periodic cleanup before curation/connect sweeps
- Output: files without frontmatter that may need promotion from
texttonote - Distillation status: staging
rg -L "^---" kb/notes/*.md
Neighborhood tension review (target note + linked notes)
- Trigger: after major edits, before promoting status, or on explicit review request
- Input: a target note path
- Output: contradiction/tension/redundancy findings and improvement actions
- Distillation status: staging
Procedure:
- Read the target note.
- Enumerate outbound links from the note.
- Enumerate inbound links to the note (who cites it).
- Read the neighborhood and flag:
- Contradictions (claims that cannot both hold as written)
- Tensions (scope mismatch, unstated assumptions, unresolved caveats)
- Redundancies (duplicate claims that should merge or cross-link)
- Improvement opportunities (missing caveats, weak link semantics, stale framing)
- Apply fixes when clear; otherwise append one-line follow-ups to
kb/log.md.
Helper commands:
NOTE="kb/notes/<target>.md"
BASENAME=$(basename "$NOTE")
# Outbound markdown links declared in the target note
rg -o '\]\(([^)]+\.md)\)' "$NOTE" -r '$1' --no-filename | sort -u
# Inbound references to the target note from kb/notes
rg -l "$BASENAME" kb/notes --glob "*.md"
Relevant Notes:
- periodic-kb-hygiene-should-be-externally-triggered-not-embedded-in-routing โ foundation: routing docs stay slim while periodic operations are externally triggered
- instructions-are-skills-without-automatic-routing โ target form: mature catalogue entries become reusable instructions
- deterministic-validation-should-be-a-script โ escalation path: deterministic operations can move beyond instructions into scripts
Topics: