docs(release): record convergence evidence, RC, and support matrix

WHY
- The code fixes existed locally without same-SHA release material; the G0..G12
  gate matrix, G-C VM evidence, RC artifact and explicit non-claims must be
  reviewable together.
- The release-candidate workflow packaged no consumers and did not verify its
  own checksum in the clean-install directory.

WHAT
- Record the current Linux/VM evidence at f075c96 and keep remote CI/G-C as
  UNVERIFIED; overall decision DO NOT RELEASE.
- Add G-C evidence (7/7 + positive CLI + 47-binary workspace run), RC report
  with gate matrix, clean-install and checksum result.
- Update STATUS, COMPATIBILITY, CHANGELOG, README, tests/README, mapping spec
  and releasing procedure for the new condition/span/power/Tool behavior.
- Harden release-candidate packaging: include tests/consumers, SOURCE_SHA,
  rustc -vV, verify the checksum before extraction, and run independent
  Analysis/Trace validation from the extracted archive.
- Record the local convergence note in NEXT_RELEASE_CI_CONVERGENCE.md.

TESTS
- Local fmt/clippy/workspace PASS; G-C VM PASS at f075c96.
- Linux RC: sha256 -c OK and clean-install smoke PASS.

CI_URL
- none: Gitee remote, no GitHub credentials. Windows/macOS and same-SHA G-C CI
  remain the blocking gates.

BREAKING_CHANGE
- none in this docs/workflow commit.

SECURITY_SCOPE
- strict remains fail-closed; no new capability or platform claim. G-C is
  local-VM evidence, not a CI-signed security URL.
This commit is contained in:
cflmy committed 2026-11-20 15:51:48 +08:00
1 parent f075c967f2
commit 8af72620f1
17 files changed
+1744 -126

No files matched your search

