From dd69919b48a69b09e64c8593f0489fdda3f8dcc1 Mon Sep 17 00:00:00 2001 From: cflmy Date: Sun, 22 Nov 2026 22:13:14 +0800 Subject: [PATCH] Document RC protocol scope, strict support and beta migration --- COMPATIBILITY.md | 9 +++++-- crates/marqdo-host/src/capability.rs | 2 +- docs/STATUS.md | 8 ++++++ docs/developers/README.md | 2 +- docs/developers/compatibility.md | 29 ++++++++------------- docs/developers/quickstart.md | 10 ++++---- docs/developers/release-limits.md | 38 +++++++++++++++------------- docs/developers/tools.md | 2 +- spec/security.md | 10 +++----- spec/tool-v1.md | 2 +- 10 files changed, 59 insertions(+), 53 deletions(-) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index a27bd00..077d93f 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -8,6 +8,11 @@ this beta. Executed status and same-SHA evidence are in [`docs/STATUS.md`](docs/STATUS.md), and SHA-bound external evidence is under [`docs/evidence/extension/`](docs/evidence/extension/README.md). +The `3.0.0-rc.1` candidate targets Linux x86_64 on glibc 2.39 and +includes the post-beta changes below. See the +[RC acceptance procedure](docs/releasing.md). The platform evidence table +records the beta and subsequent development verification. + ## Language source syntax (breaking change) **The `.mq.md` source language is a breaking change.** The current contract is @@ -46,7 +51,7 @@ Consequences for compatibility: ## Post-`3.0.0-beta.1` boundary changes (RFC-EXT-0003) -These land after the beta tag and **before any next beta/stable tag**; they are +These landed after the beta tag and **are included in the `3.0.0-rc.1` 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). @@ -65,7 +70,7 @@ evidence: [`docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](docs/evid | 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-beta.1` (prerelease) | 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.1` (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 | v2 | Consumers reject unknown majors; incompatible field changes require v3. | | Trace | v2 | Binds to the exact Analysis bytes; unknown majors rejected. | diff --git a/crates/marqdo-host/src/capability.rs b/crates/marqdo-host/src/capability.rs index 1079dbb..81e1a8d 100644 --- a/crates/marqdo-host/src/capability.rs +++ b/crates/marqdo-host/src/capability.rs @@ -620,7 +620,7 @@ fn validate_handler_name(name: &str) -> Result<(), PluginError> { pub struct Capabilities { /// Write to program standard output (`打印`). pub console: bool, - /// Use the native math kernel. + /// Grant ceiling for the `math.compute` plugin capability. pub math: bool, /// Readable project-relative path patterns. pub fs_read: Vec, diff --git a/docs/STATUS.md b/docs/STATUS.md index e331d56..335d928 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -24,6 +24,14 @@ command, log or source path is a defect, not a state. Historical snapshots [`history/`](history/README.md) and [`evidence/`](evidence/) and must not be read as current status. +## RC candidate + +The workspace reports `3.0.0-rc.1` and declares Rust 1.89 as its locked +minimum. Linux x86_64 on glibc 2.39 is the candidate platform. The +[release procedure](releasing.md) requires a green manifest bound to the +candidate SHA before publication. The release record below refers to the +published beta. + ## 0. Beta release record — `3.0.0-beta.1` ### 0.1 Product, version axes and scope diff --git a/docs/developers/README.md b/docs/developers/README.md index 4fe4b60..65c4268 100644 --- a/docs/developers/README.md +++ b/docs/developers/README.md @@ -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-beta.1`** (Linux x86_64 beta). +Product version for these docs: **`3.0.0-rc.1`** (Linux x86_64 candidate). Protocol versions are independent: Analysis v2, Trace v2, Execution Events v1, Tool v1, Plugin ABI v1, Foreign wire v1, Provider manifest v2, lock v4, markdown profile `marqdo.md.v1`. diff --git a/docs/developers/compatibility.md b/docs/developers/compatibility.md index fbd1b39..a7a8b9a 100644 --- a/docs/developers/compatibility.md +++ b/docs/developers/compatibility.md @@ -6,9 +6,9 @@ This page summarizes the public support policy. The authoritative matrix is ## Version axes (do not conflate) -| Axis | `3.0.0-beta.1` value | Change rule | +| Axis | `3.0.0-rc.1` value | Change rule | |---|---|---| -| Product / CLI | `3.0.0-beta.1` | SemVer prerelease; breaking changes inside the 3.0 beta line are allowed and appear in `CHANGELOG.md`. | +| Product / CLI | `3.0.0-rc.1` | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. | | Analysis | v2 | New major for incompatible changes; consumers reject unknown majors. | | Trace | v2 | New major for incompatible changes; binds to exact Analysis bytes. | | Execution Events | v1 | One-line NDJSON stream; new major for incompatible required-field/ordering/redaction changes. Consumers reject unknown majors. | @@ -22,14 +22,14 @@ This page summarizes the public support policy. The authoritative matrix is | Plugin/tool/example packages | their own | Independent SemVer. | `project.marqdo` and a tool's `compatibility.marqdo` are **enforced product -ranges**. Beta cores require a prerelease range such as -`>=3.0.0-beta.1,<4.0.0`; `>=3.0.0,<4.0.0` does not match a beta core. +ranges**. Prerelease cores require a prerelease range such as +`>=3.0.0-beta.1,<4.0.0`; `>=3.0.0,<4.0.0` does not match the RC. -## Platform support (`3.0.0-beta.1`) +## Candidate platform scope | Platform | Release status | Notes | |---|---|---| -| Linux x86_64 (glibc) | **Supported** | Only release archive: CLI + provider worker, same target triple. | +| Linux x86_64 (glibc 2.39 baseline) | **RC target** | Only release archive: CLI + provider worker, same target triple. | | Linux aarch64 | Not built | No artifact; source may build. | | macOS arm64/x86_64 | Experimental, not claimed | Core may run; no macOS provider worker, no plugin ABI claim, no archive. | | Windows x86_64 | Experimental, not claimed | Compile gate only; C ABI/plugin/provider/worker not claimed/fail-closed. | @@ -42,7 +42,7 @@ grant, values are off by default, and `--mode strict` currently refuses ## Language compatibility -`3.0.0-beta.1` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source +`3.0.0-rc.1` 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 @@ -52,15 +52,8 @@ The earlier `cflmy/marqdo` product line is a different architecture; its source syntax, package format and plugin ABI v2 are not compatible and no hidden compatibility layer is provided. -## Beta policy +## RC policy -- Beta may break behavior with a changelog note; protocols are versioned - separately and only change with a new major. -- No LTS is announced. LTS is a later, evidence-based decision (see the - prerelease plan §3.2/§5), not a calendar promise. -- Known non-security gaps are listed in [release-limits.md](release-limits.md) - and in the release notes; unsupported requests must fail closed. -- G4 performance is a Beta-only `WARN` on the fixed Woodpecker agent for this - release; it is not a general performance guarantee. -- Every archive is checksummed and records its source SHA and toolchain. - Checksums prove integrity only, not publisher identity. +- See [release gates](../releasing.md) for the Linux RC acceptance procedure. +- [Known limitations](release-limits.md) ship with the archive. +- Every archive records its checksum, source SHA and toolchain. diff --git a/docs/developers/quickstart.md b/docs/developers/quickstart.md index 0d1eefc..558c8fe 100644 --- a/docs/developers/quickstart.md +++ b/docs/developers/quickstart.md @@ -1,15 +1,15 @@ # Quickstart: install and run -Product: `3.0.0-beta.1` (Linux x86_64 beta). Install a **release archive**, not +Product: `3.0.0-rc.1` (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-beta.1-x86_64-unknown-linux-gnu.tar.gz.sha256 -tar -xzf marqdo-3.0.0-beta.1-x86_64-unknown-linux-gnu.tar.gz -cd marqdo-3.0.0-beta.1-x86_64-unknown-linux-gnu -./marqdo --version # marqdo 3.0.0-beta.1 +sha256sum -c marqdo-3.0.0-rc.1-x86_64-unknown-linux-gnu.tar.gz.sha256 +tar -xzf marqdo-3.0.0-rc.1-x86_64-unknown-linux-gnu.tar.gz +cd marqdo-3.0.0-rc.1-x86_64-unknown-linux-gnu +./marqdo --version # marqdo 3.0.0-rc.1 ./marqdo --help ``` diff --git a/docs/developers/release-limits.md b/docs/developers/release-limits.md index 81ef9c0..a1d0e28 100644 --- a/docs/developers/release-limits.md +++ b/docs/developers/release-limits.md @@ -1,14 +1,14 @@ -# Marqdo 3.0.0-beta.1 — known limitations +# Marqdo 3.0.0-rc.1 — known limitations This file ships in the release archive as `KNOWN_LIMITATIONS.md`. It is part of -the release record: the beta support claim is exactly what is written here. +the release record: it defines the platform and feature scope for the release candidate. Items marked **unsupported** must fail closed, not be silently emulated. ## Platform support -| Platform | Beta status | Notes | +| Platform | RC scope | Notes | |---|---|---| -| Linux x86_64 (glibc) | **Supported release platform** | The archived `marqdo` and `marqdo-provider-worker` binaries target `x86_64-unknown-linux-gnu` and are the only binaries this release claims. | +| Linux x86_64 (glibc 2.39 baseline) | **Supported release platform** | The archived `marqdo` and `marqdo-provider-worker` binaries target `x86_64-unknown-linux-gnu` and are the only binaries this release claims. | | Linux aarch64 | Not built | No release artifact; source may build. | | macOS (arm64/x86_64) | Experimental, not claimed | Core CLI may work, but no macOS provider worker, no native plugin ABI claim and no macOS release artifact. | | Windows x86_64 | Experimental, not claimed | Core CLI may compile/run; the plugin/provider C ABI and provider worker are not claimed. | @@ -19,14 +19,13 @@ user and is not a security boundary against hostile code. ## `strict` isolation -`strict` is Linux-only and probe-gated. The beta release claims it only when the -same-SHA G3 evidence recorded in `docs/evidence/` is present; otherwise this file -and the release notes must say **strict: unsupported** and the runtime must fail -closed (no project code executes). +`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. Even when available: -* strict L1 covers the pure language plus native Math; +* strict L1 covers the interpreter, console and read-only bundled stdlib; * strict L2 (Worker/Foreign/Provider inside strict) is **unsupported** and every such flag is refused with exit 2; * rlimits are used for resource limits, not cgroup-v2 accounting; @@ -58,18 +57,14 @@ Even when available: ## Compatibility and versioning -* `3.0.0-beta.1` is a **prerelease**, not stable and not LTS. Breaking changes - inside the 3.0 beta series are allowed and announced in the changelog. +* `3.0.0-rc.1` is a **prerelease**. The changelog lists changes from the beta. * The product version is independent of protocol versions: Analysis v2, Trace v2, Execution Events v1, Tool v1, Plugin ABI v1, Foreign wire v1, Provider - manifest v2 and lock v4 keep their own major numbers. Do not infer them from - `3.0.0-beta.1`. Execution Events v1 is a post-beta addition and is not in the - tagged beta archive. + manifest v2 and lock v4 keep their own major numbers. * The official bundled stdlib keeps its independent package version `0.1.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 beta core; - beta users must declare a prerelease range such as + 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 `>=3.0.0-beta.1,<4.0.0`. * Old `cflmy/marqdo` source syntax, package format and plugin ABI v2 are not compatible. There is no `--legacy` or downgrade path; migration is a separate @@ -82,7 +77,7 @@ Archives are accompanied by SHA256 checksums and `RELEASE_INFO.json` integrity only; they are **not** a publisher signature. A digest obtained from an untrusted Git URL does not make the code trustworthy. -## Execution Events v1 (post-beta addition) +## Execution Events v1 * Implemented: live stdout/stderr chunks, lifecycle/terminal events, call instance ids, branch/loop/effect events, explicit bounded value observation. @@ -92,7 +87,7 @@ an untrusted Git URL does not make the code trustworthy. * `--mode strict` currently rejects `--event-stream` explicitly; there is no silent fallback to `project`. * The live lane is tested on Linux x86_64; macOS/Windows are unverified for - this option like the rest of the beta CLI. + this option for this candidate. * In-process native plugins are rejected in event mode (`ext.event_stream_unsupported_native_plugin`) because they share the process and can write the protocol fd directly; worker plugins remain usable. @@ -106,3 +101,10 @@ environment creation, a distributed package registry, JIT execution, built-in Knowledge/Proof/View commands, a mature async/concurrency model, and platform installers. The planned direction is external Tool repositories consuming the public protocols, not new core commands. + +## Beta migration + +The former core `math.*` calls fail static validation with `symbol.unknown`. +Use a pure `.mq.md` library or an explicitly selected ABI backend. See +[the math library migration](libraries.md). +Task/Channel and Resource Control are outside this RC's protocol scope. diff --git a/docs/developers/tools.md b/docs/developers/tools.md index 12ddb1f..aa287db 100644 --- a/docs/developers/tools.md +++ b/docs/developers/tools.md @@ -20,7 +20,7 @@ marqdo-view/ examples/ ``` -`tool.json` for the `3.0.0-beta.1` product line: +`tool.json` for the `3.0.0-rc.1` candidate: ```json { diff --git a/spec/security.md b/spec/security.md index a5facf4..7feb1f0 100644 --- a/spec/security.md +++ b/spec/security.md @@ -1,7 +1,6 @@ # Marqdo Security Model (implemented status) -Status: **describes the `3.0.0-beta.1` implementation, including honest gaps.** This is -not a security audit; it documents what the code actually enforces. +Status: describes enforcement in the `3.0.0-rc.1` candidate. Normative implementation: @@ -14,7 +13,7 @@ Normative implementation: | Project-rooted filesystem | `crates/marqdo-host/src/fs.rs` | | Budgets | `crates/marqdo-host/src/budget.rs` | | Effect tracing | `crates/marqdo-host/src/trace.rs` | -| Math/foreign adapters | `crates/marqdo-host/src/kernels.rs` | +| Foreign adapter | `crates/marqdo-host/src/kernels.rs` | | Foreign child processes | `crates/marqdo-foreign/src/lib.rs` | | Plugin loading / in-process plugin calls | `crates/marqdo-host/src/host.rs` (`load_plugin`, `op_plugin_invoke`), `crates/marqdo-plugin-abi/src/loader.rs` | | CLI flags and capability construction | `crates/cli/src/main.rs`, `crates/cli/src/commands.rs` | @@ -29,7 +28,7 @@ Normative implementation: |---|---|---| | `pure` | No external I/O; memory computation and budgets only. | **Enforced.** `Capabilities::pure()` = `console`, `math` only; every FS/foreign/plugin grant flag makes the CLI exit 2 with "pure mode prohibits external I/O grants". | | `project` | Operator-approved project resources under `CapabilityHost` + bounded resources. | **Enforced for the implemented operations.** Defaults equal `pure`; `--allow-read`, `--allow-write`, `--allow-net`, `--allow-env`, `--allow-process`, `--allow-random`, `--allow-foreign`, `--allow-plugin` add grants. `resource.open` supports stdin read, separate stdout/stderr write, granted project-file read/write (ADR-0025/0026/0040), granted in-process provider kinds (ADR-0033) and granted TCP/UDP/listener/TLS streams, including DNS names after an exact host grant (ADR-0034/0047/0048); process/device remain unsupported. Sandboxing is cooperative (in-process checks), not OS isolation; in-process providers are trusted, not sandboxed. | -| `strict` | Untrusted documents under real OS isolation. | **Linux: enforced when the runtime probe passes (ADR-0021).** `resource.open` is **refused** in strict except for the existing `stdio/stdout` console channel (console grant); stdin/stderr, file/TCP/provider/process resources remain refused until a provider passes the isolation lane (CM-A11, ADR-0030/0034/0040). `PlatformCapabilities::detect()` runs a real Bubblewrap smoke test; success reports `Available { mechanism }`, failure reports `Unavailable { reason }`. Strict L1 supports the interpreter, console, native Math and the read-only bundled stdlib (published at `/run/marqdo-stdlib` for the Compat-C print chain); `--allow-read/--allow-write/--allow-net/--allow-env/--allow-process/--allow-random/--allow-foreign/--allow-plugin/--plugin/--trust-native-plugin/--kernel/--trace-file` are rejected with exit 2. macOS/Windows and Linux hosts without the mechanisms remain `Unavailable`; there is **no fallback** to an unrestricted process. | +| `strict` | Untrusted documents under real OS isolation. | **Linux: enforced when the runtime probe passes (ADR-0021).** `resource.open` is **refused** in strict except for the existing `stdio/stdout` console channel (console grant); stdin/stderr, file/TCP/provider/process resources remain refused until a provider passes the isolation lane (CM-A11, ADR-0030/0034/0040). `PlatformCapabilities::detect()` runs a real Bubblewrap smoke test; success reports `Available { mechanism }`, failure reports `Unavailable { reason }`. Strict L1 supports the interpreter, console and the read-only bundled stdlib (published at `/run/marqdo-stdlib` for the Compat-C print chain); `--allow-read/--allow-write/--allow-net/--allow-env/--allow-process/--allow-random/--allow-foreign/--allow-plugin/--plugin/--trust-native-plugin/--kernel/--trace-file` are rejected with exit 2. macOS/Windows and Linux hosts without the mechanisms remain `Unavailable`; there is **no fallback** to an unrestricted process. | `marqdo inspect --platform` prints the detection report, for example: @@ -92,7 +91,7 @@ set for one run: | Field | Default (`pure`/`project`) | Used by | |---|---|---| | `console: bool` | `true` | `resource.open("stdio","stdin",["read"])`, `resource.open("stdio","stdout"/"stderr",["write"])` and the stdlib console chain; a missing grant is `permission.denied` and stdout/stderr are also bounded by the output budget | -| `math: bool` | `true` | `math.*` host ops | +| `math: bool` | `true` | Grant ceiling for the `math.compute` plugin capability, subject to package, policy and installed handler checks | | `fs_read: Vec` | empty | `fs.read` and project `resource.open("file", path, ["read"])` | | `fs_write: Vec` | empty | `fs.write` and project `resource.open("file", path, ["write"])` | | `net_hosts: Vec` | empty | exact host/IP grants for `resource.open("tcp"|"udp"|"tcp-listener"|"tls", "host:port", ...)`; DNS is resolved only after the host grant; TLS still validates certificates; `--allow-net ` adds a grant (ADR-0034/0047/0048) | @@ -171,7 +170,6 @@ before reading. Full symlink/race hardening is an open P4 item. * `resource.request("random.bytes")` → `capabilities.check_random` before `getrandom::fill`; * `fs.write` → `check_write` then `ProjectFs::write`; -* math ops → `capabilities.math` (in `crates/marqdo-host/src/kernels.rs`); * foreign ops → `capabilities.check_foreign` (requires `foreign && process`); * plugin invoke → the **complete export name** must be registered, then `capabilities.check_plugin(package)` on **every call**; loading also checks diff --git a/spec/tool-v1.md b/spec/tool-v1.md index 0b4558e..3de2398 100644 --- a/spec/tool-v1.md +++ b/spec/tool-v1.md @@ -1,6 +1,6 @@ # Marqdo CLI Tool Protocol v1 — 通用外部工具协议 -> 状态:**Implemented / frozen protocol v1**(产品 `3.0.0-beta.1`)。核心根命令同样优先;任何官方/第三方工具一视同仁;该协议**不是** C ABI 插件协议。安装、校验、分发与协议协商均已实现并由 `crates/cli/tests/tool_protocol.rs` 覆盖。 +> 状态:**Implemented / frozen protocol v1**(独立于产品版本)。核心根命令同样优先;任何官方/第三方工具一视同仁;该协议**不是** C ABI 插件协议。安装、校验、分发与协议协商均已实现并由 `crates/cli/tests/tool_protocol.rs` 覆盖。 ## 1. 范围与不变量