From 22c3d92b47f724466e51b9964d086f5d724dd52e Mon Sep 17 00:00:00 2001 From: marqdo-knowledge Date: Thu, 26 Nov 2026 09:17:27 +0800 Subject: [PATCH] release: 0.1.0-beta.3 (fix beta.2 release lane) - 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 --- .github/workflows/ci.yml | 1 + .woodpecker/main.yml | 1 + CHANGELOG.md | 17 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 +- docs/STATUS.md | 6 +- docs/releases/0.1.0-beta.3.md | 134 ++++++++++++++++++++++++++++++++++ docs/releasing.md | 2 +- packaging/tool.json | 2 +- spec/knowledge.md | 2 +- tools/release/package.py | 7 +- 12 files changed, 167 insertions(+), 13 deletions(-) create mode 100644 docs/releases/0.1.0-beta.3.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 492af13..2b64117 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,7 @@ jobs: env: MARQDO_BIN: /tmp/marqdo-cli/target/release/marqdo run: | + cargo build --release --locked version="$(python3 -c 'import re,pathlib;print(re.search(r"(?m)^version\s*=\s*\"([^\"]+)\"", pathlib.Path("Cargo.toml").read_text()).group(1))')" python3 tools/release/package.py --source-sha "${{ github.sha }}" --version "$version" python3 tools/release/smoke.py --archive "dist/marqdo-knowledge-$version-x86_64-unknown-linux-gnu.tar.gz" --evidence-out dist/smoke-evidence.json diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 7913a97..72f19b4 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -58,6 +58,7 @@ steps: ( cd "$work/core" && git checkout --quiet "$core_sha" \ && cargo build --release --locked -p marqdo-cli ) export MARQDO_BIN="$work/core/target/release/marqdo" + cargo build --release --locked version="$(cargo metadata --no-deps --format-version 1 --offline \ | python3 -c 'import json,sys; print(next(p["version"] for p in json.load(sys.stdin)["packages"] if p["name"]=="marqdo-knowledge"))')" python3 tools/release/package.py --source-sha "$CI_COMMIT_SHA" --version "$version" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b82c69..fec5b4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ All notable changes to `marqdo-knowledge`. The project follows SemVer for the tool version; schema and protocol revisions are independent numbers. This beta line makes no stable-version claim. +## 0.1.0-beta.3 — 2026-11-26 + +CI release-lane fix; no tool-behaviour changes. Supersedes beta.2, whose +tag-only lane failed before producing an archive. + +### Fixed + +- Woodpecker and GitHub tag-release lanes build `target/release/marqdo-knowledge` + with `--locked` before invoking the deterministic packager. +- `tools/release/package.py` reports a corrective error instead of a traceback + when the release binary is missing. + +### Withdrawn + +- `v0.1.0-beta.2` — tag-only release lane failed; no archive or Gitea release + was produced. Use `v0.1.0-beta.3`. + ## 0.1.0-beta.2 — 2026-11-26 Release-engineering beta; no tool-behaviour changes from beta.1. Supersedes diff --git a/Cargo.lock b/Cargo.lock index 31b8549..2d05486 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -620,7 +620,7 @@ checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "marqdo-knowledge" -version = "0.1.0-beta.2" +version = "0.1.0-beta.3" dependencies = [ "clap", "comrak", diff --git a/Cargo.toml b/Cargo.toml index 3de59ec..1d9f4a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "marqdo-knowledge" -version = "0.1.0-beta.2" +version = "0.1.0-beta.3" edition = "2021" rust-version = "1.89" license = "Apache-2.0" diff --git a/README.md b/README.md index a16171a..925815a 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,9 @@ and no separate knowledge IR file. ## Release -Current release: **`0.1.0-beta.2`** (beta channel, Linux x86_64). See +Current release: **`0.1.0-beta.3`** (beta channel, Linux x86_64). See [`CHANGELOG.md`](CHANGELOG.md) and -[`docs/releases/0.1.0-beta.2.md`](docs/releases/0.1.0-beta.2.md) for what is +[`docs/releases/0.1.0-beta.3.md`](docs/releases/0.1.0-beta.3.md) for what is included and what is explicitly NOT done. CI/CD configuration is described in [`docs/ci.md`](docs/ci.md); the release procedure is in [`docs/releasing.md`](docs/releasing.md). diff --git a/docs/STATUS.md b/docs/STATUS.md index d5f7a3e..519bb58 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -1,13 +1,13 @@ # Status -Last updated: 2026-11-26 (release `0.1.0-beta.2`). Evidence-based: this file lists what the code does and +Last updated: 2026-11-26 (release `0.1.0-beta.3`). Evidence-based: this file lists what the code does and what was actually executed. Anything not listed as verified is **NOT RUN** and must not be claimed as passing. ## Release state -- Channel: **beta** (`0.1.0-beta.2`), Linux x86_64. Not a stable claim. -- Release notes: [`releases/0.1.0-beta.2.md`](releases/0.1.0-beta.2.md). +- Channel: **beta** (`0.1.0-beta.3`), Linux x86_64. Not a stable claim. +- Release notes: [`releases/0.1.0-beta.3.md`](releases/0.1.0-beta.3.md). - CI/CD: [`.woodpecker/main.yml`](../.woodpecker/main.yml), [`.github/workflows/ci.yml`](../.github/workflows/ci.yml) and [`scripts/ci.sh`](../scripts/ci.sh); procedure in [`ci.md`](ci.md) and diff --git a/docs/releases/0.1.0-beta.3.md b/docs/releases/0.1.0-beta.3.md new file mode 100644 index 0000000..1333a6b --- /dev/null +++ b/docs/releases/0.1.0-beta.3.md @@ -0,0 +1,134 @@ +# marqdo-knowledge 0.1.0-beta.3 + +Release date: 2026-11-26 +Release channel: **beta** (not a stable-version claim) +Platform: Linux x86_64 (glibc) +Supersedes: `0.1.0-beta.2` (whose tag-only release lane failed because the lane +did not build the tool release binary before packaging; the `v0.1.0-beta.2` tag +is withdrawn and must not be used). + +Core CLI integration baseline: `cflmy/marqdo-cli` `3.0.0-rc.4` +(`4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`) + +Contract versions (unchanged from beta.1): + +| Boundary | Version | +|---|---| +| `marqdo.cli-tool` | revision 1 | +| tool API revision | 1 | +| consumed `marqdo.analysis` | revision 3 (current closed shape) | +| SQLite schema | revision 1 | +| result/error envelope | schema_version 1 | +| OKF | 0.3 | + +## Changes since beta.2 (CI release lane only) + +- Woodpecker and GitHub tag-release lanes now run + `cargo build --release --locked` for the tool before invoking the deterministic + packager; beta.2 failed at this point and produced no archive. +- `tools/release/package.py` fails with a corrective message instead of a + traceback when the release binary is absent. +- No tool behaviour, CLI surface, contract or schema change. + +Release evidence produced by the pipeline on this SHA: + +- metadata consistency gate PASS; +- fmt/clippy/tests (including the real rc.4 Analysis integration) PASS; +- deterministic archive with `SOURCE_SHA`, `FILES.sha256`, `RELEASE_INFO.json` + and sidecar SHA-256; +- cold-install smoke through the real core CLI: archive checksum/manifest/ + version verified, install -> help -> compile packaged example -> query -> + check (current, 0 errors) -> remove; +- Gitea prerelease for the tag with the archive and evidence assets attached + (recorded in `dist/gitea-release-evidence.json` by the release lane). + +## What is complete in this beta + +- `compile`, `check`, `query` exactly as documented in + [`0.1.0-beta.1.md`](0.1.0-beta.1.md): deterministic discovery and snapshot, + plain Markdown projection, the current public Analysis v3 adapter, unified + graph, one rebuildable SQLite projection, atomic rebuild and transactional + incremental update, stale-snapshot refusal, OKF v0.3 metadata recognition and + `check --okf`, exact/lexical/fuzzy/graph/semantic channels, weighted RRF, + bounded graph expansion, document/execution/hybrid slices. +- Explicit OpenAI-compatible semantic indexing/query with strict response + validation, content/model-digest reuse and all-or-nothing publication. +- Deterministic packaging, per-file manifest, release metadata, cold-install + smoke verification, Gitea prerelease publication and CI gates for formatting, + lints, tests, MSRV, real core Analysis integration and release metadata. +- Security defaults unchanged: no execution, root-confined filesystem access, + offline by default, credentials only from the environment, atomic + publication, no schema migration or foreign-database overwrite. + +## What is NOT complete in this beta + +These are explicit non-claims; see [`docs/STATUS.md`](../STATUS.md). + +1. **Real-model semantic quality benchmark**: only protocol, validation, + storage, reuse and fusion are exercised (local mock). No pinned model was + run; no semantic Recall@10 claim is made. +2. **Specification §16 retrieval and performance gates**: frozen multi-domain + dataset, held-out queries, Recall/MRR/nDCG, latency/RSS/build-time and + incremental write-volume benchmarks are NOT RUN. +3. **Platforms**: Linux x86_64 only. Windows/macOS are untested and not claimed. +4. **Upstream batch Analysis interface (U01)**: the pinned core exposes + per-entry `check --emit`; this beta invokes it per `.mq.md` entry and merges + contexts conservatively. +5. **Incremental write granularity**: facts reuse avoids re-analysis for + plain-only edits, but projection rows are rewritten in one transaction; the + write-volume benchmark is unmeasured. +6. **OKF compile-time absolute links**: root-absolute links receive OKF + semantics only in `check --okf`; `compile` keeps Native semantics. +7. **Single-character CJK queries**: bounded probe with truncation reporting, + not an exhaustive scan. +8. **No migration**: schema revision changes require `compile --rebuild`. +9. **Cross-toolchain reproducibility**: the archive is reproducible from the + same commit, binary and toolchain; byte-identical reproduction across + different Rust toolchains is not claimed. + +## Install and first run + +```sh +# Install the release bundle through a compatible core CLI: +marqdo tool install ./dist/marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu +marqdo knowledge --help +marqdo knowledge compile ./examples/mixed --json +marqdo knowledge query '归一化' --root ./examples/mixed +marqdo knowledge check ./examples/mixed --json +marqdo tool remove knowledge +``` + +The tool requires a compatible core `marqdo` (`MARQDO_API_REVISION=1`, +Analysis revision 3) when dispatched. Direct development invocation accepts +`--marqdo-bin PATH`. + +## Compatibility and upgrade notes + +- Beta.3 is a drop-in replacement for beta.1: same CLI surface, contracts and + SQLite schema revision. +- Existing beta.1 databases remain readable (schema revision 1 unchanged); a + rebuild is not required. +- Any future schema revision change requires `compile --rebuild`; there is no + automatic migration. +- A database not created by this tool is never overwritten. +- The archive and `SOURCE_SHA` identify the exact source commit; checksums prove + content integrity only, not publisher authentication. + +## Security notes + +Default operation is offline. The only network path is an explicitly configured +embedding endpoint (compile-time embedding options or `--semantic`). Remote +endpoints require HTTPS and explicit `--allow-remote-embedding`; loopback HTTP is +allowed for local compatible services. The API key is read from +`MARQDO_KNOWLEDGE_EMBEDDING_API_KEY` and is never stored, logged or printed. +Diagnostics never include source text, credentials or absolute paths. + +## Evidence + +- `docs/evidence/2026-11-26-implementation.md` — tests, real Analysis + integration and local cold install. +- `docs/STATUS.md` — implemented/tested vs NOT RUN matrix. +- `docs/ci.md`, `docs/releasing.md` — gates, non-gates and frozen-SHA procedure. +- Pipeline run, archive checksum, `FILES.sha256`, `RELEASE_INFO.json`, + `dist/smoke-evidence.json` and the Gitea prerelease record the same release + SHA. diff --git a/docs/releasing.md b/docs/releasing.md index 21f7e7e..f7cb8cc 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -1,6 +1,6 @@ # Releasing marqdo-knowledge -This project is on the **beta** channel (`0.1.0-beta.N`); current version `0.1.0-beta.2`. A beta release claims +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. diff --git a/packaging/tool.json b/packaging/tool.json index 2ecce41..1c85569 100644 --- a/packaging/tool.json +++ b/packaging/tool.json @@ -2,7 +2,7 @@ "schema": "marqdo.cli-tool", "schema_version": 1, "name": "marqdo-knowledge", - "version": "0.1.0-beta.2", + "version": "0.1.0-beta.3", "command": "knowledge", "entrypoint": "bin/marqdo-knowledge", "requires": { diff --git a/spec/knowledge.md b/spec/knowledge.md index 787aa39..79084f9 100644 --- a/spec/knowledge.md +++ b/spec/knowledge.md @@ -13,7 +13,7 @@ there is never a second active contract. "schema": "marqdo.cli-tool", "schema_version": 1, "name": "marqdo-knowledge", - "version": "0.1.0-beta.2", + "version": "0.1.0-beta.3", "command": "knowledge", "entrypoint": "bin/marqdo-knowledge", "requires": {"api_revision": 1, "analysis": 3} diff --git a/tools/release/package.py b/tools/release/package.py index 74c2825..79cfaa7 100755 --- a/tools/release/package.py +++ b/tools/release/package.py @@ -286,9 +286,10 @@ def main() -> int: fail(f"--source-sha {args.source_sha} does not match HEAD {head}") check_version_consistency(args.version) - version_output = run( - [str(ROOT / "target/release/marqdo-knowledge"), "--version"], capture=True - ) + binary = ROOT / "target/release/marqdo-knowledge" + if not binary.is_file(): + fail("target/release/marqdo-knowledge is missing; run cargo build --release --locked") + version_output = run([str(binary), "--version"], capture=True) if version_output != f"marqdo-knowledge {args.version}": fail(f"release binary reports `{version_output}`, expected version {args.version}")