From d8fa201b2859e922afb797c1b87cd7638382b12b Mon Sep 17 00:00:00 2001 From: marqdo-knowledge Date: Thu, 26 Nov 2026 09:59:32 +0800 Subject: [PATCH] docs(release): record 0.1.0-beta.3 publication evidence - 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 --- docs/STATUS.md | 12 ++- docs/ci.md | 11 +++ docs/evidence/2026-11-26-beta.3-release.md | 107 +++++++++++++++++++++ docs/releases/0.1.0-beta.3.md | 25 +++-- 4 files changed, 147 insertions(+), 8 deletions(-) create mode 100644 docs/evidence/2026-11-26-beta.3-release.md diff --git a/docs/STATUS.md b/docs/STATUS.md index 519bb58..e8de5c6 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -7,7 +7,14 @@ must not be claimed as passing. ## Release state - 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). +- Release: + (prerelease; tag commit `3edad237cfa92fc59822cfa13dd5480c3fac6532`; published + archive SHA-256 + `feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55`). +- Release notes: [`releases/0.1.0-beta.3.md`](releases/0.1.0-beta.3.md); + release evidence: [`evidence/2026-11-26-beta.3-release.md`](evidence/2026-11-26-beta.3-release.md). +- `v0.1.0-beta.2` was withdrawn (release lane failed before packaging); its tag + was deleted. - 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 @@ -58,7 +65,8 @@ must not be claimed as passing. | Windows/macOS native testing | Release candidate platform is Linux x86_64 only. | | Upstream batch `--documents` Analysis interface (U01) | Current upstream exposes per-entry `check --emit`; this tool invokes it per `.mq.md` entry and merges contexts, as the specification permits for the development stage. | | Release archive native install on other platforms | Archive was built and cold-installed on Linux x86_64 only. | -| CI provider run URL for this beta | The pipeline configuration is committed; no external Woodpecker/GitHub run URL is recorded in this workspace. Local lanes were executed on the release SHA. | +| Automatic CI publication of the Gitea release | The Woodpecker instance did not inject the repository token into tag pipelines; the tag lane records build/smoke evidence and a publish-skipped notice, and the prerelease was published from the same tagged SHA by a reviewed local invocation. | +| GitHub Actions run for this beta | The GitHub workflow is committed but this workspace has no GitHub remote/run; the Woodpecker lane is the executed CI evidence. | | Version-freeze reproducibility of `RELEASE_INFO.json` | It contains build metadata (`built_at_utc`, rustc/cargo versions); the archive SHA is recorded by the pipeline, not reproducible byte-for-byte from the same commit. | | Incremental write-granularity benchmark | Incremental compiles reuse facts (no re-analysis for plain-only edits) but rewrite the projection inside one transaction; the specification's write-count benchmark has not been run. | diff --git a/docs/ci.md b/docs/ci.md index fb1e1f6..90180da 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -43,6 +43,17 @@ recording a new Analysis fixture artifact. | 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 diff --git a/docs/evidence/2026-11-26-beta.3-release.md b/docs/evidence/2026-11-26-beta.3-release.md new file mode 100644 index 0000000..89f06ec --- /dev/null +++ b/docs/evidence/2026-11-26-beta.3-release.md @@ -0,0 +1,107 @@ +# Evidence: 0.1.0-beta.3 beta release + +Date: 2026-11-26 (Asia/Shanghai) +Release channel: **beta** (not a stable-version claim) +Platform: Linux x86_64 +Tool version: `0.1.0-beta.3` +Source/tag commit: `3edad237cfa92fc59822cfa13dd5480c3fac6532` +Tag: `v0.1.0-beta.3` (annotated) + +Core CLI baseline: `cflmy/marqdo-cli` `3.0.0-rc.4` +(`4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`), Analysis revision 3. + +Contracts: `marqdo.cli-tool` revision 1, tool API revision 1, consumed Analysis +revision 3, SQLite schema revision 1, result/error envelope schema_version 1, +OKF 0.3. + +## Published release + +- Release URL: + +- Gitea release id: 76, `prerelease: true`, `draft: false` +- Assets uploaded and verified through the Gitea API: + - `marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz` (3,838,786 bytes) + - `marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz.sha256` + - `RELEASE_INFO.json` + - `FILES.sha256` + - `smoke-evidence.json` +- Published archive SHA-256: + `feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55` +- Published archive `source_sha`: `3edad237cfa92fc59822cfa13dd5480c3fac6532` + +## CI/CD evidence + +Tag-only Woodpecker pipeline **#11**: **success** on commit `3edad237`. + +- Pipeline: +- Lanes: `test` (metadata consistency, fmt, clippy `-D warnings`, locked + workspace tests), `minimum-rust` (1.89 check), `core-analysis` (builds the + pinned core CLI and runs the real Analysis integration tests), `release` + (locked release build, deterministic package, cold-install smoke). +- CI-produced archive SHA-256 (same source commit, CI build environment): + `358acbb2279740b35dd800764ac649b7a122e4940c7209ad99c306c12e55642c` +- CI smoke result: `smoke: OK`; packaged example compile 5 documents, query + 4 hits, check database current with 0 errors. + +Local gates on the same source commit: + +- `python3 tools/ci/test_release_metadata.py`: PASS. +- `cargo fmt --all -- --check`: clean. +- `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. +- `cargo test --workspace --locked` with the real rc.4 core binary: + 139 passed / 0 failed. +- `cargo build --release --locked`: clean. +- Local deterministic package and `tools/release/smoke.py` against the real + core CLI: `smoke: OK` (checksum/manifest/version, install, help, compile, + query, check, remove). + +The CI archive and the published local archive are different byte streams +because they were built in different build environments, but both record the +same `SOURCE_SHA` and the same tool/contract versions. The published asset and +its checksum are the authoritative artifact for this release; the CI archive SHA +is recorded for traceability only. + +## Publication path and known infrastructure limitation + +This Woodpecker instance (3.20.1) did not inject the repository `GITEA_TOKEN` +secret into tag pipelines, neither as an implicit repo secret nor through an +explicit `environment.from_secret` mapping. The tag lane therefore keeps the +deterministic package and cold-install smoke as its CI evidence and records a +`publish: skipped` notice instead of failing. The Gitea prerelease was published +from the same tagged source commit by a reviewed local invocation of +`tools/release/publish-gitea.py`; the token was read from the local-only +`.secrets/release.env` (git-ignored) and never printed or committed. + +The pipeline is configured to publish automatically when the secret injection +becomes available; no source or release change is required for that. + +## Withdrawn tag + +`v0.1.0-beta.2` was withdrawn and its remote tag deleted. Its tag-only release +lane failed before packaging because the lane did not build the tool release +binary; no archive or Gitea release was produced for it. Do not use that tag. + +## Reproduction + +```sh +# From the tagged commit, with a compatible core CLI: +python3 tools/ci/test_release_metadata.py +cargo fmt --all -- --check +cargo clippy --workspace --all-targets --locked -- -D warnings +MARQDO_TEST_BIN=/path/to/marqdo cargo test --workspace --locked +cargo build --release --locked +python3 tools/release/package.py \ + --source-sha "$(git rev-parse HEAD)" \ + --version "$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)" +MARQDO_BIN=/path/to/marqdo python3 tools/release/smoke.py \ + --archive "dist/marqdo-knowledge-0.1.0-beta.3-x86_64-unknown-linux-gnu.tar.gz" +``` + +## Not evidence for + +- Real-model semantic retrieval quality (protocol mock only). +- Specification §16 retrieval/performance gates, latency/RSS/build-time or + incremental write-volume benchmarks. +- Windows/macOS platform support. +- Upstream batch Analysis interface (per-entry `check --emit` is used). +- Byte-identical archive reproducibility across different build environments. diff --git a/docs/releases/0.1.0-beta.3.md b/docs/releases/0.1.0-beta.3.md index 1333a6b..8a697f2 100644 --- a/docs/releases/0.1.0-beta.3.md +++ b/docs/releases/0.1.0-beta.3.md @@ -30,7 +30,7 @@ Contract versions (unchanged from beta.1): 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: +Release evidence produced for this SHA: - metadata consistency gate PASS; - fmt/clippy/tests (including the real rc.4 Analysis integration) PASS; @@ -39,8 +39,8 @@ Release evidence produced by the pipeline on this SHA: - 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). +- Gitea prerelease for the tag with the archive and evidence assets attached; + see the Evidence section below for URLs and checksums. ## What is complete in this beta @@ -129,6 +129,19 @@ Diagnostics never include source text, credentials or absolute paths. 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. +- Gitea prerelease: + + (release id 76, `prerelease: true`) with the archive, sidecar checksum, + `RELEASE_INFO.json`, `FILES.sha256` and `smoke-evidence.json` attached. +- Source/tag commit `3edad237cfa92fc59822cfa13dd5480c3fac6532`; published + archive SHA-256 + `feaa99701c01123c6eab3e804226dbb4096c3272b1e4f917c421233948198c55`. +- CI tag pipeline #11 success: + ; CI archive SHA-256 + `358acbb2279740b35dd800764ac649b7a122e4940c7209ad99c306c12e55642c` + (different build environment, same `SOURCE_SHA`). +- Full record: [`docs/evidence/2026-11-26-beta.3-release.md`](../evidence/2026-11-26-beta.3-release.md). +- Note: this Woodpecker instance does not inject repository secrets into tag + pipelines, so the tag lane records build/smoke evidence and a + `publish: skipped` notice; the prerelease was published from the same tagged + SHA by a reviewed local invocation of `tools/release/publish-gitea.py`.