Files
marqdo-knowledge/docs/evidence/2026-11-26-implementation.md
marqdo-knowledge 66be3e4464 docs(evidence): record release archive cold install
- build the locked release archive (tool.json + bin + docs/spec) and record its
  SHA-256
- cold install that archive with the real marqdo rc.4 CLI in an isolated
  MARQDO_TOOL_HOME: dispatch --help, compile the mixed example, query, check and
  remove all succeeded
- mark the archive lane verified on Linux x86_64 and keep other platforms
  explicitly NOT RUN; dist/ is a build artifact and is git-ignored
2026-11-26 02:32:44 +08:00

3.6 KiB

Evidence: implementation run 2026-11-26

Environment: Linux x86_64, Rust 1.100.0 (toolchain stable, crate MSRV 1.89), cargo --locked. Core CLI for integration: cflmy/marqdo-cli 3.0.0-rc.4 at 4bbefc92449ee480c8a2c89b0308feb4cda8d0e7, binary built by that checkout (marqdo 3.0.0-rc.4, Analysis revision 3).

Test counts (executed)

cargo test --workspace --locked
  lib unit tests:            104 passed
  tests/compile.rs:            6 passed
  tests/core_cli.rs:           3 passed  (MARQDO_TEST_BIN=real marqdo)
  tests/embedding.rs:          4 passed  (local mock embeddings server)
  tests/okf.rs:                7 passed
  tests/query.rs:             11 passed
  tests/storage.rs:            4 passed
  doc tests:                   0

cargo clippy --all-targets -- -D warnings and cargo fmt --all -- --check are clean in this tree at the recorded commits.

Real tool install / dispatch (T01)

Performed with an isolated MARQDO_TOOL_HOME and the real core CLI:

$MARQDO tool install <staged-dir>       # tool.json + bin/marqdo-knowledge
$MARQDO tool list                       # knowledge 0.1.0 (marqdo-knowledge)
$MARQDO knowledge --help                # dispatched, no core start-up side effects
$MARQDO knowledge compile ./examples/mixed --json
  payload: documents=5 nodes=15 edges=15 search_units=13 grams=235
$MARQDO knowledge query '归一' --root ./examples/mixed --format json
  channels: lexical, fuzzy, graph   hits > 0
$MARQDO knowledge check ./examples/mixed --json
  database: current   errors: 0
$MARQDO tool remove knowledge
$MARQDO tool list                       # no tools installed

The dispatch preserved argv/cwd and set MARQDO_BIN/MARQDO_API_REVISION as specified; no shell interpolation was used.

Real Analysis integration

  • tests/core_cli.rs invokes the real check --emit for a valid project (validated, converted, function node present) and for an invalid .mq.md (invocation fails, no artifact, no fabricated callable).
  • tests/compile.rs::mixed_project_uses_real_analysis_when_available compiles a mixed root through real Analysis: 1 context, real producer version, callable function metadata with the upstream FunctionId, and a plain-Markdown link into the Marqdo module resolving to the anchored node.
  • Negative validator tests tamper the committed real fixture (digest, span, revision, missing/unknown fields, error diagnostics, duplicate module, resolved-without-target) and require rejection.

Release archive (cold install)

scripts/package-release.sh produced dist/marqdo-knowledge-0.1.0-x86_64-unknown-linux-gnu.tar.gz with SHA-256 0ec09180b1ad48f0a63aacfc2f59bcf0006e8631909a3006ccf57f6871671d74 (38 bytes of source-independent metadata aside, the archive contains tool.json, bin/marqdo-knowledge, README, LICENSE, docs and spec). It was extracted into a clean directory and installed with the real core CLI in an isolated MARQDO_TOOL_HOME:

tool install:  knowledge 0.1.0 (marqdo-knowledge)
knowledge --help: dispatched
compile examples/mixed: 5 docs, 15 nodes, 15 edges, 13 search units
query '归一化': 4 hits, channels exact/lexical/fuzzy/graph
check: database current, 0 errors
tool remove: no tools installed

Rust release build: cargo build --release --locked finished clean. The archive is a build artifact and is git-ignored; the SHA above is the evidence.

Not covered by this evidence

  • No real embedding model was invoked; the semantic lane used a local protocol mock. No semantic-quality number is claimed.
  • No retrieval/performance benchmark was run.
  • Windows/macOS were not tested.