- exact channel resolves canonical ids, aliases and unique exact names only;
multiple exact names are returned as candidates, never silently chosen
- lexical channel uses weighted FTS5 BM25 over CJK-bigram segmented fields and
reports the matching field; fuzzy channel recalls via the gram index with
bounded edit distance, CJK single-character and prefix fallbacks for typos
whose bigrams do not overlap
- weighted RRF fuses per-node ranks (exact 1.5, lexical/fuzzy/semantic 1.0) and
bounded graph expansion follows references both ways, contains children,
calls/imports in their direction with --relation/--reverse, depth decay and
explicit truncation; --kind filters after expansion
- document/execution/hybrid slices share one plan+materialise traversal, skip
ancestor duplication, include module context for execution imports, report
external/dynamic gaps, enforce the 32 KiB budget on UTF-8 boundaries and keep
exact source text with path/span provenance
- stale databases are refused unless --snapshot is explicit; query never
compiles implicitly and emits the single result envelope with honest
channels/truncated/diagnostics
- add end-to-end query tests for CJK recall, typo recall, exact/ambiguous ids,
kind filtering, graph neighbours, slices, staleness, missing database,
no-result honesty and explicit semantic-config failure
- resolve scope, discover exact snapshot, project plain Markdown, run real
Analysis for .mq.md entries, cross-check module source bytes, merge contexts
and reject uncovered/invalid Marqdo documents
- collect referenced local assets and known-missing paths before linking so a
missing file is distinguished from an unindexed/excluded one
- incremental plan by content-digest change set: unchanged documents reuse
digest-guarded facts; any .mq.md/manifest/lock/core-identity change triggers
the conservative full re-analysis; plain-only edits never invoke Analysis
- no-op compiles preserve the stored snapshot and generation; rebuilds
increment the generation and atomically replace the artifact
- recheck every source digest immediately before publishing, never mixing
snapshots, and refuse to publish graphs with blocking diagnostics
- check validates sources, references, Analysis coverage, database structure
and currentness, writes nothing and exits 1 for definite broken links
- add end-to-end tests for plain-only compile without a core binary, mixed
real-Analysis compile, incremental/rebuild/no-op, stale database and broken
links
- add schema revision 1 with application id, singleton build row, documents,
nodes, aliases, edges, contexts, inputs, diagnostics, search_units,
FTS5 search_fts, grams and embeddings tables; spans and resolved-target
invariants are enforced by CHECK constraints and foreign_keys=ON
- full rebuild stages a private database in the target directory and renames
it atomically after source recheck and quick_check; a foreign or symlinked
database is refused, never overwritten
- incremental publish replaces the projection inside one transaction, so
readers see the old or the new complete snapshot and failures roll back to
the last successful artifact
- store exact UTF-8 source bytes and digest-guarded normalised facts for the
incremental re-analysis cache; inputs are content digests, never mtimes
- build one search unit per structural node/chunk with CJK bigram FTS
segmentation, weighted FTS fields and bounded 2/3-gram fuzzy rows
- add read-only store API (nodes, aliases, edges, units, FTS/gram candidates,
exact-name lookup, embeddings, diagnostics, integrity, currentness) and
integration tests for publish/read/search/incremental/foreign-db safety
- add the process boundary for the core CLI: explicit MARQDO_BIN/--marqdo-bin
only (never PATH), argv-only invocation of check ENTRY --emit, bounded
timeout, private temp artifact, exit checks and absolute-path sanitisation
- deserialize every Analysis record with closed serde shapes and validate
semantic invariants that JSON Schema cannot express: identities, source
digests, UTF-8 spans, unit tree/order/mode ancestry, anchors, functions and
signatures, references states, calls, resources, diagnostics and budgets
- validate statement/expression trees structurally with depth and span checks
- convert accepted modules into DocumentFacts, preserving honest upstream
reference states and one node per Exec unit/function
- merge modules across entry contexts only when identity and source agree,
otherwise report knowledge.analysis_context_conflict
- add the real rc.4 Analysis positive fixture (with provenance and regeneration
script), tamper negative tests and optional real-binary integration tests