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

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

No files matched your search

@@ -0,0 +1,89 @@
# RC 3.0.0-rc.4 — closed public Analysis boundary (issue #10)
- **Date:** 2026-11-25
- **Product:** `3.0.0-rc.4` (prerelease candidate; not stable, not LTS)
- **Base:** `e6066e6ba91981b7d2bc55191b7eb54387ee34d3`
- **Platform:** local Linux x86_64 development container; Windows/macOS remain
UNSUPPORTED for this candidate
- **Policy:** [ADR-0069](../adr/0069-public-analysis-boundary.md),
[ADR-0068](../adr/0068-single-current-public-contracts.md)
- **Contract:** `spec/analysis.md`, `spec/schemas/analysis.schema.json`
This document records commands actually executed on the candidate tree. The
raw command log is
[`2026-11-25-rc.4-local-gate.log`](2026-11-25-rc.4-local-gate.log). It is local
evidence, not a same-SHA CI, archive-only or strict-VM release gate. A release
decision must cite the gate manifest for the tagged SHA and must not promote
these numbers to a platform claim.
## Implemented boundary
`check ENTRY --emit PATH` now projects the same prepared facts consumed by
`check`, `inspect`, `run` and `call`:
- exact UTF-8 `modules[].source` and `source_digest`;
- the canonical Markdown AST (`document`) shared with `inspect --ast`;
- one heading index with structured path, parent, mode, mode origin and source
unit, heading span and complete section span (root covers the whole source);
- anchors, functions, imports, calls with target kind/owner/reason, resources
with AST-payload digest validation and the explicit diagnostics;
- `project.entry_module_id`, captured `manifest_digest`/`lock_digest`, stdlib
and static extension identities;
- one `document_refs` resolver used by Analysis, `check --refs` and
`inspect --refs`, with `resolved`/`not_loaded`/`missing`/`ambiguous`/
`external`/`outside_scope`/`invalid` states.
The retired duplicate resolver and the post-preparation lock re-read are gone.
`--emit` writes owner-only exclusive bytes through a temporary file and rename
and refuses inputs, directories, symlinks and hard links to inputs.
## Commands executed
```text
cargo fmt --all -- --check PASS
cargo clippy --workspace --all-targets -- -D warnings PASS
cargo test --workspace --locked PASS: 632 passed, 0 failed, 2 ignored
cargo test -p marqdo-cli --test analysis_boundary PASS: 10 passed
cargo test -p marqdo-cli --test analysis_observation PASS: 11 passed
cargo test -p marqdo-cli --test architecture_boundaries PASS
cargo test -p marqdo-cli --test docs_consistency PASS
cargo test -p marqdo-cli --test integration_cli PASS: 23 passed
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker PASS
python3 tests/consumers/analysis_consumer.py <artifact> PASS
python3 tests/consumers/validate_protocols.py <analysis> <observation> <tool> PASS
python3 tests/consumers/view_consumer.py <artifact> PASS
python3 tests/consumers/lint_consumer.py <artifact> PASS
python3 tests/consumers/knowledge_consumer.py <artifact...> PASS
```
The independent semantic consumer and mutation gate were exercised with a
project containing an import, a cross-module reference, a formula, a code
fence and a static call. The gate rejects missing current required fields,
tampered source/digests/spans, duplicate module ids, parent cycles, wrong mode
sources, missing call targets, missing reference units and injected successful
error diagnostics.
## Performance (local smoke, not G4)
Fixture: 101 modules, 82,094 source bytes, 903 units, 100 cross-module
references; release builds of rc.3 (baseline archive binary) and the rc.4
candidate, five warmups and twenty samples per command, same host and cwd.
| Command | rc.3 p50/p95 (ms) | rc.4 p50/p95 (ms) | p95 ratio | peak RSS ratio |
|---|---|---|---|---|
| `check index.mq.md --json` | 18.28 / 19.09 | 18.47 / 19.07 | 0.999 | 1.001 |
| `check index.mq.md --emit out.json` | 36.49 / 42.65 | 48.66 / 51.59 | 1.210 | 1.186 |
| `check index.mq.md --refs --json` | 19.09 / 19.66 | 21.99 / 22.51 | 1.145 | 1.093 |
The rc.4 artifact is 2,739,156 bytes (rc.3: 899,146) because it now carries the
exact source and AST. The emit p95 and peak-RSS ratios are below the issue's
2.5x budget; the no-emit p95 ratio is below 1.15. These are development-container
numbers and must not be cited as the dedicated-node G4 result.
## Not claimed
- No same-SHA Woodpecker pipeline, archive cold-install or frozen external
conformance evidence is recorded here.
- No disposable-VM strict L1 evidence for this SHA.
- No dedicated-node G4 measurement.
- No Windows/macOS support claim.
@@ -0,0 +1,52 @@
rc.4 local gate 2026-11-25T03:16:36Z
platform: Linux 7.0.0-43-generic x86_64
rustc: rustc 1.100.0 (0ef1bc386 2026-11-09)
cargo: cargo 1.100.0 (3acc79c0c 2026-11-05)
$ cargo fmt --all -- --check
PASS
$ cargo clippy --workspace --all-targets -- -D warnings
PASS
$ cargo test --workspace --locked
PASS
passed 632, failed 0, ignored 2
$ cargo test -p marqdo-cli --test architecture_boundaries
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
$ cargo test -p marqdo-cli --test docs_consistency
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
$ cargo test -p marqdo-cli --test analysis_observation
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s
$ cargo test -p marqdo-cli --test observation
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.26s
$ cargo test -p marqdo-cli --test tool_protocol
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.12s
$ cargo test -p marqdo-cli --test callable_resolution
test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s
$ cargo test -p marqdo-cli --test heading_inheritance
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
$ cargo test -p marqdo-cli --test conformance_ast
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
$ cargo test -p marqdo-cli --test conformance_semantics
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.70s
$ cargo test -p marqdo-cli --test analysis_boundary
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.02s
$ python3 -m unittest discover -s tools/ci -p test_*.py
Ran 43 tests in 0.089s
OK
$ cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
PASS
Finished `release` profile [optimized] target(s) in 0.05s