open-standards/joulecontract
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 2688e2b936
Some checks failed
wai cross-architecture byte-equality / windows-x86_64 (pull_request) Successful in 23s
wai cross-architecture byte-equality / linux-aarch64 (pull_request) Successful in 40s
joule-code conformance gate / Build + round-trip C1-C4 vectors (pull_request) Failing after 1m3s
WAI conformance / cargo-class corpora · windows (pull_request) Successful in 1m13s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 1m8s
wai cross-architecture byte-equality / macos-arm64 (reference) (pull_request) Successful in 1m57s
WAI conformance / cross-arch byte-equality · windows (pull_request) Successful in 23s
jouleclaw public surface must stay documented / Public-surface audit (jouleclaw-rs) (pull_request) Successful in 58s
no-vanity-metrics / Scan committed Markdown for vanity metrics (pull_request) Successful in 3s
standards workspaces build + test / jcp-rs (pull_request) Failing after 12s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 39s
standards workspaces build + test / sandbox-rs (pull_request) Successful in 2m1s
wai cross-architecture byte-equality / linux-x86_64 (pull_request) Has been cancelled
WAI conformance / cargo-class corpora · linux (pull_request) Has been cancelled
WAI conformance / cross-arch byte-equality · linux (pull_request) Has been cancelled
WAI conformance / cross-arch byte-equality · macos (pull_request) Has been cancelled
WAI neural decoders end-to-end / synthetic fixtures → Rust decode → reference (±4) (pull_request) Has been cancelled
WAI conformance / cargo-class corpora · macos (pull_request) Has been cancelled
standards workspaces build + test / smart-byte-rs (pull_request) Has been cancelled
deps: cargo update across 18 workspaces
Lockfiles only — newest versions WITHIN the semver ranges the manifests already
declare. No manifest constraint was widened by this commit.

That distinction is load-bearing here. `cargo upgrade`, which rewrites manifests
to the latest major, is precisely what killed smart-byte: rand was pinned to
"0.10" against source written for 0.8, and the crypto stack it sits on
(ed25519-dalek, curve25519-dalek, bls12_381, bulletproofs) all require
rand_core 0.6 — so 0.8 is a ceiling those crates impose, not a preference.
Moving past it means waiting for that ecosystem or migrating 41 call sites of
cryptographic code, and neither belongs in a routine update.

Largest moves: smart-byte 207 packages, openpay 189, jouleclaw 182, eoc 164.

Verified on 1.98.0 with the updated lockfiles — 12 workspaces green:

  smart-byte 616   openpay 1935   joule-code 278   jcp 258   map 220
  sandbox 186      aac 89         joulecontract 82  arl 58    sense 38
  proof 31         joulehook 24

One pre-existing failure is deliberately NOT addressed here: jouledesk's
`the_joule_budget_is_enforced_across_tags` seals two decisions where the budget
permits one. It fails identically on the original lockfile, so it is not a
dependency problem — it is a budget-enforcement defect in the Joule Desk
standard, and a ceiling that seals a receipt for work it refused deserves its
own fix and its own commit rather than burial in a dependency sweep.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-08-26 08:34:28 -04:00
..
archive joulecontract v0.8: the implementability amendment — round five seals the pack 2026-06-10 16:21:44 -04:00
conformance joulecontract v0.8: the implementability amendment — round five seals the pack 2026-06-10 16:21:44 -04:00
joulecontract-rs deps: cargo update across 18 workspaces 2026-08-26 08:34:28 -04:00
provenance docs + no-vanity-metrics: reword two counts, fix scanner false positive 2026-06-13 22:14:13 -04:00
LICENSE Add the JouleContract standard — a carrier for obligation 2026-06-10 03:30:59 -04:00
LICENSE-SPEC Add the JouleContract standard — a carrier for obligation 2026-06-10 03:30:59 -04:00
README.md joulecontract v0.8: the implementability amendment — round five seals the pack 2026-06-10 16:21:44 -04:00
SPEC.md joulecontract v0.8: the implementability amendment — round five seals the pack 2026-06-10 16:21:44 -04:00

JouleContract

A carrier for obligation. Five clauses, one signed receipt, owned by no one.

