Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ecosystem contracts and verification

Use this ledger to decide which behavior a change must preserve. A suite in the evidence column is a regression guard, not proof that every deployment or input has been exercised. The implementation record records what ran, and the plan sets the acceptance criteria.

Core loaders and portability

The architecture describes the scanner, event layer and three consumers. A shared YAML example can agree semantically across loaders without making their outputs or allocations identical.

SurfaceContract and refusalRegression evidence
Typed streamingDeserialize supported string/slice inputs through the typed path. from_str falls back for nested anchor declarations and other constructs needing the general loader. Direct StreamingDeserializer exposes a supported subset and does not switch loaders automatically. Keep location and field path when a typed value fails.Streaming suite, error suite
Dynamic and borrowed valuesPreserve tags, aliases and scalar resolution according to the profile; borrow where the representation permits. Never promise that quoted or transformed strings borrow.Values suite, anchors suite
Loader parity and no-span pathsCompare values and errors for equivalent profiles. A no-span path is not a source-location oracle. Scan and parser limits still apply.Reading suite, limits suite, regressions
Canonical duplicate identityFirst position and selected entry under the configured policy; Last uses last value and scalar spelling. Aliases retain loader representation. Direct streaming/borrowing refuse materialization; distinct typed collisions always fail.ADR-0019 and policy regressions, including ignored mappings and registered tags.
Tag and anchor name boundsLimit resolved tag URIs and anchor names to 1,024 bytes, including EOF and shorthand directive expansion. Verbatim tags retain their literal URI. At-limit accepted tags must survive serialization and reparsing.Boundary regressions and verbatim tags, exercised with std and alloc-only dependencies.
CST and editingPreserve untouched comments and presentation. Reparse after edits where required and leave original source intact on refusal.CST suite, alloc API regressions
Streams and recoveryRetain order, separate documents, enforce document and stream budgets and report recovery errors without accepting a damaged document.Streaming suite, alloc API regressions
SerializationTyped, dynamic, string and formatting sinks agree within the selected scalar and output profile. The alloc path keeps float formatting without a runtime math dependency.Serialization suite, float consumer check
Optional policiesApply strict unknown-field handling, caller-provided includes, property interpolation, alias budgets and shared anchor ownership where advertised. Filesystem operations require a host.Integration suite, property suite, alloc API regressions
Compatibility and conformanceRespect intentional YAML 1.1 and archived compatibility profile differences. A conformance exception needs its own reason and test.Conformance suite, captured facade contract
Build profileTest expectation and limit
Default and minimal stdIsolated consumers use the published feature configuration; neither resolves an active runtime libm edge. Hosted IO, networking and integrations follow their feature gates.
Alloc core, accelerated and full portableExercise semantics, strict errors, formatting, CST rollback, float behavior and portable feature combinations through the alloc suites. Host tests use std for the harness only.
Thumb, RISC-V and AArch64 bare metalTest baseline and combined portable features at stable and Rust 1.89.0. Pointer-width atomics and a downstream allocator are required. The exact triples are listed in no_std support.
Schema with core std disabledSchema/CST composition is a hosted configuration. The schema dependency graph can use std.
OS integrationsReaders, writers, filesystem includes, Tokio and Rayon are host capabilities. A bare-metal compile does not promise their behavior.

Scanner and event code own lexical position and budget accounting. Typed streaming owns its eligibility and fallback rules. The value loader owns materialized YAML semantics, and the CST owns source preservation. Keep a failing input and characterize these boundaries before extracting code. A complexity report by itself does not justify unifying loaders.

Satellites

ProductSupported operation and boundaryExecutable evidence and open scope
CLIFormat stdin/files and check drift. Write only after parsing and formatting succeed.Formatter subprocess suite; stdin, files, help, output and failure paths.
CLIValidate documents and optional schema; apply conservative repair. Distinguish invalid data, usage errors and IO errors.Validator suite and fix failures.
CLIReplace via a synced sibling file; preserve mode within supported filesystem semantics. No power-loss guarantee.Atomic writer, hook and asset checks. Cross-OS metadata and interruption evidence remains open.
CLIInstall both binaries, manpages and shell completions, then uninstall cleanly.Staged Makefile install; package-manager recipes and every supported OS remain separate acceptance checks.
LSPFramed stdio initialization, full document sync, diagnostics, formatting and hover. Reject stale versions and invalid UTF-16 positions.Protocol suite and isolated Neovim run.
LSPBound headers and message bodies; stop after exit. Unsupported completion, symbols and schema diagnostics are not advertised.Framing suite and protocol coverage.
LSPVS Code extension starts the selected binary, independent client uses ordinary LSP.Extension npm tests and bundle are separate from real Neovim. The locally installed VSIX passed in the extension host. Marketplace acceptance remains open.
MCPstdio negotiated and stateless revisions, annotated tool catalogue, structured results, prompts and resources.Protocol suite and SDK client suite.
MCPStreamable HTTP supports negotiated sessions and stateless requests; legacy SSE has separate endpoints and lifecycle. Refuse unsafe origins and invalid media types.HTTP suite. Revision, cancellation, disconnect and concurrent-work acceptance remains scoped to observed tests.
MCPBound live sessions and outstanding blocking jobs. Request timeout or cancellation keeps capacity reserved until the job ends.Signed work-ownership decision, deterministic session regression, three worker-lifetime tests and actual-manager state fuzzer. Independent review remains open.
MCPBound documents, file types and recursion; constrain file tools to the configured root. A failed edit preserves data.Limit suite and stdio edit/refusal tests. Independent guard and write review remains open.
MCPnpm wrapper checks archive and binary digests and refuses a missing or corrupt offline cache.Installed v0.0.59 recovery drill uses the actual signed release archive; v0.0.60 is retired unpublished; fixed v0.0.61 channel gates remain open.
WASMNative-value or tag-stripped projection, stringify, validate, query and merge. Projection preserves non-finite numbers; JSON validation refuses them. JS integer conversion refuses unsafe magnitudes.Shared runtime contract: 34 actual checks under Node, Bun, Deno and Chromium, plus WASM tests.
WASMLossless document gets, UTF-8 byte spans, comments, set, replacement and release. Limit recursion, references and children before materializing them; leave failed edits unchanged.Shared contract and generated TypeScript. Resource workload measures actual repeated exports; retained documents and JS values breach the same growth budgets as normal runs.
WASMScoped npm bundler package contains generated JS, WASM, types and both licenses. Source-built web/Node targets have separate entry points.Actual tarball install, declaration check and module execution. The webpack and Chromium pair passed. Other bundlers need their own evidence.
FacadeCargo rename exposes Serde-compatible values, errors, locations and documented legacy scalar/merge behavior.Drop-in suite, core captured contract and renamed downstream consumer.
FacadeStandalone package requires std. Core compat remains independently alloc-only. Archived serde_yaml is a differential development oracle.Facade contract and core portable tests.

Cross-product comparisons

The shared corpus tests declared projections, including malformed input, Unicode, comment preservation and the legacy leading-zero difference. CLI formatting, LSP formatting and WASM parsing return different shapes by design. A transport failure or skipped product does not count as semantic agreement. Use the parity runner and retain its receipts with the product and core source identities.