Skip to content

spec(002): make the decision contract concrete; record approval - #4

Merged
bartekus merged 3 commits into
mainfrom
spec/002-decision-contract
Sep 23, 2026
Merged

bartekus merged 3 commits into
mainfrom
spec/002-decision-contract

Conversation

@bartekus

Copy link
Copy Markdown
Contributor

Replaces #3, which closed when its stacked base was deleted. Contract change only; the implementation follows in its own PR.

What changes

  • Spec 002 approved (owner act A-02, 2026-09-23), implementation: pending.
  • Concrete rules for everything the draft left open: document schemas and bounded two-stage parsing with named limit sets (transport buffering owned elsewhere; no claim that post-deserialization checks prevent allocation); canonical form and domain-separated SHA-256 identities; fixed-point decimals with half-even rounding and refusal of excess precision; millisecond UTC time with future timestamps invalid; the closed exact-operator registry rustev.exact/1 with empty and failure behavior per operator; required-kind to backend-output table; phase-ordered refusal categories 1 to 11; staged evaluation; selection policy with statically checked unresolved coverage; derivation classes and lineage.
  • Calibration: one method (temperature/1) with explicit inputs; the constructor establishes identity and binding only; fitting deferred.
  • Determinism scoped to canonical compilation and a defined set of exact operations; exp/ln transformations are numerical, not byte, repeatable.
  • ## Acceptance and a verify:cli block; extends edges on 001's Cargo.toml and Makefile.
  • Engineering choices E-01 to E-07 are labeled as the implementing agent's, open to owner review, not owner decisions.

Review

An independent contract review of 001 and 002 found 12 defects (overlapping refusal categories, underspecified canonical encoding, missing limit sets, f64 division outside the exact set, derivation combination undefined, overstated allocation bound, and others); all are addressed in the second commit.

Phase-ordered refusal categories with one phase each; canonical encoding
fixed by the contract types with no omitted fields; limit sets for every
schema; exact computation includes correctly rounded f64 division; conflict
counts accepted entries only; derivation combination rules and static plan
classes; extends edges on Cargo.toml and Makefile; engineering choices
labeled as the implementing agent's, not the owner's.
@bartekus
bartekus merged commit 75462ff into main Sep 23, 2026
1 check passed
@bartekus
bartekus deleted the spec/002-decision-contract branch September 23, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant