Implement marqdo-cli#24 (AI-U1): ordinary .mq.md programs can read the
document snapshot that `prepare` already loaded, without a parser, host paths
or a second knowledge body.
- marqdo-host-contract gains the neutral read-only DocumentModule/DocumentUnit
projection (canonical ids, path/parent/level/mode/anchors, exact section and
heading spans, source digest, exact source) and two default-unavailable Host
methods.
- The composition root builds the snapshot from the same load as Analysis
(entry + explicit import closure only; no extra reads) and attaches it to the
native host. StdHost only slices the immutable source; it never executes
project code, loads modules, parses Markdown or touches the network.
- New builtins: document.outline(module?, parent?, limit?) and
document.read(module, unit, expected_digest?, max_bytes?). Expected states
(not loaded, unknown unit, stale source, over budget, invalid span) are
structured result maps with stable document.* codes, so ordinary control flow
can branch instead of crashing.
- Specification: spec/document-access.md, spec/evaluation.md §8, ADR-0074,
README/developers/STATUS links and a docs-consistency gate for the single
current contract.
- Tests: document_access.rs checks byte-exact agreement with check --emit
Analysis (module/unit ids, digests, spans, cross-module anchor read) and all
failure codes; the ADR-0064 builtin review table records the two additions.
Binary budgets are explicit (snapshot 128 modules/16 MiB; outline 1024/4096;
read 256 KiB/1 MiB) and over-budget requests report document.too_large rather
than truncating.
Implements the two CLI-owned P0 sub-issues of the ecosystem architecture
tickets without adding document-language syntax.
Environment report (marqdo-cli#26 §9.2, binding for #20):
- `marqdo inspect --environment [--json]` emits `marqdo.environment` v1:
producer version and build-embedded source commit, platform/arch/glibc and
real strict probe, adjacent provider-worker version/SHA (offline
`--build-info`, bounded), verified Bundle identity, current protocol
revisions and path-free diagnostics. Project-independent, offline, and
exclusive with document inspection flags.
- Release builds embed `MARQDO_BUILD_SOURCE_SHA`; the CI `build` lane sets it.
`tools/release/package.py` refuses to stage an archive whose binaries report
another commit or Bundle digest, and `tools/release/smoke.py` re-verifies the
extracted archive.
- Spec: `spec/environment.md`. Tests: `environment_report.rs` (5 cases) and
in-module unit tests; docs/releasing/COMPATIBILITY/STATUS updated.
Document-structure contract (marqdo-cli#25):
- `spec/document-structure.md` states the current author/tool semantics once:
heading mode inheritance (nearest ancestor, only Exec H2 callable), unit
identity and duplicate-name rules, anchor collision numbering, byte-exact
half-open spans, `index.mq.md` entry vs directory-dependency import meaning,
link != import != call, Proposed annotations marked not implemented, and the
Analysis fields consumers may rely on. It links the single authoritative
specs instead of duplicating them.
- Tests: `document_structure.rs` (6 cases) + docs_consistency coverage.
No runtime behavior change, no new language surface, no new cross-repo
dependency. `docs_consistency` and `architecture_boundaries` remain green.
- spec/security.md: replace the retired --json/EffectTrace/--trace-file
sections with the current strict output contract (text or one snapshot from
the verified child, live/file destinations refused) and Observation effect
events; drop the deleted trace.rs implementation row.
- spec/package-format.md, spec/value-wire.md, spec/evaluation.md,
spec/resource-provider-v2.md, spec/foreign.md: describe the current
--output/--observation-file and Observation events instead of run/call
--json and Execution Events.
- spec/analysis.md: a load failure removes the previous artifact, not only a
compile error.
- COMPATIBILITY.md and docs/developers/*: current axes are Analysis v3,
Observation v1 and CLI Tool revision 1; Rust 1.89; rc.3 candidate status.
- Fix the Analysis v2 / Trace v2 / trace-file references in README,
architecture overview, contributor guide, tool example, source comments and
AGENTS.md.
- Add a docs-consistency gate that fails when spec/ or the current developer
guides document a retired interface or a deleted spec path.
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
Add tools/ci/release_evidence.py (marqdo.release-gates.v1) plus unit tests:
missing/skipped/FAIL/UNVERIFIED and tested_sha mismatches stay
DO_NOT_RELEASE, performance may be PASS/WARN, unknown gate names are rejected.
The GitHub CI now has a release-evidence job that maps the Linux/schema and
native matrix results onto the manifest and uploads it, and both CI systems
run the evidence-tool tests.
Clear the contradictions the RFC calls out: remove the stale CURRENT.md rows
that claimed DNS/TLS/UDP and fs metadata were absent while the same table said
they were implemented; correct docs/ci.md to state that the GitHub-hosted
Windows/macOS matrix exists (Woodpecker has no such agent); keep the old
convergence plan historical; require the evidence manifest in releasing.md;
and add a docs-consistency guard for these claims.
This is step 6 of the CI/security RFC (B05/B06/B07).