docs: make the current contracts describe the binary that exists
- 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.
This commit is contained in:
1 parent
682eae82b6
commit
d11b261aca
19 files changed
+196
-117
No files matched your search
@@ -183,7 +183,7 @@ review RFC, not a new crate per provider.
|
||||
| `resource.request` | the reviewed operation allowlist (`process.run`, `regex.*`, `compress.*`, `random.bytes`, `env.get`, `clock.now`, `fs.*`) in `docs/architecture/resource-operations.md`; project mode + grants, ADR-0062 | implemented; **new domain operations forbidden**; architecture gate pins the list | `resource_streams`, `architecture_boundaries::resource_request_operation_allowlist_is_reviewed` |
|
||||
| core resource kinds | one `marqdo_host::CORE_RESOURCE_KINDS` registry used by CLI manifest validation and every host registration API | implemented; all six core kinds rejected as provider name/kind before registration (H-04) | `resource_streams`, `provider_manifest::every_core_kind_is_rejected_as_name_and_as_kind` |
|
||||
| `math.*` domain API | removed after `3.0.0-beta.1`; call is `symbol.unknown`; `Formula` stays inert; external pure package + optional ABI backend; `math.compute` stays a plugin capability category (H-01/H-11) | **removed** from `BUILTINS`/`HostOp`/host/runtime/workspace; `examples/math-library/`, `examples/math-backend/` | `math_library`, `conformance_semantics`, `architecture_boundaries::domain_math_kernel_is_not_part_of_the_core` |
|
||||
| Heading modes / annotations | `@exec`/`@knowledge` are the closed Core Modes; unmarked headings inherit the nearest ancestor (H-06); third-party heading annotations are **Proposed** metadata only, Analysis v2 unchanged (H-05/H-07) | core mode: implemented; annotations: Proposed/not implemented, target `3.1.x` | `heading_inheritance`, `units`, negative `sem.invalid_mode_marker`; future T-ANNO in `spec/heading-annotations-v1.md` |
|
||||
| Heading modes / annotations | `@exec`/`@knowledge` are the closed Core Modes; unmarked headings inherit the nearest ancestor (H-06); third-party heading annotations are **Proposed** metadata only, Analysis v3 unchanged (H-05/H-07) | core mode: implemented; annotations: Proposed/not implemented, target `3.1.x` | `heading_inheritance`, `units`, negative `sem.invalid_mode_marker`; future T-ANNO in `spec/heading-annotations-v1.md` |
|
||||
| Foreign F-A | permission-gated one-shot `foreign.run`/`foreign.call` + dynamic `KernelRegistry`; F-B removal deferred (H-02) | retained; no new language-specific builtin/HostOp; existing grants/digest/timeout/wire/output negatives unchanged | `marqdo-foreign/tests/kernels`, `smoke.py` foreign/kernel cases, `examples/kernel-mock` |
|
||||
| `std:data/json` | `json.解析/解析多个/格式化`; nested Value, 128-depth bound, recoverable errors | implemented (recursive, multi-value; no streaming) | `stdlib_product` |
|
||||
| `std:data/csv` | `csv.解析行/解析/格式化行/格式化`; quoted single/multi-row, CRLF, quoted newlines | implemented (no streaming) | `stdlib_product` |
|
||||
@@ -199,7 +199,7 @@ review RFC, not a new crate per provider.
|
||||
| `std:net/http` | byte-exact HTTP/1.1 parse/build; chunk sizes are byte counts; text wrapper compatible | implemented (pure `.mq.md`) | `stdlib_http` |
|
||||
| HTTP/1.1 | `stdlib/net/http.mq.md`: status/header/chunked-byte parse, request build | implemented over an already-authorized TCP stream; not a DNS/TLS client | `stdlib_http`, `http_over_tcp`, `stdlib_product` |
|
||||
| print / official stdlib aliases | `打印`/`print` are verified `stdlib.json` public aliases bound to `io.mq.md::写值`; ordinary Marqdo calls, no `print_override`, no runtime branch, no `HostOp::Print` | implemented (ADR-0058) | `stdlib_alias_routing`, `print_routing`, `stdlib_product` |
|
||||
| callable resolution | one registry + one `bind_program_calls` pass; `check`/`run`/`inspect`/Analysis share `CallSiteKey` bindings; plugin exports reconcile exactly with static manifests; no runtime name fallback | implemented (ADR-0054) | `callable_resolution`, `plugin_worker`, `analysis_trace` |
|
||||
| callable resolution | one registry + one `bind_program_calls` pass; `check`/`run`/`inspect`/Analysis share `CallSiteKey` bindings; plugin exports reconcile exactly with static manifests; no runtime name fallback | implemented (ADR-0054) | `callable_resolution`, `plugin_worker`, `analysis_observation` |
|
||||
| resource provider v2 CLI | `--provider`/`--allow-provider` select and authorize a `provider.json` schema-2 `c-abi-1` worker artifact; manifest/artifact/grants/duplicate kinds verified before spawn; sibling helper only | implemented linux/x86_64; other platforms fail closed (ADR-0055) | `provider_cli` |
|
||||
| capability handlers | trusted handler registry executes granted capabilities under budget/audit; missing handler is `capability.unavailable`; `fs.read` is the first real handler | implemented (ADR-0057) | `capability_handlers` |
|
||||
| strict mode | only the pure/Math execution path and the built-in stdout console channel; project/foreign/plugin/tool/trace/file/network grants are rejected | implemented L1; L2 not implemented | `tests/security`, `resource_streams`, `stdlib_product` |
|
||||
|
||||
@@ -18,7 +18,7 @@ their date.
|
||||
|
||||
```text
|
||||
marqdo-cli/
|
||||
├── Cargo.toml workspace (15 crates, resolver 2)
|
||||
├── Cargo.toml workspace (16 crates, resolver 2)
|
||||
├── AGENTS.md operator rules for contributors/agents
|
||||
├── README.md user-facing quickstart and limits
|
||||
├── docs/
|
||||
@@ -209,7 +209,7 @@ counts, harness responsibilities and known observations.
|
||||
|
||||
## 5. Coding conventions
|
||||
|
||||
* Rust edition 2021, `rust-version = 1.82`, workspace version `3.0.0-beta.1`.
|
||||
* Rust edition 2021, `rust-version = 1.89`, workspace version `3.0.0-rc.3`.
|
||||
* `unsafe` is forbidden in pure crates (for example `marqdo-expression` uses
|
||||
`#![forbid(unsafe_code)]`); the ABI/loader crates contain the only
|
||||
`unsafe` code and every block has a SAFETY comment explaining the contract.
|
||||
|
||||
@@ -38,6 +38,7 @@ has opted into this disclosure. Program output and explicit returned values
|
||||
can themselves contain sensitive data.
|
||||
|
||||
Update integrations that previously used the retired run/call JSON,
|
||||
Trace or Execution Events options. Use the commands above, remove the old
|
||||
Trace, Execution Events or retired run/call options. Use the commands above,
|
||||
remove the old
|
||||
reader, and rebuild and reinstall the Tool with the
|
||||
[current manifest](../../spec/cli-tool.md).
|
||||
@@ -8,11 +8,10 @@ This page summarizes the public support policy. The authoritative matrix is
|
||||
|
||||
| Axis | `3.0.0-rc.3` value | Change rule |
|
||||
|---|---|---|
|
||||
| Product / CLI | `3.0.0-rc.2` | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
|
||||
| Analysis | v2 | New major for incompatible changes; consumers reject unknown majors. |
|
||||
| Trace | v2 | New major for incompatible changes; binds to exact Analysis bytes. |
|
||||
| Execution Events | v1 | One-line NDJSON stream; new major for incompatible required-field/ordering/redaction changes. Consumers reject unknown majors. |
|
||||
| CLI Tool | v1 | Frozen manifest/negotiation/bundle contract for v1. |
|
||||
| Product / CLI | `3.0.0-rc.3` (candidate) | SemVer prerelease. See `CHANGELOG.md` for changes from the beta. |
|
||||
| Analysis | v3 | One writer and one current major for every project. New major for incompatible changes; consumers reject unknown majors. |
|
||||
| Observation | v1 | One `run_id`/`seq` event sequence per execution; JSONL, JSON snapshot and file snapshot come from the same run. New major for incompatible required-field/ordering/redaction changes. |
|
||||
| CLI Tool | revision 1 | Exact `requires.api_revision` plus optional exact `analysis`/`observation` integers; no version arrays or negotiation. |
|
||||
| Plugin ABI | v1 (`1.0`) | Frozen C layout and version negotiation. |
|
||||
| Foreign wire | v1 | One-shot request envelope. |
|
||||
| Provider manifest | v2 | `schema_version: 2`, `abi: c-abi-1`, `transport: worker`. |
|
||||
@@ -21,8 +20,8 @@ This page summarizes the public support policy. The authoritative matrix is
|
||||
| Bundled stdlib | `0.1.0` | Independent package version; not the product version. |
|
||||
| Plugin/tool/example packages | their own | Independent SemVer. |
|
||||
|
||||
`project.marqdo` and a tool's `compatibility.marqdo` are **enforced product
|
||||
ranges**. Prerelease cores require a prerelease range such as
|
||||
`project.marqdo` is an **enforced product range**; a tool declares its exact
|
||||
current protocol requirements in `requires`. Prerelease cores require a prerelease range such as
|
||||
`>=3.0.0-beta.1,<4.0.0`; `>=3.0.0,<4.0.0` does not match the RC.
|
||||
|
||||
## Candidate platform scope
|
||||
@@ -36,9 +35,9 @@ ranges**. Prerelease cores require a prerelease range such as
|
||||
|
||||
Strict is Linux-only and probe-gated. Plugin/provider worker transports are not
|
||||
OS sandboxes. `pure`/`project` are execution modes, not security boundaries.
|
||||
Execution Events v1 is a live observation protocol: it is not a capability
|
||||
grant, values are off by default, and `--mode strict` currently refuses
|
||||
`--output jsonl` explicitly (no downgrade).
|
||||
Observation v1 is a live observation protocol: it is not a capability grant,
|
||||
values are off by default, and `--mode strict` refuses `--output jsonl` and
|
||||
`--observation-file` explicitly (no downgrade).
|
||||
|
||||
## Language compatibility
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ Even when available:
|
||||
wire-incompatible kernels.
|
||||
* **CLI tools**: a tool is an ordinary user-authorized executable and does
|
||||
**not** inherit `pure`/`project`/`strict` guarantees from the documents it
|
||||
reads. `MARQDO_BIN`, `MARQDO_TOOL_PROTOCOL`, `MARQDO_PROTOCOL_ANALYSIS` and
|
||||
`MARQDO_PROTOCOL_TRACE` are the only helpers the CLI injects.
|
||||
reads. `MARQDO_BIN` and `MARQDO_API_REVISION` are the only helpers the CLI
|
||||
injects; version negotiation was removed.
|
||||
* **Extension selection** (`marqdo.yaml.extensions`, lock v4) is never
|
||||
authorization. `--allow-plugin`, `--allow-provider` and `--allow-foreign`
|
||||
are still required.
|
||||
@@ -77,19 +77,19 @@ Archives are accompanied by SHA256 checksums and `RELEASE_INFO.json`
|
||||
integrity only; they are **not** a publisher signature. A digest obtained from
|
||||
an untrusted Git URL does not make the code trustworthy.
|
||||
|
||||
## Execution Events v1
|
||||
## Observation
|
||||
|
||||
* Implemented: live stdout/stderr chunks, lifecycle/terminal events, call
|
||||
instance ids, branch/loop/effect events, explicit bounded value observation.
|
||||
* Not implemented: memory region/budget metadata (OBS-06/P2), raw memory
|
||||
content, breakpoints/stepping/time travel, and a bidirectional debug
|
||||
protocol. Do not infer a debugger from this protocol.
|
||||
* `--mode strict` currently rejects `--output jsonl` explicitly; there is no
|
||||
silent fallback to `project`.
|
||||
* `--mode strict` rejects `--output jsonl` and `--observation-file` before
|
||||
launch; there is no silent fallback to `project`.
|
||||
* The live lane is tested on Linux x86_64; macOS/Windows are unverified for
|
||||
this option for this candidate.
|
||||
* In-process native plugins are rejected in event mode
|
||||
(`ext.event_stream_unsupported_native_plugin`) because they share the process
|
||||
* In-process native plugins are rejected with an active machine destination
|
||||
(`ext.observation_unsupported_native_plugin`) because they share the process
|
||||
and can write the protocol fd directly; worker plugins remain usable.
|
||||
* Observation lowers confidentiality when values are explicitly enabled. Text
|
||||
needs a second opt-in; View/agents must not enable these flags by default.
|
||||
|
||||
Reference in new issue
Block a user