0x0LearnReferenceLibraries0x0.jmp0x1b.com

Contract Production Readiness Roadmap

This roadmap turns the word contract into a production-audited term across

0x0. A contract is allowed only when the repository can prove the promised

boundary through implementation, tests, diagnostics, documentation, release

evidence, compatibility policy, and ownership.

This work exists because contract appears in ABI, API, package, runtime,

library, and release surfaces. That is acceptable only when each use means a

checked guarantee. It is not acceptable when it means future intent, an

interface-only library, a planned API, or a test fixture presented as production

behavior.

Production Closure Rule

This roadmap is complete only when every public or release-relevant contract has

all of the following:

Until that gate exists and passes, 0x0 must not treat contract integrity as a

closed production surface.

Contract Taxonomy

The accepted contract kinds are:

The machine-readable taxonomy is docs/contract-taxonomy.tsv.

Kind Meaning Required Evidence
abi-contract Binary layout, calling convention, ownership, value representation, or symbol compatibility guarantee. Layout tests, cross-backend ABI tests, compatibility notes, release artifact evidence.
api-contract Request, response, route, schema, or public callable surface guarantee. Validators, encoder/decoder tests, bad-input diagnostics, docs, examples.
package-contract Package metadata, lockfile, resolver, registry, publish, install, rollback, or provenance guarantee. Resolver tests, registry integrity tests, signature/checksum evidence, rollback evidence.
runtime-contract Runtime behavior, capability, process, socket, memory, or host-boundary guarantee. Runtime tests, security-negative tests, failure behavior, observability, operator docs.
source-contract Checked source syntax, type annotation, effect annotation, or compiler phase boundary guarantee. Parser/checker tests, diagnostics, lowering evidence, language docs.
tooling-contract Formatter, docs, lint, release, registry, or source-owned tool behavior guarantee. Tool tests, source ownership evidence, release helper rows, docs.
test-fixture-contract Deterministic fixture behavior used by tests only. Test-scope path, fixture docs, production exclusion check.

The following are forbidden in production or development paths:

perform;

behavior;

Milestone 0: Contract Meaning Baseline

Status: done.

Goal: make contract terminology precise before changing code.

Submilestones:

documentation standard, and governance review docs.

docs/contract-taxonomy.tsv.

guarantee, checked boundary, or a domain-specific term unless the page

links to the formal taxonomy.

public contract requires implementation and release evidence.

Acceptance:

explain when contract is allowed.

Completion evidence:

docs/governance-review.html define the allowed use of contract.

domain-specific wording unless they link to the formal taxonomy.

Milestone 1: Contract Inventory And Ownership

Status: done.

Goal: inventory every active contract use and assign evidence ownership.

Submilestones:

tables, release metadata, packages, and app surfaces.

behavior, release evidence, owner, stability, and compatibility policy.

paths to live under test-only directories.

remove-required.

compatibility aliases and removal timing.

Acceptance:

release/contract-inventory.tsv.

Completion evidence:

documentation, runtime tables, release metadata, package metadata, tests,

tools, and public site source.

with kind, disposition, source location, implementation path, tests, docs,

examples, failure behavior, release evidence, owner, stability, and

compatibility policy.

marked rename-required, including recommended names, compatibility plan,

owner, target milestone, and status.

under test-scoped paths.

fixture-scope violations.

Milestone 2: Contract Integrity Gate

Status: done.

Goal: add the bounded gate that prevents contract drift.

Submilestones:

examples, owner, stability, compatibility policy, or release evidence.

inventory.

documentation impact review.

Acceptance:

docs, fixture-as-production, unknown taxonomy kind, duplicate rows, and

unowned rows.

deployment.

Completion evidence:

fields, duplicate rows, source locations, evidence paths, owner/stability

fields, fixture scope, rename ledger coverage, generated inventory drift, and

staged ADR/RFC documentation-impact requirements for new contract terms.

implementation, missing tests, missing docs, fixture-as-production, unknown

taxonomy kind, duplicate rows, unowned rows, and missing generated inventory

coverage.

