- add docs/evidence/2026-11-26-beta.3-release.md: tag/source commit, Gitea release URL and assets, published archive SHA-256, CI tag pipeline #11 success and its archive SHA, local 139-test gate results, withdrawn beta.2 tag, and the explicit secret-injection limitation with the reviewed local publish path - link the release/evidence from docs/STATUS.md, the beta.3 release notes and docs/ci.md; keep the NOT RUN inventory unchanged - record the local release/CI bookkeeping in the git-ignored .secrets notes
4.0 KiB
CI/CD for marqdo-knowledge
The pipeline mirrors the upstream marqdo-cli approach: one fast Rust contract
lane, one minimum-Rust lane, one lane that builds the pinned core CLI and runs
the real-Analysis integration tests, and a tag-only release lane that builds a
deterministic archive, cold-installs it through a real marqdo binary and
publishes the checksum.
Configurations:
.woodpecker/main.yml— self-hosted Woodpecker (push, pull_request, tag)..github/workflows/ci.yml— GitHub Actions mirror (push, pull_request, tag).scripts/ci.sh— the same lanes locally (test,minimum,core,release,all).tools/release/package.py— deterministic archive,SOURCE_SHA,FILES.sha256,RELEASE_INFO.json, SHA-256 sidecar.tools/release/smoke.py— checksum/manifest/version verification and cold install in an isolatedMARQDO_TOOL_HOME(install, help, compile/query/check, remove; writesdist/smoke-evidence.json).tools/ci/test_release_metadata.py— version/fact consistency gate.scripts/package-release.sh/scripts/verify-release.sh— thin wrappers for the Python tooling.
Pinned core boundary
The core CLI is an external contract. CI does not use an already-installed
marqdo: it builds cflmy/marqdo-cli at
4bbefc92449ee480c8a2c89b0308feb4cda8d0e7 (3.0.0-rc.4, Analysis revision 3)
and exports MARQDO_TEST_BIN for tests/core_cli.rs and
tests/compile.rs. Changing the pin requires re-running the tamper fixtures and
recording a new Analysis fixture artifact.
Gates executed by CI
| Gate | Command |
|---|---|
| release metadata consistency | python3 tools/ci/test_release_metadata.py |
| formatting | cargo fmt --all -- --check |
| lints | cargo clippy --workspace --all-targets --locked -- -D warnings |
| unit + integration tests | cargo test --workspace --locked |
| real core CLI boundary | MARQDO_TEST_BIN=<pinned core> cargo test --workspace --locked |
| minimum Rust | cargo +1.89 check --locked --workspace --all-targets |
| release build | cargo build --release --locked |
| deterministic package + cold install | python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ... |
Forge publication from the tag lane
The tag-only release lane builds and smoke-tests the deterministic archive and
then invokes tools/release/publish-gitea.py when GITEA_TOKEN is present in
the step environment. If the Woodpecker instance does not inject repository
secrets into tag pipelines, the lane prints a publish: skipped notice, keeps
the build/smoke evidence, and the prerelease is published from the same tagged
SHA by a reviewed local invocation with the token read from a local-only
environment file. Never put the token in the repository, pipeline config, logs
or documentation.
Not gated by CI (explicit non-claims)
- Real-model semantic quality benchmark (§8.3/§16) — needs a pinned model and weights, not available to this repository's CI.
- Retrieval/performance benchmarks (§16) — need a frozen multi-domain dataset and reference hardware.
- Windows/macOS native builds — the beta platform claim is Linux x86_64 only.
- Upstream batch
--documentsAnalysis interface (U01) — the pinned core exposes per-entrycheck --emit; this beta invokes it per entry. - Incremental write-volume benchmark.
These are recorded as NOT RUN in STATUS.md. A green pipeline is
evidence for the executed gates only; it is not evidence for those items.
Local reproduction
# Fast lane
scripts/ci.sh test
# MSRV lane (installs 1.89 through rustup when absent)
scripts/ci.sh minimum
# Real Analysis lane: use an existing built core, or clone/build the pin
MARQDO_BIN=/path/to/marqdo scripts/ci.sh core
# Full release lane (build, package, cold-install smoke)
MARQDO_BIN=/path/to/marqdo scripts/ci.sh release
The release archive records SOURCE_SHA, RELEASE_INFO.json (version,
channel, target, API/Analysis/schema revisions, core baseline, rustc/cargo) and
the archive SHA-256. Checksums are integrity evidence, not publisher
authentication.