Compare commits
11
Commits
deadf6edee
...
63776735e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63776735e9 | ||
|
|
73b51ffb69 | ||
|
|
8c6e2c6509 | ||
|
|
c96589a3c5 | ||
|
|
0973241a1f | ||
|
|
6cfdd811b4 | ||
|
|
ed86796d6b | ||
|
|
13affa76dd | ||
|
|
c44b0f9438 | ||
|
|
29fc0108f5 | ||
|
|
9b21486c7d |
No files matched your search
+17
-5
@@ -16,7 +16,9 @@ steps:
|
||||
- apt-get install -y --no-install-recommends ca-certificates git python3 python3-jsonschema
|
||||
- cargo build --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
- python3 tools/ci/check_dependency_boundaries.py
|
||||
- python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||
# The contract and test steps share a mutable submodule checkout.
|
||||
- mkdir -p target
|
||||
- flock target/ecosystem-bundle.lock python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||
- MARQDO_TEST_STDLIB_BUNDLE="$PWD/target/ecosystem-stdlib" bash tools/ci/contract_lane.sh
|
||||
|
||||
test:
|
||||
@@ -24,10 +26,20 @@ steps:
|
||||
commands:
|
||||
- rustup component add clippy rustfmt
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends curl ca-certificates git python3 python3-jsonschema build-essential gcc-mingw-w64-x86-64
|
||||
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
- apt-get install -y --no-install-recommends nodejs
|
||||
- python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||
- apt-get install -y --no-install-recommends curl ca-certificates git python3 python3-jsonschema build-essential gcc-mingw-w64-x86-64 xz-utils
|
||||
# Node 22 is required by the ES-module foreign-kernel tests. Install the
|
||||
# official tarball from the reachable npmmirror binary mirror; the
|
||||
# NodeSource apt repository has repeatedly stalled in this runner.
|
||||
- |
|
||||
set -eu
|
||||
curl -fsSL --retry 5 --retry-delay 5 \
|
||||
"https://cdn.npmmirror.com/binaries/node/v22.23.5/node-v22.23.5-linux-x64.tar.xz" \
|
||||
-o /tmp/node.tar.xz
|
||||
tar -xJf /tmp/node.tar.xz -C /usr/local --strip-components=1
|
||||
node --version
|
||||
npm --version
|
||||
- mkdir -p target
|
||||
- flock target/ecosystem-bundle.lock python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||
- python3 tools/stdlib/bundle.py --stdlib-dir target/ecosystem-stdlib
|
||||
- cargo fmt --all -- --check
|
||||
- cargo clippy --workspace --all-targets -- -D warnings
|
||||
|
||||
@@ -15,13 +15,20 @@ steps:
|
||||
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
- |
|
||||
set -eu
|
||||
baseline_sha=2c7c4f31e7a388d3fcfa717a77067e696ed13854
|
||||
git fetch --no-tags origin refs/tags/v3.0.0-beta.1
|
||||
# Previous published RC for the rc.6 comparison.
|
||||
baseline_sha=c44b0f943875d563bb7c170f8ccd3fd56a82360f
|
||||
git fetch --no-tags origin refs/tags/v3.0.0-rc.5
|
||||
test "$(git rev-parse 'FETCH_HEAD^{commit}')" = "$baseline_sha"
|
||||
perf_dir="$(mktemp -d)"
|
||||
git worktree add --detach "$perf_dir/beta" "$baseline_sha"
|
||||
trap 'git worktree remove --force "$perf_dir/beta"; rm -rf "$perf_dir"' EXIT
|
||||
(cd "$perf_dir/beta" && cargo build --release --locked -p marqdo-cli)
|
||||
# The external-Bundle migration moved the print workload fixture out of
|
||||
# the removed in-repo stdlib tree; both binaries must measure the same
|
||||
# workload sources/expected digests, so copy the perf definition into
|
||||
# the baseline worktree.
|
||||
rm -rf "$perf_dir/beta/tools/perf"
|
||||
cp -a tools/perf "$perf_dir/beta/tools/perf"
|
||||
|
||||
version="$(target/release/marqdo --version | cut -d ' ' -f 2)"
|
||||
python3 tools/release/package.py --version "$version" --source-sha "$CI_COMMIT_SHA" \
|
||||
@@ -38,7 +45,8 @@ steps:
|
||||
echo "G4_CPU $(awk -F: '/model name/ {print $2; exit}' /proc/cpuinfo | xargs)"
|
||||
echo "G4_GOVERNOR $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null || echo unavailable)"
|
||||
(cd "$perf_dir/beta" && python3 tools/perf/runner.py --no-build \
|
||||
--warmups 5 --samples 20 --platform-id woodpecker-agent-1 \
|
||||
--stdlib-dir "$candidate/stdlib" --warmups 5 --samples 20 \
|
||||
--platform-id woodpecker-agent-1 \
|
||||
--cpu-list "$cpu_list" --out "$perf_dir/beta.json" > /dev/null)
|
||||
python3 tools/perf/runner.py --no-build --binary "$candidate/marqdo" \
|
||||
--stdlib-dir "$candidate/stdlib" --warmups 5 --samples 20 \
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# Marqdo CLI — Agent / Contributor Operating Rules
|
||||
|
||||
<!-- marqdo:repo-conventions v1 -->
|
||||
|
||||
生态级仓库开发规范:https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-CONVENTIONS.md
|
||||
|
||||
|
||||
**Start here:** read `docs/architecture/RFC-LANG-0002-unified-semantics.md` — it is the single current language authority — and its normative summary `spec/mapping.md` + `spec/expression.ebnf`. Then read `docs/architecture/CURRENT.md` (the single current architecture overview, including the Engine / Host Contract / Native Host map), [ADR-0071](docs/adr/0071-engine-host-contract-boundary.md) (boundary rules and keep-in-workspace decision), `docs/STATUS.md` (what is actually implemented), the relevant `spec/` files, `docs/adr/` for decisions at their date, the developer entry point `docs/developers/README.md`, `docs/contributor-guide.md`, and `tests/README.md` plus the conformance fixtures. Do not assume any current implementation, legacy Marqdo syntax, historical planning document or old architecture gate is authoritative.
|
||||
|
||||
For next-phase work, the authoritative release policy for the current
|
||||
|
||||
+28
-2
@@ -5,8 +5,9 @@ All notable changes to the Marqdo CLI workspace. Published prereleases:
|
||||
`2c7c4f31e7a388d3fcfa717a77067e696ed13854`),
|
||||
`3.0.0-rc.1` (source `f7a5a7b0163bf5229ed09adfffd892f9899e6667`) and
|
||||
`3.0.0-rc.2` (source `9149ee40a48fcda692c5c112f66c465487d13dfb`) and
|
||||
`3.0.0-rc.3` (2026-11-24, source `1e2a045cc78bf40972181abb44e7117c56cf4401`); the section below is the current
|
||||
release record. Current
|
||||
`3.0.0-rc.3` (2026-11-24, source `1e2a045cc78bf40972181abb44e7117c56cf4401`)
|
||||
and `3.0.0-rc.4` (2026-11-25, source `452e9a32bd9e40dba427d4180691c58bab74449e`);
|
||||
the section below is the current release record. Current
|
||||
protocol contracts are Analysis v3, Observation v1, CLI Tool revision 1,
|
||||
Plugin ABI v1, Foreign wire v1, Provider manifest v2 and lock v4; independent
|
||||
package versions (including the bundled stdlib `0.1.0`) are versioned
|
||||
@@ -14,6 +15,31 @@ separately and do not follow the product version. Dates use ISO 8601.
|
||||
Older sections are release records: a retired option or spec they name is
|
||||
available at its tagged commit, not in the current tree.
|
||||
|
||||
## 3.0.0-rc.6 (candidate)
|
||||
|
||||
- The release index binds the packaged CLI and Worker assets to the tested
|
||||
source SHA and the actual stdlib Bundle inputs.
|
||||
- A Linux RC can report strict isolation as unsupported with maintainer
|
||||
approval and same-archive fail-closed evidence. Stable and LTS require a
|
||||
passing disposable-VM gate.
|
||||
|
||||
## 3.0.0-rc.5 (2026-11-27)
|
||||
|
||||
Release record for tag `v3.0.0-rc.5` (Linux x86_64, glibc 2.39 prerelease).
|
||||
The Gitea release carries the archive; known limitations (strict L1 UNVERIFIED
|
||||
in the release environment, shared-node G4 WARN only) are recorded in
|
||||
`docs/releases/3.0.0-rc.5.md`.
|
||||
|
||||
- The CLI and provider worker consume one explicit external stdlib Bundle
|
||||
(`--stdlib-dir`/Bundle pin) and the repository no longer carries a `stdlib/`
|
||||
source tree (issue #11 Phase B). Contract lanes and product tests materialize
|
||||
the ecosystem Bundle through `tools/ci/fetch_ecosystem_bundle.py`.
|
||||
- Tooling, docs and test support reference the external Bundle; the release
|
||||
archive still ships exactly one verified stdlib Bundle.
|
||||
- Version metadata is `3.0.0-rc.5` on this candidate branch only. Remaining
|
||||
release gates: frozen SHA, same-SHA CI, strict VM, G4 performance and
|
||||
maintainer approval.
|
||||
|
||||
## 3.0.0-rc.4 (2026-11-25)
|
||||
|
||||
- The Rust workspace, CLI version output and protocol producers report
|
||||
|
||||
+22
-21
@@ -1,22 +1,21 @@
|
||||
# Compatibility and support matrix
|
||||
|
||||
Snapshot: product version **`3.0.0-rc.4`** (prerelease, released 2026-11-25).
|
||||
Tag `v3.0.0-rc.4` at source SHA
|
||||
`452e9a32bd9e40dba427d4180691c58bab74449e`; release
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4. The previous
|
||||
release is `3.0.0-rc.3` at source SHA
|
||||
`1e2a045cc78bf40972181abb44e7117c56cf4401`; its evidence remains under
|
||||
[`docs/evidence/`](docs/evidence/2026-11-24-rc.3-release.md). This file records
|
||||
Snapshot: product version **`3.0.0-rc.6`** (prerelease, release candidate,
|
||||
2026-11-28). Tag `v3.0.0-rc.6` on the tested release commit; release
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.6. The previous
|
||||
release is `3.0.0-rc.5` at source SHA
|
||||
`c44b0f943875d563bb7c170f8ccd3fd56a82360f`; its evidence remains under
|
||||
[`docs/releases/3.0.0-rc.5.md`](docs/releases/3.0.0-rc.5.md). This file records
|
||||
what was actually verified and separates it from what is only implemented. The
|
||||
supported release platform is **Linux x86_64 (glibc 2.39)**; everything else is
|
||||
experimental and not claimed for this prerelease. Executed status and SHA-bound
|
||||
evidence are in [`docs/STATUS.md`](docs/STATUS.md) and
|
||||
[`docs/evidence/`](docs/evidence/).
|
||||
|
||||
The `3.0.0-rc.4` release includes the post-beta protocol convergence and the
|
||||
closed public Analysis boundary below. See the
|
||||
The `3.0.0-rc.6` release candidate includes the post-beta protocol convergence
|
||||
and the closed public Analysis boundary below. See the
|
||||
[RC acceptance procedure](docs/releasing.md). The platform evidence table
|
||||
records the beta, rc.1/rc.2/rc.3 and rc.4 candidate verification.
|
||||
records the beta, rc.1/rc.2/rc.3, rc.4 and rc.5 candidate verification.
|
||||
|
||||
## Language source syntax (breaking change)
|
||||
|
||||
@@ -56,7 +55,7 @@ Consequences for compatibility:
|
||||
|
||||
## Post-`3.0.0-beta.1` boundary changes (RFC-EXT-0003)
|
||||
|
||||
These landed after the beta tag and **are included in the `3.0.0-rc.4` candidate**; they are
|
||||
These landed after the beta tag and **are included in the `3.0.0-rc.6` candidate**; they are
|
||||
intentional beta-line incompatibilities. Frozen decisions: ADR-0060..0063; executed
|
||||
evidence: [`docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md).
|
||||
|
||||
@@ -91,7 +90,7 @@ consume this candidate's `check --emit` output.
|
||||
| Surface | Version | Compatibility rule |
|
||||
|---|---|---|
|
||||
| Markdown profile | `marqdo.md.v1` | Frozen parser/options. The RFC-LANG-0002 mapping rewrite keeps this profile; the source-language break is tracked above, not by a new profile id. |
|
||||
| Language / CLI | `3.0.0-rc.4` (candidate) | SemVer prerelease: breaking changes inside the 3.0 beta line are allowed and announced in the changelog. The `.mq.md` source language changed incompatibly (RFC-LANG-0002); there is no old-syntax execution path or downgrade. CLI flags may change with a changelog note; `strict` refusal is contractual. |
|
||||
| Language / CLI | `3.0.0-rc.6` (candidate) | SemVer prerelease: breaking changes inside the 3.0 beta line are allowed and announced in the changelog. The `.mq.md` source language changed incompatibly (RFC-LANG-0002); there is no old-syntax execution path or downgrade. CLI flags may change with a changelog note; `strict` refusal is contractual. |
|
||||
| `marqdo.lock` | v4 | v3 is rejected with an explicit `marqdo lock` migration error; v1/v2 are rejected with a relock instruction; `run`/`call`/`check` never rewrite or fetch the lock. `extensions:` records manifest/artifact identity (integrity, not publisher auth). |
|
||||
| Analysis | v3 | One writer and one current major for every project, including projects without loop transfers. Consumers reject other majors; the retired v2 selector, schema and documents are gone (ADR-0068). |
|
||||
| Observation | v1 | One `run_id`/`seq` event sequence per execution, delivered as JSONL, JSON snapshot or file snapshot from the same run. Values are opt-in and bounded; consumers reject other identifiers (spec/observation.md). |
|
||||
@@ -139,7 +138,7 @@ build of both binaries), the release-archive cold-install smoke, the external
|
||||
frozen-binary conformance repository, and the disposable-VM strict lane. The
|
||||
source of truth is the Gitea remote `git.cflmy.cn/cflmy/marqdo-cli` with
|
||||
Woodpecker at `ci.cflmy.cn`; a GitHub mirror is not the authoritative lane for
|
||||
this beta. macOS/Windows entries are implementation notes, not support claims;
|
||||
this prerelease line. macOS/Windows entries are implementation notes, not support claims;
|
||||
the Windows C ABI/provider paths remain fail-closed.
|
||||
|
||||
## Strict L1 scope (ADR-0021)
|
||||
@@ -199,14 +198,16 @@ the Windows C ABI/provider paths remain fail-closed.
|
||||
|
||||
## Release decision
|
||||
|
||||
**`3.0.0-rc.4` prerelease — released as a Linux x86_64 RC.** The RC profile in
|
||||
**`3.0.0-rc.6` prerelease — release candidate for a Linux x86_64 RC.** The RC
|
||||
profile in
|
||||
[`docs/MARQDO_3_0_PRERELEASE_PLAN.md`](docs/MARQDO_3_0_PRERELEASE_PLAN.md) §3 was
|
||||
used: Linux is the only supported platform, macOS/Windows are UNSUPPORTED for
|
||||
this scope, strict L1 has same-SHA disposable-VM evidence, and G4 performance is
|
||||
a maintainer-approved shared-node `WARN` for this named RC only. The aggregate
|
||||
decision and per-gate evidence are in
|
||||
[`docs/evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json`](docs/evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json)
|
||||
(`RC_RELEASE_CANDIDATE`) and the release assets; see
|
||||
[`docs/evidence/2026-11-24-rc.3-release.md`](docs/evidence/2026-11-24-rc.3-release.md).
|
||||
A prerelease does not imply stable `3.0.0` or LTS; the stable gate remains
|
||||
this scope. This cycle verifies the deterministic archive, the archive-only
|
||||
Ubuntu 24.04 cold install, the migrated extensions, frozen external conformance
|
||||
and a shared-host performance `WARN`. The RC records `strict: unsupported` with
|
||||
same-SHA fail-closed smoke evidence; the disposable-VM strict L1 PASS remains a
|
||||
stable/LTS gate, so no isolation PASS is claimed here. The RC gate aggregate
|
||||
(`RC_RELEASE_CANDIDATE`) is generated by `tools/ci/release_evidence.py`; the
|
||||
per-gate references are recorded in CLI issue #22 and the release assets. A
|
||||
prerelease does not imply stable `3.0.0` or LTS; the stable gate remains
|
||||
stricter and separate.
|
||||
Generated
+17
-17
@@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-cli"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"hex",
|
||||
@@ -439,7 +439,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-expression"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
@@ -450,7 +450,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-foreign"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"libc",
|
||||
@@ -466,7 +466,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-frontend"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-ir",
|
||||
@@ -481,7 +481,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-host"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"getrandom 0.4.3",
|
||||
@@ -510,7 +510,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-host-contract"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"marqdo-value",
|
||||
@@ -518,7 +518,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-ir"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-span",
|
||||
@@ -528,7 +528,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-markdown"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"comrak",
|
||||
"marqdo-span",
|
||||
@@ -539,7 +539,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-package"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"semver",
|
||||
@@ -553,7 +553,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-abi"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-value",
|
||||
"serde",
|
||||
@@ -563,7 +563,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-sdk"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-plugin-abi",
|
||||
"serde",
|
||||
@@ -572,7 +572,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-provider-worker"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"libloading",
|
||||
"marqdo-host",
|
||||
@@ -586,7 +586,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-runtime"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-frontend",
|
||||
@@ -606,7 +606,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-sandbox"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"serde",
|
||||
@@ -614,14 +614,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-span"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
@@ -632,7 +632,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-worker-ipc"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde_json",
|
||||
"thiserror",
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
edition = "2021"
|
||||
rust-version = "1.89"
|
||||
license = "Apache-2.0"
|
||||
|
||||
@@ -10,7 +10,7 @@ The official implementation is a Rust workspace; Python/Node are optional
|
||||
foreign kernels, never the compiler target.
|
||||
|
||||
This repository is the new, independent Marqdo toolchain, now at product
|
||||
version **`3.0.0-rc.4`** in this checkout. It is **not** a compatibility rewrite of
|
||||
version **`3.0.0-rc.6`** in this checkout. It is **not** a compatibility rewrite of
|
||||
`cflmy/marqdo`; the old syntax, package format and plugin ABI v2 are not
|
||||
claimed to work here. See [docs/developers/](docs/developers/README.md) for the
|
||||
third-party entry point and `docs/MARQDO_3_0_PRERELEASE_PLAN.md` for the beta
|
||||
@@ -27,19 +27,23 @@ release policy.
|
||||
> [`docs/STATUS.md`](docs/STATUS.md) and
|
||||
> [`docs/migration/README.md`](docs/migration/README.md).
|
||||
|
||||
> **Current release: `3.0.0-rc.4` prerelease** —
|
||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4),
|
||||
> source `452e9a32bd9e40dba427d4180691c58bab74449e`, Linux x86_64. The previous
|
||||
> published baseline was `3.0.0-beta.1` —
|
||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-beta.1),
|
||||
> source `2c7c4f31e7a388d3fcfa717a77067e696ed13854`. The public beta target is **Linux x86_64 (glibc)**; macOS and Windows are experimental and not claimed, and the
|
||||
> C ABI plugin/provider paths are Linux-only in this beta. The language
|
||||
> **Current release: `3.0.0-rc.6` prerelease** —
|
||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.6),
|
||||
> source: the tagged release commit, Linux x86_64. The previous published
|
||||
> release was `3.0.0-rc.5` —
|
||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5),
|
||||
> source `c44b0f943875d563bb7c170f8ccd3fd56a82360f`. The supported prerelease
|
||||
> target is **Linux x86_64 (glibc 2.39)**; macOS and Windows are experimental
|
||||
> and not claimed, and the C ABI plugin/provider paths are Linux-only in this
|
||||
> prerelease line. The language
|
||||
> (RFC-LANG-0002), lock v4, Analysis, Observation, CLI Tool, Plugin ABI v1
|
||||
> (native + worker), pinned Foreign providers and Resource Provider v2 are
|
||||
> implemented and covered by tests. **`strict` OS isolation is Linux-only and
|
||||
> probe-gated**; unsupported hosts must fail closed, and strict L2
|
||||
> (Worker/Foreign/Provider) is not implemented. The broker and worker
|
||||
> transports are not sandboxes. The beta release decision, support matrix and
|
||||
> (Worker/Foreign/Provider) is not implemented. This RC records `strict:
|
||||
> unsupported` with same-SHA fail-closed evidence; a disposable-VM PASS is
|
||||
> required for stable/LTS, not for the RC. The broker and worker
|
||||
> transports are not sandboxes. The RC release decision, support matrix and
|
||||
> remaining gaps are recorded in [`docs/STATUS.md`](docs/STATUS.md),
|
||||
> [`COMPATIBILITY.md`](COMPATIBILITY.md),
|
||||
> [`docs/developers/release-limits.md`](docs/developers/release-limits.md) and
|
||||
@@ -53,7 +57,7 @@ runs fmt, clippy, workspace tests with `--locked`, the dependency-direction and
|
||||
engine-independence gates, the plugin SDK consumption gate, the Windows
|
||||
cross-target compile gate and a release build of both binaries. The strict OS-isolation lane
|
||||
requires the disposable VM described in [docs/ci.md](docs/ci.md); a GitHub
|
||||
mirror is not used as the authoritative lane for this beta.
|
||||
mirror is not used as the authoritative lane for this prerelease line.
|
||||
|
||||
## Build
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
| 公开版本 | `Cargo.toml` 仍为 `0.1.0`,若干工具兼容样例 `<1` | 3.0.0-beta 发布前必须迁移验证 |
|
||||
| 第三方入门 | README 有扩展示例、`spec/` 有协议;Tool v1 标头仍称 Proposed,plugin spec 某段称 Native only | 需要整合并去除失效状态文本 |
|
||||
|
||||
## 3. 两套必须明确分开的发布策略
|
||||
## 3. 各发行阶段的发布策略
|
||||
|
||||
### 3.1 Beta(允许明确声明的非安全性缺口)
|
||||
|
||||
@@ -45,11 +45,17 @@
|
||||
|
||||
**可延期至后续 Beta 或稳定版:** Windows Native/Worker ABI、macOS Provider Worker、strict L2、uv/npm 自动建环境、分布式 registry、JIT、内置 Knowledge/Proof/View、成熟异步/并发模型、未经承诺的平台安装包。明确注明项目默认 `project` 模式不是 OS 沙箱,Worker 也不是完整沙箱。
|
||||
|
||||
### 3.2 Stable / LTS(不可用 Beta 例外替代)
|
||||
### 3.2 RC
|
||||
|
||||
- 同 SHA 的归档烟测实际验证 strict 不可用时安全拒绝运行,经维护者批准后,RC 可按 `strict: unsupported` 发行。发布索引、支持范围及门禁记录仍绑定同一候选。通过标准与命令见 [发布手册](releasing.md#linux-rc-preconditions)。
|
||||
- 已观测的隔离缺陷、未运行的烟测、过期证据均阻塞 RC。具备合格一次性 VM 后按同 SHA 取得 strict PASS,可声明相应支持。
|
||||
|
||||
### 3.3 Stable / LTS
|
||||
|
||||
- Stable `3.0.0`:在公开支持的 Linux 平台上所有承诺功能有安全/兼容/性能证据;公开协议与变更策略清楚;有迁移说明和至少一次真实使用者反馈周期。平台可继续限定 Linux,不要求通过虚假的“全平台 LTS”门禁。
|
||||
- LTS(建议后续 `3.2.x`):冻结 `.mq.md` 语言语义、Analysis/Trace/Tool/Plugin/Provider 各自协议主版本和 lockfile 契约;提供安全修复流程、回归 CI、外部仓库兼容矩阵、从 3.0 及 2.9 迁移材料、发布渠道与公告模板。
|
||||
- LTS 应提前承诺支持窗口(建议至少 12 个月,实际长短由维护资源决定),定义安全补丁与非破坏性修复回移规则,明确 API/ABI 哪些会不兼容;不因开发完成某一里程碑自动称 LTS。
|
||||
- 一次性 VM 上的同 SHA strict G3 通过证据是 stable/LTS 的发布门禁。
|
||||
- 默认不为旧 `cflmy/marqdo` 的历史语法或旧插件 ABI 建隐性兼容层。需要迁移的由独立迁移工具、教程和示例承担。
|
||||
|
||||
## 4. 3.0.0-beta.1 之前建议拆分的 5 个短 PR
|
||||
|
||||
+27
-23
@@ -1,18 +1,16 @@
|
||||
# Marqdo Implementation Status
|
||||
|
||||
Snapshot: **2026-11-25**, product version **`3.0.0-rc.4`** (prerelease,
|
||||
released). Tag `v3.0.0-rc.4` at source SHA
|
||||
**`452e9a32bd9e40dba427d4180691c58bab74449e`**; release:
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4. The previous release is `3.0.0-rc.3` at source SHA
|
||||
**`1e2a045cc78bf40972181abb44e7117c56cf4401`**; release:
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.3. The supported
|
||||
platform is **Linux x86_64 (glibc 2.39)**. The rc.3 same-SHA gate aggregate is
|
||||
[`evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json`](evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json)
|
||||
(decision `RC_RELEASE_CANDIDATE`); its binary hashes are in that archive's
|
||||
`RELEASE_INFO.json`, not in the rc.4 candidate. Previous prereleases:
|
||||
`3.0.0-rc.2` at `9149ee40a48fcda692c5c112f66c465487d13dfb` and
|
||||
`3.0.0-beta.1` at `2c7c4f31e7a388d3fcfa717a77067e696ed13854`. Do not copy a
|
||||
SHA from a plan.
|
||||
Snapshot: **2026-11-28**, product version **`3.0.0-rc.6`** (prerelease,
|
||||
release candidate). Tag `v3.0.0-rc.6` on the tested release commit; release:
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.6. The previous
|
||||
release is `3.0.0-rc.5` at source SHA
|
||||
**`c44b0f943875d563bb7c170f8ccd3fd56a82360f`**; release:
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5. The supported
|
||||
platform is **Linux x86_64 (glibc 2.39)**. The RC.6 gate aggregate
|
||||
(`RC_RELEASE_CANDIDATE`) is generated by `tools/ci/release_evidence.py`; the
|
||||
same-SHA CI and evidence references are recorded in CLI issue #22 and the
|
||||
release assets. Previous prereleases are recorded in their tagged release
|
||||
notes; do not copy a SHA from a plan.
|
||||
|
||||
Current architecture overview:
|
||||
[`architecture/CURRENT.md`](architecture/CURRENT.md).
|
||||
@@ -21,9 +19,10 @@ Authoritative release policy:
|
||||
evidence). Support matrix: [`../COMPATIBILITY.md`](../COMPATIBILITY.md).
|
||||
Developer entry point: [`developers/README.md`](developers/README.md).
|
||||
|
||||
The rc.4 same-SHA gate aggregate is
|
||||
The historical rc.4 same-SHA gate aggregate remains at
|
||||
[`evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`](evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json)
|
||||
(decision `RC_RELEASE_CANDIDATE`). This file records what was actually executed.
|
||||
(decision `RC_RELEASE_CANDIDATE`); it is not rc.6 evidence. This file records
|
||||
what was actually executed.
|
||||
"Implemented" does not mean "verified on every platform"; the evidence column
|
||||
says which commands were run and where. Status is generated from executed commands/logs; a gate row without a
|
||||
command, log or source path is a defect, not a state. Historical snapshots
|
||||
@@ -33,11 +32,16 @@ as current status.
|
||||
|
||||
## RC candidate
|
||||
|
||||
The workspace reports `3.0.0-rc.4` and declares Rust 1.89 as its locked
|
||||
minimum. Linux x86_64 on glibc 2.39 is the supported platform. The rc.4
|
||||
manifest is green on its SHA with the documented strict-VM PASS and a
|
||||
maintainer-approved shared-node performance `WARN`; stable/LTS still requires a
|
||||
dedicated fixed node. The release records below refer to their tagged binaries.
|
||||
The workspace reports `3.0.0-rc.6` and declares Rust 1.89 as its locked
|
||||
minimum. Linux x86_64 on glibc 2.39 is the supported platform. rc.6 binds the
|
||||
release archive, checksum, tested source SHA and actual external Bundle inputs
|
||||
in `release-evidence.json`; the same-SHA Woodpecker `main` gate, deterministic
|
||||
archive build, archive-only Ubuntu 24.04 cold install, migrated extensions,
|
||||
frozen external conformance and a shared-host performance `WARN` are recorded
|
||||
in CLI issue #22. The RC records `strict: unsupported` with same-SHA fail-closed
|
||||
smoke evidence; a disposable-VM strict L1 PASS remains a stable/LTS gate, and
|
||||
the shared-host performance exception does not carry over to stable/LTS. The
|
||||
release records below refer to their tagged binaries.
|
||||
|
||||
## Current protocol integration
|
||||
|
||||
@@ -118,7 +122,7 @@ evidence named by issue #11.
|
||||
## 0.12 Engine / Host Contract boundary — issue #13 (unreleased candidate)
|
||||
|
||||
This is an **internal architecture candidate**, not a release. The product
|
||||
version stays `3.0.0-rc.4`; no new tag or release claim is made. Baseline is
|
||||
version stays `3.0.0-rc.5`; no new tag or release claim is made. Baseline is
|
||||
`master` at `4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`; the PR records the exact
|
||||
candidate SHA and evidence is
|
||||
[`evidence/2026-11-26-issue-13-engine-host-boundary.md`](evidence/2026-11-26-issue-13-engine-host-boundary.md).
|
||||
@@ -230,7 +234,7 @@ Local evidence and raw numbers:
|
||||
[`evidence/2026-11-25-rc.4-analysis-boundary.md`](evidence/2026-11-25-rc.4-analysis-boundary.md).
|
||||
|
||||
Executed 2026-11-25 in the local Linux x86_64 development container
|
||||
(workspace `3.0.0-rc.4`, Rust 1.100.0):
|
||||
(workspace `3.0.0-rc.5`, Rust 1.100.0):
|
||||
|
||||
```text
|
||||
cargo fmt --all -- --check PASS
|
||||
@@ -262,7 +266,7 @@ is a maintainer-approved shared-node `WARN` for this RC only; stable/LTS still
|
||||
requires a dedicated fixed node. The gate aggregate is
|
||||
[`evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`](evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json)
|
||||
(`RC_RELEASE_CANDIDATE`). Release
|
||||
[notes and assets](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4).
|
||||
[notes and assets](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5).
|
||||
Downstream migration issues: `marqdo-view#6`, `marqdo-lint#4`.
|
||||
|
||||
## 0.9 Pre-stable protocol convergence — issue #8 (RC.3 candidate)
|
||||
|
||||
@@ -4,7 +4,7 @@ Status: **current architecture overview**. This file summarises the tree as it
|
||||
is today. It is not a release promise, does not reopen a frozen ADR, and does not
|
||||
replace `spec/` or a recorded test log.
|
||||
|
||||
- Baseline: `452e9a32bd9e40dba427d4180691c58bab74449e` (2026-11-25, tagged `v3.0.0-rc.4`; same-SHA evidence in `../STATUS.md` and `../evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`).
|
||||
- Baseline: `c44b0f943875d563bb7c170f8ccd3fd56a82360f` (rc.5, last published); the rc.6 release-candidate changes and same-SHA evidence are recorded in `../STATUS.md` and CLI issue #22.
|
||||
- Normative behavior: `spec/`; frozen decisions: `docs/adr/`; executed evidence: `docs/STATUS.md` and `docs/evidence/`.
|
||||
- This is the **single current overview**. Do not add a second running "current state" file;
|
||||
update this file, `docs/STATUS.md` and an evidence file together.
|
||||
|
||||
@@ -209,7 +209,7 @@ counts, harness responsibilities and known observations.
|
||||
|
||||
## 5. Coding conventions
|
||||
|
||||
* Rust edition 2021, `rust-version = 1.89`, workspace version `3.0.0-rc.4`.
|
||||
* Rust edition 2021, `rust-version = 1.89`, workspace version `3.0.0-rc.6`.
|
||||
* `unsafe` is forbidden in pure crates (for example `marqdo-expression` uses
|
||||
`#![forbid(unsafe_code)]`); the ABI/loader crates contain the only
|
||||
`unsafe` code and every block has a SAFETY comment explaining the contract.
|
||||
|
||||
@@ -6,7 +6,7 @@ Rust structures, `marqdo-ir` internals, `inspect --ir`, relative paths into the
|
||||
core checkout, or host memory layout. Adding a new domain function must not
|
||||
require a core commit.
|
||||
|
||||
Product version for these docs: **`3.0.0-rc.4`** (Linux x86_64 candidate).
|
||||
Product version for these docs: **`3.0.0-rc.6`** (Linux x86_64 candidate).
|
||||
Current protocol contracts: Analysis, Observation, CLI Tool, Plugin ABI v1,
|
||||
Foreign wire v1, Provider manifest v2, lock v4 and markdown profile
|
||||
`marqdo.md.v1`. Product, protocol and package versions are independent; see
|
||||
|
||||
@@ -6,9 +6,9 @@ This page summarizes the public support policy. The authoritative matrix is
|
||||
|
||||
## Version axes (do not conflate)
|
||||
|
||||
| Axis | `3.0.0-rc.4` value | Change rule |
|
||||
| Axis | `3.0.0-rc.6` value | Change rule |
|
||||
|---|---|---|
|
||||
| Product / CLI | `3.0.0-rc.4` (candidate) | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
|
||||
| Product / CLI | `3.0.0-rc.6` (candidate) | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
|
||||
| Analysis | v3 | One writer and one current major for every project. New major for incompatible changes; consumers reject unknown majors. |
|
||||
| Observation | v1 | One `run_id`/`seq` event sequence per execution; JSONL, JSON snapshot and file snapshot come from the same run. New major for incompatible required-field/ordering/redaction changes. |
|
||||
| CLI Tool | revision 1 | Exact `requires.api_revision` plus optional exact `analysis`/`observation` integers; no version arrays or negotiation. |
|
||||
@@ -41,7 +41,7 @@ values are off by default, and `--mode strict` refuses `--output jsonl` and
|
||||
|
||||
## Language compatibility
|
||||
|
||||
`3.0.0-rc.4` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source
|
||||
`3.0.0-rc.6` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source
|
||||
(Strong-execute / Emph-return / ordered-list branch / bullet-list loop /
|
||||
block-quote call / first code-span signature) is **not executable**; there is no
|
||||
`--legacy`, syntax switch or downgrade path. Migration is a rewrite task
|
||||
|
||||
@@ -113,7 +113,7 @@ keyword or built-in. The selected provider is verified (schema version, target,
|
||||
artifact SHA-256, duplicate kind, grant) before the sibling
|
||||
`marqdo-provider-worker` starts; a missing helper is
|
||||
`ext.worker_unavailable` and never falls back to `PATH` or in-process loading.
|
||||
Linux x86_64 only for this beta; not an OS sandbox. Runnable example:
|
||||
Linux x86_64 only for this prerelease line; not an OS sandbox. Runnable example:
|
||||
`examples/provider-demo/` (build with its `build.sh`; the tracked manifest has a
|
||||
zero digest template). Normative contract:
|
||||
[`../../spec/resource-provider-v2.md`](../../spec/resource-provider-v2.md).
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Quickstart: install and run
|
||||
|
||||
Product: `3.0.0-rc.4` (Linux x86_64 candidate). Install a **release archive**, not
|
||||
Product: `3.0.0-rc.6` (Linux x86_64 candidate). Install a **release archive**, not
|
||||
a source checkout, when you only consume Marqdo.
|
||||
|
||||
## 1. Install the archive
|
||||
|
||||
```bash
|
||||
sha256sum -c marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz.sha256
|
||||
tar -xzf marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz
|
||||
cd marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu
|
||||
./marqdo --version # marqdo 3.0.0-rc.4
|
||||
sha256sum -c marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu.tar.gz.sha256
|
||||
tar -xzf marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu.tar.gz
|
||||
cd marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu
|
||||
./marqdo --version # marqdo 3.0.0-rc.6
|
||||
./marqdo --help
|
||||
```
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Marqdo 3.0.0-rc.4 — known limitations
|
||||
# Marqdo 3.0.0-rc.6 — known limitations
|
||||
|
||||
This file ships in the release archive as `KNOWN_LIMITATIONS.md`. It is part of
|
||||
the release record: it defines the platform and feature scope for the release candidate.
|
||||
@@ -19,9 +19,12 @@ user and is not a security boundary against hostile code.
|
||||
|
||||
## `strict` isolation
|
||||
|
||||
`strict` is Linux-only and probe-gated. The RC release requires same-SHA
|
||||
G3 evidence from a non-root disposable VM. The CLI fails closed when the
|
||||
runtime probe is unavailable.
|
||||
`strict` is Linux-only and probe-gated. A stable/LTS release requires
|
||||
same-SHA G3 evidence from a non-root disposable VM. A release candidate may
|
||||
record `strict: unsupported` when the packaged archive proves that strict mode
|
||||
fails closed on the distribution test environment and the maintainer approves
|
||||
the RC exception; it must not claim an isolation PASS. The CLI fails closed
|
||||
whenever the runtime probe is unavailable.
|
||||
|
||||
Even when available:
|
||||
|
||||
@@ -57,11 +60,11 @@ Even when available:
|
||||
|
||||
## Compatibility and versioning
|
||||
|
||||
* `3.0.0-rc.4` is a **prerelease**. The changelog lists changes from the beta.
|
||||
* `3.0.0-rc.6` is a **prerelease**. The changelog lists changes from the beta.
|
||||
* The product version is independent of protocol versions: Analysis,
|
||||
Observation, CLI Tool, Plugin ABI v1, Foreign wire v1, Provider manifest v2
|
||||
and lock v4 keep their own identifiers.
|
||||
* The official bundled stdlib keeps its independent package version `0.1.0`.
|
||||
* The official bundled stdlib keeps its independent package version `0.2.0`.
|
||||
A plugin `.mq.md` package version such as `0.1.0` is also independent.
|
||||
* `project.marqdo` in `marqdo.yaml` is enforced in this release. SemVer
|
||||
prerelease rules apply: `>=3.0.0,<4.0.0` does **not** accept a prerelease core. Packages and Tools can use a prerelease range such as
|
||||
|
||||
@@ -20,7 +20,7 @@ marqdo-view/
|
||||
examples/
|
||||
```
|
||||
|
||||
`tool.json` for the `3.0.0-rc.4` candidate:
|
||||
`tool.json` for the `3.0.0-rc.6` candidate:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# 3.0.0-rc.5 候选准备(未发布)
|
||||
|
||||
日期:2026-11-27。分支:`release/3.0.0-rc.5-candidate`。本文件记录**候选准备**,不是发布记录:没有 tag、没有 Gitea Release、没有上传资产。
|
||||
|
||||
## 范围
|
||||
|
||||
- 工作区版本 `3.0.0-rc.4` → `3.0.0-rc.5`(Cargo.toml/Cargo.lock),CHANGELOG 增加“unreleased candidate”区段。
|
||||
- 内容基线:CLI `deadf6e`(外部 Bundle Phase B,无仓库内 `stdlib/` 树)+ 根外部 Bundle `marqdo-stdlib@0.2.0`(`digest sha256:db905508...`)。
|
||||
- 其余当前文档仍描述上一个已发布 rc.4;正式发布前必须在冻结 SHA 上统一 README/COMPATIBILITY/STATUS/开发者文档并重跑门禁。候选分支不合并即不改变产品发布声明。
|
||||
|
||||
## 候选验证(本机)
|
||||
|
||||
- 见父仓 #2 证据 `docs/evidence/2026-11-27-issue2-release-readiness.md`:确定性归档、smoke、离线冷安装、三个迁出扩展、外部 conformance、std surface、坏摘要 fail-closed。
|
||||
- 本分支版本化为 rc.5 后重新生成归档时,仅版本/元数据变化;发布前须在冻结 SHA 上重新执行全部命令并记录摘要。
|
||||
|
||||
## rc.5 候选归档(未发布)
|
||||
|
||||
- 候选提交 `9b21486`(版本/metadata + 性能 harness 修复),CLI `--release` 构建成功。
|
||||
- 同输入连续两次 `package.py`:`marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu.tar.gz` sha256 均为 `446197adb3c23dde87abc389490602e27856d6eb172667208080c8072a5ddece`(确定性 PASS)。
|
||||
- `smoke.py` PASS;Ubuntu 24.04/glibc 2.39、`--network none`、无 Cargo 冷安装 PASS(缺 Bundle fail-closed;语言-only 可运行)。
|
||||
- 未上传、无 tag、无 Release;`SOURCE_SHA` = 候选提交。
|
||||
|
||||
## 性能门禁(G4)候选结果
|
||||
|
||||
- 迁移后发现真实 harness 缺口:`stdlib-print-demo` 工作负载仍引用已删除的 CLI 内 `stdlib/demo.mq.md`,外部 Bundle 候选无法测量。
|
||||
- 修复(本候选分支):新增 `tools/perf/fixtures/print-demo.mq.md`,工作负载改名为 `print-demo` 并指向 fixture,重新记录 `tools/perf/expected/print-demo.json`;`performance.yml` 在 baseline worktree 中复制同一 `tools/perf`,保证两个二进制测同一工作负载。
|
||||
- 本机共享节点 paired run(Intel i7-8565U,8 CPU,taskset pin,5 warmups/20 samples):baseline 为**上一发布 rc.4**(`452e9a32...`,同一 harness/工作负载/fixture),candidate 为 rc.5 归档二进制 + 外部 Bundle。`correctness=VERIFIED`,9/9 工作负载 COMPARED,最大 p50 +5.15%、最大 RSS +4.87%,`investigate=false`(均低于 15%/20% 阈值)。
|
||||
- **仍不是 G4 PASS**:报告 `status=SMOKE`、`environment_approved=false`,本机节点未获维护者针对该 RC 的批准;按 RC 政策只能作为 shared-node WARN 候选,需维护者在获批节点/环境复跑并明确批准。
|
||||
|
||||
## Strict L1(BLOCKED,未运行)
|
||||
|
||||
- 本环境无 disposable VM;`bwrap` 无法创建命名空间(`bwrap: No permissions to create a new namespace`),`unshare -Ur` 被拒(`/proc/self/uid_map: Operation not permitted`),`runuser -u nobody` 被拒(`cannot set groups: Operation not permitted`)。
|
||||
- `tests/security/run-lane.sh` 明确要求普通用户在 disposable VM/可信 self-hosted runner 上运行并拒绝 root;本机无法产生 strict 证据,记录 BLOCKED 而非 PASS。
|
||||
|
||||
## 未完成(阻塞发布,不冒充 PASS)
|
||||
|
||||
- 冻结候选 SHA 与文档/版本一致性;
|
||||
- strict L1 独立 VM、非 root 同 SHA 证据;
|
||||
- G4 性能固定节点或维护者批准的 shared-node WARN;
|
||||
- 维护者显式 tag/Release 批准。
|
||||
|
||||
按 `docs/releasing.md`,自动化只可预备 RC 与证据,不得自行 tag/release。
|
||||
@@ -0,0 +1,43 @@
|
||||
# Marqdo CLI 3.0.0-rc.5 release notes
|
||||
|
||||
Released as a Linux x86_64 (glibc 2.39) prerelease. Tag `v3.0.0-rc.5` on the
|
||||
tagged release commit; the Gitea release carries the archive, its `.sha256` and
|
||||
`RELEASE_INFO.json` inside the archive.
|
||||
|
||||
## What changed
|
||||
|
||||
- The standard library is one explicit external Bundle (`--stdlib-dir`, Bundle
|
||||
pin) and the CLI repository no longer contains a `stdlib/` source tree
|
||||
(marqdo-cli#11 Phase B). Contract lanes, product tests and the perf harness
|
||||
materialize the ecosystem Bundle instead of an in-repo copy.
|
||||
- The release archive still ships exactly one verified stdlib Bundle
|
||||
(`marqdo-stdlib@0.2.0`).
|
||||
- The migrated performance `print-demo` workload now uses a self-contained
|
||||
fixture so the G4 comparison no longer depends on the removed in-repo stdlib
|
||||
tree; the paired baseline is the previous release rc.4.
|
||||
|
||||
## Verification on this release cycle
|
||||
|
||||
| Gate | Result |
|
||||
| --- | --- |
|
||||
| Deterministic archive (same inputs built twice) | PASS |
|
||||
| `smoke.py` | PASS |
|
||||
| Archive-only Ubuntu 24.04/glibc 2.39, `--network none`, non-root, no Cargo | PASS |
|
||||
| Migrated extensions http/regex/archive with the archive CLI + Bundle | PASS |
|
||||
| Frozen external conformance with the archive CLI/RELEASE_INFO | PASS |
|
||||
| std: surface (text/JSON/FS/path/datetime/table/Console) | PASS |
|
||||
| Missing/tampered Bundle fail-closed | PASS |
|
||||
| Disposable-VM strict L1, non-root, same SHA | **UNVERIFIED** (no VM/namespaces in the release environment; no PASS claimed) |
|
||||
| G4 paired shared-node comparison | Shared-node only: 9/9 workloads compared, max p50 +5.15%, max RSS +4.87%, below thresholds; **not an approved-node G4 PASS** |
|
||||
|
||||
This release was explicitly approved by the maintainer with the two limitations
|
||||
above recorded; stable/LTS still requires the disposable-VM strict lane and a
|
||||
maintainer-approved fixed performance node.
|
||||
|
||||
## Known limitations
|
||||
|
||||
- Linux x86_64 is the only supported platform; macOS/Windows remain UNSUPPORTED
|
||||
for this prerelease line.
|
||||
- `strict` availability depends on host namespaces; unsupported hosts fail
|
||||
closed and do not downgrade.
|
||||
- See `docs/developers/release-limits.md` for the full list.
|
||||
+41
-23
@@ -73,8 +73,12 @@ unsupported/experimental in
|
||||
|
||||
Use the frozen-SHA build and archive checks above. Additionally:
|
||||
|
||||
- Strict L1 requires a same-SHA PASS on a disposable VM as a non-root user.
|
||||
Record the strict evidence and verify the archived binary on that guest.
|
||||
- Report strict L1 as `PASS` only with same-SHA evidence from a disposable VM
|
||||
running as a non-root user. An RC may report `strict: unsupported` with
|
||||
maintainer approval and a same-SHA archive smoke log which confirms strict
|
||||
execution fails closed on the distribution test environment. A skipped
|
||||
test or an observed isolation defect blocks publication. Stable and LTS
|
||||
require the disposable-VM PASS.
|
||||
- Measure the packaged CLI with 5 warmups and 20 samples or more for each of
|
||||
the nine workloads, or for the changed boundary's representative fixture when
|
||||
the gate is scoped by an accepted ADR. Compare against a correctness-verified
|
||||
@@ -203,7 +207,10 @@ python3 tools/ci/release_evidence.py --profile beta --target-sha "$sha" \
|
||||
missing, skipped, failed or SHA-mismatched gate is `DO_NOT_RELEASE`; never
|
||||
hand-edit a manifest to PASS. For a Linux RC, use
|
||||
`--profile rc --require-release` and declare both excluded platforms. If
|
||||
the shared-node exception applies, pass
|
||||
strict is unavailable, supply `strict_vm=UNSUPPORTED:<candidate-sha>:<smoke-log>`
|
||||
and `--rc-strict-unsupported-approval <release-notes-reference>`. The smoke
|
||||
log must show strict mode's explicit refusal from the packaged binary. If the
|
||||
shared-node exception applies, pass
|
||||
`--rc-shared-performance-approval <release-notes-reference>` and supply
|
||||
`performance=WARN:<candidate-sha>:<comparison-evidence>`. Use the generated
|
||||
`RC_RELEASE_CANDIDATE` decision before running the tagging commands.
|
||||
@@ -221,8 +228,25 @@ git tag -a "v${version}" -m "Marqdo CLI v${version}" "$sha"
|
||||
git push origin "v${version}"
|
||||
```
|
||||
|
||||
Then create the Gitea release for the tag with `prerelease: true`, attach the
|
||||
tarball and its `.sha256`, and include the release notes. The notes must state:
|
||||
Before publication, use the existing Bundle producer and the exact Woodpecker
|
||||
pipeline number to create the ecosystem release index. Build and cold-test the
|
||||
archive with the `--bundle-pin` and Bundle directory below, as in sections 3–4.
|
||||
The receipt is the root producer's build summary and stays with the release
|
||||
evidence.
|
||||
|
||||
```bash
|
||||
python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib \
|
||||
--receipt target/ecosystem-stdlib.receipt.json
|
||||
# Run the existing package and smoke commands with that Bundle.
|
||||
archive="dist/marqdo-${version}-x86_64-unknown-linux-gnu.tar.gz"
|
||||
python3 tools/release/release_index.py --archive "$archive" \
|
||||
--bundle-receipt target/ecosystem-stdlib.receipt.json \
|
||||
--pipeline "$pipeline_number" > dist/release-evidence.json.tmp
|
||||
mv dist/release-evidence.json.tmp dist/release-evidence.json
|
||||
```
|
||||
|
||||
Create a Gitea draft for the tag with `prerelease: true` and attach the tarball,
|
||||
its `.sha256`, and `release-evidence.json`. The notes must state:
|
||||
|
||||
* prerelease status, support lifetime and the Linux x86_64 platform scope;
|
||||
* the breaking RFC-LANG-0002 language change and no legacy path;
|
||||
@@ -232,21 +256,16 @@ tarball and its `.sha256`, and include the release notes. The notes must state:
|
||||
* the checksum-integrity-not-signature caveat and the known-limitations file;
|
||||
* the exact source SHA and links to the evidence manifest.
|
||||
|
||||
Example Gitea API shape (token with repository release permission; never commit
|
||||
the token):
|
||||
Download the draft's assets from Gitea and verify their sizes and digests against
|
||||
the index. Compare the downloaded index to the local copy and verify the remote
|
||||
tag points at the tested SHA. Publish the complete draft, then confirm the
|
||||
public tag and asset set again. Resume an interrupted draft only for the same
|
||||
tag, commit and matching assets. For an already published release, verify the
|
||||
existing bytes and send any outstanding notification. Report a mismatch to the
|
||||
release owner and stop. A failed notification is retried independently through
|
||||
the root reconcile workflow, with its cron as the recovery path.
|
||||
|
||||
```bash
|
||||
curl -X POST -H "Authorization: token $MARQDO_GIT_TOKEN" \
|
||||
-H 'Content-Type: application/json' \
|
||||
https://git.cflmy.cn/api/v1/repos/cflmy/marqdo-cli/releases \
|
||||
-d '{"tag_name":"v3.0.0-beta.1","name":"Marqdo CLI 3.0.0-beta.1",
|
||||
"prerelease":true,"draft":false,"body":"..."}'
|
||||
curl -X POST -H "Authorization: token $MARQDO_GIT_TOKEN" \
|
||||
-F "attachment=@dist/marqdo-3.0.0-beta.1-x86_64-unknown-linux-gnu.tar.gz" \
|
||||
https://git.cflmy.cn/api/v1/repos/cflmy/marqdo-cli/releases/<id>/assets
|
||||
```
|
||||
|
||||
The tag points at the tested SHA. Evidence files and the final STATUS update
|
||||
Evidence files and the final STATUS update
|
||||
may land in a **post-release docs commit** that references the tagged SHA, so
|
||||
that the evidence never has to claim a SHA it cannot contain. Do not force-push,
|
||||
do not tag a red commit, and do not upload macOS/Windows binaries unless those
|
||||
@@ -254,10 +273,9 @@ platform lanes actually passed.
|
||||
|
||||
## 7. Rollback
|
||||
|
||||
- Missing/mismatched gate discovered after tagging: mark the release withdrawn,
|
||||
delete the assets, keep the tag only if source/tag integrity is unaffected,
|
||||
and ship a corrected prerelease (for example `3.0.0-beta.2`). Never delete a
|
||||
failing test.
|
||||
- Missing or mismatched gate discovered after tagging: record the withdrawal
|
||||
in an issue, retain the published tag and assets for traceability, and ship
|
||||
a corrected prerelease with a new tag (for example `3.0.0-beta.2`).
|
||||
- Platform regression: remove that platform from `COMPATIBILITY.md`, the
|
||||
release notes and the archive, then fix and re-run the gate.
|
||||
- Security regression: set strict back to fail-closed/unsupported, publish a
|
||||
|
||||
+8
-4
@@ -10,8 +10,9 @@ be registered as a dedicated self-hosted security runner.
|
||||
> ([`architecture/RFC-LANG-0002-unified-semantics.md`](architecture/RFC-LANG-0002-unified-semantics.md)).
|
||||
> The lane is only evidence for the **exact SHA in its
|
||||
> `strict-evidence.json`**; a PASS at an older SHA or on another host is
|
||||
> historical. Every candidate release must rerun `tests/security/run-lane.sh`
|
||||
> and archive the evidence document. See [`STATUS.md`](STATUS.md).
|
||||
> historical. A stable or LTS release must rerun `tests/security/run-lane.sh`
|
||||
> and archive the evidence document. Linux RCs can use the approved
|
||||
> fail-closed path in [the release procedure](releasing.md#linux-rc-preconditions).
|
||||
|
||||
**Do not run this on a daily host with valuable data.** The VM is disposable;
|
||||
the commands below do not disable AppArmor or any global host protection.
|
||||
@@ -38,9 +39,9 @@ export SOURCE_SHA="$(git rev-parse HEAD)" # reviewed commit, clean tree
|
||||
mkdir -p .tools/vm && cd .tools/vm
|
||||
# Replace with the reviewed dated release URL, never .../current/...
|
||||
curl -L -o ubuntu-base.img \
|
||||
https://cloud-images.ubuntu.com/releases/26.04/release-20261120/ubuntu-26.04-server-cloudimg-amd64.img
|
||||
https://cloud-images.ubuntu.com/releases/resolute/release-20261108/ubuntu-26.04-server-cloudimg-amd64.img
|
||||
curl -L -o SHA256SUMS \
|
||||
https://cloud-images.ubuntu.com/releases/26.04/release-20261120/SHA256SUMS
|
||||
https://cloud-images.ubuntu.com/releases/resolute/release-20261108/SHA256SUMS
|
||||
grep 'ubuntu-26.04-server-cloudimg-amd64.img' SHA256SUMS | sha256sum -c -
|
||||
sha256sum ubuntu-base.img | tee ubuntu-base.img.sha256
|
||||
qemu-img create -f qcow2 -b ubuntu-base.img -F qcow2 \
|
||||
@@ -159,6 +160,9 @@ mkdir -p ~/marqdo-${SOURCE_SHA}
|
||||
tar -C ~/marqdo-${SOURCE_SHA} -xf ~/marqdo-${SOURCE_SHA}.tar
|
||||
cd ~/marqdo-${SOURCE_SHA}
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib
|
||||
export MARQDO_STDLIB_DIR="$PWD/target/ecosystem-stdlib"
|
||||
export MARQDO_TEST_STDLIB_BUNDLE="$MARQDO_STDLIB_DIR"
|
||||
export MARQDO_TESTED_SHA="$SOURCE_SHA"
|
||||
export MARQDO_SOURCE_ARCHIVE="$HOME/marqdo-${SOURCE_SHA}.tar"
|
||||
export MARQDO_SOURCE_ARCHIVE_SHA256="sha256:<digest from the host>"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Marqdo Security Model (implemented status)
|
||||
|
||||
Status: describes enforcement in the `3.0.0-rc.4` candidate.
|
||||
Status: describes enforcement in the `3.0.0-rc.6` candidate.
|
||||
|
||||
Normative implementation:
|
||||
|
||||
|
||||
Generated
+8
-8
@@ -172,7 +172,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-expression"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
@@ -182,7 +182,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-frontend"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-ir",
|
||||
@@ -196,7 +196,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-host-contract"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"marqdo-value",
|
||||
@@ -204,7 +204,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-ir"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-span",
|
||||
@@ -213,7 +213,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-markdown"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"comrak",
|
||||
"marqdo-span",
|
||||
@@ -224,7 +224,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-runtime"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-host-contract",
|
||||
@@ -239,14 +239,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-span"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
|
||||
Generated
+4
-4
@@ -16,7 +16,7 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-abi"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-value",
|
||||
"serde",
|
||||
@@ -26,7 +26,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-sdk"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-plugin-abi",
|
||||
"serde",
|
||||
@@ -42,14 +42,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-span"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.4"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
|
||||
@@ -78,7 +78,7 @@ def build_dependencies(package: str, offline: bool) -> set[str]:
|
||||
stripped = line.strip()
|
||||
if not stripped:
|
||||
continue
|
||||
# Lines look like `marqdo-value v3.0.0-rc.4 (/path)` or `serde v1.0.1`.
|
||||
# Lines look like `marqdo-value v3.0.0-rc.5 (/path)` or `serde v1.0.1`.
|
||||
name = stripped.split(" v", 1)[0].strip()
|
||||
if name:
|
||||
names.add(name)
|
||||
|
||||
@@ -109,17 +109,16 @@ def fetch_root(pin: dict, cache: Path) -> Path:
|
||||
return cache
|
||||
|
||||
|
||||
def build_bundle(root: Path, out: Path) -> Path:
|
||||
def build_bundle(root: Path, out: Path) -> str:
|
||||
"""Build the Bundle; an existing output is reused only after verification.
|
||||
|
||||
CI jobs share one workspace, so a parallel or earlier job may already have
|
||||
materialized the same pinned Bundle. The output is built in a temporary
|
||||
sibling and moved into place atomically; a mismatch is rebuilt, never used.
|
||||
The caller serializes jobs that share a worktree. The output is built
|
||||
in a temporary sibling and moved into place.
|
||||
"""
|
||||
temp = out.with_name(out.name + ".partial-" + str(os.getpid()))
|
||||
if temp.exists():
|
||||
shutil.rmtree(temp)
|
||||
run(
|
||||
receipt = run(
|
||||
[
|
||||
sys.executable,
|
||||
str(root / "scripts" / "build-stdlib.py"),
|
||||
@@ -131,7 +130,7 @@ def build_bundle(root: Path, out: Path) -> Path:
|
||||
if out.exists():
|
||||
shutil.rmtree(out)
|
||||
temp.rename(out)
|
||||
return out
|
||||
return receipt
|
||||
|
||||
|
||||
def verify(pin: dict, bundle: Path) -> dict:
|
||||
@@ -158,12 +157,13 @@ def main(argv: list[str]) -> int:
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--out", default=str(ROOT / "target" / "ecosystem-stdlib"))
|
||||
parser.add_argument("--cache", default=str(ROOT / "target" / "ecosystem-root"))
|
||||
parser.add_argument("--receipt", type=Path, help="save the pinned producer's JSON summary")
|
||||
args = parser.parse_args(argv)
|
||||
out = Path(args.out).resolve()
|
||||
cache = Path(args.cache).resolve()
|
||||
try:
|
||||
pin = load_pin()
|
||||
if out.is_dir():
|
||||
if out.is_dir() and args.receipt is None:
|
||||
try:
|
||||
verify(pin, out)
|
||||
except (FetchError, OSError, json.JSONDecodeError):
|
||||
@@ -172,12 +172,14 @@ def main(argv: list[str]) -> int:
|
||||
print(out)
|
||||
return 0
|
||||
root = fetch_root(pin, cache)
|
||||
bundle = build_bundle(root, out)
|
||||
verify(pin, bundle)
|
||||
except FetchError as error:
|
||||
receipt = build_bundle(root, out)
|
||||
verify(pin, out)
|
||||
if args.receipt is not None:
|
||||
args.receipt.write_text(receipt, encoding="utf-8")
|
||||
except (FetchError, OSError, json.JSONDecodeError) as error:
|
||||
print(f"fetch-ecosystem-bundle: error: {error}", file=sys.stderr)
|
||||
return 1
|
||||
print(bundle)
|
||||
print(out)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
@@ -7,10 +7,9 @@ does not query CI and cannot turn an UNVERIFIED gate into a release.
|
||||
|
||||
The `rc` profile requires every gate on the target SHA. For a Linux-only RC,
|
||||
Windows and macOS must be explicitly UNSUPPORTED; the stable profile requires
|
||||
both to PASS. Strict VM, extension, clean install, version compatibility and
|
||||
performance require PASS. RC can record a shared-node performance WARN only
|
||||
with an explicit maintainer approval reference. The historical beta profile
|
||||
retains its own scoped exceptions.
|
||||
both to PASS. An RC can record strict as UNSUPPORTED with same-SHA fail-closed
|
||||
evidence and can record a measured shared-node performance WARN. Each
|
||||
exception requires an explicit maintainer approval reference.
|
||||
|
||||
Gate spec: `name=STATE:tested_sha:run_url` (url may contain colons).
|
||||
|
||||
@@ -106,6 +105,7 @@ def build_manifest(
|
||||
gates: list[str],
|
||||
profile: str = "stable",
|
||||
rc_shared_performance_approval: str = "",
|
||||
rc_strict_unsupported_approval: str = "",
|
||||
) -> dict:
|
||||
if not SHA_RE.fullmatch(target_sha):
|
||||
raise ValueError(f"target SHA must be 40 lowercase hex characters: {target_sha!r}")
|
||||
@@ -114,10 +114,13 @@ def build_manifest(
|
||||
except KeyError:
|
||||
raise ValueError(f"unknown profile {profile!r}; expected {sorted(PROFILES)}") from None
|
||||
approval = rc_shared_performance_approval.strip()
|
||||
if approval and profile != "rc":
|
||||
raise ValueError("shared-node approval is supported only by the rc profile")
|
||||
strict_approval = rc_strict_unsupported_approval.strip()
|
||||
if (approval or strict_approval) and profile != "rc":
|
||||
raise ValueError("RC exception approvals are supported only by the rc profile")
|
||||
if approval:
|
||||
accepted_states = {**accepted_states, "performance": {"PASS", "WARN"}}
|
||||
if strict_approval:
|
||||
accepted_states = {**accepted_states, "strict_vm": {"PASS", "UNSUPPORTED"}}
|
||||
parsed = {}
|
||||
for spec in gates:
|
||||
name, gate = parse_gate(spec)
|
||||
@@ -150,6 +153,8 @@ def build_manifest(
|
||||
recorded = utc_now()
|
||||
if approval and parsed["performance"]["state"] == "WARN":
|
||||
parsed["performance"]["rc_shared_node_approval"] = approval
|
||||
if strict_approval and parsed["strict_vm"]["state"] == "UNSUPPORTED":
|
||||
parsed["strict_vm"]["rc_unsupported_approval"] = strict_approval
|
||||
return {
|
||||
"schema": SCHEMA,
|
||||
"profile": profile,
|
||||
@@ -178,6 +183,11 @@ def main(argv: list[str]) -> int:
|
||||
default="",
|
||||
help="maintainer approval reference for the measured shared-node RC performance WARN",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--rc-strict-unsupported-approval",
|
||||
default="",
|
||||
help="maintainer approval reference for same-SHA fail-closed strict evidence on an RC",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--require-release",
|
||||
action="store_true",
|
||||
@@ -186,7 +196,8 @@ def main(argv: list[str]) -> int:
|
||||
args = parser.parse_args(argv)
|
||||
try:
|
||||
manifest = build_manifest(
|
||||
args.target_sha, args.gate, args.profile, args.rc_shared_performance_approval
|
||||
args.target_sha, args.gate, args.profile, args.rc_shared_performance_approval,
|
||||
args.rc_strict_unsupported_approval,
|
||||
)
|
||||
except ValueError as error:
|
||||
print(f"error: {error}", file=sys.stderr)
|
||||
|
||||
@@ -36,7 +36,7 @@ def snapshot(run_id: str, status: str, value, extra_file: str = "/tmp/index.mq.m
|
||||
"run_id": run_id,
|
||||
"seq": 0,
|
||||
"kind": "stream.opened",
|
||||
"payload": {"producer": {"name": "marqdo", "version": "3.0.0-rc.4"}},
|
||||
"payload": {"producer": {"name": "marqdo", "version": "3.0.0-rc.6"}},
|
||||
},
|
||||
{
|
||||
"schema": "marqdo.observation",
|
||||
|
||||
@@ -95,6 +95,34 @@ class ReleaseEvidenceTests(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
release_evidence.build_manifest(SHA, inputs, "stable", approval)
|
||||
|
||||
def test_rc_strict_unsupported_requires_same_sha_evidence_and_approval(self) -> None:
|
||||
approval = "release notes: maintainer approved strict unsupported for this RC"
|
||||
inputs = [spec for spec in self.rc_gates() if not spec.startswith("strict_vm=")]
|
||||
manifest = release_evidence.build_manifest(
|
||||
SHA, inputs + [gate("strict_vm", "UNSUPPORTED")], "rc",
|
||||
rc_strict_unsupported_approval=approval,
|
||||
)
|
||||
self.assertEqual(manifest["release_decision"], "RC_RELEASE_CANDIDATE")
|
||||
self.assertEqual(manifest["gates"]["strict_vm"]["state"], "UNSUPPORTED")
|
||||
self.assertEqual(manifest["gates"]["strict_vm"]["rc_unsupported_approval"], approval)
|
||||
for entry in (gate("strict_vm", "UNSUPPORTED", OTHER),
|
||||
gate("strict_vm", "UNSUPPORTED", url=""),
|
||||
gate("strict_vm", "FAIL"), gate("strict_vm", "UNVERIFIED")):
|
||||
with self.subTest(entry=entry):
|
||||
result = release_evidence.build_manifest(
|
||||
SHA, inputs + [entry], "rc", rc_strict_unsupported_approval=approval,
|
||||
)
|
||||
self.assertEqual(result["release_decision"], "DO_NOT_RELEASE")
|
||||
|
||||
def test_stable_rejects_rc_strict_exception(self) -> None:
|
||||
inputs = [gate(name, "UNSUPPORTED" if name == "strict_vm" else "PASS")
|
||||
for name in release_evidence.GATES]
|
||||
result = release_evidence.build_manifest(SHA, inputs)
|
||||
self.assertEqual(result["release_decision"], "DO_NOT_RELEASE")
|
||||
with self.assertRaises(ValueError):
|
||||
release_evidence.build_manifest(SHA, inputs,
|
||||
rc_strict_unsupported_approval="RC approval")
|
||||
|
||||
def test_stable_requires_extension_install_version_and_performance(self) -> None:
|
||||
names = ("extension", "clean_install", "version_compat", "performance")
|
||||
for name in names:
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
"""Release index ties an archive and the producer receipt to authoritative CI."""
|
||||
|
||||
import io
|
||||
import json
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "release"))
|
||||
import release_index
|
||||
|
||||
|
||||
class ReleaseIndexTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
directory = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(directory.cleanup)
|
||||
self.archive = Path(directory.name) / "marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu.tar.gz"
|
||||
self.sha = "9" * 40
|
||||
self.bundle = {"name": "marqdo-stdlib", "version": "0.2.0",
|
||||
"tree_digest": "sha256:" + "1" * 64,
|
||||
"aliases_digest": "sha256:" + "2" * 64}
|
||||
self.receipt = {**self.bundle, "root_commit": "8" * 40,
|
||||
"components": [{"id": "std-io", "revision": "7" * 40}]}
|
||||
self.info = {
|
||||
"schema": "marqdo.release-info", "schema_version": 1, "product": "marqdo-cli",
|
||||
"build_profile": "release", "product_version": "3.0.0-rc.6",
|
||||
"target_triple": "x86_64-unknown-linux-gnu", "source_sha": self.sha,
|
||||
"stdlib": {**self.bundle, "source": {"kind": "ecosystem",
|
||||
"repository": "cflmy/marqdo", "commit": self.receipt["root_commit"]}},
|
||||
}
|
||||
steps = [{"name": name, "type": "commands", "state": "success"}
|
||||
for name in sorted(release_index.REQUIRED_STEPS)]
|
||||
self.pipeline = {"number": 3, "commit": self.sha, "status": "success", "event": "push",
|
||||
"workflows": [{"name": "main", "state": "success", "children": steps}]}
|
||||
self.repo = {"id": 2, "forge_remote_id": "19", "full_name": release_index.REPOSITORY}
|
||||
|
||||
with tarfile.open(self.archive, "w:gz") as output:
|
||||
top = self.archive.name.removesuffix(".tar.gz")
|
||||
for name, data in (("RELEASE_INFO.json", json.dumps(self.info)), ("SOURCE_SHA", self.sha)):
|
||||
member = tarfile.TarInfo(f"{top}/{name}")
|
||||
contents = data.encode()
|
||||
member.size = len(contents)
|
||||
output.addfile(member, io.BytesIO(contents))
|
||||
self.checksum = self.archive.with_name(self.archive.name + ".sha256")
|
||||
self.digest = release_index.sha256_file(self.archive)
|
||||
self.checksum.write_text(f"{self.digest} {self.archive.name}\n", encoding="utf-8")
|
||||
|
||||
def test_assets_and_dependencies_are_derived_from_the_inputs(self):
|
||||
with patch.object(release_index, "read_json", side_effect=[{"id": 19}, self.repo, self.pipeline]):
|
||||
index = release_index.evidence(self.archive, self.receipt, 3)
|
||||
self.assertEqual(index["ci"], {"pipeline_number": 3, "source_sha": self.sha,
|
||||
"url": f"{release_index.CI}/repos/2/pipeline/3"})
|
||||
self.assertEqual(index["assets"][0], {"name": self.archive.name, "sha256": self.digest,
|
||||
"size": self.archive.stat().st_size,
|
||||
"target": self.info["target_triple"]})
|
||||
self.assertEqual(index["dependencies"], [{"id": "std-io", "source_sha": "7" * 40}])
|
||||
|
||||
def test_index_rejects_green_pipeline_without_exact_sha_and_gates(self):
|
||||
wrong_commit = {**self.pipeline, "commit": "0" * 40}
|
||||
skipped_gate = {**self.pipeline["workflows"][0]}
|
||||
skipped_gate["children"] = skipped_gate["children"][1:]
|
||||
for pipeline in (wrong_commit, {**self.pipeline, "workflows": [skipped_gate]}):
|
||||
with (patch.object(release_index, "read_json", side_effect=[{"id": 19}, self.repo, pipeline]),
|
||||
self.assertRaisesRegex(ValueError, "exact SHA")):
|
||||
release_index.evidence(self.archive, self.receipt, 3)
|
||||
|
||||
def test_index_rejects_mismatched_receipt_or_archive_checksum(self):
|
||||
receipt = {**self.receipt, "root_commit": "0" * 40}
|
||||
with self.assertRaisesRegex(ValueError, "mismatches the Bundle"):
|
||||
release_index.evidence(self.archive, receipt, 3)
|
||||
self.checksum.write_text(f"{'0' * 64} {self.archive.name}\n", encoding="utf-8")
|
||||
with self.assertRaisesRegex(ValueError, "checksum disagrees"):
|
||||
release_index.evidence(self.archive, self.receipt, 3)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"measure_argv": [
|
||||
"call",
|
||||
"tools/perf/fixtures/print-demo.mq.md",
|
||||
"main"
|
||||
],
|
||||
"measure_sha256": "sha256:663b632142809ee1bdfa24671263228f52fe8017db0b81a15db8f2bf3028ea33",
|
||||
"normalized": {
|
||||
"events": {
|
||||
"by_kind": {
|
||||
"branch.eval": 70,
|
||||
"call.enter": 9,
|
||||
"call.exit": 9,
|
||||
"effect": 20,
|
||||
"loop.iteration": 24,
|
||||
"parameter.observed": 13,
|
||||
"return": 9,
|
||||
"run.completed": 1,
|
||||
"run.started": 1,
|
||||
"stdout.chunk": 1,
|
||||
"stream.opened": 1,
|
||||
"variable.assigned": 83
|
||||
},
|
||||
"count": 241,
|
||||
"sequence_sha256": "sha256:d7a9c356294e2ecace0f93b8b65c4eb0555073e1eec4846fb044dd5f395c97bd"
|
||||
},
|
||||
"schema": "marqdo.observation",
|
||||
"status": "ok",
|
||||
"stderr": {
|
||||
"bytes": 0,
|
||||
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
"stdout": {
|
||||
"bytes": 16,
|
||||
"sha256": "sha256:ca03bebeb3052ad7ae18943d04dccb7921e58421c46a2d8db460fbe3e96d9d51"
|
||||
},
|
||||
"terminal": {
|
||||
"status": "ok",
|
||||
"value": {
|
||||
"type": "text",
|
||||
"value": "你好,Marqdo"
|
||||
},
|
||||
"value_type": "Text"
|
||||
}
|
||||
},
|
||||
"schema": "marqdo.perf.expected.v1",
|
||||
"wire_sha256": "sha256:a36f2476e799cc45127ebb31c1a7828115276a6bec39368b6b9f5297b7d16799",
|
||||
"workload": "print-demo"
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
{
|
||||
"measure_argv": [
|
||||
"run",
|
||||
"stdlib/demo.mq.md"
|
||||
],
|
||||
"measure_sha256": "sha256:4f5fcde6b4073511330c50f15bf07db13abc2cf0cf71de777e8e23ca870220fe",
|
||||
"normalized": {
|
||||
"events": {
|
||||
"by_kind": {
|
||||
"branch.eval": 1956,
|
||||
"call.enter": 131,
|
||||
"call.exit": 131,
|
||||
"effect": 404,
|
||||
"loop.iteration": 810,
|
||||
"parameter.observed": 166,
|
||||
"return": 131,
|
||||
"run.completed": 1,
|
||||
"run.started": 1,
|
||||
"stdout.chunk": 6,
|
||||
"stream.opened": 1,
|
||||
"variable.assigned": 2533
|
||||
},
|
||||
"count": 6271,
|
||||
"sequence_sha256": "sha256:e17ea3ebe3ecd40f9e619f06e3bd9d4370d34616caf02a6099bbffe0f686522d"
|
||||
},
|
||||
"schema": "marqdo.observation",
|
||||
"status": "ok",
|
||||
"stderr": {
|
||||
"bytes": 0,
|
||||
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
"stdout": {
|
||||
"bytes": 380,
|
||||
"sha256": "sha256:4f5fcde6b4073511330c50f15bf07db13abc2cf0cf71de777e8e23ca870220fe"
|
||||
},
|
||||
"terminal": {
|
||||
"status": "ok",
|
||||
"value": {
|
||||
"type": "none"
|
||||
},
|
||||
"value_type": "None"
|
||||
}
|
||||
},
|
||||
"schema": "marqdo.perf.expected.v1",
|
||||
"wire_sha256": "sha256:7bed5196b8cd52d1de12561f445bc2271dd5e91ed9c4065ebf79d0cb22d8a826",
|
||||
"workload": "stdlib-print-demo"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
# 打印工作负载
|
||||
|
||||
## @exec main
|
||||
|
||||
**问候 = "你好,Marqdo"**
|
||||
|
||||
> **打印(问候)**
|
||||
|
||||
`return 问候`
|
||||
@@ -123,18 +123,20 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdlib-print-demo",
|
||||
"name": "print-demo",
|
||||
"kind": "run",
|
||||
"source": "stdlib/demo.mq.md",
|
||||
"source": "tools/perf/fixtures/print-demo.mq.md",
|
||||
"argv": [
|
||||
"run",
|
||||
"stdlib/demo.mq.md",
|
||||
"call",
|
||||
"tools/perf/fixtures/print-demo.mq.md",
|
||||
"main",
|
||||
"--output",
|
||||
"json"
|
||||
],
|
||||
"measure_argv": [
|
||||
"run",
|
||||
"stdlib/demo.mq.md"
|
||||
"call",
|
||||
"tools/perf/fixtures/print-demo.mq.md",
|
||||
"main"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -22,7 +22,7 @@ Usage (from the repository root, after
|
||||
|
||||
python3 tools/release/package.py \
|
||||
--source-sha "$(git rev-parse HEAD)" \
|
||||
--version 3.0.0-rc.4 \
|
||||
--version 3.0.0-rc.6 \
|
||||
--stdlib-dir stdlib \
|
||||
--bundle-pin tools/stdlib/bundle-pin.json
|
||||
"""
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Generate the ecosystem release index for a cold-tested CLI archive."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
import tarfile
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
from package import sha256_file
|
||||
|
||||
REPOSITORY = "cflmy/marqdo-cli"
|
||||
FORGE = "https://git.cflmy.cn"
|
||||
CI = "https://ci.cflmy.cn"
|
||||
LIMIT = 1024 * 1024
|
||||
SHA = re.compile(r"[0-9a-f]{40}")
|
||||
COMPONENT_ID = re.compile(r"[a-z][a-z0-9-]*")
|
||||
REQUIRED_STEPS = {"contract", "test", "independent-build", "minimum-rust", "build"}
|
||||
|
||||
|
||||
def read_json(url: str) -> dict:
|
||||
with urllib.request.urlopen(url, timeout=20) as response:
|
||||
data = response.read(LIMIT + 1)
|
||||
if response.geturl() != url or len(data) > LIMIT:
|
||||
raise ValueError("unexpected CI or forge response")
|
||||
return json.loads(data)
|
||||
|
||||
|
||||
def verify_ci(source_sha: str, number: int) -> dict:
|
||||
if number < 1:
|
||||
raise ValueError("pipeline number must be positive")
|
||||
forge = read_json(f"{FORGE}/api/v1/repos/{REPOSITORY}")
|
||||
repo = read_json(f"{CI}/api/repos/lookup/{REPOSITORY}")
|
||||
repo_id = repo.get("id")
|
||||
if (type(forge.get("id")) is not int or type(repo_id) is not int or repo_id < 1
|
||||
or repo.get("full_name") != REPOSITORY
|
||||
or repo.get("forge_remote_id") != str(forge["id"])):
|
||||
raise ValueError("Woodpecker does not identify the canonical CLI repository")
|
||||
pipeline = read_json(f"{CI}/api/repos/{repo_id}/pipelines/{number}")
|
||||
successful = {
|
||||
step["name"]
|
||||
for workflow in pipeline.get("workflows", [])
|
||||
if workflow.get("name") == "main" and workflow.get("state") == "success"
|
||||
for step in workflow.get("children", [])
|
||||
if step.get("state") == "success" and step.get("type") == "commands"
|
||||
}
|
||||
if (pipeline.get("number") != number or pipeline.get("commit") != source_sha
|
||||
or pipeline.get("status") != "success"
|
||||
or pipeline.get("event") not in {"push", "pull_request"}
|
||||
or not REQUIRED_STEPS <= successful):
|
||||
raise ValueError("pipeline did not pass the CLI gates for the archive's exact SHA")
|
||||
return {"pipeline_number": number, "url": f"{CI}/repos/{repo_id}/pipeline/{number}",
|
||||
"source_sha": source_sha}
|
||||
|
||||
|
||||
def archive_info(archive: Path) -> dict:
|
||||
top = archive.name.removesuffix(".tar.gz")
|
||||
names = {f"{top}/RELEASE_INFO.json", f"{top}/SOURCE_SHA"}
|
||||
metadata = {}
|
||||
# Read the two fixed paths without extracting the archive.
|
||||
with tarfile.open(archive, "r|gz") as product:
|
||||
for member in product:
|
||||
if member.name not in names:
|
||||
continue
|
||||
if member.name in metadata or not member.isfile() or member.size > LIMIT:
|
||||
raise ValueError("invalid archive metadata entry")
|
||||
with product.extractfile(member) as file:
|
||||
metadata[member.name] = file.read()
|
||||
if metadata.keys() != names:
|
||||
raise ValueError("archive is missing release metadata")
|
||||
info = json.loads(metadata[f"{top}/RELEASE_INFO.json"])
|
||||
sha = metadata[f"{top}/SOURCE_SHA"].decode("ascii").strip()
|
||||
if (info.get("schema") != "marqdo.release-info" or info.get("schema_version") != 1
|
||||
or info.get("product") != "marqdo-cli" or not SHA.fullmatch(sha)
|
||||
or info.get("source_sha") != sha or info.get("build_profile") != "release"
|
||||
or archive.name != f"marqdo-{info['product_version']}-{info['target_triple']}.tar.gz"):
|
||||
raise ValueError("archive identity disagrees with RELEASE_INFO or SOURCE_SHA")
|
||||
return info
|
||||
|
||||
|
||||
def bundle_dependencies(info: dict, receipt: dict) -> list[dict]:
|
||||
bundle = info["stdlib"]
|
||||
source = bundle.get("source", {})
|
||||
if (source.get("kind") != "ecosystem" or source.get("repository") != "cflmy/marqdo"
|
||||
or not SHA.fullmatch(source.get("commit", ""))
|
||||
or receipt.get("root_commit") != source["commit"]
|
||||
or any(receipt.get(field) != bundle[field]
|
||||
for field in ("name", "version", "tree_digest", "aliases_digest"))):
|
||||
raise ValueError("producer receipt mismatches the Bundle in the archive")
|
||||
components = receipt["components"]
|
||||
if not isinstance(components, list) or not 1 <= len(components) <= 256:
|
||||
raise ValueError("Bundle receipt must identify its contributing components")
|
||||
dependencies = {}
|
||||
for component in components:
|
||||
name, revision = component["id"], component["revision"]
|
||||
if not COMPONENT_ID.fullmatch(name) or name == "cli" or not SHA.fullmatch(revision) or name in dependencies:
|
||||
raise ValueError("invalid or duplicate Bundle component identity")
|
||||
dependencies[name] = revision
|
||||
return [{"id": name, "source_sha": sha} for name, sha in sorted(dependencies.items())]
|
||||
|
||||
|
||||
def evidence(archive: Path, receipt: dict, number: int) -> dict:
|
||||
info = archive_info(archive)
|
||||
dependencies = bundle_dependencies(info, receipt)
|
||||
checksum = archive.with_name(archive.name + ".sha256")
|
||||
digest = sha256_file(archive)
|
||||
if checksum.stat().st_size > LIMIT or checksum.read_text().split() != [digest, archive.name]:
|
||||
raise ValueError("archive checksum disagrees with the release asset")
|
||||
return {
|
||||
"component_id": "cli", "repository": REPOSITORY, "tag": f"v{info['product_version']}",
|
||||
"source_sha": info["source_sha"], "ci": verify_ci(info["source_sha"], number),
|
||||
"assets": [
|
||||
{"name": path.name, "target": info["target_triple"], "size": path.stat().st_size,
|
||||
"sha256": sha}
|
||||
for path, sha in ((archive, digest), (checksum, sha256_file(checksum)))
|
||||
],
|
||||
"dependencies": dependencies,
|
||||
}
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--archive", type=Path, required=True)
|
||||
parser.add_argument("--bundle-receipt", type=Path, required=True)
|
||||
parser.add_argument("--pipeline", type=int, required=True)
|
||||
args = parser.parse_args()
|
||||
try:
|
||||
with args.bundle_receipt.open("rb") as file:
|
||||
data = file.read(LIMIT + 1)
|
||||
if len(data) > LIMIT:
|
||||
raise ValueError("Bundle receipt exceeds size limit")
|
||||
index = evidence(args.archive, json.loads(data), args.pipeline)
|
||||
except (OSError, ValueError, TypeError, KeyError, AttributeError, tarfile.TarError) as error:
|
||||
parser.exit(1, f"release-index: {error}\n")
|
||||
print(json.dumps(index, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -9,7 +9,7 @@ Provider v2 worker (positive, unauthorized and missing-helper fail-closed), and
|
||||
strict mode when the host genuinely supports it.
|
||||
|
||||
Usage:
|
||||
python3 tools/release/smoke.py --archive dist/marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz
|
||||
python3 tools/release/smoke.py --archive dist/marqdo-3.0.0-rc.6-x86_64-unknown-linux-gnu.tar.gz
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
Reference in new issue
Block a user