compilers or remote deployment.

release/final-discipline.tsv, and

tools/final-release-discipline-check.py include contract integrity as a

release input.

Milestone 3: ABI Contract Hardening

Status: done.

Goal: make ABI contracts prove binary compatibility and runtime layout behavior.

Submilestones:

and calling-convention contracts.

values, errors, options, results, bytes, maps, closures, and host buffers.

codegen, and compatibility paths.

duplicate symbol, and incompatible runtime value.

Acceptance:

release evidence.

Completion evidence:

stack discipline, primitive layouts, tagged value layouts, runtime descriptor

layouts, symbol resolution, relocation handling, archive linking,

compatibility readers, and failure diagnostics.

lists, tagged values, errors, options, results, bytes, maps, closures, and

host buffers, and make abi-contract-hardening-check validates it against

abi/value-layouts.tsv.

native codegen, and compatibility paths.

marker mismatch, unsupported layout, missing symbol, duplicate symbol,

incompatible runtime value, unsupported relocation, and malformed markers.

release/test-helpers.txt, and tools/final-release-discipline-check.py

make ABI contract hardening a required bounded-source release input.

rows as ABI contracts because of unrelated ABI wording in the same line.

Milestone 4: API Contract Hardening

Status: done.

Goal: make API contracts enforce real request, response, route, and callable

surface behavior.

Submilestones:

Index, Kukulkan, generated API docs, and package pages.

parameters, domain invariants, and versioned wire values.

invalid capability use, and unsupported version.

Acceptance:

examples, and docs.

Completion evidence:

libraries, framework libraries, Index, Kukulkan, generated API docs, and

package pages.

schemas, request schemas, response schemas, domain invariants, generated API

docs, and package pages.

every API contract family.

runtime operations and rejects constructor-only production evidence.

missing fields, invalid variants, bad types, denied capabilities,

unsupported versions, constructor-only evidence, route mismatches, and

round-trip failures.

release/test-helpers.txt, and tools/final-release-discipline-check.py

make API contract hardening a required bounded-source release input.

under app package paths to API contract evidence instead of package metadata

evidence.

Milestone 5: Package Contract Hardening

Status: done.

Goal: make package contracts prove resolver, registry, publication, and rollback

behavior.

Submilestones:

install, cache, offline, checksum, signature, yanking, deprecation, alias, and

rollback contracts.

namespace ownership, and offline mode.

bundle shape, package pages, and index metadata.

deprecation, rollback, and failure recovery.

signatures, checksum mismatch, yanked versions, and namespace violations.

descriptions.

Acceptance:

evidence, failure diagnostics, docs, and release evidence.

Completion evidence:

local registry, remote resolver, SemVer, install/cache, checksum/signature,

publish, yank/tombstone/advisory, alias/deprecation, rollback/provenance, and

registry-page contract surfaces.

conflicts, yanks, prereleases, namespace ownership, offline mode, lockfile

generation, cache reuse, and missing-package failures.

provenance, bundle-shape, package-page, index-metadata, alias, deprecation,

and tombstone integrity evidence.

deprecation, rollback, failure-recovery, ownership, and advisory workflow

evidence.

diagnostics for lockfile incompatibility, missing packages, bad signatures,

checksum mismatch, yanked versions, namespace violations, missing rollback,

and missing provenance.

release/test-helpers.txt, and tools/final-release-discipline-check.py

make package contract hardening a required bounded-source release input.

distinguish package contracts from package descriptions.

Milestone 6: Runtime Contract Hardening

Status: done.

Goal: make runtime contracts prove host behavior, capability enforcement, and

failure semantics.

Submilestones:

actor, distributed, embedded, and hardware runtime contracts.

network misuse, process injection, descriptor leaks, sandbox escapes, and

invalid runtime roots.

never release evidence for production runtime behavior.

credentials, state, or external services.

Acceptance:

tests, docs, and release evidence.

Completion evidence:

process, socket, browser, HTTP, web, service, actor, distributed, embedded,

hardware, Live, and assurance runtime contract surfaces.

