.context/ missing | Refuse; suggest ctx init. No residue. |
.context/kb/ missing | Refuse; suggest ctx init --upgrade. No residue. |
| Kb scope undeclared | Refuse with the scope message. No residue. |
| Zero topic pages on disk | Walk closeouts and ledger anyway. Note the bootstrap state in the closeout. Not a failure mode. |
| Zero closeouts on disk | Walk topic pages and ledger anyway. Note in the closeout body. Not a failure mode. |
Confidence: High (capitalization drift) | Coerce to high silently; record in What changed. |
Confidence: probable (unknown band) | Flag for the user; do not coerce. |
Author: hand-authored | Flag for the user; do not coerce (human intent matters). |
Duplicate EV-### ID across files | Flag both files; defer renumbering to the LLM cleanup pass per spec's P1. |
EV-12 (missing zero-pad) | Flag for the user; do not auto-pad (cascades to citations). |
Unresolved EV-### on a topic page | Flag; recommend /ctx-kb-ingest <slug> in Next pass hint. |
Ledger row Updated predates source file mtime | Flag (lying-to-the-ledger advisory). Do not auto-edit. |
Illegal ledger transition (e.g. comprehensive → highlights-extracted without superseded) | Flag; recommend the corrective ingest invocation. Do not auto-correct. |
Closeout missing pass-mode frontmatter field | Flag; the handover-fold skips malformed closeouts so the user can fix or delete. |
Closeout body's Pass-mode Declared: disagrees with frontmatter pass-mode: | Flag (false-finish signal); recommend hand-edit. |
Closeout's Adjacency pre-flight is free prose instead of none surfaced or a slug-list | Flag; recommend hand-edit to structured form. |
CTX:KB:TOPICS managed block drift | Recommend ctx kb reindex in Next pass hint; do not run the CLI from this skill. |
TBD-cite on a page with Confidence above speculative | Flag; do not auto-demote (demotion is evidence work for /ctx-kb-ingest). |
Sibling sub-page exists with no link from index.md | Flag; recommend hand-edit or /ctx-kb-ingest <slug> to extend. |