Prepare Marqdo CLI 3.0.0-rc.2 with structured control flow
This commit is contained in:
1 parent
51d4c6568d
commit
9149ee40a4
14 files changed
+62
-59
No files matched your search
+16
-17
@@ -10,13 +10,24 @@ 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.
|
||||
|
||||
## 3.0.0-rc.1 (candidate)
|
||||
## 3.0.0-rc.2 (candidate)
|
||||
|
||||
- The Rust workspace, CLI version output and protocol producers report
|
||||
`3.0.0-rc.1`. The locked workspace requires Rust 1.89.
|
||||
`3.0.0-rc.2`. The locked workspace requires Rust 1.89.
|
||||
- The candidate targets Linux x86_64 with glibc. See
|
||||
[release gates](docs/releasing.md) for the evidence required for publication.
|
||||
|
||||
### Structured control flow (RFC-CTRL-0005)
|
||||
|
||||
- Added ordered `else if` arms and nearest-loop `break` and `continue`.
|
||||
Bare keyword carriers take the control meaning. Calls, bindings and
|
||||
identifiers within expressions retain their existing syntax.
|
||||
- Inferred signatures now use reachable reads and merge assignments on
|
||||
reachable control exits. A parameter inferred only from unreachable
|
||||
statements may disappear.
|
||||
- Analysis v3 represents loop transfers. Projects without transfers still emit
|
||||
v2. Trace v2 and Execution Events v1 report the two explicit control events.
|
||||
|
||||
### Core/extension boundary — RFC-EXT-0003 (issue #3)
|
||||
|
||||
Executed evidence: [`docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md).
|
||||
@@ -68,7 +79,7 @@ detach), ADR-0062 (resource-operation ownership/core kinds), ADR-0063
|
||||
metadata-only `@namespace.identifier` annotation layer is specified as
|
||||
**Proposed** with target `3.1.x`. The current parser still rejects any other
|
||||
leading `@foo` with `sem.invalid_mode_marker`; no `annotation.unknown` code,
|
||||
manifest loader, Analysis v3 or sidecar exists in this build. Contracts:
|
||||
manifest loader or heading annotations projection exists in this build. Contracts:
|
||||
ADR-0060 and [`spec/heading-annotations-v1.md`](spec/heading-annotations-v1.md).
|
||||
- **Foreign F-B removal is deferred (H-02).** The permission-gated one-shot
|
||||
`foreign.run`/`foreign.call` + `KernelRegistry` stay as the controlled
|
||||
@@ -98,8 +109,8 @@ detach), ADR-0062 (resource-operation ownership/core kinds), ADR-0063
|
||||
- New public contract
|
||||
[`spec/execution-events-v1.md`](spec/execution-events-v1.md) and
|
||||
[`spec/schemas/execution-events-v1.schema.json`](spec/schemas/execution-events-v1.schema.json),
|
||||
with fixtures and an independent Python consumer. Analysis v2 and Trace v2
|
||||
schemas/versions are unchanged.
|
||||
with fixtures and an independent Python consumer. Trace v2 retains its
|
||||
public event envelope.
|
||||
- Limitations: memory metadata events (OBS-06/P2), a bidirectional debug
|
||||
protocol and SSE/HTTP remain out of scope; strict mode refuses event mode
|
||||
explicitly.
|
||||
@@ -173,18 +184,6 @@ items are in
|
||||
|
||||
## Unreleased (post-beta)
|
||||
|
||||
### Structured control flow (RFC-CTRL-0005)
|
||||
|
||||
- Added ordered `else if` arms and nearest-loop `break` and `continue`.
|
||||
Bare keyword carriers take the control meaning. Calls, bindings and
|
||||
identifiers within expressions retain their existing syntax.
|
||||
- Inferred signatures now use reachable reads and merge assignments on
|
||||
reachable control exits. A parameter inferred only from unreachable
|
||||
statements may disappear.
|
||||
- Analysis v3 represents loop transfers. Projects without transfers still emit
|
||||
v2. Trace v2 and Execution Events v1 report the two explicit control events.
|
||||
- Release inclusion remains a maintainer decision.
|
||||
|
||||
### Planned changes
|
||||
|
||||
- Fixes collected from the first beta users; see `docs/MARQDO_3_0_PRERELEASE_PLAN.md`
|
||||
|
||||
+10
-6
@@ -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.1` candidate targets Linux x86_64 on glibc 2.39 and
|
||||
The `3.0.0-rc.2` 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.1` candidate**; they are
|
||||
These landed after the beta tag and **are included in the `3.0.0-rc.2` 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,9 +65,9 @@ evidence: [`docs/evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](docs/evid
|
||||
| Heading Annotations v1 (H-05/H-07) | **Proposed, not implemented.** This build still rejects unknown `@foo` with `sem.invalid_mode_marker`; no annotation manifest, `annotation.unknown` or heading annotations projection exists yet. Target `3.1.x`; ADR-0060 and `spec/heading-annotations-v1.md`. |
|
||||
| Foreign removal F-B (H-02) | **Deferred, not claimed.** The one-shot permission-gated `foreign.*` primitive remains (F-A); its grants/digest/timeout/wire/output negatives are unchanged and must not be skipped. ADR-0063 and `spec/foreign.md` §8. |
|
||||
|
||||
## Structured control flow (RFC-CTRL-0005, unreleased)
|
||||
## Structured control flow (RFC-CTRL-0005, RC.2)
|
||||
|
||||
The development branch reserves `break` and `continue` only as complete
|
||||
The RC.2 candidate reserves `break` and `continue` only as complete
|
||||
payloads. An existing standalone identifier read can be written as
|
||||
`(break)` or `(continue)`. Calls, bindings, fields and identifiers within
|
||||
expressions retain their meaning. Two separate carriers containing `else` and
|
||||
@@ -77,14 +77,18 @@ Parameter inference ignores reads after a definite transfer. When upgrading
|
||||
a caller that passed an argument inferred solely from unreachable code,
|
||||
remove the argument or keep it through an explicit `params(...)` declaration.
|
||||
|
||||
`marqdo-lint 0.1.0` reads legacy Analysis v2 documents. Its control layout
|
||||
alignment for `else if` and its Analysis v3 support require an update in
|
||||
that tool.
|
||||
|
||||
## Public protocol versions
|
||||
|
||||
| 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.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. |
|
||||
| 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. |
|
||||
| `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 on the RFC-CTRL-0005 development branch | Projects with loop transfers emit v3. Other projects emit v2. Consumers reject unknown majors. |
|
||||
| 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. |
|
||||
| Execution Events | v1 | Live NDJSON for `run/call --event-stream jsonl`; independent version axis. Values are opt-in and bounded; unknown majors rejected. Not yet part of the tagged beta archive (post-beta addition). |
|
||||
| CLI Tool | v1 | Manifest schema, SemVer negotiation and whole-bundle digest are stable for v1. |
|
||||
|
||||
Generated
+15
-15
@@ -412,7 +412,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-cli"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"hex",
|
||||
@@ -438,7 +438,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-expression"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
@@ -449,7 +449,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-foreign"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"libc",
|
||||
@@ -465,7 +465,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-frontend"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-ir",
|
||||
@@ -480,7 +480,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-host"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"getrandom 0.4.3",
|
||||
@@ -504,7 +504,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-ir"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-span",
|
||||
@@ -514,7 +514,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-markdown"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"comrak",
|
||||
"marqdo-span",
|
||||
@@ -525,7 +525,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-package"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"semver",
|
||||
@@ -539,7 +539,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-abi"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"libloading",
|
||||
@@ -554,7 +554,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-plugin-sdk"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-plugin-abi",
|
||||
"serde",
|
||||
@@ -563,7 +563,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-provider-worker"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"libloading",
|
||||
"marqdo-host",
|
||||
@@ -575,7 +575,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-runtime"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-expression",
|
||||
"marqdo-frontend",
|
||||
@@ -594,7 +594,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-sandbox"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"serde",
|
||||
@@ -602,14 +602,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-span"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "marqdo-value"
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
dependencies = [
|
||||
"marqdo-span",
|
||||
"num-bigint",
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "3.0.0-rc.1"
|
||||
version = "3.0.0-rc.2"
|
||||
edition = "2021"
|
||||
rust-version = "1.89"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
@@ -10,7 +10,7 @@ The official implementation is a Rust workspace; Python/Node are optional
|
||||
foreign kernels, never the compiler target.
|
||||
|
||||
This repository is the new, independent Marqdo toolchain, now at product
|
||||
version **`3.0.0-rc.1`** in this checkout. It is **not** a compatibility rewrite of
|
||||
version **`3.0.0-rc.2`** 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
|
||||
|
||||
+4
-4
@@ -26,7 +26,7 @@ as current status.
|
||||
|
||||
## RC candidate
|
||||
|
||||
The workspace reports `3.0.0-rc.1` and declares Rust 1.89 as its locked
|
||||
The workspace reports `3.0.0-rc.2` 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
|
||||
@@ -264,7 +264,7 @@ digests. The external lane ran from a temporary fixture checkout with Cargo
|
||||
absent from PATH. Archive SHA-256 is
|
||||
`8934bfc25c7b5526071eae6f24143ca3805ad3d7cc484626a4345b1deed430b2`.
|
||||
|
||||
## 0.8 Structured control flow — RFC-CTRL-0005 (unreleased)
|
||||
## 0.8 Structured control flow — RFC-CTRL-0005 (RC.2 candidate)
|
||||
|
||||
[ADR-0067](adr/0067-structured-control-flow.md) covers the phase A implementation.
|
||||
An `else if` carrier adds a condition arm to the existing branch IR.
|
||||
@@ -276,8 +276,8 @@ list containers.
|
||||
[Analysis v3](../spec/analysis-v3.md) represents the loop transfer statements.
|
||||
Other documents continue to emit v2. Trace v2 and Execution Events v1 expose
|
||||
the new control events. The published beta evidence applies to its original
|
||||
SHA. Maintainers decide when to include phase A in a release. List iteration
|
||||
is a follow-up design. The [local verification record](evidence/2026-11-23-rfc-ctrl-0005.md)
|
||||
SHA. The maintainer selected phase A for RC.2. List iteration
|
||||
is a follow-up design. The [pre-candidate local verification record](evidence/2026-11-23-rfc-ctrl-0005.md)
|
||||
identifies the tested commit, commands, archive digest and consumer results.
|
||||
|
||||
## 1. Historical: pre-beta remote baseline and evidence
|
||||
|
||||
@@ -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.1`** (Linux x86_64 candidate).
|
||||
Product version for these docs: **`3.0.0-rc.2`** (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`.
|
||||
|
||||
@@ -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.1` value | Change rule |
|
||||
| Axis | `3.0.0-rc.2` value | Change rule |
|
||||
|---|---|---|
|
||||
| Product / CLI | `3.0.0-rc.1` | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
|
||||
| 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. |
|
||||
| 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. |
|
||||
@@ -42,7 +42,7 @@ grant, values are off by default, and `--mode strict` currently refuses
|
||||
|
||||
## Language compatibility
|
||||
|
||||
`3.0.0-rc.1` implements RFC-LANG-0002 only. Pre-RFC `.mq.md` source
|
||||
`3.0.0-rc.2` 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
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Quickstart: install and run
|
||||
|
||||
Product: `3.0.0-rc.1` (Linux x86_64 candidate). Install a **release archive**, not
|
||||
Product: `3.0.0-rc.2` (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.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
|
||||
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
|
||||
./marqdo --help
|
||||
```
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Marqdo 3.0.0-rc.1 — known limitations
|
||||
# Marqdo 3.0.0-rc.2 — 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.1` is a **prerelease**. The changelog lists changes from the beta.
|
||||
* `3.0.0-rc.2` 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.
|
||||
|
||||
@@ -20,7 +20,7 @@ marqdo-view/
|
||||
examples/
|
||||
```
|
||||
|
||||
`tool.json` for the `3.0.0-rc.1` candidate:
|
||||
`tool.json` for the `3.0.0-rc.2` candidate:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Marqdo Security Model (implemented status)
|
||||
|
||||
Status: describes enforcement in the `3.0.0-rc.1` candidate.
|
||||
Status: describes enforcement in the `3.0.0-rc.2` candidate.
|
||||
|
||||
Normative implementation:
|
||||
|
||||
|
||||
@@ -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.1
|
||||
--version 3.0.0-rc.2
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -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.1-x86_64-unknown-linux-gnu.tar.gz
|
||||
python3 tools/release/smoke.py --archive dist/marqdo-3.0.0-rc.2-x86_64-unknown-linux-gnu.tar.gz
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
Reference in new issue
Block a user