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.
The architecture boundary test hardcodes the accepted Bundle version; the
developer limits doc and the environment-report spec example name the current
Bundle identity. Update them together with the pin bump so the candidate
combination has one current Bundle identity. Historical release/evidence
records keep their original versions.
Update the CLI's single Bundle pin to version 0.3.0, tree digest
sha256:4e47b0ff... and the paired ecosystem root commit ad88b1e9 which pins
the merged std-data strict JSON entry. This is the CLI-side input for the same
candidate combination (root Bundle bump + CLI pin); it does not add a second
manifest or release path.
Add the reproducible evidence record for candidate 0f87f856: pinned
ecosystem Bundle identity, the full source gate list (fmt/clippy/638
workspace tests/boundaries/independent-build), the environment-report probes,
the release archive built with the embedded source SHA (package identity check
+ smoke PASS) and the Woodpecker push/PR lanes. Windows/macOS native lanes and
the strict VM lane stay UNVERIFIED.
Links the record from docs/STATUS.md.
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.
Add the canonical marker/link and a short pointer to the root repository
conventions; the CLI-specific boundaries in this file remain authoritative.
No code or product behavior changes.
Refs cflmy/marqdo docs/REPOSITORY-CONVENTIONS.md
- Current release docs (README/COMPATIBILITY/STATUS/developers/spec) move to
rc.5 with the previous release corrected to rc.4; add the rc.5 release notes.
- Record the actual gate outcome: deterministic archive, smoke, offline
Ubuntu 24.04 cold install, migrated extensions, external conformance and the
std: surface PASS; strict L1 UNVERIFIED because the release environment has no
VM/namespaces (no PASS claimed) and the paired shared-node G4 comparison is
below thresholds but not an approved-node PASS.
- CHANGELOG carries the rc.5 release record; no tag has been created yet.
Refs cflmy/marqdo#2, cflmy/marqdo-cli#11
- Record the deterministic rc.5 archive (sha256:446197ad...) built twice from
the candidate commit, smoke PASS and the offline Ubuntu 24.04/glibc 2.39
cold install PASS; still no tag/release/asset upload.
- Fix the perf comparison baseline to the previous published rc.4 instead of
the pre-external-Bundle beta, and measure the same fixture workload in both.
The shared-node paired run (9/9 COMPARED, max p50 +5.15%, max RSS +4.87%,
investigate=false) remains a WARN candidate only: status SMOKE and
environment_approved=false, so it cannot be claimed as G4 PASS.
- Record strict L1 as BLOCKED with the real failures (no namespaces/VM,
runuser denied); no strict evidence was produced and root-only results are
never promoted.
Refs cflmy/marqdo-cli#11, cflmy/marqdo#2
Version/metadata candidate only — this commit does not create a tag or release:
- workspace version 3.0.0-rc.4 -> 3.0.0-rc.5 (Cargo.toml/Cargo.lock) and an
explicit unreleased-candidate CHANGELOG section; current release docs still
describe rc.4 until a frozen release SHA and maintainer approval exist.
- The external-Bundle migration removed the in-repo stdlib tree, so the G4
stdlib-print-demo workload no longer had a source. Move it to a self-contained
tools/perf/fixtures/print-demo.mq.md, rename to print-demo, record its expected
digest, and make performance.yml copy the same tools/perf into the baseline
worktree so a paired run measures identical workloads.
- Evidence records the candidate measurement (MEASURED/correctness VERIFIED on
the shared node) but explicitly does not claim G4 PASS: the beta baseline
predates the external-Bundle harness and no approved paired node exists yet.
Refs cflmy/marqdo-cli issues #11, cflmy/marqdo#2
Woodpecker executes the job commands as one shell script; the inline contract
block plus its trailing commands exceeded the runner's command buffer and the
last command was truncated mid-argument (the raw log shows the shell received
'python3 tools/c'). Move the lane into tools/ci/contract_lane.sh and keep the
CI commands short, preserving every check.
CI jobs share one workspace, so a second job saw 'output already exists' from
the first fetch. The helper now reuses an output only after verifying it against
the pin, builds into a temporary sibling and moves it into place atomically.
Refs cflmy/marqdo-cli#11
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
- mark the old 0.12 remaining-work line as superseded by 0.13;
- record Woodpecker #112 success for the revert code commit in the evidence.
Docs-only change; no code/lock/protocol bytes move.
The pre-stable line prioritizes atomic ABI/header/spec/SDK/loader changes over
a premature repository boundary. ADR-0073 supersedes ADR-0072:
- restore crates/marqdo-plugin-sdk as a contract-only CLI workspace crate
(marqdo-plugin-abi + serde; no loader/host/worker dependency);
- restore tests/sdk-plugin and tools/ci/check_plugin_sdk.py, including the real
CLI invocation and tampered-digest negative case;
- restore workspace/lock/architecture/dependency/docs/CI references; the SDK is
a reviewed workspace member again and must not become a remote repo, mirror
or submodule in this stage;
- ADR-0072 and the old issue #15 evidence are marked superseded; ADR-0073 and
the split-revert evidence record the decision and the deleted remote repo;
- logical ADR-0071 boundaries are unchanged.
Workspace: 636 passed / 0 failed / 2 ignored; fmt, clippy, docs, architecture,
dependency, SDK gate and engine differential all PASS.
Refs #13, #15
Implements ADR-0072 / issue #15. SDK moved to cflmy/marqdo-plugin-sdk pinned to the CLI contract revision; CLI no longer carries or depends on it. CI push #108 and PR #110 green.
Implements ADR-0072 and the SDK physical migration tracked by issue #15:
- remove crates/marqdo-plugin-sdk, tests/sdk-plugin and the CLI-side
check_plugin_sdk.py; the public cflmy/marqdo-plugin-sdk repository now owns
the SDK workspace, lock, fixture, docs, AGENTS rules and CI definition.
- SDK consumes marqdo-plugin-abi at the exact CLI contract rev
2585915e16906dac75f8571bed02e7f6f868c6bc; no path/submodule/copied contract.
- CLI does not depend on the SDK and must not re-add it as a workspace member
or copy; dependency/architecture gates enforce this.
- docs: ADR-0072, CURRENT responsibility map/dependency graph, ADR-0071
amendment, indexes, README, spec/plugin-abi, CI and developer entries.
- evidence: clean-clone SDK build/tests and real frozen 3.0.0-rc.4 CLI
invocation (Int 42; tampered digest rejected).
CLI workspace: 631 passed / 0 failed / 0 ignored; fmt/clippy/docs/architecture/
dependency gates green.
Refs #15, #13
Docs-only delta on top of the verified code SHA 9b4f0a0:
- Woodpecker PR pipeline #101 (test/minimum-rust/build all green, including
archive smoke and frozen external conformance).
- domain-service ledger stays DEFERRED under ADR-0062 (no new domain op).
- STATUS/evidence update; no code, lock or protocol change.
Implements the core M0-M3 boundary work from issue #13 / ADR-0071 without
changing language semantics or any public protocol:
- add marqdo-host-contract owning Host/HostOp/ExecutionContext/ResourceRead
and the runtime observation facts; the engine depends on it only.
- marqdo-runtime no longer links marqdo-host; the native host implements the
contract and has no reverse edge to runtime/frontend/IR.
- reduce marqdo-plugin-abi to the public C ABI/wire/error contract; move
manifest/artifact/loader/worker execution into marqdo-host::plugin so the
SDK carries no loader/worker/host dependency.
- add a real independent consumer (tests/embedding, own workspace+lock) that
runs Markdown -> frontend -> IR -> runtime with bounded budgets and explicit
effect refusal, plus differential CLI comparison.
- add an SDK-only third-party plugin fixture and real CLI invocation gate.
- replace the frozen-crate architecture test with a reviewed responsibility
graph enforced from Cargo metadata, with negative unit cases.
- consolidate current docs/entry: ADR-0071, CURRENT responsibility map,
developers/architecture indexes, historical banners, STATUS and evidence.
- record keep-in-workspace for Engine/Native Host; no empty candidate repo.
Evidence: docs/evidence/2026-11-26-issue-13-engine-host-boundary.md
Refs #13
tools/ci/release_evidence.py accepts only its declared gate names; the
extra independent_build gate would have failed the release-evidence job.
The job still depends on independent-build and marks linux FAIL when it
does not pass.
Update STATUS, the architecture overview, README and tests/README with
the explicit Bundle input, pinned test/perf lanes and the independent
build. Add the Phase A evidence record: bundle identity, failure paths,
deterministic pack/package digests, independent build, archive smoke,
cold install and the 634-passed workspace gate. Phase B remains
explicitly unclaimed.
Moving the shipped stdlib aside must fail the print program with an
explicit diagnostic and still run a language-only program. The archive
smoke and the cold-install container now both call the factorial
example after the move, and the archive contract test pins the new
message.
Add tools/ci/independent_build.py: export HEAD without stdlib/, build
both shipped binaries with --locked, run a language-only check/call, and
require a stdlib-dependent run to fail closed with no sibling stdlib.
Add tests/independent/language-only.mq.md and run the lane as its own
GitHub job and Woodpecker step.
Perf runner resolves the pinned Bundle (--stdlib-dir/--bundle-pin),
exports it to every workload and records it in the report; GitHub and
Woodpecker lanes verify the pin and pass the product tests an explicit
Bundle. docs/ci.md and performance docs describe the lanes.
Add crates/cli/tests/support/stdlib.rs as the product/conformance test
resolver: explicit MARQDO_TEST_STDLIB_BUNDLE or the pinned path, always
verified against bundle-pin.json (name/version/commit/digests), with a
bad explicit override failing closed. Route stdlib_product,
stdlib_bundle, http, table, alias routing, p2_closure,
conformance_semantics and architecture_boundaries through it.
Loader unit tests now build small synthetic Bundles; discovery is split
into discover_with so the bad-override-no-fallback rule is testable.
package.py now requires --stdlib-dir and accepts --bundle-pin; it
verifies the manifest, required files, tree/alias digests and the pin
before staging, copies exactly that Bundle next to the binary, and
records stdlib.source{kind,repository,commit,path} in RELEASE_INFO.
Digest logic moves to tools/stdlib/bundle.py. GitHub/Woodpecker
release steps and docs/releasing.md pass the pinned input.
Add tools/stdlib/bundle.py + bundle-pin.json as the single source-side
Bundle identity (name, version, source commit, tree/alias digests) and
require tools/pack-stdlib.py --stdlib-dir instead of reading the
checkout implicitly. Missing input, missing manifest, digest/alias
mismatch, pin mismatch and symlinks fail closed; two packs are
byte-identical. Tests: tools/ci/test_stdlib_bundle_tools.py.
Record ADR-0070 (one explicit stdlib Bundle build input) and the
issue #11 Phase A inventory of every direct checkout-stdlib reference.
Baseline 4bbefc9; bundle source 2cbde54; no runtime contract change.
Record the RC_RELEASE_CANDIDATE gate manifest, same-SHA CI #94, frozen
extension 7/7, archive smoke, Ubuntu 24.04 cold install, disposable-VM strict
L1 PASS (uid 1000), archived-binary VM verification and the maintainer-approved
shared-node performance WARN for this named RC. Document that stable/LTS still
requires a dedicated fixed node and link the downstream view/lint issues.
RC candidates may use a maintainer-approved shared node with a recorded WARN;
stable/LTS still requires a dedicated fixed node. Add the migration guide for
marqdo-view and marqdo-lint covering exact source/AST consumption, the changed
unit span meaning, the stateful reference contract and the rejection of old
same-revision artifacts.
Replace the program-only Analysis v3 shape in place with the ADR-0069 boundary:
exact source and document AST, complete heading scope, entry/snapshot identity,
one shared document-link resolver, typed call/reference facts, semantic
validation and owner-only atomic emit. All code/CI/archive/conformance gates pass;
rc.4 publication is withheld (DO_NOT_RELEASE) pending the strict-VM and approved
G4 gates.
Pipeline 91 is fully green for the CI-helper follow-up commit b1fc211; the
shipped-code candidate remains e0645f3 and the release decision remains
DO_NOT_RELEASE because strict VM and the approved G4 result are unavailable.
The runner does not preserve shell quoting inside multiline YAML commands, so a
single-quoted Python -c kept aborting the contract lane. Use a small checked-in
tool instead; it appends one byte, runs the independent Observation consumer and
fails the lane unless the stale artifact is rejected.
Record pipeline #89 (all four lanes PASS) for e0645f3, the CI and local archive
hashes, archive smoke, Ubuntu 24.04 cold install and frozen extension 7/7.
The SHA-bound gate aggregate is DO_NOT_RELEASE: strict VM is UNVERIFIED and no
approved G4 node result exists, so rc.4 is not tagged or published.
Accept a double dot inside a file name and '::' in a module path; reject only an
absolute, drive, UNC or backslash path, duplicate separators, and '.'/'..'
path segments. This matches the loader and avoids over-rejecting legal files.
Escape the module/function delimiter when a function name contains '::', so a
path segment containing the delimiter cannot make two FunctionId renderings
collide. Drop the temporary path restriction that rejected a legal '::' in a
module path; the structured path and name fields remain authoritative. Add an
identity regression test and revalidate the schema.
The multiline if/printf block was truncated by the runner shell, so the
contract lane aborted with a syntax error after all protocol consumers had
already passed. Replace it with a single Python byte-append and an && guard;
the assertion still requires the stale artifact to be rejected.
The packaged 3.0.0-rc.4 archive passes the archive-only smoke (stdlib digests,
Analysis/Observation consumers, Tool dispatch, workers, strict refusal) and the
container-only cold install on Ubuntu 24.04 with no Cargo and no network.
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.