- 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
- 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