- build target/release/marqdo-knowledge in both tag-release lanes before the deterministic packager; beta.2 failed exactly at that missing step and produced no archive or Gitea release - package.py now fails with a corrective message instead of a traceback when the release binary is absent - bump the tool to 0.1.0-beta.3, add release notes and CHANGELOG entry and mark v0.1.0-beta.2 withdrawn; contracts and SQLite schema are unchanged - keep the full completed / NOT complete inventory and beta limitations unchanged
3.5 KiB
Releasing marqdo-knowledge
This project is on the beta channel (0.1.0-beta.N); current version 0.1.0-beta.3. A beta release claims
only what the pipeline and recorded evidence establish. It does not claim
stable quality gates, and the development specification's §16 retrieval and
performance targets remain NOT RUN.
The procedure mirrors cflmy/marqdo-cli docs/releasing.md: freeze one release
SHA, run every gate on that exact SHA, build the archive from it, cold-install
that archive through a real core CLI, then tag. Never package a different
checkout.
1. Freeze the release SHA
git status --porcelainis clean,Cargo.lockis committed, all builds use--locked.Cargo.toml,packaging/tool.jsonandspec/knowledge.mdcarry the same tool version (currently0.1.0-beta.1).CHANGELOG.md,docs/releases/<version>.md,docs/STATUS.mdanddocs/ci.mddescribe the same facts. No "implemented" claim without a test or executed evidence; no NOT RUN item presented as passing.- The core CLI pin is unchanged or the Analysis fixtures were regenerated and re-validated against the new pin.
2. Gates on that SHA
scripts/ci.sh test # fmt, clippy -D warnings, locked tests
scripts/ci.sh minimum # Rust 1.89 MSRV check
MARQDO_BIN=/path/to/marqdo scripts/ci.sh core # real Analysis boundary
cargo build --release --locked
The Woodpecker/GitHub pipelines run the same gates. A green local run is not a substitute for the pipeline run recorded for the release commit, and vice versa.
3. Build and verify the archive
MARQDO_BIN=/path/to/marqdo scripts/ci.sh release
This runs the deterministic packager (tools/release/package.py: refuses a
dirty tree or mismatched SOURCE_SHA, emits
dist/marqdo-knowledge-<version>-<target>.tar.gz, .sha256, FILES.sha256,
RELEASE_INFO.json) and the smoke verifier (tools/release/smoke.py: checksum,
manifest, source SHA and version checks, then installs the archive into an
isolated MARQDO_TOOL_HOME, runs help/compile/query/check and removes the
tool). Two package runs from the same commit, binary and toolchain must produce
the same archive SHA-256.
Record the archive name and SHA-256 in the tag annotation and release page. Do
not commit build artifacts: dist/ is ignored.
4. Tag and publish (beta)
git tag -a v0.1.0-beta.N -m "marqdo-knowledge 0.1.0-beta.N; archive <name> sha256 <hash>"
git push origin master --tags
The tag-only release lane uploads the archive, SHA-256 and RELEASE_INFO.json,
and publishes a prerelease using docs/releases/<version>.md as the body. A tag
push must not introduce new source changes; if the tree changed, restart at step
1 with a new SHA.
5. Beta exit conditions for this repository
A beta release may be published with these documented gaps:
- real-model semantic quality and §16 retrieval/performance benchmarks NOT RUN;
- Linux x86_64 only;
- upstream batch Analysis interface unavailable in the pinned core (per-entry Analysis is used);
- incremental compiles rewrite projection rows in one transaction (write-volume benchmark unmeasured);
- OKF bundle-root absolute links only have OKF semantics in
check --okf; - single-character CJK queries are bounded/truncated.
They must be published as limitations, never omitted. Stable promotion requires the full acceptance matrix and quality/performance gates in the development specification on the exact release SHA, plus independent consumer and cold install evidence; this document does not authorize a stable release.