Phase B of ADR-0070 (issue #11): the CLI no longer owns standard-library sources. The pin names the accepted ecosystem Bundle (marqdo-stdlib@0.2.0, root commit + tree/alias digests); tools/ci/fetch_ecosystem_bundle.py materializes it from the pinned root commit and stdlib gitlinks and verifies the digests. bundle.py and the test harness require an explicit verified Bundle for the accepted identity, and runtime discovery has no compile-time source fallback in any profile. Delete stdlib/ (modules, self-tests, aliases manifest). Module and domain tests stay with their component owners; the CLI product lane now verifies the external Bundle's public surface, std: resolution and official print/打印 alias routing (tests/product-stdlib). Composition assertions whose owner is the ecosystem (Table split, print-format equivalence) moved to the root Bundle acceptance; the generic TCP round-trip stays a CLI test. Spawned-CLI tests name the verified Bundle explicitly. CI (Woodpecker + GitHub) materializes the pinned Bundle before product tests, packaging and performance lanes; packaging and release take --stdlib-dir from that artifact. Docs, STATUS, ADR-0070 and a Phase B evidence record updated. Refs cflmy/marqdo#9, cflmy/marqdo-cli#11
1030 lines
68 KiB
Markdown
1030 lines
68 KiB
Markdown
# Marqdo Implementation Status
|
||
|
||
Snapshot: **2026-11-25**, product version **`3.0.0-rc.4`** (prerelease,
|
||
released). Tag `v3.0.0-rc.4` at source SHA
|
||
**`452e9a32bd9e40dba427d4180691c58bab74449e`**; release:
|
||
https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4. 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 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`); 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).
|
||
Authoritative release policy:
|
||
[`MARQDO_3_0_PRERELEASE_PLAN.md`](MARQDO_3_0_PRERELEASE_PLAN.md) (plan, not
|
||
evidence). Support matrix: [`../COMPATIBILITY.md`](../COMPATIBILITY.md).
|
||
Developer entry point: [`developers/README.md`](developers/README.md).
|
||
|
||
The rc.4 same-SHA gate aggregate is
|
||
[`evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`](evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json)
|
||
(decision `RC_RELEASE_CANDIDATE`). This file records what was actually executed.
|
||
"Implemented" does not mean "verified on every platform"; the evidence column
|
||
says which commands were run and where. Status is generated from executed commands/logs; a gate row without a
|
||
command, log or source path is a defect, not a state. Historical snapshots
|
||
(including M0.5 and the pre-beta `0.1.0` candidate) are preserved under
|
||
[`history/`](history/README.md) and [`evidence/`](evidence/) and must not be read
|
||
as current status.
|
||
|
||
## RC candidate
|
||
|
||
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 supported platform. The rc.4
|
||
manifest is green on its SHA with the documented strict-VM PASS and a
|
||
maintainer-approved shared-node performance `WARN`; stable/LTS still requires a
|
||
dedicated fixed node. The release records below refer to their tagged binaries.
|
||
|
||
## Current protocol integration
|
||
|
||
[ADR-0068](adr/0068-single-current-public-contracts.md) and the
|
||
[single-contract policy](architecture/PROTOCOL_CONVERGENCE_POLICY.md) govern
|
||
every public boundary. Current developer inputs are
|
||
[Analysis](../spec/analysis.md), [Observation](../spec/observation.md) and the
|
||
[CLI Tool](../spec/cli-tool.md); the shared persistent-worker transport is
|
||
[worker-ipc](../spec/worker-ipc.md).
|
||
|
||
Issue [#8](https://git.cflmy.cn/cflmy/marqdo-cli/issues/8) converged the
|
||
pre-stable contracts in one breaking integration, with no compatibility layer:
|
||
|
||
- Analysis has one writer and one current `schema_version` for every project,
|
||
including projects without loop transfers. The content-driven v2/v3 selector
|
||
and the retired `spec/analysis-v*.md` documents are gone.
|
||
- Trace and Execution Events became one Observation event definition. One
|
||
execution emits one `run_id`/`seq` sequence; `--output jsonl` and
|
||
`--observation-file` deliver those same events, never a second execution or a
|
||
second numbering. The retired `--json`/`--trace-file`/`--event-stream`
|
||
options are rejected.
|
||
- CLI Tool requirements are single exact integers (`api_revision`, optional
|
||
`analysis`, optional `observation`). Version arrays and intersection
|
||
negotiation are removed; retired registrations are rejected with a reinstall
|
||
instruction.
|
||
- Plugin and resource-provider workers share one bounded framed transport
|
||
([worker-ipc](../spec/worker-ipc.md)) while each boundary keeps its own
|
||
vocabulary, limits, capabilities and error codes.
|
||
- Extension descriptors (plugin/provider/kernel) and lock v4 keep their current
|
||
format identifiers. Retired lock versions are rejected with an explicit
|
||
`marqdo lock` regeneration instruction; there is no migrator. Renumbering an
|
||
unchanged format was explicitly rejected.
|
||
|
||
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.11 Explicit stdlib Bundle input — issue #11 Phase A (unreleased)
|
||
|
||
Phase A lands the build-input boundary only: the stdlib production sources and
|
||
the debug source fallback are still in this repository, and Phase B (the
|
||
ecosystem-assembled Bundle, source removal and `std:` replacement) is **not**
|
||
claimed. Executed candidate:
|
||
`ab6b6b1a23ec064fbc7de943c52befca18142a56`; bundle source commit
|
||
`2cbde54602c07f62a62f341400bc9cb4764a93f8`.
|
||
|
||
* `tools/stdlib/bundle-pin.json` pins `marqdo-stdlib@0.1.0` with tree digest
|
||
`sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713`
|
||
and alias digest
|
||
`sha256:5f513c0fdbb3c1e9829be3c9fa23a2d1e89cb8510073fb5eb1e8e2f5265a83bb`;
|
||
`tools/stdlib/bundle.py` is the single resolver/verifier.
|
||
* `tools/pack-stdlib.py` and `tools/release/package.py` require
|
||
`--stdlib-dir` and accept `--bundle-pin`. A missing directory, missing
|
||
manifest, tree/alias digest mismatch, pin mismatch or symlink fails before
|
||
an archive is written; `RELEASE_INFO.json.stdlib.source` records the pinned
|
||
kind/repository/commit/path.
|
||
* Product, performance and release lanes resolve that Bundle
|
||
(`crates/cli/tests/support/stdlib.rs`, `tools/perf/runner.py`). An explicit
|
||
`MARQDO_TEST_STDLIB_BUNDLE`/`--stdlib-dir` changes the location but must match
|
||
the pin; a bad override fails even when the default is valid. Loader unit
|
||
tests build small synthetic Bundles.
|
||
* `tools/ci/independent_build.py` exports a clean copy without `stdlib/`,
|
||
builds `marqdo-cli` + `marqdo-provider-worker` with `--locked`, runs the
|
||
language-only `tests/independent/language-only.mq.md`, and requires a
|
||
stdlib-dependent run to fail closed with no sibling `stdlib/`. GitHub and
|
||
Woodpecker run the lane.
|
||
* Archive smoke and cold-install keep the missing-Bundle failure and now also
|
||
require the language-only `factorial` call to succeed after the shipped
|
||
`stdlib/` is moved aside. Two packaging runs from the same input and
|
||
toolchain are byte-identical.
|
||
|
||
Evidence:
|
||
[`evidence/2026-11-26-issue-11-phase-a.md`](evidence/2026-11-26-issue-11-phase-a.md).
|
||
Runtime discovery is unchanged: `MARQDO_STDLIB_DIR` (invalid values still fail
|
||
hard), then `stdlib/` next to the executable, then the debug-only source
|
||
fallback. Phase B is gated on ecosystem issue #2 and the extension replacement
|
||
evidence named by issue #11.
|
||
## 0.12 Engine / Host Contract boundary — issue #13 (unreleased candidate)
|
||
|
||
This is an **internal architecture candidate**, not a release. The product
|
||
version stays `3.0.0-rc.4`; no new tag or release claim is made. Baseline is
|
||
`master` at `4bbefc92449ee480c8a2c89b0308feb4cda8d0e7`; the PR records the exact
|
||
candidate SHA and evidence is
|
||
[`evidence/2026-11-26-issue-13-engine-host-boundary.md`](evidence/2026-11-26-issue-13-engine-host-boundary.md).
|
||
|
||
Implemented in the candidate:
|
||
|
||
- `marqdo-host-contract` owns the only Host trait/HostOp/ExecutionContext/
|
||
ResourceRead and runtime observation facts. `marqdo-runtime` depends on it,
|
||
never on `marqdo-host` in normal/build edges. `marqdo-host` implements it and
|
||
has no reverse dependency on runtime/frontend/IR.
|
||
- `tests/embedding` is a real independent Cargo workspace/lock consumer that
|
||
builds without the native host, executes the real Markdown→frontend→IR→runtime
|
||
path with real fuel/stack/deadline/memory limits and explicit effect
|
||
refusals, and matches a real CLI invocation on the same `.mq.md` for `Int` and
|
||
structural values.
|
||
- `marqdo-plugin-abi` is a contract crate only (C ABI, wire, errors);
|
||
manifest/artifact validation, `dlopen` and worker process live in
|
||
`marqdo-host::plugin`. `marqdo-plugin-sdk` transitively carries no loader,
|
||
worker, host or sandbox dependency.
|
||
- `tests/sdk-plugin` builds a third-party plugin with only the public SDK; the
|
||
real CLI loads/invokes it with explicit trust/grant and rejects a tampered
|
||
artifact digest.
|
||
- Dependency direction is enforced from Cargo metadata by
|
||
`tools/ci/check_dependency_boundaries.py` (with negative unit cases) and
|
||
`cargo test -p marqdo-cli --test architecture_boundaries`.
|
||
- The current architecture/developer entry and ADR-0071 record the
|
||
**keep-in-workspace** repository decision; no empty candidate repository was
|
||
created.
|
||
|
||
Executed in this environment (Linux x86_64, Rust 1.100): formatting, clippy,
|
||
locked workspace tests (**636 passed / 0 failed / 2 ignored**;
|
||
baseline `4bbefc9` 633 passed / 0 failed / 2 ignored, so no regression), docs/architecture gates, dependency gate, engine
|
||
differential gate and SDK gate PASS. The Windows GNU cross-target compile check
|
||
passes; it is not a native Windows runtime claim. Woodpecker PR pipeline #101
|
||
for code SHA `9b4f0a0` is **success**, including the `build` step (release
|
||
archive from that SHA, archive smoke, frozen external conformance) and the
|
||
`minimum-rust` lane; that is same-candidate CI evidence, not a release tag.
|
||
Deliberately **UNVERIFIED** here: Windows/macOS native lanes, strict VM, WASM
|
||
probe (target std not installed; `E0463`, not a forbidden native dependency)
|
||
and performance/RSS. RC.4 evidence is not reused.
|
||
|
||
Remaining, separately owned work at that snapshot: stdlib Bundle Phase B (issue #11/#12),
|
||
SDK physical repository after S07/S08 (**superseded by §0.13 — the split was
|
||
reverted and the remote repository deleted**), regex/compression replacement
|
||
under ADR-0062, foreign F-B (ADR-0063), platform and strict evidence, and the
|
||
Engine/Native Host split only if the ADR-0071 reopening conditions appear.
|
||
|
||
## 0.13 Plugin SDK remains in the CLI workspace — split reverted (unreleased candidate)
|
||
|
||
This is an architecture correction, not a product/protocol change. Decision:
|
||
[ADR-0073](adr/0073-sdk-stays-in-cli-workspace.md) (supersedes
|
||
[ADR-0072](adr/0072-sdk-independent-repository.md)). Evidence:
|
||
[`evidence/2026-11-26-issue-15-sdk-split-reverted.md`](evidence/2026-11-26-issue-15-sdk-split-reverted.md).
|
||
|
||
- The public `cflmy/marqdo-plugin-sdk` repository was **deleted**. The SDK
|
||
source is restored as the CLI workspace crate `crates/marqdo-plugin-sdk`, with
|
||
the same contract-only dependency graph (`marqdo-plugin-abi` + serde); it is
|
||
not a remote repository, mirror or submodule.
|
||
- The CLI keeps the atomic plugin-development surface: C header, `spec/`, the
|
||
`marqdo-plugin-abi` contract, SDK helpers, fixture and real CLI invocation
|
||
test change in one workspace/lock/candidate SHA. No cross-repository `rev`
|
||
pin remains.
|
||
- `tests/sdk-plugin` and `tools/ci/check_plugin_sdk.py` are restored; the gate
|
||
builds the fixture with only the public SDK and invokes it through the real
|
||
CLI with explicit trust/grant, rejecting a tampered artifact digest.
|
||
- Logical ADR-0071 boundaries are unchanged: the runtime depends only on the
|
||
neutral contract, `marqdo-plugin-abi` is a pure contract, loader/worker live
|
||
in `marqdo-host::plugin`, CLI is the single assembly point.
|
||
- External plugin access is unchanged: the CLI product and public repository
|
||
carry the header/spec/SDK/loader; plugin authors compile their plugin, not the
|
||
CLI. Engine/Native Host remain in the workspace; no other split is planned.
|
||
- ADR-0072 and the old issue-#15 evidence carry Superseded banners. The remote
|
||
replica is gone; Git history retains the decision/implementation record.
|
||
|
||
## 0.14 External ecosystem stdlib Bundle — issue #11 Phase B (unreleased candidate)
|
||
|
||
Phase B finishes the extraction ADR-0070 prepared: this repository has **no**
|
||
`stdlib/` source tree and no compile-time source fallback. The accepted Bundle
|
||
identity is the ecosystem pin:
|
||
`marqdo-stdlib@0.2.0`, source `cflmy/marqdo@48189243f7`, tree digest
|
||
`sha256:db905508...`, aliases digest `sha256:5f513c0f...` (17 modules, no
|
||
component self-tests). `tools/stdlib/bundle.py` requires an explicit
|
||
`--stdlib-dir`/`MARQDO_TEST_STDLIB_BUNDLE` for the accepted Bundle;
|
||
`tools/ci/fetch_ecosystem_bundle.py` materializes it from the pinned root
|
||
commit and component gitlinks.
|
||
|
||
Moved with their ownership: module self-tests and domain behaviour tests live
|
||
in the component repositories (six std repos, `marqdo-ext-http`,
|
||
`marqdo-ext-regex`, `marqdo-ext-archive`); the CLI product lane now verifies
|
||
the accepted Bundle's public surface and official `print`/`打印` routing
|
||
(`tests/product-stdlib/`), and the Table-split / print-format composition
|
||
assertions live in the root Bundle acceptance. The generic TCP endpoint
|
||
round-trip stays a CLI test (`tcp_round_trip.rs`); the HTTP-over-TCP domain
|
||
test moves to the HTTP package owner.
|
||
|
||
Runtime discovery is now only `MARQDO_STDLIB_DIR` then the installed sibling
|
||
`stdlib/` (no debug fallback). Bundle release packaging still ships the Bundle
|
||
next to the CLI, so installed behaviour is unchanged.
|
||
|
||
## 0.10 Closed public Analysis boundary — issue #10 (RC.4 released)
|
||
|
||
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 ([pipeline #94](https://ci.cflmy.cn/repos/1/pipeline/94)) is PASS
|
||
for `452e9a3` on all four lanes; its build lane packaged the archive, ran smoke
|
||
and the frozen extension suite 7/7. The local same-SHA archive passed smoke,
|
||
the archive-only Ubuntu 24.04 cold-install container and frozen conformance
|
||
7/7. Strict L1 PASS is recorded from a disposable QEMU/TCG VM as non-root
|
||
`dev` (uid 1000), with the archived binary re-verified in that VM. Performance
|
||
is a maintainer-approved shared-node `WARN` for this RC only; stable/LTS still
|
||
requires a dedicated fixed node. The gate aggregate is
|
||
[`evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json`](evidence/ci/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json)
|
||
(`RC_RELEASE_CANDIDATE`). Release
|
||
[notes and assets](https://git.cflmy.cn/cflmy/marqdo-cli/releases/tag/v3.0.0-rc.4).
|
||
Downstream migration issues: `marqdo-view#6`, `marqdo-lint#4`.
|
||
|
||
## 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 the reviewed candidate tree, Linux x86_64
|
||
(workspace `3.0.0-rc.3`, Rust 1.100.0):
|
||
|
||
```text
|
||
cargo fmt --all -- --check PASS
|
||
cargo clippy --workspace --all-targets -- -D warnings PASS
|
||
cargo test --workspace --locked PASS: 607 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: 7 passed
|
||
cargo test -p marqdo-cli --test observation PASS: 16 passed
|
||
cargo test -p marqdo-cli --test analysis_observation PASS: 23 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
|
||
python3 -m unittest discover -s tools/ci -p "test_*.py" PASS: 41 tests
|
||
```
|
||
|
||
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
|
||
```
|
||
|
||
Same-SHA CI on the first (pre-review) candidate build, Linux x86_64
|
||
([pipeline #70](https://ci.cflmy.cn/repos/1/pipeline/70), commit
|
||
`5a89a137c7f76f6c31744a4e8f8d4dbc0af623ef`): the fast `contract` lane, the full
|
||
Rust `test` lane (fmt, clippy, workspace tests, docs/architecture gates, Windows
|
||
cross-target compile check), `minimum-rust` and `build` all PASS. The build lane
|
||
produced `marqdo-3.0.0-rc.3-x86_64-unknown-linux-gnu.tar.gz`
|
||
(sha256 `d6ef6297a7ba5297af758a0b00da5c6e0f4b69f40363afc4ddc180654e70ac37`),
|
||
passed the from-archive smoke, and passed the frozen external conformance suite
|
||
7/7 with fixtures at `015ff8ac15417b7ebbdb31ce2be2dab5362a1eba`
|
||
(callable registry, plugin worker, foreign kernel, provider CLI, pinned package,
|
||
tool Analysis consumer, negative security).
|
||
|
||
The detailed local log and that CI addendum are in
|
||
[`evidence/2026-11-24-rc.3-protocol-convergence-local.md`](evidence/2026-11-24-rc.3-protocol-convergence-local.md);
|
||
they describe the protocol convergence itself. The reviewed candidate's own
|
||
same-SHA CI, archive and gate evidence are recorded in the release evidence
|
||
bound to the released SHA.
|
||
|
||
### 0.9.1 Review closure on the candidate tree
|
||
|
||
A code review of the first candidate build found and closed these defects
|
||
(regression test for each):
|
||
|
||
- A strict run no longer emits a partial JSONL stream for a destination it
|
||
refuses; live and file destinations are rejected 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`).
|
||
- The shared worker transport preserves `worker_frame_too_large` and
|
||
`worker_encode_failed` for the plugin boundary.
|
||
- Observation error locations no longer embed an absolute host path, and
|
||
pre-start option errors use the documented `options` phase.
|
||
- The event and snapshot schemas agree on the capture `level` enum.
|
||
- The G4 workload catalogue measures `run`/`call` through `--output json`; the
|
||
retired `--json` flag had made every non-check workload fail correctness.
|
||
- `spec/` and the current developer guides were brought back in line with the
|
||
binary, and a docs-consistency gate now fails when a retired interface or a
|
||
deleted spec path returns.
|
||
|
||
Release status: **published as `v3.0.0-rc.3`**. The RC profile gates in
|
||
[`releasing.md`](releasing.md) were executed on the tagged SHA: same-SHA Linux
|
||
CI (formatted, clippy-clean, 607 workspace tests, contract lane, minimum Rust
|
||
1.89, build lane with from-archive smoke and frozen extensions 7/7), the
|
||
archive-only clean install, frozen external conformance against the published
|
||
archive, version compatibility, a disposable-VM strict L1 PASS as non-root with
|
||
the published archive re-verified in that guest, and three paired shared-node
|
||
G4 runs whose maintainer-approved `WARN` is recorded for this named RC. The
|
||
per-gate manifest, release notes and logs are in
|
||
[`evidence/2026-11-24-rc.3-release.md`](evidence/2026-11-24-rc.3-release.md),
|
||
[`evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json`](evidence/ci/1e2a045cc78bf40972181abb44e7117c56cf4401/manifest.json) and the
|
||
release assets. An unavailable strict host is fail-closed, never a downgrade.
|
||
|
||
## 0. Beta release record — `3.0.0-beta.1`
|
||
|
||
### 0.1 Product, version axes and scope
|
||
|
||
- Workspace/crate version, `marqdo --version` and Analysis `producer.version`
|
||
are `3.0.0-beta.1`; `Cargo.lock` is committed and release builds use
|
||
`--locked`.
|
||
- At the tagged beta, the axes were Analysis v2, Trace v2, Tool v1, Plugin ABI
|
||
v1, Foreign wire v1, Provider manifest v2, lock v4, markdown profile
|
||
`marqdo.md.v1`; bundled stdlib stayed package version `0.1.0`. Those are
|
||
historical identifiers, not current claims.
|
||
- `project.marqdo` is enforced; prerelease SemVer rules are covered by tests
|
||
(`>=3.0.0,<4.0.0` does not silently accept a beta core).
|
||
- Only the Linux x86_64 archive is claimed. macOS/Windows are
|
||
experimental/unclaimed; the Windows lane in CI is a compile cross-check only.
|
||
- Known limitations are shipped as `KNOWN_LIMITATIONS.md` and recorded in
|
||
[`developers/release-limits.md`](developers/release-limits.md).
|
||
|
||
### 0.2 Beta gates on the tagged SHA
|
||
|
||
Every row is required for the beta profile
|
||
(`tools/ci/release_evidence.py --profile beta`); a missing, failed, skipped or
|
||
SHA-mismatched gate is `DO_NOT_RELEASE`.
|
||
|
||
| Gate | Beta requirement | Evidence |
|
||
|---|---|---|
|
||
| Source hygiene | clean tree, committed `Cargo.lock`, `--locked` builds | release commit; `RELEASE_INFO.json` |
|
||
| Static/tests | `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace --locked` PASS | [pipeline #37](https://ci.cflmy.cn/repos/1/pipeline/37); [gate record](evidence/2026-11-22-beta-release-gates.md) |
|
||
| Release build | `cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker` PASS | archive contains both binaries, same target (`RELEASE_INFO.json`) |
|
||
| Linux CI | same-SHA Woodpecker pipeline PASS | [pipeline #37](https://ci.cflmy.cn/repos/1/pipeline/37), commit `2c7c4f31e7a388d3fcfa717a77067e696ed13854` |
|
||
| Frozen-binary conformance | external `marqdo-extension-conformance` suite PASS with unchanged CLI hash | [`evidence/extension/2c7c4f31e7a388d3fcfa717a77067e696ed13854/manifest.json`](evidence/extension/2c7c4f31e7a388d3fcfa717a77067e696ed13854/manifest.json) (7/7; fixture `e22ec95…`) |
|
||
| Clean-install smoke | archive-only smoke PASS (incl. provider worker positive/negative, tools, plugins, kernel, Analysis/Trace) | [gate record](evidence/2026-11-22-beta-release-gates.md) |
|
||
| Version compatibility | prerelease Tool/project SemVer tests PASS; `project.marqdo` fail-closed tests PASS | pipeline #37 test step; local `cargo test` |
|
||
| Strict policy | same-SHA disposable-VM G3 PASS for Linux strict L1 (or a tested fail-closed `strict: unsupported` policy) | [strict G3 evidence](evidence/2026-11-22-strict-gc-2c7c4f31.md) (`outcome: PASS`, uid 1000, container none) |
|
||
| Performance | correctness-verified `MEASURED` on fixed Woodpecker agent; Beta-only `WARN` approved with environment/limits | [G4 evidence](evidence/2026-11-22-perf-woodpecker-agent-1-run38.md), [pipeline #38](https://ci.cflmy.cn/repos/1/pipeline/38) |
|
||
| Support matrix | Linux x86_64 supported; macOS/Windows explicitly unsupported/experimental | [`../COMPATIBILITY.md`](../COMPATIBILITY.md) |
|
||
| Third-party guide | every handbook command executed against the released archive | [guide validation](evidence/2026-11-22-beta-guide-validation.md) |
|
||
|
||
Release decision: **BETA_RELEASE_CANDIDATE** on
|
||
[`evidence/ci/2c7c4f31e7a388d3fcfa717a77067e696ed13854/manifest.json`](evidence/ci/2c7c4f31e7a388d3fcfa717a77067e696ed13854/manifest.json). Tag
|
||
`v3.0.0-beta.1` was created only from `2c7c4f31e7a388d3fcfa717a77067e696ed13854` after every row above was green;
|
||
the archive is
|
||
`marqdo-3.0.0-beta.1-x86_64-unknown-linux-gnu.tar.gz` with sha256
|
||
`507e4cd358f75f517433935ce90d5fc2eb5cecda4f19121a68b136c83b15f317`, published
|
||
as a Gitea prerelease. This is a prerelease: it does **not** imply stable
|
||
`3.0.0`, does not promise LTS, and does not claim macOS/Windows artifacts,
|
||
strict L2, Wasm, or a package registry.
|
||
|
||
### 0.3 Strict and performance policy for this beta
|
||
|
||
- `strict` is Linux-only, Bubblewrap-probe-gated L1 (pure language + Math). It
|
||
refuses plugins, providers, foreign kernels, external grants and
|
||
`--trace-file`; strict L2 is not implemented. The release notes and
|
||
`COMPATIBILITY.md` state the exact same-SHA evidence or the tested
|
||
fail-closed unsupported policy; there is no silent fallback to `project`.
|
||
- G4 is a fixed-node measurement with 9 correctness-verified workloads; this
|
||
release records the shared/powersave environment and a **Beta-only WARN**
|
||
approved in the release notes. Development-container or QEMU/TCG timings are
|
||
never reported as G4.
|
||
|
||
### 0.4 Extensibility closure on the beta tree
|
||
|
||
Implemented and covered on the release commit: one static callable binding
|
||
(`CallSiteKey`, no runtime name fallback), official stdlib aliases without
|
||
print magic, Resource Provider v2 through `--provider`/`--allow-provider`
|
||
(worker helper only), explicit extension selection + lock v4, and a capability
|
||
handler registry. `check`/`inspect` never load extension binaries; plugin
|
||
exports reconcile exactly with the static manifest. The independent
|
||
frozen-binary suite is the beta gate above; the older `6a7bb98` manifest is
|
||
historical and superseded by the release-SHA manifest.
|
||
|
||
## 0.5 Historical: post-beta Execution Events v1 (superseded by Observation)
|
||
|
||
This section records work **after** the `v3.0.0-beta.1` tag. It is not part of
|
||
the tagged beta archive and no new release tag has been created. The design
|
||
input is RFC-OBS-0001 (issue `#1`), the frozen decision is ADR-0059 and the
|
||
normative contract is [the beta-era event contract](https://git.cflmy.cn/cflmy/marqdo-cli/src/tag/v3.0.0-rc.2/spec/execution-events-v1.md).
|
||
Executed evidence for this section is
|
||
[`evidence/2026-11-22-execution-events-v1.md`](evidence/2026-11-22-execution-events-v1.md).
|
||
|
||
- **Implemented (P0/P1):** `run/call --event-stream jsonl` writes a pure NDJSON
|
||
`marqdo.execution-events` v1 stream; lifecycle/terminal events; byte-exact
|
||
base64 stdout/stderr chunks emitted at the Host commit point; run-unique
|
||
`frame_id`/`parent_frame_id`; `return`/`branch.eval`/`loop.iteration`/`effect`
|
||
attribution; exact-name, bounded value observation with a separate
|
||
`--observe-text-values` consent; structural/value budget with one
|
||
`observation.truncated`; broken-pipe failure via `observe.transport_failed`;
|
||
Trace v2 coexistence with a shared run id and unchanged Trace schema.
|
||
- **Unchanged:** Analysis v2 and Trace v2 schemas/versions, `--json` envelope,
|
||
default stdout/stderr/exit codes, language semantics and capability
|
||
authorization.
|
||
- **Deferred:** OBS-06 memory metadata (P2), debugger/stepping/time travel,
|
||
bidirectional debug protocol, SSE/HTTP in the CLI (View implements that).
|
||
- **Explicitly unsupported combination:** `--mode strict` rejects
|
||
`--event-stream` with a structured `run.rejected`; there is no downgrade.
|
||
|
||
Executed local gate on this tree (Linux x86_64, Rust 1.100.0):
|
||
|
||
```text
|
||
cargo fmt --all -- --check PASS
|
||
cargo clippy --workspace --all-targets -- -D warnings PASS
|
||
cargo test --workspace --locked PASS: 630 passed, 0 failed, 2 ignored
|
||
cargo test -p marqdo-cli --test execution_events PASS: 14 passed
|
||
cargo test -p marqdo-host --test observation PASS: 8 passed
|
||
cargo test -p marqdo-runtime --test observation PASS: 4 passed
|
||
python3 tests/consumers/execution_events_consumer.py PASS on a live real-binary stream (schema, seq, terminal, byte_count)
|
||
```
|
||
|
||
The Python consumer is an independent black-box parser using only the checked-in
|
||
JSON Schema; it was run against the local binary's stream and the checked-in
|
||
valid/invalid fixtures. This is local evidence, not a frozen release-archive or
|
||
same-SHA CI gate. `cargo test --workspace --locked` includes the new schema
|
||
fixture test when `python3` + `jsonschema` are available (the Woodpecker test
|
||
lane installs `python3-jsonschema` and also runs the consumer against a real
|
||
`--event-stream jsonl` invocation).
|
||
|
||
## 0.6 Post-beta core/extension boundary — RFC-EXT-0003 (unreleased)
|
||
|
||
This section records work **after** the `v3.0.0-beta.1` tag. It is not part of the
|
||
tagged beta archive and no new tag or stable release has been created. Design
|
||
input: issue `#3` (RFC-EXT-0003). Frozen decisions: ADR-0060 (Core Modes /
|
||
Heading Annotations), ADR-0061 (math detach), ADR-0062 (`resource_request`
|
||
ownership / core resource kinds), ADR-0063 (foreign F-A). Executed evidence:
|
||
[`evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md).
|
||
|
||
### 0.6.1 Implemented / fixed
|
||
|
||
- **H-06 sibling heading inheritance:** `build_units` now removes the current and
|
||
all same-or-higher-level headings from the ancestor stack before deriving the
|
||
inherited mode. An unmarked heading inherits the nearest **ancestor**, never the
|
||
previous sibling. Reproduced with the two audit documents first, then covered by
|
||
the `units` matrix, conformance fixtures 22/23 and black-box
|
||
`heading_inheritance` (`check --emit`, `run`, `call`).
|
||
- **H-08 release archive stdlib:** the deterministic archive now contains the
|
||
complete `stdlib/` tree; `RELEASE_INFO.json.stdlib` records name, version,
|
||
tree/alias digests, file count and file list. `package.py` and `smoke.py`
|
||
recompute both digests with the runtime algorithm and fail on mismatch; smoke
|
||
removes the bundle and requires a fail-closed run (no source fallback). Release
|
||
discovery only falls back to the compile-time source tree in debug builds.
|
||
Since issue #11 Phase A the Bundle is one required explicit build input
|
||
(`--stdlib-dir`) with a pinned identity and a recorded source commit
|
||
(ADR-0070); see §0.11.
|
||
- **H-04 core resource kinds:** `marqdo_host::CORE_RESOURCE_KINDS` is the single
|
||
registry used by the CLI manifest validator and every trusted host registration
|
||
path; all six core kinds are rejected as a provider name and as a declared kind
|
||
before registration.
|
||
- **H-01 math domain API removed (breaking):** the five `math.*` builtins,
|
||
`HostOp` variants, runtime arms and `crates/marqdo-math` are deleted. A call is a
|
||
static `symbol.unknown`; `Formula` stays inert. Math algorithms are a pure
|
||
`.mq.md` package (`examples/math-library/`) and an optional explicitly selected
|
||
ABI backend that requests the `math.compute` capability
|
||
(`examples/math-backend/`). The historical `math` import namespace is released.
|
||
`math.compute` stays a capability category, not a core solver.
|
||
- **H-03 `resource_request` ownership:** the reviewed operation table and policy
|
||
are in [`architecture/resource-operations.md`](architecture/resource-operations.md);
|
||
`architecture_boundaries::resource_request_operation_allowlist_is_reviewed` extracts
|
||
the literals and fails on an unreviewed operation. New domain operations are
|
||
forbidden in the core.
|
||
|
||
### 0.6.2 Proposed / deferred (not implemented, not claimed)
|
||
|
||
- **H-05/H-07/H-13 Heading Annotations v1:** `@exec`/`@knowledge` are frozen as
|
||
the only Core Modes and alone decide execution. A declarative, metadata-only
|
||
heading annotation layer is **Proposed** (ADR-0060,
|
||
[`spec/heading-annotations-v1.md`](../spec/heading-annotations-v1.md), target
|
||
`3.1.x`). This build still rejects an unknown `@foo` with
|
||
`sem.invalid_mode_marker`; no annotation manifest, `annotation.unknown`,
|
||
Analysis v3 or sidecar exists yet. Not advertised as available.
|
||
- **H-02/F-B foreign:** the one-shot permission-gated `foreign.run/call` and the
|
||
dynamic `KernelRegistry` remain the controlled OS-boundary primitive (F-A);
|
||
removal (F-B) needs a versioned generic process/worker capability and the same
|
||
security negatives. ADR-0063, [`spec/foreign.md`](../spec/foreign.md) §8.
|
||
- Still deferred: full Math CAS/solver, persistent Foreign sessions, notebook
|
||
execution, Analysis v3/sidecar, Windows/macOS native gates, strict L2.
|
||
|
||
### 0.6.3 Executed gate (Linux x86_64, Rust 1.100.0)
|
||
|
||
```text
|
||
cargo fmt --all -- --check PASS
|
||
cargo clippy --workspace --all-targets -- -D warnings PASS
|
||
cargo test --workspace --locked PASS: 586 passed, 0 failed, 2 ignored
|
||
python3 -m unittest discover -s tools/ci -p 'test_*.py' PASS: 28 passed
|
||
cargo test -p marqdo-cli --test heading_inheritance PASS: 4 passed
|
||
cargo test -p marqdo-cli --test math_library PASS: 2 passed
|
||
cargo test -p marqdo-host --test resource_streams PASS: 34 passed
|
||
cargo test -p marqdo-cli provider_manifest PASS: 9 passed
|
||
cargo test -p marqdo-cli --test conformance_semantics PASS: 22/23/74/75 goldens
|
||
```
|
||
|
||
The archive/stdlib digests, cold-install smoke, independent `ubuntu:24.04`
|
||
container and external frozen-binary conformance are executed on the implementation
|
||
commit and recorded with exact hashes in
|
||
[`evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md`](evidence/2026-11-22-rfc-ext-0003-core-hardcoding.md)
|
||
§5–§7; the external frozen-binary manifest is
|
||
[`evidence/extension/b9c41564aeeadd2b7b202256b866bc13f995cb36/manifest.json`](evidence/extension/b9c41564aeeadd2b7b202256b866bc13f995cb36/manifest.json)
|
||
(7/7 PASS, CLI sha256 `e684ed26…` matching the archive). This is local evidence,
|
||
not a same-SHA CI pipeline or a tagged release; platform claim remains Linux x86_64.
|
||
|
||
## 0.7 Post-beta stable core review — RFC-GPL-0004 (unreleased)
|
||
|
||
- [ADR-0064](adr/0064-stable-core-extension-boundary.md) requires an accepted ADR,
|
||
spec updates, evidence from three unrelated use cases and positive and negative
|
||
cases for a core surface change. Tests check the current Builtin names and
|
||
aliases, HostOp and Value variants, top-level CLI commands and the exact
|
||
`resource.request` catalogue.
|
||
- The compatibility dispatcher lives in
|
||
`crates/marqdo-host/src/host/resource_requests.rs`. The Host still checks
|
||
project mode, operation grants and argument shapes. Existing names and
|
||
protocol versions apply. Math and Foreign follow ADR-0061 and ADR-0063.
|
||
- The Linux jobs in Woodpecker and GitHub run
|
||
`tools/ci/run_frozen_extensions.sh` against the release archive. The fixed
|
||
cross-repository fixture covers pure package, Callable Worker, Foreign
|
||
Kernel, Provider Worker and Tool. It also includes
|
||
[`marqdo-net`](https://git.cflmy.cn/cflmy/marqdo-extension-conformance/src/commit/cf92e1ae7d22cb4bd1f5609c5fa8daa11e8980ec/marqdo-net)
|
||
for bounded HTTP(S) and live SSE and
|
||
[`marqdo-agent`](https://git.cflmy.cn/cflmy/marqdo-extension-conformance/src/commit/cf92e1ae7d22cb4bd1f5609c5fa8daa11e8980ec/marqdo-agent)
|
||
for a sequential conversation with caller-authorized local tools. The gate
|
||
checks the CLI (including its embedded plugin Worker) and the sibling
|
||
Provider Worker digests against the archive and after the fixture run.
|
||
- The Resource Control and Task milestones start with proposed
|
||
[ADR-0065](adr/0065-resource-control-vnext.md) and
|
||
[ADR-0066](adr/0066-structured-tasks-v1.md). Provider control, readiness,
|
||
in-flight cancellation, parallel Agent, DB/QPU examples and Buffer
|
||
Exchange remain follow-up work. Buffer Exchange first needs measurements
|
||
of repeated container updates, resource I/O and Worker wire copies.
|
||
The post-beta work does not qualify a new tag or stable release.
|
||
|
||
Local Linux x86_64 evidence for implementation commit `3bc7267` passed
|
||
formatting, Clippy with warnings denied, the workspace (587 passed, 2 ignored),
|
||
the CLI suite (215 passed), and the CI tool tests (30 passed). The release archive
|
||
passed its installation smoke test. The [frozen archive manifest](evidence/extension/3bc726790fdcee3694fc0b56adbcfd0c6c645275/manifest.json)
|
||
records 7/7 conformance groups and 6/6 reference cases with both executable
|
||
digests. The external lane ran from a temporary fixture checkout with Cargo
|
||
absent from PATH. Archive SHA-256 is
|
||
`8934bfc25c7b5526071eae6f24143ca3805ad3d7cc484626a4345b1deed430b2`.
|
||
|
||
## 0.8 Historical: structured control flow — RFC-CTRL-0005 (RC.2 snapshot)
|
||
|
||
[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.
|
||
`break` and `continue` transfer to the nearest loop in the same heading
|
||
execution segment. Binding inference joins only reachable control exits.
|
||
The [runnable example](../examples/control-flow.mq.md) uses ordinary Markdown
|
||
list containers.
|
||
|
||
[the shipped rc.2 Analysis contract](https://git.cflmy.cn/cflmy/marqdo-cli/src/tag/v3.0.0-rc.2/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. 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
|
||
|
||
> **Historical record.** Everything in §1 onward was executed before the
|
||
> `v3.0.0-beta.1` tag. It is kept for audit history; it is not the current
|
||
> release status. Do not copy its SHAs, test counts or decisions into a release
|
||
> claim.
|
||
|
||
## 1. Historical: pre-beta remote baseline
|
||
|
||
The local language baseline for this snapshot is `9c1723d` (2026-11-21,
|
||
semantics v2 implementation plus follow-up fixes). The later
|
||
documentation and test migration is recorded by its own commits; re-run the gate
|
||
before making a release claim.
|
||
|
||
The old GitHub `master` `c9f01aa8fb127a2dcc125103ef794832984774ad`
|
||
and public CI [run 44692692318](https://github.com/cflmy/marqdo-cli/actions/runs/44692692318)
|
||
are **historical (2026-11-20), not current**, and that run was red:
|
||
|
||
- Linux `fmt + clippy + test`: FAIL —
|
||
`strict_mode_enforces_isolation_or_refuses_closed` hit
|
||
`bwrap: Creating new namespace failed: Resource temporarily unavailable`.
|
||
- macOS / Windows `cargo test --workspace`: FAIL — `E0433` on
|
||
`linux::probe()` under `cfg!`.
|
||
- Schema instance validation + consumers: PASS.
|
||
- Release candidate artifact: SKIPPED (upstream failure; tag/dispatch only).
|
||
|
||
The remote SHA had to be refreshed from CI after a push; `c9f01aa8` was never
|
||
the current tree for later work.
|
||
|
||
This checkout's private remote is `https://git.cflmy.cn/cflmy/marqdo-cli` with
|
||
Woodpecker CI at `https://ci.cflmy.cn` (`.woodpecker/main.yml`). The Linux Docker
|
||
pipeline runs fmt/clippy/test/release-build; the docs-consistency gate runs in
|
||
`cargo test --workspace`. The GitHub-hosted native matrix is now green at
|
||
`5fcc111` ([run 30](https://github.com/cflmy/marqdo-cli/actions/runs/44896671929)).
|
||
A CI-attached strict VM runner is still unavailable; the G-C evidence below
|
||
remains local VM evidence.
|
||
|
||
Convergence code/security SHA: **`8af72620f12e2494a59830a23abb393768b610e9`**
|
||
(the following docs commit only adds this report and release material; code is
|
||
byte-identical).
|
||
|
||
### Local static and test gate (Ubuntu 26.04, Rust 1.100.0)
|
||
|
||
```text
|
||
cargo fmt --all -- --check PASS
|
||
cargo clippy --workspace --all-targets -- -D warnings PASS
|
||
cargo test --workspace --locked PASS
|
||
491 passed, 0 failed, 2 ignored; includes 7/7 Linux security tests
|
||
```
|
||
|
||
The documentation and test migration is local work; re-run this block after it
|
||
lands and update the count from the log rather than copying the number.
|
||
`docs_consistency`, `architecture_boundaries` and `stdlib_product` run inside
|
||
this workspace suite.
|
||
|
||
### G-C security lane (disposable Ubuntu 26.04 VM, ordinary user `dev`)
|
||
|
||
Source: `git archive 70d916d` extracted in the VM (not the dev container).
|
||
Host: QEMU/TCG, kernel `7.0.0-43-generic`, `systemd-detect-virt --container`
|
||
= `none`, bubblewrap 0.11.1 with `bwrap-userns-restrict`, uid 1000.
|
||
|
||
```text
|
||
./tests/security/run-lane.sh
|
||
adversarial helper matrix: 7 passed, 0 failed, 0 ignored
|
||
positive CLI contract: PASS
|
||
external-execution surfaces refused: PASS
|
||
forged active marker rejected: PASS
|
||
G-C security lane: PASS
|
||
cargo test --workspace --locked (same archive): 47 ok, 0 failed
|
||
```
|
||
|
||
Logs: [`evidence/2026-11-20-strict-resource-cm-a11.log`](evidence/2026-11-20-strict-resource-cm-a11.log)
|
||
and [`evidence/2026-11-20-strict-gc-8af7262.md`](evidence/2026-11-20-strict-gc-8af7262.md).
|
||
This is still a **local VM lane**, not a self-hosted GitHub Actions security URL.
|
||
|
||
## 2. Work package status
|
||
|
||
> **Historical table note.** Most rows in this section record work executed
|
||
> before the RFC-LANG-0002 syntax migration. Language-source rows (fixtures,
|
||
> control mapping, semantic goldens) were re-verified after the rewrite at
|
||
> `9c1723d` (§0); platform/security rows keep their original evidence dates and
|
||
> are not refreshed by the language migration.
|
||
|
||
| # | Work package | State | Evidence |
|
||
|---|---|---|---|
|
||
| 0 | Windows AST line endings | **Windows CI PASS** (`5fcc111`) | `.gitattributes`, CRLF fixture |
|
||
| 1 | macOS native plugin fixtures | **macOS CI PASS** (`5fcc111`) | host-target manifest + dylib flags |
|
||
| 2 | Cross-platform strict `cfg` | **Native CI PASS** (`5fcc111`) | `#[cfg]` dispatch + non-Linux regression test |
|
||
| 3 | Strict probe→launch race | **Linux CI PASS** (`5fcc111`) + deterministic seam | fail-closed CLI contract + probe-OK/launch-EAGAIN seam test |
|
||
| 4 | Parallel security matrix isolation | **Fixed** | unique paths + helper `OnceLock`; 7/7 in parallel workspace run |
|
||
| 5 | Markdown/power/control-flow corpus | **Green on semantics v2** | 160 AST + 73 semantic + 49 compile-negative + 2 warning + 21 runtime-negative fixtures; `conformance_ast`/`semantics`/`negative` pass |
|
||
| 6 | Payload/control source spans | **Green on semantics v2** | UTF-8 spans, control-expression offsets and heading boundaries covered by fixtures and CLI tests; old condition headers were removed |
|
||
| 7 | Independent Tool consumers | **Done locally** | `sample-view`/`sample-knowledge`/`sample-proof` E2E test |
|
||
| 8 | lock v4 reproducibility + extension identities | **Implemented; tamper/migration tests added** | `package_env`, `extension_selection` PASS |
|
||
| 9 | Analysis/Trace/Tool/ABI/Foreign | **Implemented; supported-matrix bounded** | protocol tests, plugin/worker/foreign tests |
|
||
| 10 | Linux strict L1 | **Local VM PASS at 5fcc111; remote G3 runner still missing** | 7/7 + positive CLI + strict JSON/inert-`@knowledge`; [`strict-gc-5fcc111`](evidence/2026-11-21-strict-gc-5fcc111.md) |
|
||
| 11 | Linux strict L2 | **NOT IMPLEMENTED / UNSUPPORTED** | strict rejects Worker/Foreign/native ABI |
|
||
| 12 | Windows Native/Worker ABI | **UNSUPPORTED** | no Windows ABI artifact/claim |
|
||
| 13 | RC artifact | **Linux candidate only; no release** | clean-install + checksums; macOS not built here |
|
||
| 14 | Release approval | **NOT STARTED** | requires owner approval |
|
||
|
||
## 3. Verified capabilities
|
||
|
||
- Frozen Markdown profile `marqdo.md.v1` with 160 AST goldens and explicit
|
||
CRLF byte semantics (unchanged by the semantic rewrite).
|
||
- Native Rust interpreter with the unified semantics: 73 semantic fixtures,
|
||
49 compile-error fixtures, 2 warning fixtures and 21 runtime-error fixtures
|
||
all green at `9c1723d`; AST profile unchanged (160 goldens).
|
||
- Native `**` power is pinned end-to-end: right associativity, unary-minus
|
||
precedence, parentheses, float negative exponents, branch/loop conditions,
|
||
Strong+CodeSpan payloads, and inert prose/code fences.
|
||
- lock v4 full transitive package-instance graph plus extension identity
|
||
records, verified Git cache, strict `sync --locked`, atomic `.marqdo/env`
|
||
materialization; `run`/`check` never fetch or rewrite the lock. Locked path
|
||
content tamper is rejected without rewriting the lock or environment; lock v3
|
||
requires an explicit `marqdo lock` migration.
|
||
- Analysis v2 (logical identity, resources, byte digest) and Trace v2 (module
|
||
ownership, bounds, truncation, stale detection) with independent Python
|
||
consumers and JSON Schema validation.
|
||
- Tool Protocol v1 with arbitrary command names (no CLI hard-coding),
|
||
SemVer/protocol negotiation, whole-bundle digest verification, atomic
|
||
install/remove, and three independent Analysis/Trace consumers.
|
||
- Plugin ABI v1: native + worker transports, capability broker executing
|
||
`fs.read` through `ProjectFs`, per-invocation budgets, host-owned handle
|
||
identity, crash/timeout isolation. Not an OS sandbox.
|
||
- Foreign kernels: one-shot Python/Node, typed wire, timeout/output caps,
|
||
provider/environment digests, environment-bound provider, interpreter
|
||
version verification.
|
||
- Linux strict L1: Bubblewrap namespace supervisor, runtime probe, fail-closed
|
||
launch, child self-verification, 7/7 adversarial matrix.
|
||
- Addressable memory (RFC-CM P1, ADR-0022): opaque `Memory` values shared by
|
||
handle identity, region isolation, zero-filled 64 KiB page growth, bounded
|
||
byte read/write, `memory.new/size/grow`, `m[i] = byte`, run and per-region
|
||
budgets, host/wire rejection, Analysis v2 target projection.
|
||
- Recoverable `Result` convention (RFC-CM CM-A05, ADR-0024): success is
|
||
`{ok:true,value:...}`, failure is `{ok:false,code,message[,details]}` as an
|
||
ordinary Map; expected conditions return it, invariant violations stay
|
||
fatal. A `.mq.md` first-fit/free-list allocator reuses blocks, splits free
|
||
blocks, coalesces address-adjacent blocks and returns `alloc.no_space`
|
||
without aborting.
|
||
- CM-A07 Compat-A (ADR-0027): explicit `.mq.md` `io.写值` chain
|
||
(`format.显示` → UTF-8 encode → `Memory` → `resource.write(stdout)`) matches
|
||
builtin `打印` for the covered value set; builtin remains default and no
|
||
alias is routed.
|
||
- Compat-C print completion (ADR-0031): `HostOp::Print`/`op_print` removed;
|
||
the print builtin only routes to bundled `io.写值` or fails with
|
||
`kernel.unavailable`; trace has resource effects only.
|
||
- Compat-B print routing (ADR-0030): `Program.print_override` routes
|
||
`打印/print` to the bundled `io.写值` when the program uses it; stdlib
|
||
modules are injected lazily; resource operations are trace `effect` events
|
||
and `HostOp::Print` no longer runs on that path. Strict permits only
|
||
stdio/stdout; stdin/stderr/file/network resources remain refused.
|
||
- Stdio streams and console productization (ADR-0040): `stdio/stdin` is
|
||
read-only over one shared run cursor; `stdio/stdout`/`stdio/stderr` are
|
||
write-only with separate host buffers and output-budget accounting; the CLI
|
||
copies non-terminal process stdin at composition and embeds program stderr as a
|
||
separate JSON string (or writes it to CLI stderr). `stdlib/io/stream.mq.md`
|
||
checks short writes and close errors; `stdlib/io/console.mq.md` implements
|
||
line input and print through the resource ABI; `stdlib/text/utf8.mq.md`
|
||
provides a validating UTF-8 decoder.
|
||
- Full-value stdlib formatting (ADR-0029): FunctionRef `module/name` and
|
||
PluginHandle `plugin/export` are read-only observation members (host id
|
||
private); `stdlib/format.mq.md` reproduces builtin `打印`/`repr` for all 15
|
||
value types, including Formula/Code/FunctionRef and Code UTF-8 byte length.
|
||
- C ABI provider worker binding (CM-A09, ADR-0038): the separate
|
||
`marqdo-provider-worker` helper loads a trusted C ABI library and serves the
|
||
framed-JSON transport; process isolation but not a sandbox.
|
||
- Provider package manifest v1 (CM-A09, ADR-0037): a local `marqdo.provider`
|
||
manifest resolves a trusted C ABI library and registers it; no registry,
|
||
signatures or CLI install yet.
|
||
- C ABI ResourceProvider v1 (CM-A09, ADR-0036): trusted shared libraries expose
|
||
open/read/write/close through the frozen header; version/load failures are
|
||
fail-closed; project-mode + name grant only. Plugin-Worker binding remains open.
|
||
- Worker resource provider transport (CM-A09, ADR-0035): host-managed helper
|
||
process with framed JSON, ping/open/read/write/close; project-mode + name
|
||
grant; trusted, not a sandbox; C ABI binding still open.
|
||
- HTTP framing and client (P5/C10): `stdlib/net/http.mq.md` parses status,
|
||
headers and `Transfer-Encoding: chunked`, builds requests, and an end-to-end
|
||
test parses a loopback TCP response; fixture 71 pins the same logic. No host
|
||
HTTP/TLS implementation.
|
||
- Blocking TCP endpoint (P5 first slice, ADR-0034): project-mode
|
||
`resource.open("tcp", ip:port, ["read","write"])` with exact IP grant and
|
||
timeouts; no DNS/TLS/UDP/server sockets; strict/pure refuse. CLI `--allow-net`.
|
||
- In-process ResourceProvider v1 (CM-A09 first slice, ADR-0033): trusted
|
||
providers register additional resource kinds without parser/runtime/HostOp
|
||
changes; project-mode + name grant required; pure/strict refuse provider
|
||
kinds; C/Worker transport remains open.
|
||
- P6 baseline profile: `tools/perf/bench.py` measures 7 `.mq.md` workloads with
|
||
wall time and peak RSS; no optimizer/backend was added and P6 is not claimed
|
||
complete.
|
||
- Cross-storage table equivalence (P4, ADR-0032): fixture 72 compares T0 row
|
||
Table results with a `.mq.md` columnar List/Map store for sort/filter.
|
||
- Table stdlib algorithms (CM-A08, ADR-0032): `stdlib/data/table.mq.md`
|
||
provides select/filter/sort/append/set/join/group/`转GFM` over the logical
|
||
`Value::Table`; inputs are never mutated; GFM AST laziness and physical T0
|
||
storage are unchanged. `std:fs/file` provides bounded `读文本`/`写文本`/`复制文件`
|
||
over the existing `resource.*` ABI plus `存在`/`元数据`/`列出目录`/`创建目录`/
|
||
`删除`/`重命名`/`追加文本`/`读取片段`/`遍历` over `resource.request`
|
||
(ADR-0041/0045); `data/json`/`data/csv`
|
||
provide recursive JSON (128-depth bound, multi-value) and quoted single/multi-row
|
||
CSV product parsers; `path` and a `regex` subset are pure `.mq.md`; `datetime` is pure UTC ISO-8601 and
|
||
`clock.现在` reads `clock.now` in project mode (ADR-0042); `env.读取` reads
|
||
only exact `--allow-env NAME` grants in project mode (ADR-0043); `process.运行`
|
||
runs an exact `--allow-process PROGRAM` grant with 5 s timeout and 1 MiB caps
|
||
(ADR-0044, not an OS sandbox); `random.字节` reads explicitly granted
|
||
`random.bytes` entropy (ADR-0046). File watch, binary offset reads, streaming
|
||
incremental JSON/CSV streaming, pure-mode regex groups/alternation and regex
|
||
look-around/backreferences remain open; project mode has host-backed groups
|
||
and captures (ADR-0050).
|
||
- Bundled standard library (CM-A10, ADR-0028): `stdlib/` ships
|
||
`format`/`text`/`io`/`fs`/`data`/`path`/`regex`/`datetime`/`clock`/`env`/`process`/`random`/`compress`/`net/http`; explicit `std:` imports resolve only inside the bundle;
|
||
a SHA-256 digest over `*.mq.md` is verified before loading; Analysis records
|
||
`project.stdlib`; a frozen-binary test asserts the CLI hash is unchanged after
|
||
running a `std:io` project and that tampering is rejected. `打印/print` is
|
||
routed to the bundled stdlib (Compat-C, ADR-0030/0031); there is no legacy
|
||
host formatter. `tools/pack-stdlib.py` additionally emits a byte-deterministic
|
||
offline archive + descriptor as an extraction-ready artifact
|
||
([evidence](evidence/2026-11-20-stdlib-package.md)). Issue #11 Phase A now
|
||
consumes the Bundle through one explicit `--stdlib-dir` and one pinned
|
||
identity (ADR-0070, §0.11); the production sources still stay in this
|
||
repository until Phase B, which is gated on ecosystem issue #2 and the
|
||
extension replacement evidence.
|
||
- Resource streams (RFC-CM CM-A06, ADR-0025/0026/0040): opaque host-issued
|
||
`Resource` handles with `resource.open/read/write/close`; bytes move only
|
||
through `Memory`; stdin is read-only over one shared run cursor; stdout and
|
||
stderr are separate capability/output-budget checked buffers; project-file
|
||
read/write is path/grant checked; file writes buffer until `close` and
|
||
never flush on drop; a `.mq.md` chunked copy loop reproduces a file without a
|
||
Rust `copy_file`; `resource.request` adds non-streaming `fs.exists`/
|
||
`fs.metadata`/`fs.list`/`fs.mkdir`/`fs.remove`/`fs.rename` (project mode,
|
||
grant-checked, recoverable fs Result); strict permits only the stdio stdout
|
||
console channel and refuses stdin/stderr/file/TCP/provider resources (CM-A11
|
||
lane PASS). Semantic fixture 66 and CLI/host tests.
|
||
- Test and documentation migration (review RFC-CM P0/P2):
|
||
`crates/cli/tests/docs_consistency.rs` pins one current overview, the
|
||
status/index links and SHA-pinned evidence; `crates/cli/tests/architecture_boundaries.rs`
|
||
pins the workspace graph, `marqdo-runtime -> marqdo-host` (historical at that
|
||
snapshot; the current edge is `marqdo-runtime -> marqdo-host-contract` under
|
||
ADR-0071), the bundled stdlib digest and the stdio/file/TCP endpoints; `crates/cli/tests/stdlib_product.rs`
|
||
runs every public stdlib module (`clock/compress/console/csv/datetime/demo/env/format/fs/http/io/json/path/process/random/regex/stream/table/text/utf8`)
|
||
through `std:` imports over `stdlib/tests/*.mq.md` resolved from the pinned
|
||
Bundle (`crates/cli/tests/support/stdlib.rs`). `tools/pack-stdlib.py`
|
||
now sorts `.mq.md` by the same relative path key as the CLI. Source/test baseline
|
||
`0d40de7`; later docs-only commits keep code/test bytes identical. Evidence:
|
||
[`docs-and-test-migration`](evidence/2026-11-21-docs-and-test-migration.md).
|
||
- Module-boundary refactor (review RFC-CM P1): CLI split into
|
||
`commands/{sandbox,run,check,inspect,init,package,tool}.rs`; host split into
|
||
`host/{resource_ops,providers,effects,dispatch}.rs` plus `process.rs`.
|
||
`commands.rs` keeps shared project/runtime helpers and `host.rs` keeps the
|
||
`Host` trait methods and capability checks; this is a behavior-preserving
|
||
split, not a new crate or backend.
|
||
- Minimal structure observation/construction (RFC-CM CM-A04, ADR-0023):
|
||
value-semantics `list.append/concat`, `map.keys/has/get/set/remove`,
|
||
Unicode scalar `text.codepoints`/`text.from_codepoint`, and non-negative
|
||
`table.columns/row/cell`. Pure builtins; no mutation, no new syntax.
|
||
|
||
## 4. Open blockers and limits
|
||
|
||
1. **Native matrix is green; remote G3/G4 are not.** GitHub run 30 on
|
||
`5fcc111` PASSes Linux, Windows and macOS, and Woodpecker #25 is green. The
|
||
remaining release blockers are a remote G3 security artifact and a
|
||
`MEASURED` G4 report on the fixed node.
|
||
2. **G-C is VM-verified but not CI-signed.** The Woodpecker Docker pipeline is
|
||
not an OS-isolation lane; no ephemeral self-hosted security runner has run
|
||
`security-linux.yml` for this SHA.
|
||
3. Windows Native/Worker ABI is explicitly UNSUPPORTED (no Windows `cc`
|
||
fixture lane, Unix-gated worker tests).
|
||
4. `fs.write`, `net.request`, `process`, `clock`, `random` are not executed
|
||
broker services; unsupported requests must return `capability.unavailable`.
|
||
5. Resource streams cover project-file read/write (including `std:fs/file`
|
||
read/write/copy/append/read_at/walk), non-streaming `resource.request`
|
||
`fs.*` metadata/directory operations, stdout, compatible print, trusted
|
||
in-process providers and TCP/UDP/listener/TLS endpoints with DNS
|
||
resolution after an exact host grant. File watch, device and provider
|
||
packaging remain open. Strict permits only stdio and refuses the rest (CM-A11 lane
|
||
PASS).
|
||
6. uv/npm/venv provisioning is not implemented. Only a pre-provisioned,
|
||
digest-pinned directory with a regular-file executable is supported.
|
||
7. No tagged Windows/macOS RC archive exists. The native **build/test** lanes
|
||
PASS at `5fcc111`; the release-candidate job is tag/dispatch gated and has
|
||
not produced those archives.
|
||
8. At that pre-beta point no release tag/binary publication existed; the
|
||
historical decision was **DO NOT RELEASE** until remote G3 and a MEASURED G4
|
||
report existed. The current `v3.0.0-beta.1` beta decision is recorded in §0.
|
||
|
||
## 5. RFC-CM compute-machine status
|
||
|
||
The two 2026-11-20 architecture RFCs are design input, not implemented
|
||
behavior. This table records only what is in this tree now.
|
||
|
||
| RFC phase | State | Evidence / limit |
|
||
|---|---|---|
|
||
| P0 freeze (ADRs, spec deltas, baseline) | **P1 + partial P2 slice done** | ADR-0022 freezes CM-A01/CM-A02/CM-A03; ADR-0023 freezes CM-A04 (minimal List/Map/Text/Table observation and construction); ADR-0024 freezes CM-A05 (recoverable `Result` map convention); `spec/expression.ebnf`, `spec/evaluation.md`, `spec/value-wire.md`, `spec/analysis-v2.md`, `spec/security.md` updated; existing AST/value goldens unchanged |
|
||
| P1 Memory + place assignment | **Implemented locally** | `Value::Memory`, run-scoped `MemoryStore` (64 KiB pages, 64 MiB total / 16 MiB region), `memory.new/size/grow`, `m[i]` read, `m[i] = byte`; semantic fixtures 45–47, runtime negatives 13–18, `examples/memory-buffer.mq.md`; evidence [`evidence/2026-11-20-memory-p1.md`](evidence/2026-11-20-memory-p1.md) |
|
||
| P2 Marqdo-written allocator/data structures + minimal structure observation | **PASS (local pure lane); stdlib remains in-repo by design** | `.mq.md`-only evidence: bump allocator with u32 codec, linked list, failed-allocation atomicity (48–50); CM-A04 structure primitives and a table filter (51–54, ADR-0023); a first-fit free-list allocator with block reuse, splitting, address-adjacent coalescing and `Result` maps (55, ADR-0024), a `Memory`-backed binary tree with recursive insert/in-order traversal (56), a `.mq.md` CSV row splitter (57), an open-addressing hash table with linear probing, update and `hash.full` (58), a `.mq.md` UTF-8 encoder over `Memory` (59), a validating UTF-8 decoder rejecting truncated, bad-continuation and surrogate/overlong input (60), a `Memory`-backed graph adjacency list (61), a recursive JSON parser for nested arrays/objects, strings with escapes, integers, booleans, null and error Results (62), a `Memory`-backed stack bytecode VM with PUSH/ADD/MUL/JMP/JZ/HALT (63), big-endian 16/32/64-bit plus LEB128 integer codecs (64), a `.mq.md` table sort rebuilding a new table from `table.row/columns/cell` (65), a table join (67), a quoted/escaped CSV row parser (68), table group (69), an Int matrix multiply (70), and a sparse-matrix multiply (73); the first-fit allocator also detects double free (`alloc.double_free`). Evidence: [`memory-p2-closure`](evidence/2026-11-20-memory-p2-closure.md), [`structure-api-p2`](evidence/2026-11-20-structure-api-p2.md), [`result-and-free-list-p2`](evidence/2026-11-20-result-and-free-list-p2.md). Local gate PASS: `crates/cli/tests/p2_closure.rs` runs 21 C01–C06/C11/C12 fixtures plus the stdlib table self-test in `--mode pure` (no foreign/plugin/import grants), scans sources for foreign/plugin/import shortcuts and compares value/stdout to goldens; evidence [`p2-closure-gate`](evidence/2026-11-20-p2-closure-gate.md). The bundled `stdlib/` tree, `std:` imports, digest verification, Analysis identity and frozen-CLI closure test are implemented (ADR-0028). The stdlib intentionally remains in-repo (ADR-0039); a separate repository is a future extraction option, not a gate. Linux/Windows/macOS native CI is green at `5fcc111`; a remote G3 security runner and a fixed G4 performance node are still pending. |
|
||
| P3 Resource/Stream ABI | **PARTIAL** | ADR-0025/0026/0040 CM-A06 slices: opaque `Resource`, `resource.open/read/write/close`, stdin read, separate stdout/stderr write, granted project-file read and buffered project-file write in project, EOF/closed/handle errors, wire/host rejection; strict permits only stdio/stdout and refuses stdin/stderr/file/network resources. `stdlib/io/stream.mq.md`, `stdlib/io/console.mq.md` and `stdlib/text/utf8.mq.md` are product-level `.mq.md` APIs; fixture 66 + CLI/host tests. CM-A07 **Compat-C** is implemented: when a program calls `打印/print`, the loader injects the bundled `stdlib/io.mq.md` and the runtime routes to `io.写值` (all 15 value types, UTF-8 via `Memory`, `resource.write(stdout)`); `HostOp::Print` and the legacy `Value::display()` print path are removed, and a missing bundle fails with `kernel.unavailable`. Strict permits only the existing stdio console channel. Providers are registered through ADR-0033 (in-process) and ADR-0035 (worker helper). Still missing: directories, C ABI provider binding, provider packages, strict provider support. |
|
||
| P4 Table logical/physical migration | **PASS (local gate); T1/T2/T3 future** | ADR-0032/CM-A08: `Value::Table` semantics and GFM AST laziness unchanged; `stdlib/data/table.mq.md` provides select/filter/sort/append/set/join/group/`转GFM` as value-returning `.mq.md` functions with input immutability; zero Rust table algorithms were added. Cross-storage equivalence is pinned by fixture 72 (row Table vs `.mq.md` columnar store, identical headers/rows/cells). The optional T1/T2/T3 physical-storage/column-store migration was not required by the gate and is not implemented. |
|
||
| P5 third-party Provider / TCP / HTTP | **PASS (local gate); external network/CI and plugin-Worker resource binding open** | C10: `stdlib/net/http.mq.md` + fixture 71 parse HTTP/1.1 status/headers/chunked bodies and build requests; `http_over_tcp.rs` runs a loopback HTTP exchange wholly in `.mq.md` over `resource.open("tcp",...)`. ADR-0034 IP-literal blocking TCP endpoint (exact IP grant, project-only, 5s timeouts) and ADR-0033 in-process `ResourceProvider` v1 (registration, protocol/kind checks, name grant, mock read/write provider) ADR-0035 host-managed worker provider transport (framed JSON helper, ping/open/read/write/close, trusted-only) and ADR-0036 trusted C ABI provider (shared-library symbols, version/load checks) ADR-0037 local provider-package manifest installation and ADR-0038 C ABI provider worker binding (separate trusted helper process) are tested. External DNS/TLS/UDP, host HTTP, provider packages/signatures and the plugin-Worker resource binding remain out of scope. |
|
||
| P6 performance / native backends | **BASELINE ONLY** | reproducible profile harness `tools/perf/bench.py` and [`p6-profile`](evidence/2026-11-20-p6-profile.md) for 7 workloads; no bytecode/JIT/columnar numeric backend or equivalence/optimization gate yet |
|
||
|
||
The P1 memory domain is pure computation: it needs no grant and is available in
|
||
`pure`, `project` and `strict` (bounded by the memory budgets). It adds no
|
||
`HostOp`, no Markdown role and no CLI command. `Memory` handles cannot cross
|
||
the wire or a host/plugin/foreign boundary. Block-level safety of a
|
||
user-written allocator is explicitly **not** claimed.
|
||
|
||
## 6. Evidence files
|
||
|
||
- [`evidence/2026-11-20-local-gate.md`](evidence/2026-11-20-local-gate.md) —
|
||
earlier local gate and Windows autocrlf reproduction.
|
||
- [`evidence/2026-11-20-strict-gc-8af7262.md`](evidence/2026-11-20-strict-gc-8af7262.md)
|
||
— current VM lane, environment, full log and workspace test log.
|
||
- [`evidence/2026-11-20-resource-stream-p3.md`](evidence/2026-11-20-resource-stream-p3.md)
|
||
— CM-A06 first slice: stdout write, project-file chunked read, strict refusal,
|
||
wire/host boundary rejection and test commands.
|
||
- [`evidence/2026-11-20-resource-file-write-p3.md`](evidence/2026-11-20-resource-file-write-p3.md)
|
||
— buffered project-file write, flush-on-close, buffer ceiling, grants and
|
||
CLI write-then-read evidence.
|
||
- [`evidence/2026-11-20-stdlib-print-compat-a.md`](evidence/2026-11-20-stdlib-print-compat-a.md)
|
||
— CM-A07 Compat-A `.mq.md` print prototype, side-by-side output comparison,
|
||
covered/uncovered value types and the Compat-B blocker.
|
||
- [`evidence/2026-11-20-bundled-stdlib-cm-a10.md`](evidence/2026-11-20-bundled-stdlib-cm-a10.md)
|
||
— CM-A10 bundled stdlib, `std:` imports, digest verification, Analysis
|
||
identity and frozen-binary closure test.
|
||
- [`evidence/2026-11-20-full-value-formatting.md`](evidence/2026-11-20-full-value-formatting.md)
|
||
— ADR-0029 observation members and all-15-type stdlib formatting comparison.
|
||
- [`evidence/2026-11-20-print-compat-b.md`](evidence/2026-11-20-print-compat-b.md)
|
||
— ADR-0030 Compat-B print routing, trace resource effects, lazy stdlib
|
||
injection and strict stdio console permission.
|
||
- [`evidence/2026-11-20-print-compat-c.md`](evidence/2026-11-20-print-compat-c.md)
|
||
— ADR-0031 removal of `HostOp::Print`, no-bundle fail-closed behavior and
|
||
embedder compatibility note.
|
||
- [`evidence/2026-11-20-table-cm-a08.md`](evidence/2026-11-20-table-cm-a08.md)
|
||
— ADR-0032 table logical value, stdlib select/filter/sort/append/set/join/
|
||
group, input immutability and T0 storage boundary.
|
||
- [`evidence/2026-11-20-provider-abi-cm-a09.md`](evidence/2026-11-20-provider-abi-cm-a09.md)
|
||
— ADR-0033 in-process ResourceProvider v1, grants/mode checks, mock provider
|
||
read/write and registration rejection cases.
|
||
- [`evidence/2026-11-20-tcp-endpoint.md`](evidence/2026-11-20-tcp-endpoint.md)
|
||
— ADR-0034 blocking TCP endpoint, IP grants, DNS refusal, loopback host/CLI
|
||
echo tests.
|
||
- [`evidence/2026-11-20-table-cross-storage.md`](evidence/2026-11-20-table-cross-storage.md)
|
||
— P4 row-store Table vs `.mq.md` columnar store equivalence for sort/filter.
|
||
- [`evidence/2026-11-20-c-worker-binding.md`](evidence/2026-11-20-c-worker-binding.md)
|
||
— ADR-0038 C ABI provider worker binding, compiled C adapter in the helper
|
||
process and fail-closed missing-library case.
|
||
- [`evidence/2026-11-20-provider-package.md`](evidence/2026-11-20-provider-package.md)
|
||
— ADR-0037 local provider package manifest, C library resolution and
|
||
registration test.
|
||
- [`evidence/2026-11-20-c-provider.md`](evidence/2026-11-20-c-provider.md)
|
||
— ADR-0036 C ABI ResourceProvider v1, compiled C adapter round-trip and
|
||
fail-closed load/version checks.
|
||
- [`evidence/2026-11-20-worker-provider.md`](evidence/2026-11-20-worker-provider.md)
|
||
— ADR-0035 trusted worker resource-provider transport, framed-JSON helper
|
||
round-trip and grant/mode/error tests.
|
||
- [`evidence/2026-11-20-http-over-tcp.md`](evidence/2026-11-20-http-over-tcp.md)
|
||
— P5/C10 `.mq.md` HTTP framing over a loopback TCP stream, stdlib module and
|
||
end-to-end client test.
|
||
- [`evidence/2026-11-20-p2-closure-gate.md`](evidence/2026-11-20-p2-closure-gate.md)
|
||
— P2 C01–C06/C11/C12 pure no-Foreign/no-Plugin closure lane and golden
|
||
comparison.
|
||
- [`evidence/2026-11-20-http-parser.md`](evidence/2026-11-20-http-parser.md)
|
||
— P5/C10 `.mq.md` HTTP/1.1 status/header/chunked response parser and request
|
||
builder fixture.
|
||
- [`evidence/2026-11-20-strict-resource-cm-a11.md`](evidence/2026-11-20-strict-resource-cm-a11.md)
|
||
— CM-A11 strict lane at `00bdcad`: 7/7 adversarial matrix, positive Compat-C
|
||
print, strict file-resource refusal, forged-marker rejection and raw log.
|
||
- [`evidence/RELEASE_CANDIDATE_0.1.0_8af7262.md`](evidence/RELEASE_CANDIDATE_0.1.0_8af7262.md)
|
||
— G0..G12 matrix and RC decision.
|
||
- [`evidence/2026-11-21-strict-gc-5fcc111.md`](evidence/2026-11-21-strict-gc-5fcc111.md)
|
||
— RFC-CI-0001 series G-C: local disposable VM, `dev` uid 1000, 7/7 plus the
|
||
strict JSON and inert-`@knowledge` contracts at `5fcc111`; the earlier `512b9f5`/`0d7e11b` runs are historical.
|
||
- [`evidence/2026-11-21-perf-woodpecker-agent-1.md`](evidence/2026-11-21-perf-woodpecker-agent-1.md)
|
||
— G4 `MEASURED` provisional baseline on the designated Woodpecker agent
|
||
(`1199c88`): 9/9 correctness-verified, 5 warmups + 20 samples, repeatability
|
||
deltas, and the shared-host/powersave caveat.
|
||
- [`evidence/2026-11-21-perf-smoke-0d7e11b.md`](evidence/2026-11-21-perf-smoke-0d7e11b.md)
|
||
— earlier `marqdo.perf.v2` smoke; historical, not the release baseline.
|
||
- [`security-gate.md`](security-gate.md) — mechanism, attack matrix and strict
|
||
L1/L2 limits.
|
||
|
||
## 7. Reproduce
|
||
|
||
```bash
|
||
export PATH="$HOME/.cargo/bin:$PATH"
|
||
# On hosts with a read-only $HOME, point CARGO_HOME at a writable directory.
|
||
cargo fmt --all -- --check
|
||
cargo clippy --workspace --all-targets -- -D warnings
|
||
cargo test --workspace --locked
|
||
cargo build --release --locked -p marqdo-cli
|
||
```
|
||
|
||
Consumer evidence:
|
||
|
||
```bash
|
||
./target/debug/marqdo check examples/multi-module/index.mq.md --refs --emit /tmp/a.json
|
||
./target/debug/marqdo run examples/multi-module/index.mq.md --observation-file /tmp/observation.json
|
||
python3 tests/consumers/analysis_consumer.py /tmp/a.json
|
||
python3 tests/consumers/trace_consumer.py /tmp/a.json /tmp/t.json
|
||
```
|
||
|
||
G-C (ordinary user, disposable VM only; bind the source archive and write the
|
||
evidence document):
|
||
|
||
```bash
|
||
export MARQDO_TESTED_SHA="$(git rev-parse HEAD)"
|
||
export MARQDO_SOURCE_ARCHIVE="/path/to/marqdo-${MARQDO_TESTED_SHA}.tar"
|
||
export MARQDO_SOURCE_ARCHIVE_SHA256="sha256:<host-computed digest>"
|
||
export MARQDO_STRICT_EVIDENCE="/tmp/evidence-${MARQDO_TESTED_SHA}/strict-evidence.json"
|
||
export MARQDO_REQUIRE_STRICT_SECURITY=1
|
||
./tests/security/run-lane.sh
|
||
```
|
||
|
||
A root-only PASS, a container PASS or a missing/shorter archive is not
|
||
evidence. See [`security-vm.md`](security-vm.md).
|