release: v0.1.0-beta.1 prep with CI lanes, artifact and release procedure
- version 0.1.0-beta.1 in Cargo.toml/tool.json - Woodpecker CI: Rust gates + tool packaging on push/tag; manual clean-container real-CLI contract lane - docs/RELEASE.md: beta scope, credentials policy, CI coverage, remaining work, artifact identity and SHA-256 of the tool bundle - scripts/release-beta.sh: committed release driver (tag/push/CI activation/ Gitea prerelease) using local-only environment credentials - CHANGELOG.md; README beta banner; STATUS records the post-bump acceptance run - dist/ ignored; no secrets staged (verified)
This commit is contained in:
1 parent
add8ccada1
commit
1a5e21eab2
11 files changed
+446
-6
No files matched your search
+168
@@ -0,0 +1,168 @@
|
||||
# Release notes and procedure (beta)
|
||||
|
||||
Current release: **`v0.1.0-beta.1`** (beta, not a stable release).
|
||||
Normative design: [`DEVELOPMENT.md`](DEVELOPMENT.md). Executed evidence:
|
||||
[`STATUS.md`](STATUS.md). This file records the release identity, how the beta
|
||||
was produced, what CI covers, and what remains before a stable release.
|
||||
|
||||
## 1. What this beta is
|
||||
|
||||
The first real proof pipeline for Marqdo knowledge documents:
|
||||
|
||||
- `check`: select proof units from real `marqdo.analysis` revision 3, resolve
|
||||
declared local theorem/program-model links exactly, prove the bounded integer
|
||||
propositions on the pinned Lean 4.36 + Mathlib backend, verify through an
|
||||
independent kernel replay path, and publish content-addressed proof bundles.
|
||||
- `replay`: re-verify a saved bundle against the current sources and the fixed
|
||||
environment without proof search.
|
||||
- `marqdo tool install` compatible bundle (`tool.json`, `api_revision: 1`,
|
||||
`analysis: 3`).
|
||||
|
||||
It is a beta because the full release gates in `DEVELOPMENT.md` §13–§14 are
|
||||
**not** all met. Missing or partial items are listed in §6 below; the honest
|
||||
evidence, including failed environment experiments, is in [`STATUS.md`](STATUS.md).
|
||||
|
||||
## 2. Release identity
|
||||
|
||||
| Item | Value |
|
||||
| --- | --- |
|
||||
| Version | `0.1.0-beta.1` |
|
||||
| Git tag | `v0.1.0-beta.1` |
|
||||
| Artifact | tool bundle directory `marqdo-prove-tool/` (`bin/marqdo-prove`, `tool.json`, pinned `lean/` project) |
|
||||
| Archive | `marqdo-prove-v0.1.0-beta.1-x86_64-unknown-linux-gnu-tool.tar.gz` + `SHA256SUMS` |
|
||||
| Fixed backend | Lean `leanprover/lean4:v4.36.0` + Mathlib `fc4f59e577feb1a4956671bc04ac18aaaf8cd842` (pinned in `lean/`) |
|
||||
| Upstream CLI | Marqdo `3.0.0-rc.4`, Analysis revision 3 |
|
||||
| Platform | Linux x86_64 |
|
||||
|
||||
The bundle intentionally does **not** embed the Lean toolchain or Mathlib olean
|
||||
cache (several GiB): the installed tool discovers the pinned backend through
|
||||
`MARQDO_PROVE_LEAN_ROOT` / `MARQDO_PROVE_LEAN_BIN_DIR` and fails closed with
|
||||
`backend.unavailable` when it is absent. See `README.md` for one-time setup.
|
||||
|
||||
## 3. Local-only credentials
|
||||
|
||||
Release/CI credentials live **only** in `.secrets/release.env` in the local
|
||||
worktree. That directory is ignored by `.gitignore` (`/.secrets/`) and must never
|
||||
be committed or pushed. The variables are consumed by
|
||||
`scripts/release-beta.sh` and by the Woodpecker API calls:
|
||||
|
||||
| Variable | Purpose |
|
||||
| --- | --- |
|
||||
| `MARQDO_GIT_USERNAME`, `MARQDO_GIT_TOKEN` | Gitea push/release API authentication |
|
||||
| `MARQDO_WOODPECKER_URL`, `MARQDO_WOODPECKER_TOKEN` | Woodpecker repo activation and release pipeline control |
|
||||
| `MARQDO_CI_SECRET` | reserved CI-side release secret, stored as a Woodpecker repository secret (never in git) |
|
||||
|
||||
The Gitea token is passed to `git` through a transient credential helper that
|
||||
reads the environment; it never appears in `git remote` URLs, argv, logs or
|
||||
committed files. `scripts/release-beta.sh` never echoes secret values.
|
||||
|
||||
## 4. How the beta is produced
|
||||
|
||||
```sh
|
||||
# 1. local gates (same commands as CI)
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy --all-targets -- -D warnings
|
||||
cargo test --locked
|
||||
|
||||
# 2. pin and record the real-CLI + Lean evidence (dedicated environment)
|
||||
MARQDO_BIN=/path/to/marqdo cargo test --test e2e -- --ignored --test-threads=1
|
||||
|
||||
# 3. build the tool bundle and archive
|
||||
./scripts/package-tool.sh dist/marqdo-prove-tool
|
||||
cargo build --release --locked
|
||||
tar -czf marqdo-prove-$(git describe --tags --always)-x86_64-unknown-linux-gnu-tool.tar.gz \
|
||||
-C dist marqdo-prove-tool
|
||||
sha256sum ... > SHA256SUMS
|
||||
|
||||
# 4. tag + push + activate CI (uses .secrets/release.env, never printed)
|
||||
./scripts/release-beta.sh
|
||||
|
||||
# 5. record CI evidence in this file and STATUS.md, commit and push again
|
||||
```
|
||||
|
||||
`scripts/release-beta.sh` performs the remote half of step 4: it verifies the
|
||||
local gates, tags `v<version>`, pushes `master` and the tag with the
|
||||
environment-based credential helper, idempotently activates the repository in
|
||||
Woodpecker (`POST /api/repos?forge_remote_id=<gitea id>`), and creates the Gitea
|
||||
prerelease for the tag. Build/packaging steps stay explicit so the artifact
|
||||
digest is reviewable.
|
||||
|
||||
## 5. CI/CD coverage
|
||||
|
||||
Two Woodpecker lanes are committed (`.woodpecker/`):
|
||||
|
||||
| Lane | Trigger | What it runs |
|
||||
| --- | --- | --- |
|
||||
| `main.yml` → `test` | push, PR, tag | `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, `cargo test --locked`, release build, `--version` smoke check |
|
||||
| `main.yml` → `package` | tag, push, PR | release build, `scripts/package-tool.sh`, tool-bundle archive + `SHA256SUMS` |
|
||||
| `contract.yml` → `contract` | manual | clones `marqdo-cli`, builds the real CLI, runs `tests/analysis_document` and `tests/document_contract` against it (`MARQDO_BIN`) |
|
||||
|
||||
Why the Lean acceptance suite is not on the shared docker runner: the pinned
|
||||
backend needs the 7.5 GiB Mathlib olean closure and minutes per target; the
|
||||
shared runner is not provisioned for it. The suite is committed, green on the
|
||||
recorded environment (see `STATUS.md`) and is the first item on the
|
||||
dedicated-runner backlog. CI is used to close the gaps it *can* close (Rust
|
||||
gates, packaging, clean-container real-CLI contract) instead of pretending the
|
||||
rest is covered.
|
||||
|
||||
**Recorded pipeline results for this beta are appended in §8.**
|
||||
|
||||
## 6. Remaining work before a stable release
|
||||
|
||||
Ordered by release risk; this is the honest gap list, not a roadmap promise.
|
||||
|
||||
1. **Dedicated CI runner for the Lean acceptance suite** (`tests/e2e.rs`, 11
|
||||
tests) and the pinned Mathlib cache artifact; include the `contract` lane as
|
||||
a required gate.
|
||||
2. **Resource isolation**: OS-level sandbox/cgroup for search and replay
|
||||
(network off, memory cap, process-group cleanup). Today the limits are
|
||||
wall-clock + CPU rlimit; the address-space cap was measured unusable with
|
||||
this Mathlib closure.
|
||||
3. **Evaluation corpus** from `DEVELOPMENT.md` §13.1: 40 reviewable positive
|
||||
propositions (≥10 linked, ≥5 cross-file, ≥8 program models), 20 false, 20
|
||||
unsupported/invalid, differential program-model fixtures against the real
|
||||
CLI runtime.
|
||||
4. **Performance evidence** P50/P95 for cold backend, first proof, linked reuse
|
||||
and replay, with cached Mathlib on a dedicated runner.
|
||||
5. **Stable packaging**: clean-machine install transcript, archive signatures,
|
||||
source-SHA file, reproducible artifact digest, and a documented
|
||||
upgrade/cache-invalidation policy.
|
||||
6. **Known semantic boundaries stay explicit**: no real/rational/matrix math, no
|
||||
general prover, no runtime refinement, no premise non-emptiness proof. These
|
||||
are scope decisions of the first release, not beta regressions.
|
||||
|
||||
## 7. Rollback and cache policy
|
||||
|
||||
`v0.1.0-beta.1` changes the tool version, which is part of the proof-bundle
|
||||
content identity. Existing local caches from `0.1.0` builds are not migrated:
|
||||
delete `<project>/.marqdo/prove/` and re-run `check`. Bundles are never mutated
|
||||
in place; a failed export leaves no bundle-looking partial directory.
|
||||
|
||||
## 8. Recorded evidence for this beta
|
||||
|
||||
Filled in after the release push and CI run; see also
|
||||
[`STATUS.md`](STATUS.md) for the full executed-evidence table.
|
||||
|
||||
| Check | Result |
|
||||
| --- | --- |
|
||||
| Local Rust gates (`fmt` / `clippy -D warnings` / `cargo test`) | passed before tag (`cargo test`: 69 unit + 3 + 11 + 12 tests, release build `marqdo-prove 0.1.0-beta.1`) |
|
||||
| Local Lean acceptance suite (`e2e --ignored`) after version bump | **11 passed, 0 failed, 298.70 s** (real CLI revision 3 + pinned Lean/Mathlib + con-leche replay) |
|
||||
| Tool bundle | `marqdo-prove-tool/` (2.7 MiB uncompressed: binary, manifest, pinned `lean/` sources; toolchain/Mathlib installed separately) |
|
||||
| Tool bundle archive | `marqdo-prove-v0.1.0-beta.1-x86_64-unknown-linux-gnu-tool.tar.gz` (929,877 bytes) |
|
||||
| Artifact archive SHA-256 | `faa46e93a26538608eb80e9157ee19b4610b456ba5d784eab43070352f88ea40` |
|
||||
| Woodpecker pipeline (push/tag, SHA) | *pending* |
|
||||
| Gitea prerelease | *pending* |
|
||||
|
||||
The same archive and `SHA256SUMS` are rebuilt and printed by the CI `package`
|
||||
lane, so the committed digest can be compared with the CI log.
|
||||
|
||||
## 9. Security notes
|
||||
|
||||
- Prove never executes `.mq.md` code, never fetches network knowledge, and only
|
||||
invokes the fixed Lean toolchain and the fixed verifier executables.
|
||||
- Proof payloads and analysed source documents are untrusted data: replay
|
||||
kernel-checks the closure, regenerates the expected proposition from the
|
||||
current sources, rejects metavariables and untrusted axioms.
|
||||
- Credentials for release live outside git and outside the tool bundle. The
|
||||
committed Woodpecker configuration contains no secrets; values are injected
|
||||
as repository secrets by the maintainer.
|
||||
Reference in new issue
Block a user