Skip to content

Feat/doctor#10

Merged
arhuman merged 4 commits into
mainfrom
feat/doctor
Jul 4, 2026
Merged

Feat/doctor#10
arhuman merged 4 commits into
mainfrom
feat/doctor

Conversation

@arhuman

@arhuman arhuman commented Jul 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

arhuman added 4 commits July 1, 2026 03:11
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).
@arhuman arhuman merged commit 09f6f49 into main Jul 4, 2026
4 checks passed
@arhuman arhuman deleted the feat/doctor branch July 4, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant