Feat/doctor#10
Merged
Merged
Conversation
Add `mnemos doctor [path]`, a read-only diagnostic that reports knowledge-base health issues without mutating the store or files: exact duplicates (content_hash), broken links, oversized documents, tag hygiene (case variants and single-use), and structural gaps (missing frontmatter, empty body, missing index.md). Deterministic detectors live in a new internal/doctor package driven by three storage queries (ListDocumentDigests, ListBrokenLinks, ListDocsWithoutChunks). Service.Diagnose is the thin verb wrapper the CLI calls and a future MCP tool can reuse, mirroring List -> browse. Supports --path/--collection scoping, --json output, and --fail-on-findings for CI. Accept ADR 0006.
Draft the tactical unblocker for destructive KB consolidation: on move, rewrite inbound references in the source markdown files and re-index them, canonicalizing links to tree-root-relative URIs. Best-effort failure semantics mirror ADR 0004; delete-side rewriting is deferred to its own future ADR. Status: Proposed.
KB_LOCATION.md was a French design-analysis draft (proposition de design, non implementee) that predated and was superseded by ADR 0005. It should never have shipped in the public English repo. Remove it and drop the two now-dead references from ADR 0005 (the multi-model evaluation reference is kept).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.