JouleContract is the contract cargo class of the Transaction Science substrate. Where Smart Byte carries value, EOC carries compute, Joule Code carries coding work, and Map carries place, JouleContract carries the promise itself: a content-addressed statement of what a unit of work must hold (pre, post, inv), what it may touch (frame), and what it may spend (ceiling, a joule EnPI against a signed baseline). It is the operand the rest of the family acts on — Joule Code carries its changes, the proof standard discharges its obligations, JouleClaw budgets dispatch against its ceiling — and its single signed receipt simultaneously evidences functional safety, energy management, and AI governance: three audit programs collapsed into three projections of one receipt log.

The doctrine

Inherit, don't invent — bind, don't name — seal, don't float. Three normative consequences:

  1. The binding rule. Every trust-bearing field — generator, frame, qualification, independence, the joule figure itself — binds to a key, a sealed attestation, or an independent timestamp, or serializes one of twenty-two demoted states. A field that is named but not bound does not exist in a conformant receipt. Metered without a meter attestation is metered_unattested; independence is computed from key disjointness, never copied from a producer's flag.
  2. The sealing rule. Conformance is evaluated once, at discharge, against a content-addressed evidence bundle, and sealed. Re-verification is resolution-free — no DNS, no live registry, no reachable authority — which is also what makes conformant receipts producible air-gapped. Receipts do not rot, and nothing re-grades them later.
  3. Breach is deviation without amendment. Contracts bend instead of break: amendments are metered, independently timestamped transitions that govern the future only. A withheld receipt is visible as withheld; a past out-of-frame effect stays a breach forever; an unamended deviation caps the Governance class until closed.

Rigor, honestly

Conformance is a composed profile — ⟨Rigor JR-1..4 · Energy class · Governance class⟩ — gated by the least-bound axis, with a claim-discipline rule: the bare word "conformant" is itself a non-conformant claim. The limits no document can mechanize are named residuals, not hidden: obligation-set adequacy, common control, issuer-pays gravity, and the demand side — the standard prices honesty; relying parties price assurance.

Provenance

This standard was hardened by adversarial diff, and the diffs are part of it: each version was attacked by independent review lenses, the findings published, and the repairs folded as traced amendments with real digests. SPEC.md §16 carries the full chain; archive/ holds every prior version byte-exact so the chain verifies; provenance/ holds the four diff rounds that produced it — three against the spec text, the fourth against the reference implementation itself.

Contents

  • SPEC.md — normative specification v0.6.0 (RFC 2119), self-hosting amendment log with verified digest chain.
  • archive/ — prior spec versions (v0.1.0–v0.5.0), byte-exact anchors of the amendment chain.
  • provenance/ — the adversarial diff rounds that drove each amendment.
  • joulecontract-rs/ — Rust reference workspace: schema, receipt validation, evidence sealing, amendment/key-log machinery, conformance harness.

Reference implementation and consumers

joulecontract-rs implements the core object, the demoted-state vocabulary, computed independence, the least-bound-axis profile gates, resolution-free sealed verification, and forward-only temporal ordering. The first family consumer is live: joule-code-joulecontract runs a coding operation under a contract — the edit set is the frame, the tier cost is the ceiling, JCR provenance maps downward-only onto the energy classes — and discharges it into a receipt that grades honestly under the two-stage rule. The JouleClaw runtime and the proof standard's cascade are next.

Status

v0.8.0 draft. The amendment chain is real (archive digests verify against §16, mechanically, on every cargo test — seven anchors, v0.1 through v0.7). The reference workspace covers the schema, the receipt-local and composed validators (two-stage evaluation is now normative: local witnesses at most JR-2; JR-3/JR-4 and certified are composed verdicts over the sealed evidence bundle, the office key log, and the transition interval), composition with per-component ceiling accountability (intra-batch netting is structurally dead), the per-EnB ratchet, recourse and sector-equivalence bindings, the mechanical lost/never evidence distinction, cross-digest re-anchoring, evidence sealing with expected-signer verification, the in-toto/DSSE recognized edge, and a regenerable conformance vector pack whose expected verdicts come from the validators themselves. Five adversarial rounds are on the record (provenance/): three against the spec text, the fourth against the implementation (28 findings, four guarantee bypasses, all repaired — folded back as v0.7), and the fifth a clean-room implementability audit of the published artifacts alone, which found the composed validation path unbuildable without reading the reference code — folded back as v0.8, which makes the bundle construction, canonical JSON, quorum scope, obligation matching, and key-log event model normative text, and expands the pack from 13 to 22 vectors with every composed input shipped (member bytes included). Every §15 demoted state is producible by the reference implementation, and a third party can now build the composed validator from the published artifacts alone.

Licence

  • Reference code: Apache-2.0
  • Specification text: CC-BY-4.0