traversal, network misuse, process injection, descriptor leak, sandbox

escape, and invalid runtime root security cases.

memory, streaming IO, file, process, socket, browser, HTTP, web, service,

actor, distributed, embedded, hardware, Live, and assurance surfaces.

operator-visible runtime failure evidence.

test-only and forbids their use as production runtime evidence.

diagnostics for capability denial, path escape, network misuse, process

injection, descriptor leaks, sandbox escape, invalid runtime roots, fixture

evidence misuse, and missing observability.

release/test-helpers.txt, and tools/final-release-discipline-check.py

make runtime contract hardening a required bounded-source release input.

docs/runtime-reliability.html, and docs/security-program.html link runtime

contracts to operator-facing docs and release evidence.

Milestone 7: Source And Tooling Contract Hardening

Status: done.

Goal: make source-level and tooling contracts prove compiler and toolchain

behavior.

Submilestones:

optimizer, diagnostics, formatter, docs, lint, release, and registry tooling

contracts.

contract.

formatting, docs, lint, release helpers, and registry metadata.

development.

Acceptance:

docs, and owner evidence.

Completion evidence:

ADT, effect, type/effect, import, compiler phase, IR, lowering, optimizer,

diagnostics, and template source-kind contracts.

source/invalid-diagnostics.tsv, and source/edition-stability.tsv record

parser/checker/lowering evidence, invalid examples, stable diagnostics, and

current-edition compatibility policy.

source/tooling-performance-budgets.tsv record formatter, docs, lint,

resolver, registry, release helper, contract inventory, source-owned tooling,

docs coverage, final release, and registry metadata evidence with bounded

budgets.

make source-tooling-contract-hardening-check, release helper metadata, and

final release discipline wire the source/tooling contract gate into release

evidence.

docs/rfcs/RFC-0086-source-tooling-contract-hardening.html record the accepted

design and documentation impact review.

Milestone 8: Library Naming And Domain Model Cleanup

Status: done.

Goal: remove ambiguous *-contract names where the value is a domain model,

schema, profile, policy, descriptor, or specification instead of a checked

compatibility boundary.

Submilestones:

tests that include contract.

policy, descriptor, spec, layout, invariant, or boundary.

transition.

renames.

examples in the same change.

Acceptance:

Completion evidence:

source token using contract, its replacement, source path, surface, and

rename kind.

domain-model symbols.

libs/symbol-deprecations.tsv record public symbol aliases, deprecation

metadata, and removal timing.

names do not return, that replacements exist, and that public renames have

compatibility metadata.

docs/rfcs/RFC-0087-library-contract-name-cleanup.html record the accepted

design and documentation impact review.

Milestone 9: Public Documentation And Learning Cleanup

Status: done.

Goal: make contract terminology understandable for beginners without weakening

technical reference docs.

Submilestones:

guarantee and checked boundary before introducing contract.

contract taxonomy where relevant.

Acceptance:

included.

Completion evidence:

evidence files, gate behavior, and forbidden uses.

introduce guarantees and checked boundaries before the formal term.

docs/contract-taxonomy.tsv and docs/contract-integrity.html.

contract-integrity coverage class.

site/libs/sitemap.xml were regenerated with the new reference page.

Milestone 10: Release Integration And Production Closure

Status: done.

Goal: make contract integrity part of the release decision.

Submilestones:

matrices.

stability changes.

ABI gates, and final release discipline gate.

Acceptance:

required release input.

release.

Completion evidence:

for taxonomy, inventory, surface evidence, compatibility metadata, closure

reports, and final release discipline.

inventory, ownership, fixture scope, renames, surface hardening, public docs,

release artifacts, and release decision wiring.

compatibility notes for taxonomy, inventory, library renames, surface

evidence, and release-decision changes.

taxonomy, inventory, ledger, drift, fixture-scope, and staged ADR/RFC

documentation-impact checks.

docs/production-readiness-matrix.tsv mark contract integrity implemented.

covered release.

Final Completion Signal

This roadmap is complete when:

owned;

exactly for maintainers.