diff --git a/CHANGELOG.md b/CHANGELOG.md index d841134..ffe4d88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,81 @@ All notable changes to the Marqdo CLI workspace. Product version `2c7c4f31e7a388d3fcfa717a77067e696ed13854` ([release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-beta.1)); the next section collects post-beta -changes. Protocol versions (Analysis v2, Trace v2, Tool v1, Plugin ABI v1, -Foreign wire v1, Provider manifest v2, lock v4) and independent package -versions (including the bundled stdlib `0.1.0`) are versioned separately and -do not follow the product version. Dates use ISO 8601. +changes. Current protocol contracts are Analysis, Observation, CLI Tool, +Plugin ABI v1, Foreign wire v1, Provider manifest v2 and lock v4; independent +package versions (including the bundled stdlib `0.1.0`) are versioned +separately and do not follow the product version. Dates use ISO 8601. + +## 3.0.0-rc.3 (candidate) + +- The Rust workspace, CLI version output and protocol producers report + `3.0.0-rc.3`. The locked workspace requires Rust 1.89 and targets Linux + x86_64 on glibc 2.39. + +### Single current public contracts — issue #8 (breaking) + +Executed policy: [ADR-0068](docs/adr/0068-single-current-public-contracts.md) and +[the protocol convergence policy](docs/architecture/PROTOCOL_CONVERGENCE_POLICY.md). +This is a pre-stable replacement, not a compatibility release. Retired formats +are rejected; there is no legacy reader, alias, fallback, negotiation or +automatic migration. + +- **Analysis has one writer for every project.** `check --emit` always emits + `marqdo.analysis` `schema_version: 3`, including projects without + `break`/`continue`. The content-driven v2/v3 selector is deleted, and the + retired `spec/analysis-v*.md` documents and schemas are removed from the + current tree. Consumers no longer need to branch on the project content. +- **Trace v2 and Execution Events v1 became one Observation contract.** + `run`/`call` emit one `marqdo.observation` `schema_version: 1` event sequence + per execution. `--output jsonl` streams those events, `--output json` and + `--observation-file PATH` publish an atomic snapshot of the same events from + the same execution. `run_id`, `seq`, frame identity, terminal semantics, + capture budgets and privacy rules are defined once in + [`spec/observation.md`](spec/observation.md). The retired `--json`, + `--trace-file` and `--event-stream` options are rejected. +- **CLI Tool requirements are single exact values.** `tool.json` declares + `requires.api_revision` (required) plus optional exact `analysis` and + `observation` integers. Version arrays and intersection negotiation are + removed. Retired manifests and records are rejected with a remove/reinstall + instruction and are never rewritten. +- **Plugin and resource-provider workers share one transport.** Framing, + bounded reads, deadlines, dead-worker quarantine and teardown live in + `marqdo-worker-ipc` ([`spec/worker-ipc.md`](spec/worker-ipc.md)); the invoke + vocabulary, grants, kind rights and error codes stay with each boundary. +- **Extension descriptors and lock keep their current identifiers.** There is + no version renumbering without a shape change: plugin `abi: ^1.0`, provider + `schema_version: 2`, kernel `wire_version: 1` and lock v4 stay current. + Retired provider/kernel/plugin revisions and lock v1–v3 are rejected with an + explicit regeneration/reinstall instruction; no migrator runs. +- **`spec/` now contains only current contracts.** Retired specifications are + available in Git history and tagged archives. ADRs covering retired public + contracts carry a Historical header. + +Migration for consumers: + +1. Re-run `marqdo check --emit` and read `marqdo.analysis` without a version + branch; verify `project`, module ids and source digests. +2. Replace Trace/Event readers with an Observation reader; stream with + `--output jsonl` and/or read `--observation-file`. Verify `run_id`, `seq`, + source binding and the single terminal event. +3. Rewrite `tool.json` to the exact current requirements, rebuild the tool and + `marqdo tool remove` + reinstall. Old registrations are not migrated. +4. Rebuild/reinstall plugins, providers and kernels from their current + descriptors; re-run `marqdo lock` instead of reusing a retired lock. + +### Verification + +- `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets -- -D + warnings`, `cargo test --workspace --locked` pass on the candidate tree. +- Independent consumers (`tests/consumers/analysis_consumer.py`, + `observation_consumer.py`, `validate_protocols.py`) validate real CLI output; + `tests/consumers/observation_consumer.py` checks that stream and snapshot are + the same event sequence. +- `crates/cli/tests/architecture_boundaries.rs` forbids a second worker + framing implementation and pins the workspace layer list; + `docs_consistency` keeps one current overview and resolving links. +- Release evidence for publication still requires the same-SHA CI pipeline and + archive smoke described in [`docs/releasing.md`](docs/releasing.md). ## 3.0.0-rc.2 (candidate) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index d57db89..11b62d4 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -8,7 +8,7 @@ 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.2` candidate targets Linux x86_64 on glibc 2.39 and +The `3.0.0-rc.3` 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. @@ -51,7 +51,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.2` candidate**; they are +These landed after the beta tag and **are included in the `3.0.0-rc.3` 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). @@ -86,7 +86,7 @@ that tool. | 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.2` (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.3` (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/v3 | Projects with loop transfers emit v3. Other projects emit v2. Consumers reject unknown majors. | | Trace | v2 | Binds to the exact Analysis bytes; unknown majors rejected. | diff --git a/Cargo.lock b/Cargo.lock index 39c2a2f..e98b14d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "marqdo-cli" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "clap", "hex", @@ -438,7 +438,7 @@ dependencies = [ [[package]] name = "marqdo-expression" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-span", "num-bigint", @@ -449,7 +449,7 @@ dependencies = [ [[package]] name = "marqdo-foreign" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "hex", "libc", @@ -465,7 +465,7 @@ dependencies = [ [[package]] name = "marqdo-frontend" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-expression", "marqdo-ir", @@ -480,7 +480,7 @@ dependencies = [ [[package]] name = "marqdo-host" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "flate2", "getrandom 0.4.3", @@ -505,7 +505,7 @@ dependencies = [ [[package]] name = "marqdo-ir" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-expression", "marqdo-span", @@ -515,7 +515,7 @@ dependencies = [ [[package]] name = "marqdo-markdown" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "comrak", "marqdo-span", @@ -526,7 +526,7 @@ dependencies = [ [[package]] name = "marqdo-package" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "hex", "semver", @@ -540,7 +540,7 @@ dependencies = [ [[package]] name = "marqdo-plugin-abi" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "hex", "libloading", @@ -556,7 +556,7 @@ dependencies = [ [[package]] name = "marqdo-plugin-sdk" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-plugin-abi", "serde", @@ -565,7 +565,7 @@ dependencies = [ [[package]] name = "marqdo-provider-worker" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "libloading", "marqdo-host", @@ -578,7 +578,7 @@ dependencies = [ [[package]] name = "marqdo-runtime" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-expression", "marqdo-frontend", @@ -597,7 +597,7 @@ dependencies = [ [[package]] name = "marqdo-sandbox" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "libc", "serde", @@ -605,14 +605,14 @@ dependencies = [ [[package]] name = "marqdo-span" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "serde", ] [[package]] name = "marqdo-value" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "marqdo-span", "num-bigint", @@ -623,7 +623,7 @@ dependencies = [ [[package]] name = "marqdo-worker-ipc" -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" dependencies = [ "serde_json", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index b9c7be5..42dac65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ members = [ ] [workspace.package] -version = "3.0.0-rc.2" +version = "3.0.0-rc.3" edition = "2021" rust-version = "1.89" license = "Apache-2.0" diff --git a/README.md b/README.md index 5b25cf9..fe62883 100644 --- a/README.md +++ b/README.md @@ -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.2`** in this checkout. It is **not** a compatibility rewrite of +version **`3.0.0-rc.3`** 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 diff --git a/docs/STATUS.md b/docs/STATUS.md index f28bd75..0f59cc9 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -26,7 +26,7 @@ as current status. ## RC candidate -The workspace reports `3.0.0-rc.2` and declares Rust 1.89 as its locked +The workspace reports `3.0.0-rc.3` 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 @@ -68,6 +68,50 @@ The `spec/` tree contains only current contracts; retired specifications are in Git history and tagged archives. The earlier release records below describe their tagged binaries and are not current protocol claims. +## 0.9 Pre-stable protocol convergence — issue #8 (RC.3 candidate) + +The current tree replaces the retired protocols in place, with no compatibility +path. Policy: [ADR-0068](adr/0068-single-current-public-contracts.md) and +[the convergence policy](architecture/PROTOCOL_CONVERGENCE_POLICY.md). This +section records commands executed on the candidate tree; it is local Linux +evidence, not a same-SHA CI or archive gate. + +Executed 2026-11-24 on Linux x86_64 (workspace `3.0.0-rc.3`, Rust 1.93.1): + +```text +cargo fmt --all -- --check PASS +cargo clippy --workspace --all-targets -- -D warnings PASS +cargo test --workspace --locked PASS: 601 passed, 0 failed, 2 ignored +cargo test -p marqdo-cli --test architecture_boundaries PASS: 12 passed +cargo test -p marqdo-cli --test docs_consistency PASS: 5 passed +cargo test -p marqdo-cli --test observation PASS: 15 passed +cargo test -p marqdo-cli --test analysis_observation PASS: 10 passed +cargo test -p marqdo-cli --test tool_protocol PASS: 7 passed +cargo test -p marqdo-cli --test extension_selection PASS: 14 passed +cargo test -p marqdo-worker-ipc PASS: 5 passed +``` + +Black-box consumer run against the real `target/debug/marqdo`: + +```text +check examples/multi-module/index.mq.md --refs --emit analysis.json schema marqdo.analysis/3 +run examples/multi-module/index.mq.md --observation-file snap.json schema marqdo.observation/1 +validate_protocols.py analysis.json snap.json tool.json PASS (7 modules, 333 events) +analysis_consumer.py analysis.json PASS (32 functions) +observation_consumer.py --snapshot snap.json --analysis analysis.json PASS +check tests/conformance/semantics/85-nested-loop-control.mq.md PASS +run ... --output jsonl --observation-file snapshot 66 events +observation_consumer.py stream.jsonl --validate-schema PASS (3 transfers) +snapshot["events"] == stream lines PASS +observation_consumer.py stream.jsonl --analysis stale-analysis.json rejected +marqdo --version marqdo 3.0.0-rc.3 +``` + +Release status: the tree and developer inputs are ready for `3.0.0-rc.3`, but +publication still requires the same-SHA CI pipeline plus archive/clean-install +smoke bound to that SHA, as required by [`releasing.md`](releasing.md). Do not +tag or publish from this local evidence alone. + ## 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 eea4376..83869a0 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-rc.2`** (Linux x86_64 candidate). +Product version for these docs: **`3.0.0-rc.3`** (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 diff --git a/docs/developers/compatibility.md b/docs/developers/compatibility.md index 4ba55d6..5694c5b 100644 --- a/docs/developers/compatibility.md +++ b/docs/developers/compatibility.md @@ -6,7 +6,7 @@ This page summarizes the public support policy. The authoritative matrix is ## Version axes (do not conflate) -| Axis | `3.0.0-rc.2` value | Change rule | +| Axis | `3.0.0-rc.3` value | Change rule | |---|---|---| | Product / CLI | `3.0.0-rc.2` | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. | | Analysis | v2 | New major for incompatible changes; consumers reject unknown majors. | @@ -42,7 +42,7 @@ grant, values are off by default, and `--mode strict` currently refuses ## Language compatibility -`3.0.0-rc.2` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source +`3.0.0-rc.3` 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 diff --git a/docs/developers/quickstart.md b/docs/developers/quickstart.md index e3820af..da633c0 100644 --- a/docs/developers/quickstart.md +++ b/docs/developers/quickstart.md @@ -1,15 +1,15 @@ # Quickstart: install and run -Product: `3.0.0-rc.2` (Linux x86_64 candidate). Install a **release archive**, not +Product: `3.0.0-rc.3` (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.2-x86_64-unknown-linux-gnu.tar.gz.sha256 -tar -xzf marqdo-3.0.0-rc.2-x86_64-unknown-linux-gnu.tar.gz -cd marqdo-3.0.0-rc.2-x86_64-unknown-linux-gnu -./marqdo --version # marqdo 3.0.0-rc.2 +sha256sum -c marqdo-3.0.0-rc.3-x86_64-unknown-linux-gnu.tar.gz.sha256 +tar -xzf marqdo-3.0.0-rc.3-x86_64-unknown-linux-gnu.tar.gz +cd marqdo-3.0.0-rc.3-x86_64-unknown-linux-gnu +./marqdo --version # marqdo 3.0.0-rc.3 ./marqdo --help ``` diff --git a/docs/developers/release-limits.md b/docs/developers/release-limits.md index 5956136..20334ae 100644 --- a/docs/developers/release-limits.md +++ b/docs/developers/release-limits.md @@ -1,4 +1,4 @@ -# Marqdo 3.0.0-rc.2 — known limitations +# Marqdo 3.0.0-rc.3 — 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. diff --git a/spec/analysis.md b/spec/analysis.md index 83d8f0a..0b5fbbd 100644 --- a/spec/analysis.md +++ b/spec/analysis.md @@ -58,7 +58,7 @@ this load: declared version, content digest and package instance id. It is an Analysis artifact can only name a bundle whose bytes matched the manifest. `AnalysisDigest` is the lowercase hex SHA-256 of the exact UTF-8 bytes written -by `check --emit` (pretty JSON). This is what Trace v2 binds to +by `check --emit` (pretty JSON). This is what Observation binds to `source.analysis_digest`; an independent consumer can verify it by hashing the file. Diagnostics and any configuration options that change the projection are part of that digest. @@ -121,9 +121,9 @@ never allocates a region or executes the write. ## 4. Resources -`resources` is an array, not a count. v2 projects exactly the two resource -kinds represented by `marqdo-ir::Resource`; it does not invent table, HTML or -link resources. +`resources` is an array, not a count. The projection includes exactly the +resource kinds represented by `marqdo-ir::Resource`; it does not invent table, +HTML or link resources. ```json { diff --git a/spec/security.md b/spec/security.md index 20017d1..12bb625 100644 --- a/spec/security.md +++ b/spec/security.md @@ -1,6 +1,6 @@ # Marqdo Security Model (implemented status) -Status: describes enforcement in the `3.0.0-rc.2` candidate. +Status: describes enforcement in the `3.0.0-rc.3` candidate. Normative implementation: diff --git a/tools/release/package.py b/tools/release/package.py index f646c78..b73c241 100644 --- a/tools/release/package.py +++ b/tools/release/package.py @@ -16,7 +16,7 @@ Usage (from the repository root, after python3 tools/release/package.py \ --source-sha "$(git rev-parse HEAD)" \ - --version 3.0.0-rc.2 + --version 3.0.0-rc.3 """ from __future__ import annotations diff --git a/tools/release/smoke.py b/tools/release/smoke.py index 668149a..6bc70c9 100644 --- a/tools/release/smoke.py +++ b/tools/release/smoke.py @@ -3,13 +3,13 @@ Extracts the archive into a fresh temporary directory and exercises the shipped binaries only (never the development source tree): version/help, check/run/call, -lock/sync for a path dependency, Analysis v2/v3 and Trace v2 consumers, Tool +lock/sync for a path dependency, Analysis and Observation consumers, Tool install/dispatch, native and worker plugin transports, foreign kernel, the 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.2-x86_64-unknown-linux-gnu.tar.gz + python3 tools/release/smoke.py --archive dist/marqdo-3.0.0-rc.3-x86_64-unknown-linux-gnu.tar.gz """ from __future__ import annotations