release: prepare 3.0.0-rc.4 and record the Analysis boundary
ci/woodpecker/push/main Pipeline failed

Bump the workspace product version, document the in-place Analysis contract
replacement, update the current-facing guides and architecture overview, and
record the local gate plus the 101-module/rc.3 performance comparison. The
candidate is not a release: same-SHA CI, archive cold install, frozen external
conformance and the strict VM gate are still required before tagging.
This commit is contained in:
cflmy committed 2026-11-25 11:18:31 +08:00
1 parent 0b7f238fd8
commit 8737e093d6
22 files changed
+309 -70

No files matched your search

+45
View File
@@ -14,6 +14,51 @@ 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.4 (2026-11-25, candidate)
- The Rust workspace, CLI version output and protocol producers report
`3.0.0-rc.4`; the supported platform remains Linux x86_64 on glibc 2.39 and
the locked Rust minimum remains 1.89.
### Closed public Analysis boundary — issue #10 (breaking in place)
Executed policy: [ADR-0069](docs/adr/0069-public-analysis-boundary.md), replacing
`marqdo.analysis` revision 3 in place under ADR-0068. There is no old reader,
version negotiation or fallback; a same-revision artifact that lacks a current
required field is rejected and must be regenerated.
- **Document facts are public.** `modules[].source` carries the exact UTF-8
source already read by the loader and `modules[].document` is the canonical
Markdown AST in the public shape shared with `inspect --ast`. Consumers no
longer parse Markdown a second time or read package-cache paths.
- **Heading scope is one index.** Units expose the structured `path`, parent,
effective mode, mode origin and source unit, the heading span and the complete
section span. The root covers the whole source including a BOM. Exec H2
function ownership stays explicit.
- **Entry and snapshot identity are explicit.** `project.entry_module_id`,
captured `manifest_digest`/`lock_digest`, stdlib identity and the static
extension identities used by preparation are part of the artifact. The
post-preparation lock re-read and its silent empty digest on IO failure are
gone.
- **One document-link resolver.** Analysis `references`, `check --refs` and
`inspect --refs` share one pure resolver and explicit catalogs. It reports
`resolved`, `not_loaded`, `missing`, `ambiguous`, `external`, `outside_scope`
or `invalid`; ordinary Analysis never opens a link target and a same-document
anchor names the real source module. The duplicate `commands.rs` resolver is
deleted.
- **Calls stay bound once.** Static call records keep the single prepared
binding table and now expose target kind, exact function/builtin/plugin target
and a reason for unresolved calls. Plugin targets carry only their verified
static owner; no plugin function is fabricated.
- **Output is private and atomic.** `--emit` writes owner-only exclusive bytes
through a temporary file and rename, and refuses to overwrite a loaded source,
manifest, lock file, directory, symlink or hard link to an input.
- **Independent consumers are the gate.** The Python Analysis consumer performs
semantic validation in addition to JSON Schema; mutation fixtures reject
missing current fields, tampered source/digests/spans, cycles, wrong owners
and invalid reference/nullability combinations. View-, lint- and
knowledge-like fixtures drive the real installed CLI.
## 3.0.0-rc.3 (2026-11-24)
- The Rust workspace, CLI version output and protocol producers report
+15 -13
View File
@@ -1,17 +1,19 @@
# Compatibility and support matrix
Snapshot: product version **`3.0.0-rc.3`** (prerelease, released on
2026-11-24). Tag `v3.0.0-rc.3` at source SHA `1e2a045cc78bf40972181abb44e7117c56cf4401`. This file records what was
actually verified and separates it from what is only implemented. The
Snapshot: product version **`3.0.0-rc.4`** (prerelease candidate, 2026-11-25).
The previous release is `3.0.0-rc.3` at source SHA
`1e2a045cc78bf40972181abb44e7117c56cf4401`; its evidence remains under
[`docs/evidence/`](docs/evidence/2026-11-24-rc.3-release.md). This file records
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), the
[RC release evidence](docs/evidence/2026-11-24-rc.3-release.md) and under
[`docs/evidence/`](docs/evidence/extension/README.md).
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.3` candidate includes the post-beta protocol convergence below.
See the [RC acceptance procedure](docs/releasing.md). The platform evidence
table records the beta, rc.1/rc.2 and candidate verification.
The `3.0.0-rc.4` 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.
## Language source syntax (breaking change)
@@ -51,7 +53,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.3` candidate**; they are
These landed after the beta tag and **are included in the `3.0.0-rc.4` 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 +88,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.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. |
| Language / CLI | `3.0.0-rc.4` (candidate) | SemVer prerelease: breaking changes inside the 3.0 beta line are allowed and announced in the changelog. The `.mq.md` source language changed incompatibly (RFC-LANG-0002); there is no old-syntax execution path or downgrade. CLI flags may change with a changelog note; `strict` refusal is contractual. |
| `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). |
@@ -194,7 +196,7 @@ the Windows C ABI/provider paths remain fail-closed.
## Release decision
**`3.0.0-rc.3` prerelease — released as a Linux x86_64 RC.** The RC profile in
**`3.0.0-rc.4` prerelease — released as a Linux x86_64 RC.** The RC profile in
[`docs/MARQDO_3_0_PRERELEASE_PLAN.md`](docs/MARQDO_3_0_PRERELEASE_PLAN.md) §3 was
used: Linux is the only supported platform, macOS/Windows are UNSUPPORTED for
this scope, strict L1 has same-SHA disposable-VM evidence, and G4 performance is
Generated
+16 -16
View File
@@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "marqdo-cli"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"clap",
"hex",
@@ -438,7 +438,7 @@ dependencies = [
[[package]]
name = "marqdo-expression"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-span",
"num-bigint",
@@ -449,7 +449,7 @@ dependencies = [
[[package]]
name = "marqdo-foreign"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"hex",
"libc",
@@ -465,7 +465,7 @@ dependencies = [
[[package]]
name = "marqdo-frontend"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-expression",
"marqdo-ir",
@@ -480,7 +480,7 @@ dependencies = [
[[package]]
name = "marqdo-host"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"flate2",
"getrandom 0.4.3",
@@ -505,7 +505,7 @@ dependencies = [
[[package]]
name = "marqdo-ir"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-expression",
"marqdo-span",
@@ -515,7 +515,7 @@ dependencies = [
[[package]]
name = "marqdo-markdown"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"comrak",
"marqdo-span",
@@ -526,7 +526,7 @@ dependencies = [
[[package]]
name = "marqdo-package"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"hex",
"semver",
@@ -540,7 +540,7 @@ dependencies = [
[[package]]
name = "marqdo-plugin-abi"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"hex",
"libloading",
@@ -556,7 +556,7 @@ dependencies = [
[[package]]
name = "marqdo-plugin-sdk"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-plugin-abi",
"serde",
@@ -565,7 +565,7 @@ dependencies = [
[[package]]
name = "marqdo-provider-worker"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"libloading",
"marqdo-host",
@@ -578,7 +578,7 @@ dependencies = [
[[package]]
name = "marqdo-runtime"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-expression",
"marqdo-frontend",
@@ -597,7 +597,7 @@ dependencies = [
[[package]]
name = "marqdo-sandbox"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"libc",
"serde",
@@ -605,14 +605,14 @@ dependencies = [
[[package]]
name = "marqdo-span"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"serde",
]
[[package]]
name = "marqdo-value"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"marqdo-span",
"num-bigint",
@@ -623,7 +623,7 @@ dependencies = [
[[package]]
name = "marqdo-worker-ipc"
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
dependencies = [
"serde_json",
"thiserror",
+1 -1
View File
@@ -20,7 +20,7 @@ members = [
]
[workspace.package]
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
edition = "2021"
rust-version = "1.89"
license = "Apache-2.0"
+1 -1
View File
@@ -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.3`** in this checkout. It is **not** a compatibility rewrite of
version **`3.0.0-rc.4`** 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
+2 -4
View File
@@ -500,15 +500,13 @@ fn explicit_refs_verify_plain_files_reject_symlinks_and_never_guess_coverage() {
"## @exec main\n\n[资产](./asset.pdf) [普通](./notes.md#notes) [越界](./%2e%2e/secret.mq.md)\n\n`return 1`\n",
);
#[cfg(unix)]
let _symlink = {
{
std::os::unix::fs::symlink("/etc/hostname", dir.path().join("escape.mq.md")).unwrap();
dir.write(
"symlink.mq.md",
"## @exec main\n\n[逃逸](./escape.mq.md)\n\n`return 1`\n",
);
};
#[cfg(not(unix))]
let _symlink = ();
}
let inspected = cli(dir.path(), &["inspect", "index.mq.md", "--refs", "--json"]);
assert!(inspected.status.success(), "{inspected:?}");
+52 -11
View File
@@ -1,15 +1,16 @@
# Marqdo Implementation Status
Snapshot: **2026-11-24**, product version **`3.0.0-rc.3`** (prerelease,
released). Tag `v3.0.0-rc.3` at source SHA
Snapshot: **2026-11-25**, product version **`3.0.0-rc.4`** (prerelease
candidate). The previous release is `3.0.0-rc.3` at source SHA
**`1e2a045cc78bf40972181abb44e7117c56cf4401`**; release:
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.3. The released
platform is **Linux x86_64 (glibc 2.39)**. The same-SHA gate aggregate is
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`); binary hashes are in the archive's
`RELEASE_INFO.json`. 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.
(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.
Current architecture overview:
[`architecture/CURRENT.md`](architecture/CURRENT.md).
@@ -28,11 +29,13 @@ as current status.
## RC candidate
The workspace reports `3.0.0-rc.3` and declares Rust 1.89 as its locked
The workspace reports `3.0.0-rc.4` and declares Rust 1.89 as its locked
minimum. Linux x86_64 on glibc 2.39 is the 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.
candidate SHA before publication. A candidate is not a release: it must not be
tagged or announced until the same-SHA CI, archive-only cold install, frozen
external conformance, strict VM and performance gates are executed for that
SHA. The release records below refer to their tagged binaries.
## Current protocol integration
@@ -70,6 +73,44 @@ 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.10 Closed public Analysis boundary — issue #10 (RC.4 candidate)
The candidate replaces the program-only Analysis projection in place under
[ADR-0069](adr/0069-public-analysis-boundary.md): exact source and document
AST, complete heading scopes and anchors, entry/manifest/lock/stdlib/extension
snapshot identity, one shared document-link resolver with explicit states,
calls with target kind/owner/reason, and an owner-only atomic `--emit` writer.
The retired duplicate resolver and the post-preparation lock re-read are gone.
Local evidence and raw numbers:
[`evidence/2026-11-25-rc.4-analysis-boundary.md`](evidence/2026-11-25-rc.4-analysis-boundary.md).
Executed 2026-11-25 in the local Linux x86_64 development container
(workspace `3.0.0-rc.4`, Rust 1.100.0):
```text
cargo fmt --all -- --check PASS
cargo clippy --workspace --all-targets -- -D warnings PASS
cargo test --workspace --locked PASS
cargo test -p marqdo-cli --test analysis_boundary PASS
cargo test -p marqdo-cli --test analysis_observation PASS
cargo test -p marqdo-cli --test integration_cli PASS
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker PASS
python3 tests/consumers/analysis_consumer.py <artifact> PASS
python3 tests/consumers/validate_protocols.py <analysis> <observation> <tool> PASS
python3 tests/consumers/view_consumer.py <artifact> PASS
python3 tests/consumers/lint_consumer.py <artifact> PASS
python3 tests/consumers/knowledge_consumer.py <artifact...> PASS
```
Local development-container performance against the rc.3 archive binary on a
101-module fixture (p95 ratio, peak-RSS ratio): no-emit `0.999 / 1.001`,
`--emit` `1.210 / 1.186`, `--refs` `1.145 / 1.093`. These are smoke numbers,
not a dedicated-node G4 result.
Same-SHA CI, archive-only cold install, frozen external conformance, strict VM
and dedicated-node performance are **not** recorded for this candidate yet. The
rc.3 rows below remain the last published release evidence.
## 0.9 Pre-stable protocol convergence — issue #8 (RC.3 candidate)
The current tree replaces the retired protocols in place, with no compatibility
+4
View File
@@ -66,3 +66,7 @@ Files: `0001`–`0050`, plus:
* [0066](0066-structured-tasks-v1.md) — proposed task isolation, bounded
communication and cancellation;
* [0067](0067-structured-control-flow.md) — multi-arm branches and nearest-loop transfers.
* [0068](0068-single-current-public-contracts.md) — one current contract per
pre-stable public boundary, replaced in place;
* [0069](0069-public-analysis-boundary.md) — one public Analysis projection for
independent document, lint and knowledge consumers.
+8 -3
View File
@@ -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: `2c7c4f31e7a388d3fcfa717a77067e696ed13854` (2026-11-22, tagged `v3.0.0-beta.1`; same-SHA evidence in `../STATUS.md` and `../evidence/ci/2c7c4f31e7a388d3fcfa717a77067e696ed13854/manifest.json`).
- Baseline: `1e2a045cc78bf40972181abb44e7117c56cf4401` (2026-11-24, tagged `v3.0.0-rc.3`; same-SHA evidence in `../STATUS.md` and `../evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json`). The `3.0.0-rc.4` candidate state is recorded in `../STATUS.md` §0.10.
- 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.
@@ -58,10 +58,14 @@ replace `spec/` or a recorded test log.
[ADR-0068](../adr/0068-single-current-public-contracts.md) records the policy
for replacing public interfaces before the first stable release.
[ADR-0069](../adr/0069-public-analysis-boundary.md) closes the public Analysis
boundary: the projection carries the exact source, document AST, complete
heading scope, entry/snapshot identity and one shared document-link resolver,
and the retired program-only fields and duplicate resolver have no active path.
| Boundary | Owner | Current contract |
|---|---|---|
| Static facts | CLI Analysis projection of the prepared project | [Analysis](../../spec/analysis.md) |
| Static facts | CLI Analysis projection of the prepared project: source, document AST, heading scopes, entry/snapshot identity, calls, resources and one document-link resolver | [Analysis](../../spec/analysis.md), [Markdown profile](../../spec/markdown-profile.md), [References](../../spec/references.md) |
| Runtime facts | Interpreter and Host observation sink | [Observation](../../spec/observation.md) |
| Installed CLI commands | Generic Tool registry | [CLI Tool](../../spec/cli-tool.md) |
| Runtime extensions | Plugin, Resource Provider and Foreign each enforce their own grants | [Plugin ABI](../../spec/plugin-abi.md), [Resource Provider](../../spec/resource-provider-v2.md), [Foreign](../../spec/foreign.md) |
@@ -183,7 +187,7 @@ review RFC, not a new crate per provider.
| `resource.request` | the reviewed operation allowlist (`process.run`, `regex.*`, `compress.*`, `random.bytes`, `env.get`, `clock.now`, `fs.*`) in `docs/architecture/resource-operations.md`; project mode + grants, ADR-0062 | implemented; **new domain operations forbidden**; architecture gate pins the list | `resource_streams`, `architecture_boundaries::resource_request_operation_allowlist_is_reviewed` |
| core resource kinds | one `marqdo_host::CORE_RESOURCE_KINDS` registry used by CLI manifest validation and every host registration API | implemented; all six core kinds rejected as provider name/kind before registration (H-04) | `resource_streams`, `provider_manifest::every_core_kind_is_rejected_as_name_and_as_kind` |
| `math.*` domain API | removed after `3.0.0-beta.1`; call is `symbol.unknown`; `Formula` stays inert; external pure package + optional ABI backend; `math.compute` stays a plugin capability category (H-01/H-11) | **removed** from `BUILTINS`/`HostOp`/host/runtime/workspace; `examples/math-library/`, `examples/math-backend/` | `math_library`, `conformance_semantics`, `architecture_boundaries::domain_math_kernel_is_not_part_of_the_core` |
| Heading modes / annotations | `@exec`/`@knowledge` are the closed Core Modes; unmarked headings inherit the nearest ancestor (H-06); third-party heading annotations are **Proposed** metadata only, Analysis v3 unchanged (H-05/H-07) | core mode: implemented; annotations: Proposed/not implemented, target `3.1.x` | `heading_inheritance`, `units`, negative `sem.invalid_mode_marker`; future T-ANNO in `spec/heading-annotations-v1.md` |
| Heading modes / annotations | `@exec`/`@knowledge` are the closed Core Modes; unmarked headings inherit the nearest ancestor (H-06); the same index is exposed in Analysis with parent/mode-origin/full-range facts; third-party heading annotations are **Proposed** metadata only (H-05/H-07) | core mode and public scope facts: implemented; annotations: Proposed/not implemented, target `3.1.x` | `heading_inheritance`, `units`, `analysis_boundary`, negative `sem.invalid_mode_marker`; future T-ANNO in `spec/heading-annotations-v1.md` |
| Foreign F-A | permission-gated one-shot `foreign.run`/`foreign.call` + dynamic `KernelRegistry`; F-B removal deferred (H-02) | retained; no new language-specific builtin/HostOp; existing grants/digest/timeout/wire/output negatives unchanged | `marqdo-foreign/tests/kernels`, `smoke.py` foreign/kernel cases, `examples/kernel-mock` |
| `std:data/json` | `json.解析/解析多个/格式化`; nested Value, 128-depth bound, recoverable errors | implemented (recursive, multi-value; no streaming) | `stdlib_product` |
| `std:data/csv` | `csv.解析行/解析/格式化行/格式化`; quoted single/multi-row, CRLF, quoted newlines | implemented (no streaming) | `stdlib_product` |
@@ -200,6 +204,7 @@ review RFC, not a new crate per provider.
| HTTP/1.1 | `stdlib/net/http.mq.md`: status/header/chunked-byte parse, request build | implemented over an already-authorized TCP stream; not a DNS/TLS client | `stdlib_http`, `http_over_tcp`, `stdlib_product` |
| print / official stdlib aliases | `打印`/`print` are verified `stdlib.json` public aliases bound to `io.mq.md::写值`; ordinary Marqdo calls, no `print_override`, no runtime branch, no `HostOp::Print` | implemented (ADR-0058) | `stdlib_alias_routing`, `print_routing`, `stdlib_product` |
| callable resolution | one registry + one `bind_program_calls` pass; `check`/`run`/`inspect`/Analysis share `CallSiteKey` bindings; plugin exports reconcile exactly with static manifests; no runtime name fallback | implemented (ADR-0054) | `callable_resolution`, `plugin_worker`, `analysis_observation` |
| document references | one pure `document_refs` resolver over an explicit catalog; Analysis uses the loaded catalog and never opens a link, `--refs` may verify direct local targets; states distinguish unloaded/missing/ambiguous/external/outside-scope/invalid | implemented (ADR-0069) | `analysis_boundary`, `document_refs` unit tests, `view_consumer`, `lint_consumer`, `knowledge_consumer` |
| resource provider v2 CLI | `--provider`/`--allow-provider` select and authorize a `provider.json` schema-2 `c-abi-1` worker artifact; manifest/artifact/grants/duplicate kinds verified before spawn; sibling helper only | implemented linux/x86_64; other platforms fail closed (ADR-0055) | `provider_cli` |
| capability handlers | trusted handler registry executes granted capabilities under budget/audit; missing handler is `capability.unavailable`; `fs.read` is the first real handler | implemented (ADR-0057) | `capability_handlers` |
| strict mode | only the pure/Math execution path and the built-in stdout console channel; project/foreign/plugin/tool/trace/file/network grants are rejected | implemented L1; L2 not implemented | `tests/security`, `resource_streams`, `stdlib_product` |
+1 -1
View File
@@ -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.3`.
* Rust edition 2021, `rust-version = 1.89`, workspace version `3.0.0-rc.4`.
* `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.
+1 -1
View File
@@ -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.3`** (Linux x86_64 candidate).
Product version for these docs: **`3.0.0-rc.4`** (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
+3 -3
View File
@@ -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.3` value | Change rule |
| Axis | `3.0.0-rc.4` value | Change rule |
|---|---|---|
| Product / CLI | `3.0.0-rc.3` (candidate) | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
| Product / CLI | `3.0.0-rc.4` (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.3` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source
`3.0.0-rc.4` 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
+5 -5
View File
@@ -1,15 +1,15 @@
# Quickstart: install and run
Product: `3.0.0-rc.3` (Linux x86_64 candidate). Install a **release archive**, not
Product: `3.0.0-rc.4` (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.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
sha256sum -c marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz.sha256
tar -xzf marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz
cd marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu
./marqdo --version # marqdo 3.0.0-rc.4
./marqdo --help
```
+2 -2
View File
@@ -1,4 +1,4 @@
# Marqdo 3.0.0-rc.3 — known limitations
# Marqdo 3.0.0-rc.4 — 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.
@@ -57,7 +57,7 @@ Even when available:
## Compatibility and versioning
* `3.0.0-rc.3` is a **prerelease**. The changelog lists changes from the beta.
* `3.0.0-rc.4` 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.
+1 -1
View File
@@ -20,7 +20,7 @@ marqdo-view/
examples/
```
`tool.json` for the `3.0.0-rc.3` candidate:
`tool.json` for the `3.0.0-rc.4` candidate:
```json
{
@@ -0,0 +1,89 @@
# RC 3.0.0-rc.4 — closed public Analysis boundary (issue #10)
- **Date:** 2026-11-25
- **Product:** `3.0.0-rc.4` (prerelease candidate; not stable, not LTS)
- **Base:** `e6066e6ba91981b7d2bc55191b7eb54387ee34d3`
- **Platform:** local Linux x86_64 development container; Windows/macOS remain
UNSUPPORTED for this candidate
- **Policy:** [ADR-0069](../adr/0069-public-analysis-boundary.md),
[ADR-0068](../adr/0068-single-current-public-contracts.md)
- **Contract:** `spec/analysis.md`, `spec/schemas/analysis.schema.json`
This document records commands actually executed on the candidate tree. The
raw command log is
[`2026-11-25-rc.4-local-gate.log`](2026-11-25-rc.4-local-gate.log). It is local
evidence, not a same-SHA CI, archive-only or strict-VM release gate. A release
decision must cite the gate manifest for the tagged SHA and must not promote
these numbers to a platform claim.
## Implemented boundary
`check ENTRY --emit PATH` now projects the same prepared facts consumed by
`check`, `inspect`, `run` and `call`:
- exact UTF-8 `modules[].source` and `source_digest`;
- the canonical Markdown AST (`document`) shared with `inspect --ast`;
- one heading index with structured path, parent, mode, mode origin and source
unit, heading span and complete section span (root covers the whole source);
- anchors, functions, imports, calls with target kind/owner/reason, resources
with AST-payload digest validation and the explicit diagnostics;
- `project.entry_module_id`, captured `manifest_digest`/`lock_digest`, stdlib
and static extension identities;
- one `document_refs` resolver used by Analysis, `check --refs` and
`inspect --refs`, with `resolved`/`not_loaded`/`missing`/`ambiguous`/
`external`/`outside_scope`/`invalid` states.
The retired duplicate resolver and the post-preparation lock re-read are gone.
`--emit` writes owner-only exclusive bytes through a temporary file and rename
and refuses inputs, directories, symlinks and hard links to inputs.
## Commands executed
```text
cargo fmt --all -- --check PASS
cargo clippy --workspace --all-targets -- -D warnings PASS
cargo test --workspace --locked PASS: 632 passed, 0 failed, 2 ignored
cargo test -p marqdo-cli --test analysis_boundary PASS: 10 passed
cargo test -p marqdo-cli --test analysis_observation PASS: 11 passed
cargo test -p marqdo-cli --test architecture_boundaries PASS
cargo test -p marqdo-cli --test docs_consistency PASS
cargo test -p marqdo-cli --test integration_cli PASS: 23 passed
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker PASS
python3 tests/consumers/analysis_consumer.py <artifact> PASS
python3 tests/consumers/validate_protocols.py <analysis> <observation> <tool> PASS
python3 tests/consumers/view_consumer.py <artifact> PASS
python3 tests/consumers/lint_consumer.py <artifact> PASS
python3 tests/consumers/knowledge_consumer.py <artifact...> PASS
```
The independent semantic consumer and mutation gate were exercised with a
project containing an import, a cross-module reference, a formula, a code
fence and a static call. The gate rejects missing current required fields,
tampered source/digests/spans, duplicate module ids, parent cycles, wrong mode
sources, missing call targets, missing reference units and injected successful
error diagnostics.
## Performance (local smoke, not G4)
Fixture: 101 modules, 82,094 source bytes, 903 units, 100 cross-module
references; release builds of rc.3 (baseline archive binary) and the rc.4
candidate, five warmups and twenty samples per command, same host and cwd.
| Command | rc.3 p50/p95 (ms) | rc.4 p50/p95 (ms) | p95 ratio | peak RSS ratio |
|---|---|---|---|---|
| `check index.mq.md --json` | 18.28 / 19.09 | 18.47 / 19.07 | 0.999 | 1.001 |
| `check index.mq.md --emit out.json` | 36.49 / 42.65 | 48.66 / 51.59 | 1.210 | 1.186 |
| `check index.mq.md --refs --json` | 19.09 / 19.66 | 21.99 / 22.51 | 1.145 | 1.093 |
The rc.4 artifact is 2,739,156 bytes (rc.3: 899,146) because it now carries the
exact source and AST. The emit p95 and peak-RSS ratios are below the issue's
2.5x budget; the no-emit p95 ratio is below 1.15. These are development-container
numbers and must not be cited as the dedicated-node G4 result.
## Not claimed
- No same-SHA Woodpecker pipeline, archive cold-install or frozen external
conformance evidence is recorded here.
- No disposable-VM strict L1 evidence for this SHA.
- No dedicated-node G4 measurement.
- No Windows/macOS support claim.
@@ -0,0 +1,52 @@
rc.4 local gate 2026-11-25T03:16:36Z
platform: Linux 7.0.0-43-generic x86_64
rustc: rustc 1.100.0 (0ef1bc386 2026-11-09)
cargo: cargo 1.100.0 (3acc79c0c 2026-11-05)
$ cargo fmt --all -- --check
PASS
$ cargo clippy --workspace --all-targets -- -D warnings
PASS
$ cargo test --workspace --locked
PASS
passed 632, failed 0, ignored 2
$ cargo test -p marqdo-cli --test architecture_boundaries
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
$ cargo test -p marqdo-cli --test docs_consistency
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
$ cargo test -p marqdo-cli --test analysis_observation
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s
$ cargo test -p marqdo-cli --test observation
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.26s
$ cargo test -p marqdo-cli --test tool_protocol
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.12s
$ cargo test -p marqdo-cli --test callable_resolution
test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s
$ cargo test -p marqdo-cli --test heading_inheritance
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
$ cargo test -p marqdo-cli --test conformance_ast
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
$ cargo test -p marqdo-cli --test conformance_semantics
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.70s
$ cargo test -p marqdo-cli --test analysis_boundary
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.02s
$ python3 -m unittest discover -s tools/ci -p test_*.py
Ran 43 tests in 0.089s
OK
$ cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
PASS
Finished `release` profile [optimized] target(s) in 0.05s
+7 -4
View File
@@ -438,10 +438,13 @@ untrusted input.
## 7. Failure and exit semantics
`check` keeps its CLI contract: success `0`; static diagnostic errors `1`;
argument, load/IO or output failures `2`. `--json` is a check diagnostic
summary, not a second Analysis writer. `--emit` is the only full Analysis
writer.
`check` keeps its existing CLI contract: success `0`; static diagnostic
errors and verified lock/extension load failures `1`; argument errors, a
missing/unreadable entry document and output-publication failures `2`. This
matches the current implementation and the other commands; this contract change
does not reclassify a missing `ENTRY` as a static diagnostic. `--json` is a
check diagnostic summary, not a second Analysis writer. `--emit` is the only
full Analysis writer.
A failed check publishes no success artifact. It may remove a previous artifact
at the caller-specified output path only when that path is not an input source,
+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Security Model (implemented status)
Status: describes enforcement in the `3.0.0-rc.3` candidate.
Status: describes enforcement in the `3.0.0-rc.4` candidate.
Normative implementation:
+1 -1
View File
@@ -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.3"}},
"payload": {"producer": {"name": "marqdo", "version": "3.0.0-rc.4"}},
},
{
"schema": "marqdo.observation",
+1 -1
View File
@@ -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.3
--version 3.0.0-rc.4
"""
from __future__ import annotations
+1 -1
View File
@@ -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.3-x86_64-unknown-linux-gnu.tar.gz
python3 tools/release/smoke.py --archive dist/marqdo-3.0.0-rc.4-x86_64-unknown-linux-gnu.tar.gz
"""
from __future__ import annotations