+91 -81
View File
@@ -1,7 +1,8 @@
# Marqdo Implementation Status
Snapshot: **2026-11-20**, workspace version `0.1.0`, no release tag.
Authoritative task plan: [`STABLE_RELEASE_IMPLEMENTATION.md`](STABLE_RELEASE_IMPLEMENTATION.md).
Authoritative CI convergence plan:
[`NEXT_RELEASE_CI_CONVERGENCE.md`](NEXT_RELEASE_CI_CONVERGENCE.md).
Support matrix: [`../COMPATIBILITY.md`](../COMPATIBILITY.md).
This file records what was actually executed on the current tree. "Implemented"
@@ -10,130 +11,133 @@ commands were run and where. The historical M0.5 snapshot is preserved at
[`history/STATUS-M0.5-snapshot.md`](history/STATUS-M0.5-snapshot.md) and must
not be read as current status.
## 1. CI baseline and current evidence
## 1. Remote baseline and current evidence
The last known public GitHub CI at baseline `e966b76` (run
[44680378977](https://github.com/cflmy/marqdo-cli/actions/runs/44680378977))
was **not green**:
GitHub `master` is still `c9f01aa8fb127a2dcc125103ef794832984774ad`; the latest
public CI is run
[44692692318](https://github.com/cflmy/marqdo-cli/actions/runs/44692692318)
and is **red**:
- Linux `fmt + clippy + workspace tests + smoke`: PASS.
- Schema instance validation + Python consumers: PASS.
- macOS `cargo test --workspace`: FAIL —
`plugin_inspect_and_explicit_trusted_invocation` used a Linux `.so` and a
Linux-target manifest.
- Windows `cargo test --workspace`: FAIL — AST golden bytes were CRLF after
checkout while the parser emits LF, producing "0 line(s) differ".
- 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).
This checkout has a Gitee remote only and no GitHub Actions credentials. **No
new remote CI URL can be produced from this host.** The local gate below is
real evidence for this machine, not a substitute for the native Windows/macOS
lanes.
This checkout has a Gitee remote and **no GitHub credentials**. No new remote
CI URL can be produced from this host. The evidence below is local/VM evidence
for the convergence commit, not a substitute for the native GitHub lanes.
### Local gate after the stabilization commits
Convergence code/security SHA: **`f075c967f24d885ac42c1e99329bee3498154598`**
(the following docs commit only adds this report and release material; code is
byte-identical).
All commands were run from the repository root with Rust 1.100.0:
### 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 PASS
cargo test -p marqdo-cli --test conformance_ast PASS (4 tests)
cargo test -p marqdo-cli --test integration_cli PASS (23 tests)
cargo test -p marqdo-cli --test plugin_worker PASS (4 tests)
cargo test -p marqdo-foreign --test provider PASS (8 tests)
cargo test --workspace PASS (47 binaries,
360 tests, 0 failed)
cargo test --workspace --locked PASS
(47 test binaries, 0 failed; includes 7/7 Linux security tests)
```
Linux G-C security lane (disposable Ubuntu 26.04 VM, ordinary user `dev`):
### G-C security lane (disposable Ubuntu 26.04 VM, ordinary user `dev`)
Source: `git archive f075c96` 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
crates/marqdo-sandbox/tests/security_linux.rs PASS (7/7)
tests/security/run-lane.sh PASS
./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
```
The committed code SHA for this evidence is `b6fc182`; the VM lane was re-run
from a `git archive` of that commit. See
[`evidence/2026-11-20-strict-gc.md`](evidence/2026-11-20-strict-gc.md).
Windows checkout reproduction: a fresh local clone with
`git -c core.autocrlf=true clone ...` kept goldens at LF, preserved the CRLF
byte fixture, and passed all four `conformance_ast` tests. The previous
behavior was reproduced by converting one golden to CRLF: the new diagnostic
reports the first differing byte and "the only difference is line endings".
macOS reproduction is **not possible on this host**; the fix removes the Linux
assumption by generating the manifest from the host triple and building
`solver.dylib` with `-dynamiclib`. It remains UNVERIFIED until the macOS lane
runs.
Logs: [`evidence/2026-11-20-strict-gc-f075c96.md`](evidence/2026-11-20-strict-gc-f075c96.md).
This is still a **local VM lane**, not a self-hosted GitHub Actions security URL.
## 2. Work package status
| # | Work package | State | Evidence |
|---|---|---|---|
| 0 | Windows AST line endings | **Fixed locally, Windows CI UNVERIFIED** | `.gitattributes`, byte diagnostics, CRLF structure test, autocrlf clone PASS |
| 1 | macOS native plugin fixtures | **Fixed locally, macOS CI UNVERIFIED** | host-target manifest + dylib flags, foreign-target/tamper/ABI tests PASS |
| 2 | Status/docs reconcile | **Done** | this file, `COMPATIBILITY.md`, `CHANGELOG.md`, `docs/releasing.md`, `docs/security-gate.md` |
| 3 | Package lock v3 reproducibility | **Implemented; targeted audit pending** | ADR-0016, `cargo test -p marqdo-cli --test package_env` PASS |
| 4 | Analysis/Trace/Tool protocol | **Implemented; consumers PASS locally** | schemas + `tests/consumers/*.py`, `analysis_trace`/`tool_protocol` PASS; `check_never_spawns_a_foreign_kernel` PASS |
| 5 | Foreign pinned environment | **Done (ADR-0020)** | provider tests PASS; env binds interpreter; version drift rejected |
| 6 | ABI session/broker hardening | **Partial** | `fs.read` bridge + budgets + handle tests PASS; Windows ABI unsupported; broader services still `capability.unavailable` |
| 7 | Linux strict probe | **Done** | runtime Bubblewrap probe; unavailable host reports the real reason |
| 8 | Linux strict pure (L1) | **DONE (VM-verified)** | ADR-0021; 7/7 adversarial tests + CLI matrix PASS in disposable Ubuntu VM |
| 9 | Linux strict extensions (L2) | **NOT IMPLEMENTED** | strict rejects Worker/Foreign/native ABI; future ADR needed |
| 10 | Native platform matrix | **Partial** | Linux PASS; macOS/Windows source fixes, remote lanes absent |
| 11 | Independent ecosystem consumers | **Partial** | Analysis/Trace Python consumers PASS; three Tool fixtures not added |
| 12 | RC/docs/artifacts | **Candidate build only** | release docs, checksummed artifact, clean-install smoke; NOT released |
| 0 | Windows AST line endings | Fixed locally; **Windows CI UNVERIFIED** | `.gitattributes`, CRLF fixture |
| 1 | macOS native plugin fixtures | Fixed locally; **macOS CI UNVERIFIED** | host-target manifest + dylib flags |
| 2 | Cross-platform strict `cfg` | **Fixed locally; native CI UNVERIFIED** | `#[cfg]` dispatch + non-Linux regression test |
| 3 | Strict probe→launch race | **Fixed locally; GitHub Linux CI UNVERIFIED** | 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 | **Done locally** | 160 AST, 44 semantic, 52 compile-negative, 12 runtime-negative fixtures |
| 6 | Condition header + source spans | **Fixed** | executable tails rejected; literal-inside-backtick mapping tests |
| 7 | Independent Tool consumers | **Done locally** | `sample-view`/`sample-knowledge`/`sample-proof` E2E test |
| 8 | lock v3 reproducibility | **Implemented; tamper test added** | `package_env` PASS |
| 9 | Analysis/Trace/Tool/ABI/Foreign | **Implemented; supported-matrix bounded** | protocol tests, plugin/worker/foreign tests |
| 10 | Linux strict L1 | **VM PASS at f075c96; no CI URL** | 7/7 + positive CLI |
| 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 150 AST goldens and explicit
- Frozen Markdown profile `marqdo.md.v1` with 160 AST goldens and explicit
CRLF byte semantics.
- Native Rust interpreter with 36 semantic goldens, 48 compile-error fixtures,
- Native Rust interpreter with 44 semantic goldens, 52 compile-error fixtures,
and runtime error source attribution.
- 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 v3 full transitive package-instance graph, verified Git cache, strict
`sync --locked`, atomic `.marqdo/env` materialization; `run`/`check` never
fetch or rewrite the lock.
fetch or rewrite the lock. Locked path content tamper is rejected without
rewriting the lock or environment.
- 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, SemVer/protocol negotiation,
whole-bundle digest verification, atomic install/remove.
- 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 and environment digests, and (ADR-0020) environment-bound provider
with interpreter-version verification.
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.
## 4. Open blockers and limits
1. **No remote CI evidence for this commit.** The repository remote is Gitee;
no GitHub workflow was executed. Windows/macOS fixes are UNVERIFIED there.
2. **G-C is VM-verified but not CI-signed.** Strict L1 passes the full
adversarial matrix in a disposable Ubuntu 26.04 VM (ADR-0021,
[`security-gate.md`](security-gate.md)), and is enabled only when the
runtime Bubblewrap probe succeeds. No remote security-lane URL exists yet,
and strict L2 (Worker/Foreign) is not implemented.
3. Windows Native/Worker ABI is explicitly unsupported (no `cc` toolchain in
the lane); it is not counted as a pass.
1. **No remote CI evidence for the convergence SHA.** Windows/macOS fixes and
the Linux EAGAIN contract are UNVERIFIED on GitHub. G1/G2/G3 remain FAIL
until a real run exists.
2. **G-C is VM-verified but not CI-signed.** No self-hosted security-lane URL
for f075c96 exists.
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. uv/npm/venv provisioning is not implemented. Only a pre-provisioned,
digest-pinned directory with a regular-file executable is supported.
6. Three independent Tool consumers (`sample-view`/`knowledge`/`proof`) are
not yet added; only the portable `benchmark` fixture and Analysis/Trace
Python consumers exist.
7. No release tag/binary publication. A candidate archive and checksums are
produced locally; the release decision is **DO NOT RELEASE** until the
native CI matrix and a security-lane CI URL exist.
6. No Windows/macOS RC archive exists from this host. The release-candidate
workflow can build macOS on GitHub, but it has not run for this SHA.
7. No release tag/binary publication. The release decision is **DO NOT
RELEASE** until the native CI matrix and a security-lane CI URL exist.
## 5. Evidence files
- [`evidence/2026-11-20-local-gate.md`](evidence/2026-11-20-local-gate.md) —
exact local commands, Windows autocrlf reproduction and clean-install smoke.
- [`security-gate.md`](security-gate.md) — the full G-C VM evidence, escape
matrix and strict L1/L2 limits.
earlier local gate and Windows autocrlf reproduction.
- [`evidence/2026-11-20-strict-gc-f075c96.md`](evidence/2026-11-20-strict-gc-f075c96.md)
— current VM lane, environment, full log and workspace test log.
- [`evidence/RELEASE_CANDIDATE_0.1.0_f075c96.md`](evidence/RELEASE_CANDIDATE_0.1.0_f075c96.md)
— G0..G12 matrix and RC decision.
- [`security-gate.md`](security-gate.md) — mechanism, attack matrix and strict
L1/L2 limits.
## 6. Reproduce
@@ -142,7 +146,7 @@ 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
cargo test --workspace --locked
cargo build --release --locked -p marqdo-cli
```
@@ -154,3 +158,9 @@ Consumer evidence:
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):
```bash
MARQDO_REQUIRE_STRICT_SECURITY=1 ./tests/security/run-lane.sh
```