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:
cflmy committed 2026-11-24 20:57:13 +08:00
1 parent 682eae82b6
commit d11b261aca
19 files changed
+196 -117

No files matched your search

+4 -3
View File
@@ -158,9 +158,10 @@ The following are **not** bounded by `WireLimits` in
| Foreign kernel stdin | `{"wire_version":1,"kind":"request","input":<typed value or null>}` (`crates/marqdo-foreign/src/lib.rs`) | `input` is a `to_wire(value)` result, or JSON `null` when absent. |
| Foreign typed return (`foreign.call`) | stdout must be exactly one typed value | decoded with `from_wire` and default limits. |
The `--json` output of `run`/`call` embeds `"value": to_wire(outcome.value)`
(`crates/cli/src/commands.rs`), so CLI JSON consumers see the same typed
representation.
The `run.completed` event of the current Observation snapshot embeds
`"value": to_wire(outcome.value)` (`crates/cli/src/observation.rs`), so CLI
consumers see the same typed representation. A result containing a
non-transferable handle has a null value and names its type.
## 6. Compatibility rules