- 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 one Node/one Edge model over canonical JSON-tuple keys; root units map to
their document node and Exec unit/function nodes are the same node
- build contains tree, statement and resource nodes, asset nodes and inert
external nodes; keep every repeated link occurrence as its own edge
- resolve ordinary links relative to the source document with exactly one
percent decode, fragment rules, numbered anchors, exact canonical-name
fallback and explicit missing/ambiguous/not_loaded/out_of_scope/invalid states
- never re-bind a resolved upstream Marqdo target; preserve not_loaded and
resolve it in root scope only through exact anchor/name rules; surface
interface conflicts when upstream and knowledge mappings disagree
- map imports and calls to real nodes or explicit external/unresolved edges;
builtin/plugin targets stay external symbols, never fabricated functions
- add deterministic logical digest and tests for contains, externals, repeated
occurrences, ambiguity, anchors and missing-path distinctions
- 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
- add the closed normalized AST shape shared by the plain projection and
upstream Analysis, with required-attribute, UTF-8 span and depth validation
- parse plain .md with pinned comrak 1.0.0 fixed options (GFM tables,
footnotes, task lists, strikethrough, autolink, dollar math, front matter)
- convert parser line/column positions to exact half-open byte spans and keep
BOM/CRLF/CJK byte identity
- build heading units (complete section spans, parents, occurrence-indexed
duplicate paths), fixed-rule anchors, raw link facts and searchable blocks
- parse front matter as bounded YAML to JSON with alias/depth/size rejection
while preserving the raw literal; plain @exec text stays inert
- add shared DocumentFacts vocabulary with serde caching shape
- resolve explicit dir/file roots, reject symlink roots and unsafe --exclude
globs; keep the database at <root>/.marqdo/knowledge.sqlite
- walk without following symlinks, skip .git/.marqdo/target/node_modules and
hidden entries, sort by byte-wise root-relative path
- read exact UTF-8 bytes with per-file/total/document budgets and digest
based source-change detection before publishing
- record marqdo.yaml/marqdo.lock and referenced local assets as inputs;
asset digests are bounded and never full-text indexed
- add validate_relative_path/resolve_link_path/safe_join primitives with
traversal, drive/UNC, NUL and escape tests
- pin Rust 2021 / MSRV 1.89 and exact dependency versions
- add typed model vocabulary (UTF-8 spans, canonical JSON-array node keys,
node/edge/state enums, digest helpers) with unit tests
- add deterministic diagnostics and unified error/exit semantics (0/1/2)
- add the three-command clap surface with strict argument validation
- record the single-derived-artifact decision, architecture overview and
current public contract; STATUS lists real evidence only