Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c6e2c6509 | ||
|
|
c96589a3c5 | ||
|
|
0973241a1f | ||
|
|
6cfdd811b4 |
No files matched your search
+11
-3
@@ -26,9 +26,17 @@ 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
|
||||
- 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
|
||||
node_version=22.23.5
|
||||
curl -fsSL --retry 5 --retry-delay 5 "https://cdn.npmmirror.com/binaries/node/v${node_version}/node-v${node_version}-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
|
||||
|
||||
@@ -15,9 +15,8 @@ steps:
|
||||
- cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
- |
|
||||
set -eu
|
||||
# Baseline is the previous published release (rc.4), not the pre-external-
|
||||
# Bundle beta: both the harness and the workload sources must be identical.
|
||||
baseline_sha=452e9a32bd9e40dba427d4180691c58bab74449e
|
||||
# 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)"
|
||||
@@ -46,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 \
|
||||
|
||||
@@ -15,6 +15,14 @@ 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).
|
||||
|
||||
+22
-24
@@ -1,21 +1,21 @@
|
||||
# Compatibility and support matrix
|
||||
|
||||
Snapshot: product version **`3.0.0-rc.5`** (prerelease, released 2026-11-27).
|
||||
Tag `v3.0.0-rc.5` on the tagged release commit; release
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5. The previous
|
||||
release is `3.0.0-rc.4` at source SHA
|
||||
`452e9a32bd9e40dba427d4180691c58bab74449e`; its evidence remains under
|
||||
[`docs/evidence/`](docs/evidence/2026-11-25-rc.4-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.5` 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)
|
||||
|
||||
@@ -55,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.5` 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).
|
||||
|
||||
@@ -90,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.5` (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). |
|
||||
@@ -138,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)
|
||||
@@ -198,18 +198,16 @@ the Windows C ABI/provider paths remain fail-closed.
|
||||
|
||||
## Release decision
|
||||
|
||||
**`3.0.0-rc.5` 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. This cycle's external-Bundle migration was verified with
|
||||
deterministic archive builds, the archive-only Ubuntu 24.04 cold install, the
|
||||
three migrated extensions and frozen external conformance. Known limitations are
|
||||
recorded in the release notes: the disposable-VM strict L1 lane could not run in
|
||||
the release environment (UNVERIFIED, no PASS claimed) and the paired shared-node
|
||||
G4 result is below the regression thresholds but not an approved-node PASS. 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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"hex",
|
||||
@@ -439,7 +439,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-expression"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"libc",
|
||||
@@ -466,7 +466,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-frontend"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"comrak",
|
||||
"marqdo-span",
|
||||
@@ -539,7 +539,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-package"
|
||||
version = "3.0.0-rc.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"semver",
|
||||
@@ -553,7 +553,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-abi"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"libloading",
|
||||
"marqdo-host",
|
||||
@@ -586,7 +586,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-runtime"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"serde",
|
||||
@@ -614,14 +614,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-span"
|
||||
version = "3.0.0-rc.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde_json",
|
||||
"thiserror",
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "3.0.0-rc.5"
|
||||
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.5`** 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.5` prerelease** —
|
||||
> [release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5),
|
||||
> **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.4` —
|
||||
> [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
|
||||
> 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
|
||||
|
||||
+23
-23
@@ -1,17 +1,16 @@
|
||||
# Marqdo Implementation Status
|
||||
|
||||
Snapshot: **2026-11-27**, product version **`3.0.0-rc.5`** (prerelease,
|
||||
released). Tag `v3.0.0-rc.5` on the tagged release commit; release:
|
||||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.5. The previous release is `3.0.0-rc.4` at source SHA
|
||||
**`452e9a32bd9e40dba427d4180691c58bab74449e`**; 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).
|
||||
@@ -20,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
|
||||
@@ -32,15 +32,15 @@ as current status.
|
||||
|
||||
## RC candidate
|
||||
|
||||
The workspace reports `3.0.0-rc.5` and declares Rust 1.89 as its locked
|
||||
minimum. Linux x86_64 on glibc 2.39 is the supported platform. rc.5 moves the
|
||||
standard library to one external Bundle (CLI Phase B, no in-repo `stdlib/` tree)
|
||||
and is released with deterministic archive builds, the archive-only Ubuntu 24.04
|
||||
cold install, the three migrated extensions and frozen external conformance.
|
||||
Known limitations are explicit in the release notes: strict L1 could not run in
|
||||
the release environment (UNVERIFIED; no PASS claimed) and the paired shared-node
|
||||
G4 comparison is below thresholds but not an approved-node PASS. Stable/LTS
|
||||
still requires a dedicated fixed node and the remaining strict gates. The
|
||||
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
|
||||
|
||||
@@ -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.5`; same-SHA evidence in `../STATUS.md` and `../evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`).
|
||||
- Baseline: the tagged `v3.0.0-rc.6` release candidate (2026-11-28); same-SHA evidence is 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.5`.
|
||||
* 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.5`** (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.5` value | Change rule |
|
||||
| Axis | `3.0.0-rc.6` value | Change rule |
|
||||
|---|---|---|
|
||||
| Product / CLI | `3.0.0-rc.5` (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.5` 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.5` (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.5-x86_64-unknown-linux-gnu.tar.gz.sha256
|
||||
tar -xzf marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu.tar.gz
|
||||
cd marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu
|
||||
./marqdo --version # marqdo 3.0.0-rc.5
|
||||
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.5 — 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.5` 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.5` candidate:
|
||||
`tool.json` for the `3.0.0-rc.6` candidate:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
+10
-3
@@ -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.
|
||||
|
||||
+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.5` 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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"comrak",
|
||||
"marqdo-span",
|
||||
@@ -224,7 +224,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-runtime"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.5"
|
||||
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.5"
|
||||
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.5"
|
||||
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.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.5"
|
||||
version = "3.0.0-rc.6"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
|
||||
@@ -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.5"}},
|
||||
"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:
|
||||
|
||||
@@ -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.5 \
|
||||
--version 3.0.0-rc.6 \
|
||||
--stdlib-dir stdlib \
|
||||
--bundle-pin tools/stdlib/bundle-pin.json
|
||||
"""
|
||||
|
||||
@@ -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.5-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