From 847cf9fe3314fa4b479b161e9433a7489cf13bdf Mon Sep 17 00:00:00 2001 From: cflmy Date: Tue, 24 Nov 2026 20:59:50 +0800 Subject: [PATCH] docs: record the rc.3 release record, licensing and CI lanes truthfully - CHANGELOG: add the Apache-2.0-only licensing change, the removed --trace path, the contract/test CI split with the checked-in stream verifier, the analysis-observation rename, and the post-review fixes; replace the stale pipeline #70/archive claim with the evidence-bound wording. - docs/ci.md: describe the actual contract, test, minimum-rust and build lanes, the manual performance workflow and the new docs gate. - Annotate RFC-OBS-0001, ADR-0059 and the Execution Events evidence as historical so their retired spec references are not read as current. --- CHANGELOG.md | 64 ++++++++++++++----- ...time-observability-and-execution-events.md | 7 +- .../RFC-OBS-0001-runtime-observability.md | 8 +-- docs/ci.md | 47 +++++++------- .../2026-11-22-execution-events-v1.md | 5 +- 5 files changed, 85 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f59546c..6228867 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,27 @@ # Changelog -All notable changes to the Marqdo CLI workspace. Product version -`3.0.0-beta.1` was tagged on 2026-11-22 at source -`2c7c4f31e7a388d3fcfa717a77067e696ed13854` -([release](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-beta.1)); -the next section collects post-beta -changes. Current protocol contracts are Analysis, Observation, CLI Tool, +All notable changes to the Marqdo CLI workspace. Published prereleases: +`3.0.0-beta.1` (2026-11-22, source +`2c7c4f31e7a388d3fcfa717a77067e696ed13854`), +`3.0.0-rc.1` (source `f7a5a7b0163bf5229ed09adfffd892f9899e6667`) and +`3.0.0-rc.2` (source `9149ee40a48fcda692c5c112f66c465487d13dfb`); the next +section collects changes for the current `3.0.0-rc.3` candidate. 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 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.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. +- **Licensing:** the workspace is now Apache-2.0 only. `Cargo.toml` declares + `license = "Apache-2.0"` and the dual-licensed `LICENSE-MIT` file is removed; + the archive ships `LICENSE-APACHE` only. This is a repository-licensing + change, not a protocol or language change. ### Single current public contracts — issue #8 (breaking) @@ -36,7 +43,9 @@ automatic migration. 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. + `--trace-file`, `--event-stream` and `--trace` options are rejected, and the + in-process effect-trace document is gone: effects are `effect` observation + events. - **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 @@ -53,7 +62,30 @@ automatic migration. 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. + contracts carry a Historical header. `docs/developers/analysis-trace.md` was + replaced by `analysis-observation.md`. +- **CI is a protocol consumer.** A fast `contract` lane builds both shipped + binaries and drives the real CLI through the independent Python consumers, + while the full `test` lane runs fmt/clippy/tests/docs/architecture gates. + `tools/ci/verify_observation_stream.py` (checked in, unit-tested) asserts + that one run's JSONL stream and JSON snapshot are the same event sequence. + +### Review fixes after the first candidate build + +- A rejected strict observation destination no longer emits a partial JSONL + stream: `--output jsonl` and `--observation-file` are refused before any + session opens. +- `check --emit` removes a previous Analysis artifact when the project cannot + be loaded, not only when it has compile errors. +- Filesystem resource requests report their concrete effect operation + (`fs.exists`, `fs.metadata`, `fs.list`, `fs.mkdir`, `fs.remove`, + `fs.rename`) instead of a generic `resource.request`. +- The shared worker transport preserves the plugin ABI frame codes + `worker_frame_too_large` and `worker_encode_failed`. +- The event and snapshot schemas agree on the capture `level` enum. +- The G4 workload catalogue uses `run`/`call --output json` and pins the + current snapshot in its correctness digest; the previously retired `--json` + flag made every non-check workload fail correctness verification. Migration for consumers: @@ -78,13 +110,15 @@ Migration for consumers: - `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. -- Same-SHA Linux CI [pipeline #70](https://ci.cflmy.cn/repos/1/pipeline/70) - passed all lanes, produced archive sha256 - `d6ef6297a7ba5297af758a0b00da5c6e0f4b69f40363afc4ddc180654e70ac37`, passed - the from-archive smoke and the frozen external conformance suite 7/7 with - fixtures at `015ff8ac15417b7ebbdb31ce2be2dab5362a1eba`. -- Publication still requires the RC strict-VM and G4 performance evidence - described in [`docs/releasing.md`](docs/releasing.md). +- Same-SHA Linux CI, the deterministic archive build, the from-archive smoke, + the cold-install container check and the frozen external conformance suite + (fixtures at `015ff8ac15417b7ebbdb31ce2be2dab5362a1eba`) are recorded in the + per-gate evidence bound to the release SHA; see + [`docs/releasing.md`](docs/releasing.md) and [`docs/STATUS.md`](docs/STATUS.md). +- The RC strict-L1 disposable-VM lane and the G4 shared-node comparison + (maintainer-approved `WARN` for this named RC, with the environment and + limits recorded in the release notes) complete the RC gate set; the archive + sha256 for the tagged SHA is published with the release assets. ## 3.0.0-rc.2 (candidate) diff --git a/docs/adr/0059-runtime-observability-and-execution-events.md b/docs/adr/0059-runtime-observability-and-execution-events.md index badda6e..a00b9cc 100644 --- a/docs/adr/0059-runtime-observability-and-execution-events.md +++ b/docs/adr/0059-runtime-observability-and-execution-events.md @@ -6,9 +6,10 @@ - **Status:** Accepted - **Date:** 2026-11-22 - **Decision owners:** CLI, runtime and host maintainers -- **Inputs:** [RFC-OBS-0001](../architecture/RFC-OBS-0001-runtime-observability.md) - (issue `#1` of `cflmy/marqdo-cli`), [Trace v2](../../spec/trace-v2.md), - [Analysis v2](../../spec/analysis-v2.md), [Tool Protocol v1](../../spec/tool-v1.md) +- **Inputs:** RFC-OBS-0001 (issue `#1` of `cflmy/marqdo-cli`), Trace v2, + Analysis v2 and Tool Protocol v1. Those documents were retired in place by + [ADR-0068](0068-single-current-public-contracts.md) and are available at + their tagged commits, not in the current `spec/` tree. ## Context diff --git a/docs/architecture/RFC-OBS-0001-runtime-observability.md b/docs/architecture/RFC-OBS-0001-runtime-observability.md index 8124afe..5e025d0 100644 --- a/docs/architecture/RFC-OBS-0001-runtime-observability.md +++ b/docs/architecture/RFC-OBS-0001-runtime-observability.md @@ -1,9 +1,9 @@ # RFC-OBS-0001: Runtime observability and real-time execution events -> **Status:** Accepted and implemented at the level recorded in -> [`docs/STATUS.md`](../STATUS.md); this file is the frozen design input. -> The normative protocol contract is -> [`spec/execution-events-v1.md`](../../spec/execution-events-v1.md). +> **Status:** Historical design input. [ADR-0068](../adr/0068-single-current-public-contracts.md) +> replaced Execution Events v1 and Trace v2 with the single current +> [Observation contract](../../spec/observation.md); the retired spec named +> below exists only in Git history and in tagged archives. > > **Source:** issue `#1` of `cflmy/marqdo-cli`, filed 2026-11-22 against > `master@eeea01d672c07b6be7d6444031d1619309dc88ab`. It is reproduced here so diff --git a/docs/ci.md b/docs/ci.md index 18d80d4..0457026 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -18,52 +18,55 @@ and the Windows cross-target compile check; `build` packages the archive, runs the from-archive smoke and the frozen external conformance suite. ```text -contract: +contract (rust:1.100-bookworm, python3-jsonschema, both shipped binaries): cargo build --locked -p marqdo-cli -p marqdo-provider-worker real CLI check/run over the Observation fixtures analysis_consumer / observation_consumer / validate_protocols - stream==snapshot assertion and stale-Analysis rejection + stream==snapshot assertion (tools/ci/verify_observation_stream.py) + stale-Analysis rejection -test: - rustup component add clippy rustfmt - apt install curl/ca-certificates/python3/python3-jsonschema + Node.js 22 +test (rust:1.100-bookworm, clippy/rustfmt, Node.js 22, MinGW, both binaries): cargo fmt --all -- --check cargo clippy --workspace --all-targets -- -D warnings - cargo build --locked -p marqdo-cli -p marqdo-provider-worker + cargo build --locked -p marqdo-provider-worker cargo test --workspace --locked - check + run tests/consumers/fixtures/observation/basic.mq.md - analysis_consumer.py / observation_consumer.py (stream + snapshot) - check + run the nested-loop control-flow conformance fixture - validate_protocols.py / analysis_consumer.py --require-transfers - observation_consumer.py (stream, snapshot, stale-Analysis rejection) - stream JSONL == snapshot events (tools/ci/verify_observation_stream.py) - cargo test -p marqdo-cli --test docs_consistency - cargo test -p marqdo-cli --test architecture_boundaries - cargo test -p marqdo-cli --test stdlib_product + docs_consistency / architecture_boundaries / stdlib_product python3 -m unittest discover -s tools/ci -p "test_*.py" rustup target add x86_64-pc-windows-gnu cargo check --workspace --all-targets --target x86_64-pc-windows-gnu -build (depends on test): +minimum-rust (rust:1.89-bookworm): + cargo check --locked --workspace --all-targets + +build (depends on test, minimum-rust, contract): cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker - package + cold-install smoke (current Analysis/Observation contracts) + package the deterministic archive for $CI_COMMIT_SHA + from-archive smoke (tools/release/smoke.py) + frozen external conformance (tools/ci/run_frozen_extensions.sh, 7/7) ``` +A separate manual workflow, [`.woodpecker/performance.yml`](../.woodpecker/performance.yml), +builds the beta baseline and the candidate archive on the shared Woodpecker +agent and records the nine G4 comparisons. Its reports stay `SMOKE`; only the +maintainer-approved RC `WARN` exception can use them (see +[`releasing.md`](releasing.md) and [`performance.md`](performance.md)). + The pipeline is a protocol consumer itself: it must exercise only the current Analysis and Observation contracts. `docs_consistency::ci_configuration_uses_only_current_protocols` -fails if a retired option or consumer name returns. +fails if a retired option or consumer name returns, and +`current_contract_documents_do_not_reference_retired_interfaces` extends the +same rule to `spec/` and the current developer guides. Node.js 22 is required because the optional foreign-kernel tests use ES-module syntax; Debian bookworm's Node 18 fails those tests. > **Language contract note.** `cargo test --workspace` includes conformance > fixtures that execute `.mq.md` source under -> [RFC-LANG-0002](architecture/RFC-LANG-0002-unified-semantics.md). The -> implementation, stdlib digest and corpus are green at `ffd1cc9`; a red +> [RFC-LANG-0002](architecture/RFC-LANG-0002-unified-semantics.md). A red > executable-source suite is a real regression, not an expected migration > state. Do not "fix" it by restoring the old mapper or regenerating goldens; -> see [`STATUS.md`](STATUS.md). The pipeline definition itself -> (fmt/clippy/test/build, security lane, platform gaps) is unchanged. +> see [`STATUS.md`](STATUS.md). The lanes above are the current definition; it +> changes only with this document. ## What this pipeline does not cover diff --git a/docs/evidence/2026-11-22-execution-events-v1.md b/docs/evidence/2026-11-22-execution-events-v1.md index 2dba90b..58ad32f 100644 --- a/docs/evidence/2026-11-22-execution-events-v1.md +++ b/docs/evidence/2026-11-22-execution-events-v1.md @@ -6,8 +6,9 @@ - **Source SHA:** `1d3dca7c1832eb9468e96384d9805a3812a303e4` (post-beta tree; the tagged beta is `2c7c4f31e7a388d3fcfa717a77067e696ed13854` and does **not** contain this feature). -- **Normative contract:** [`spec/execution-events-v1.md`](../../spec/execution-events-v1.md), - schema `spec/schemas/execution-events-v1.schema.json`, decision +- **Normative contract at that time:** `spec/execution-events-v1.md` (retired + by [ADR-0068](../adr/0068-single-current-public-contracts.md); the current + contract is [`spec/observation.md`](../../spec/observation.md)), decision [ADR-0059](../adr/0059-runtime-observability-and-execution-events.md). This file records commands actually executed on Linux x86_64 with Rust