release(3.0.0-beta.1): product version migration, beta gates, archive tooling and developer docs
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
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

REL-01: workspace/CLI/Analysis product version 3.0.0-beta.1 with updated
Cargo.lock; project.marqdo is enforced against the running core with
package.marqdo_range_invalid/package.marqdo_incompatible fail-closed
diagnostics; Tool SemVer prerelease negotiation tests; init template and
examples use the beta range. Verify init derives the project name from the
target directory instead of falling back to 'example'.

REL-02: beta support matrix is Linux x86_64 only; macOS/Windows are explicitly
experimental/unclaimed; strict policy and G4 Beta-only WARN are documented for
the release evidence.

REL-03: deterministic release packaging (tools/release/package.py) ships the
CLI and provider worker together with SOURCE_SHA, RELEASE_INFO.json,
known-limitations, specs, developer docs, examples incl. built plugin/provider
artifacts and consumers; tools/release/smoke.py cold-install tests the archive.

REL-04: docs/developers entry pages; corrected and self-contained third-party
integration handbook; stale Proposed/native-only/informational spec claims
fixed; release/status/compatibility/changelog/releasing docs updated.

REL-05: release_evidence.py gains an explicit beta profile
(BETA_RELEASE_CANDIDATE) distinct from the stable profile; Woodpecker build
step now packages and smoke-tests the archive on every pipeline.

