release: 0.1.0-beta.3 (fix beta.2 release lane)
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline failed
CI / fmt + clippy + workspace tests (push) Canceled after 0s
CI / MSRV check (1.89) (push) Canceled after 0s
CI / real Analysis integration (pinned core CLI) (push) Canceled after 0s
CI / beta release archive (push) Canceled after 0s

- 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
This commit is contained in:
marqdo-knowledge committed 2026-11-26 09:17:27 +08:00
1 parent 81b553f4df
commit 22c3d92b47
12 files changed
+167 -13

No files matched your search

+1
View File
@@ -80,6 +80,7 @@ jobs:
env: env:
MARQDO_BIN: /tmp/marqdo-cli/target/release/marqdo MARQDO_BIN: /tmp/marqdo-cli/target/release/marqdo
run: | 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))')" 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/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 python3 tools/release/smoke.py --archive "dist/marqdo-knowledge-$version-x86_64-unknown-linux-gnu.tar.gz" --evidence-out dist/smoke-evidence.json
+1
View File
@@ -58,6 +58,7 @@ steps:
( cd "$work/core" && git checkout --quiet "$core_sha" \ ( cd "$work/core" && git checkout --quiet "$core_sha" \
&& cargo build --release --locked -p marqdo-cli ) && cargo build --release --locked -p marqdo-cli )
export MARQDO_BIN="$work/core/target/release/marqdo" export MARQDO_BIN="$work/core/target/release/marqdo"
cargo build --release --locked
version="$(cargo metadata --no-deps --format-version 1 --offline \ 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 -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" python3 tools/release/package.py --source-sha "$CI_COMMIT_SHA" --version "$version"
+17
View File
@@ -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 tool version; schema and protocol revisions are independent numbers. This beta
line makes no stable-version claim. 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 ## 0.1.0-beta.2 — 2026-11-26
Release-engineering beta; no tool-behaviour changes from beta.1. Supersedes Release-engineering beta; no tool-behaviour changes from beta.1. Supersedes
Generated
+1 -1
View File
@@ -620,7 +620,7 @@ checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
[[package]] [[package]]
name = "marqdo-knowledge" name = "marqdo-knowledge"
version = "0.1.0-beta.2" version = "0.1.0-beta.3"
dependencies = [ dependencies = [
"clap", "clap",
"comrak", "comrak",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "marqdo-knowledge" name = "marqdo-knowledge"
version = "0.1.0-beta.2" version = "0.1.0-beta.3"
edition = "2021" edition = "2021"
rust-version = "1.89" rust-version = "1.89"
license = "Apache-2.0" license = "Apache-2.0"
+2 -2
View File
@@ -25,9 +25,9 @@ and no separate knowledge IR file.
## Release ## 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 [`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 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/ci.md`](docs/ci.md); the release procedure is in
[`docs/releasing.md`](docs/releasing.md). [`docs/releasing.md`](docs/releasing.md).
+3 -3
View File
@@ -1,13 +1,13 @@
# Status # 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 what was actually executed. Anything not listed as verified is **NOT RUN** and
must not be claimed as passing. must not be claimed as passing.
## Release state ## Release state
- Channel: **beta** (`0.1.0-beta.2`), Linux x86_64. Not a stable claim. - Channel: **beta** (`0.1.0-beta.3`), Linux x86_64. Not a stable claim.
- Release notes: [`releases/0.1.0-beta.2.md`](releases/0.1.0-beta.2.md). - Release notes: [`releases/0.1.0-beta.3.md`](releases/0.1.0-beta.3.md).
- CI/CD: [`.woodpecker/main.yml`](../.woodpecker/main.yml), - CI/CD: [`.woodpecker/main.yml`](../.woodpecker/main.yml),
[`.github/workflows/ci.yml`](../.github/workflows/ci.yml) and [`.github/workflows/ci.yml`](../.github/workflows/ci.yml) and
[`scripts/ci.sh`](../scripts/ci.sh); procedure in [`ci.md`](ci.md) and [`scripts/ci.sh`](../scripts/ci.sh); procedure in [`ci.md`](ci.md) and
+134
View File
@@ -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.
+1 -1
View File
@@ -1,6 +1,6 @@
# Releasing marqdo-knowledge # 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 only what the pipeline and recorded evidence establish. It does **not** claim
stable quality gates, and the development specification's §16 retrieval and stable quality gates, and the development specification's §16 retrieval and
performance targets remain NOT RUN. performance targets remain NOT RUN.
+1 -1
View File
@@ -2,7 +2,7 @@
"schema": "marqdo.cli-tool", "schema": "marqdo.cli-tool",
"schema_version": 1, "schema_version": 1,
"name": "marqdo-knowledge", "name": "marqdo-knowledge",
"version": "0.1.0-beta.2", "version": "0.1.0-beta.3",
"command": "knowledge", "command": "knowledge",
"entrypoint": "bin/marqdo-knowledge", "entrypoint": "bin/marqdo-knowledge",
"requires": { "requires": {
+1 -1
View File
@@ -13,7 +13,7 @@ there is never a second active contract.
"schema": "marqdo.cli-tool", "schema": "marqdo.cli-tool",
"schema_version": 1, "schema_version": 1,
"name": "marqdo-knowledge", "name": "marqdo-knowledge",
"version": "0.1.0-beta.2", "version": "0.1.0-beta.3",
"command": "knowledge", "command": "knowledge",
"entrypoint": "bin/marqdo-knowledge", "entrypoint": "bin/marqdo-knowledge",
"requires": {"api_revision": 1, "analysis": 3} "requires": {"api_revision": 1, "analysis": 3}
+4 -3
View File
@@ -286,9 +286,10 @@ def main() -> int:
fail(f"--source-sha {args.source_sha} does not match HEAD {head}") fail(f"--source-sha {args.source_sha} does not match HEAD {head}")
check_version_consistency(args.version) check_version_consistency(args.version)
version_output = run( binary = ROOT / "target/release/marqdo-knowledge"
[str(ROOT / "target/release/marqdo-knowledge"), "--version"], capture=True 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}": if version_output != f"marqdo-knowledge {args.version}":
fail(f"release binary reports `{version_output}`, expected version {args.version}") fail(f"release binary reports `{version_output}`, expected version {args.version}")