Expand description
mnm-core — shared primitives for the midnight-manual workspace.
Phase 2 lands the foundational shared types: typed error envelope
(error), embedding-model wire id (model_id), provenance / content
/ source / chunk types (provenance, types), XDG config discovery
(config), auth-file reader (auth_file), and the scoring-policy
loader (scoring_policy). Each module is independently usable and
independently testable.
Modules§
- auth_
file auth.tomlreader (Phase-2 stub, expanded in Phase 7 with the writer).- config
- Config-file discovery and shape.
- embedder_
identity - Deriving the embedding-model identity (name + dim + dtype) used to COMPUTE an embedding from the SAME source that LABELS the resulting vectors.
- error
- Typed error envelope used by every cloud HTTP response, MCP tool result, and CLI exit-with-error path.
- ingest
- Shared document-upload wire types for the ingest pipeline.
- introspect
- Shared typed contract for the
GET /v1/meintrospection endpoint. - limits
- Shared size limits used across the server (body cap) and CLI (upload batching).
- model_
id {name}@{revision}embedding-model identifier wire format (D12, FR-038, FR-039).- paths
- Shared XDG path helpers (D18).
- provenance
document.provenanceJSONB shape — the trust + verification metadata that drives the confidence-scoring blend in Phase 9 (US6, D24).- rerank
- Shared reranking vocabulary for the
VoyageAIreranking design. - scoring
- Confidence-scoring compute layer (US6, D24).
- scoring_
policy - Scoring-policy TOML loader (Phase-2 stub; full validation lands in Phase 9 / US6).
- types
- Canonical wire types — the shapes returned by
/v1/search,/v1/chunks/..., and the MCPsearchtool. - version_
match - Version-interval parsing and match classification (version-provenance spec §2).
Constants§
- VERSION
- Crate version stamped at build time.