Adds a runnable Resource Provider v2 example and corrects check --emit to
Analysis v2.
This commit is contained in:
cflmy committed 2026-11-22 02:31:32 +08:00
1 parent 56189b176c
commit 2c7c4f31e7
55 files changed
+3136 -453

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Foreign Kernels v1
Status: **one-shot kernels with an explicit provider registry** (M0.6 R2),
Status: **one-shot kernels with an explicit provider registry** (frozen foreign wire v1; product baseline `3.0.0-beta.1`),
including built-in Python and Node/JavaScript providers. There are no sessions
or persistent kernels.
+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Markdown Profile v1
Status: **frozen for M0.5**. Changes require an ADR, updated goldens and a
Status: **frozen (marqdo.md.v1)**; product baseline `3.0.0-beta.1`. Changes require an ADR, updated goldens and a
profile id bump.
Profile id: `marqdo.md.v1`
+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Math v1
Status: **frozen subset for M0.5.** The kernel computes numbers; it never proves
Status: **frozen subset (math v1)**; product baseline `3.0.0-beta.1`. The kernel computes numbers; it never proves
theorems. `math.simplify` and `math.differentiate` are **not implemented** in
this build.
+22 -16
View File
@@ -31,7 +31,7 @@ no `--project` flag in this build.
project:
name: example
version: 0.1.0
marqdo: ">=0.1,<1" # optional; informational in this build
marqdo: ">=3.0.0-beta.1,<4.0.0" # optional; enforced against the running core
dependencies:
geometry:
path: ./packages/geometry # exactly one of path / git+rev
@@ -62,7 +62,7 @@ extensions: # explicit activation sources; never grants
|---|---|---|---|
| `project.name` | string | yes | non-empty package name |
| `project.version` | string | yes | non-empty version string (not semver-validated in the manifest) |
| `project.marqdo` | string | no | required Marqdo runtime range; stored, not enforced by this build |
| `project.marqdo` | string | no | Marqdo core SemVer requirement; enforced against the running core, incompatible ranges are hard errors |
| `dependencies.<name>.path` | path string | one of path/git | project-relative path to a dependency directory or `.mq.md` file |
| `dependencies.<name>.git` | URL string | one of path/git | git source (must be pinned with `rev`) |
| `dependencies.<name>.rev` | string | with `git` | exact revision; a bare `git` without `rev` is rejected |
@@ -82,6 +82,12 @@ diagnostic.
validates:
* `project.name` and `project.version` are non-empty after trimming;
* when `project.marqdo` is present it must parse as a `semver::VersionReq`
and match the running core version (`package.marqdo_range_invalid` /
`package.marqdo_incompatible`). SemVer prerelease rules apply: a stable-only
range such as `>=3.0.0,<4.0.0` does **not** accept `3.0.0-beta.1`; prerelease
users must opt in with a range whose comparator carries the prerelease
(for example `>=3.0.0-beta.1,<4.0.0`);
* for every dependency, exactly one source is present:
* both `path` and `git` → error "declares both path and git";
* neither → error "must declare a path or a pinned git source";
@@ -94,8 +100,9 @@ validates:
the project is loaded (`PackageResolver::resolve_extension_sources`), not in
plain `Manifest::validate`.
Note: a *git* dependency passes manifest validation when pinned, but the
dependency is not resolvable or lockable in this build (§5).
A pinned *git* dependency is resolvable, lockable and runnable; `lock`/`sync`
clone it into the content-addressed cache and verify the checked-out commit
and tree digest (§4.3).
### 2.3 `capabilities` are requests
@@ -169,7 +176,7 @@ An extension lock record binds:
additionally verifies the real artifact bytes before starting any worker.
`extensions` is omitted when no extension is declared.
### 3.1 Lock v3 migration
### 3.1 Lock v4 migration
`from_yaml` of a v3 document returns a deterministic error: lock v3 is
superseded by v4 (extension identities), and the user must run `marqdo lock`
@@ -178,7 +185,7 @@ their existing relock error with the v4 requirement.
| Field | Semantics |
|---|---|
| `lock_version` | writers emit `3`; readers accept only `3` and tell v1/v2 users to run `marqdo lock` |
| `lock_version` | writers emit `4`; readers accept only `4`; a v3 document gets the explicit "run `marqdo lock`" migration error and v1/v2 get the relock error |
| `content_profile_version` | file-set/digest profile; only `1` is accepted |
| `root.package` | logical root instance `root:<name>@<version>` |
| `root.manifest_digest` | lowercase hex SHA-256 of the canonical `marqdo.yaml` |
@@ -193,7 +200,7 @@ The graph is the unit of reproducibility: a transitive dependency that can be
imported is also locked. Edges are keyed by `(parent instance, alias)`, so the
same alias in two packages may resolve to different instances.
### 3.1 Serialization and validation
### 3.2 Serialization and validation
`lock` writes atomically (temporary file, `sync_all`, rename); a failed
resolution leaves the previous lock untouched. `LockFile::to_yaml` sorts
@@ -203,7 +210,7 @@ byte-identical.
`LockFile::from_yaml` validates before returning:
* `lock_version == 3`, `content_profile_version == 1`;
* `lock_version == 4`, `content_profile_version == 1`;
* unique ids, each consistent with `dep:<name>@<version>#<content_digest>`;
* every digest is 64 lowercase hex characters;
* every source is normalized (path relative to the project root without `..`,
@@ -214,7 +221,7 @@ byte-identical.
v1/v2 locks are rejected, not silently upgraded: a flat lock cannot represent
the closure and treating it as complete would re-open fail-open loading.
### 3.2 Tree hash
### 3.3 Tree hash
For a path or Git dependency, `lock` hashes the resolved package tree with
`content_profile_version: 1` (`crates/marqdo-package/src/fileset.rs`, ADR-0016):
@@ -239,7 +246,7 @@ final digest equals the lock. This is a deterministic content fingerprint, not
a Merkle tree and not a commitment to file modes or empty directories. Modes
are normalized on materialization (`0644` files, `0755` directories on Unix).
### 3.3 Lock generation rules
### 3.4 Lock generation rules
`marqdo lock` (run in a project):
@@ -303,12 +310,11 @@ after its file-set digest and cache marker verify.
project:
name: <name>
version: 0.1.0
marqdo: '>=0.1,<1'
marqdo: '>=3.0.0-beta.1,<4.0.0'
```
(empty dependencies/plugins/capabilities are omitted);
* writes `index.mq.md` (the target syntax; the template in a pre-RFC binary
still emits the old spelling and is part of the pending migration):
* writes `index.mq.md` using the RFC-LANG-0002 syntax:
```markdown
## @exec main
@@ -335,7 +341,7 @@ stale lock entry). They do not fetch, install, resolve or authorize anything.
`marqdo add <name> --git <url> --rev <sha>`:
validate the dependency shape (same rules as §2.2), refuse an existing name
(exit 1), insert it, write the manifest, and tell the user to run
`marqdo lock`. A pinned Git dependency is lockable/resolvable in R5.
`marqdo lock`. A pinned Git dependency is lockable, resolvable and runnable.
* `marqdo remove <name>`: remove the dependency from the manifest (exit 1 if
absent), and drop a same-named entry from an existing lock file. It does not
re-hash or re-lock the rest of the project.
@@ -372,8 +378,8 @@ inconsistency to fix).
| Environment materialization (`.marqdo/env`, `cache`) | Implemented: `sync` materializes the full locked closure into `.marqdo/env` atomically; `lock`/`sync` populate a verified Git cache. Kernels/sessions are not materialized. |
| Dependency signatures / trusted publishers / supply-chain scanning | Not implemented. |
| Multiple/nested project boundary diagnostics | Not implemented; nearest `marqdo.yaml` wins. |
| Lock file migration between `lock_version`s | Only v3 is read; v1/v2 are rejected with a relock instruction. `lock` regenerates the graph. |
| Plugin installation / plugin dependency management | Not implemented; `plugins:` in the manifest is declarative only. |
| Lock file migration between `lock_version`s | Only v4 is read. v3 gets the explicit "lock v3 is superseded by lock v4; run `marqdo lock`" error; v1/v2 get the relock instruction. `lock` regenerates the graph. |
| Plugin installation / plugin dependency management | No package-manager install. `plugins:` is a declarative version requirement; explicit `extensions.plugins` activation plus lock v4 manifest/artifact identity is implemented and re-verified at run time. |
The lock/package format is deliberately small and deterministic so these can
be added later without changing the identity model. Changing `lock_version`,
+9 -6
View File
@@ -19,7 +19,7 @@ Three versions exist and are never conflated:
| Version | Current | Where |
|---|---|---|
| Marqdo language/semantics | M0.5, `spec/*` | `docs/DEVELOPMENT_BLUEPRINT.md`, specs |
| Marqdo language/semantics | RFC-LANG-0002 / ADR-0052, `spec/mapping.md` | `docs/architecture/RFC-LANG-0002-unified-semantics.md`, specs |
| Plugin ABI major.minor | `1.0` | `MQ_ABI_MAJOR`/`MQ_ABI_MINOR`, `marqdo_plugin_abi::ABI_MAJOR/ABI_MINOR` |
| Plugin package SemVer | e.g. `0.1.0` | `plugin.yaml` `plugin.version` |
@@ -299,7 +299,11 @@ When a plugin is used from Marqdo code, host errors become structured
## 9. Using a plugin from `.mq.md`
This build supports explicitly trusted **in-process native** plugins only.
Two transports are implemented for the same C ABI: `kind: native` loads the
library in-process and requires the explicit unsafe `--trust-native-plugin`
decision; `kind: worker` loads the same library in a child process behind the
length-prefixed wire (crash isolation, **not** an OS sandbox). Wasm is rejected
explicitly.
```bash
# 1. Build the C example and refresh its sha256 in plugin.yaml
@@ -359,8 +363,7 @@ the address space: the core binary is re-invoked as `__plugin-worker`, loads
one native library in the child, reports its complete export table, and serves
length-prefixed invoke frames. Handshake and calls have timeouts; a crash/EOF
becomes `plugin.crashed`/`plugin.timeout` in the host. This is crash isolation,
not an OS sandbox: the worker still runs as the user. Wasm, hot unload and a
full plugin capability broker for worker requests remain future work.
not an OS sandbox: the worker still runs as the user. Wasm, hot unload and worker capabilities other than the granted `fs.read` request/reply remain future work.
### 9.1 Worker frames
@@ -453,14 +456,14 @@ when no C compiler is available.
| Isolated plugin worker transport (length-prefixed IPC) | Implemented for crash isolation with handshake/call timeouts; a child process is not an OS sandbox. |
| Wasm Component + WIT | Not implemented; `kind: wasm` is rejected explicitly. |
| Hot unload/reload | Not supported by ABI v1; the worker is killed on unload. |
| Plugin installation by package manager | Not implemented; `marqdo.yaml` `plugins:` is declarative only. |
| Plugin installation by package manager | No package-manager install. `extensions.plugins` selects a manifest explicitly and lock v4 records its identity; `plugins:` versions stay declarative. |
| Vendor capability handlers | The broker and vendor-name validation exist; no concrete vendor handler is shipped in this build. |
| Static validation without an explicit manifest | `check` needs `--plugin <path>`; descriptors are not discovered from the network. |
| Positional plugin arguments | Not supported; named only. |
| Thread-safe / concurrent invocation | Not supported (single-threaded v1 contract). |
| Old `marqdo_abi.h` v2 compatibility | Not implemented and not claimed; a separate adapter would be required. |
## 12. Static descriptor / run-time reconciliation (RFC-EXT-0001 §4.5)
## 13. Static descriptor / run-time reconciliation (RFC-EXT-0001 §4.5)
The CLI never derives a callable signature from a loaded library. The
**manifest is the static contract** and the runtime is checked against it:
+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Security Model (implemented status)
Status: **describes the M0.5 implementation, including honest gaps.** This is
Status: **describes the `3.0.0-beta.1` implementation, including honest gaps.** This is
not a security audit; it documents what the code actually enforces.
Normative implementation:
+2 -2
View File
@@ -1,6 +1,6 @@
# Marqdo CLI Tool Protocol v1 — 通用外部工具协议
> 状态:Proposed,配套 `docs/NEXT_PHASE_IMPLEMENTATION.md` §5 修订 v2。任何官方/第三方工具一视同仁;该协议**不是** C ABI 插件协议。本文不声称现有 CLI 已实现此协议。
> 状态:**Implemented / frozen protocol v1**(产品 `3.0.0-beta.1`)。核心根命令同样优先;任何官方/第三方工具一视同仁;该协议**不是** C ABI 插件协议。安装、校验、分发与协议协商均已实现并由 `crates/cli/tests/tool_protocol.rs` 覆盖。
## 1. 范围与不变量
@@ -23,7 +23,7 @@
"command": "benchmark",
"entrypoint": "bin/marqdo-benchmark",
"compatibility": {
"marqdo": ">=0.1,<1",
"marqdo": ">=3.0.0-beta.1,<4.0.0",
"analysis": [2]
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
# Marqdo Value Wire Format v1
Status: **frozen for M0.5; extended by ADR-0022 (non-transferable `Memory`)**.
Status: **frozen (wire v1); extended by ADR-0022 (non-transferable `Memory`)**; product baseline `3.0.0-beta.1`.
Changes require an ADR, a `wire_version` bump and cross-ABI compatibility
tests. Adding a rejected tag is not a version bump; accepting a new value shape
is.