Skip to Content
Composition

Composition: records from several parties, joined by digest

One capsule is one party’s record. Most exchanges have two or more parties, plus the layers around them: identity, authorization, payment. Composition is how their records join without any one of them speaking for the others.

The problem

If one side records both halves of an exchange, it’s still one side’s account. And the layers that decide who an agent is, or whether it may act, already exist. Copying their evidence into one record would duplicate it and make it that record’s claim.

How the specifications answer it

  • Each side seals its own half. Under bilateral attestation, the requester records what it asked for and the performer records what it did, each under its own key. Neither record says whether they agree.
  • A verifier derives agreement. It compares the bound fields across the two records. For a payment, the settlement-records draft gives agreed, a mismatch naming the field that differs, or unjoined when the two can’t be compared. Under bilateral attestation, a half with no counterpart is an orphan: a defined state, not an error.
  • Other layers are cited, not absorbed. A capsule’s references commit to another artifact’s digest (an authorization grant, a policy decision, a credential) and say why it’s cited. The artifact stays where it lives.
  • One digest everyone can compute. The Canonical Payload Binding (CPB) has each payload profile declare its canonicalization by a registered identifier, so independent records can show they committed to the same bytes. The composition draft names three digest roles and requires each profile to state which bytes each one covers.

On a real run

Two nodes ran one live exchange on 2026-10-01, both running the same producer software. Each kept its own file. The requester’s capsule and the provider’s capsule carry the same request_digest (3670c98d6f9d026e3902531c114b0b6f6369ca6bfdc2e6da57613d0bd61bb040) and the same response_digest (f96206ab6366acb7189a6ed2cb22f7d6ff071547ca631fd1529accb710a2ff70), signed under two different keys (801b5d574bb2bceca9f1fa4d7ce7f2149c0ba0212568b5242ced6b18205b7d47 and 75860843f3f857871dbdc5b2638d9bee7cb913041677379720b2187bd7e8220a). Neither party can change its half without the halves no longer matching.

Source: action-state-group/capsule-emit, test-vectors/evidence-file/two-node-requester.json and two-node-provider.json, at commit d51a934ebf9d3efa3c86e7f27aaafe2bc06ac05d. Digests and keys read from both files for this page.

Composition across slots has been run by others too. Two from-scratch adapters, one TypeScript and one Python, re-ran a cross-slot composition pack pinned to the composition draft -00, and all 27 cases reproduced their pinned expectations. The repository records it as a run, not a conformance verdict.

Source: aps-conformance-suite, composition run ↗, on a pack published by emilia-protocol ↗.

Requester’s capsule key 801b5d57… request_digest 3670c98d… response_digest f96206ab… Provider’s capsule key 75860843… request_digest 3670c98d… response_digest f96206ab… authorization identity A verifier who trusts neither side ✓ same digests, two different keys Dashed: other layers’ evidence, cited by digest in a capsule’s references, never copied in.
Two nodes, two keys, one exchange. A verifier who trusts neither checks that both halves bind the same digests. Other layers are cited by digest.

What it does not show

That either side’s observation is true. Agreement on a digest is agreement about the digest. Whether a key belongs to the party it claims is the verifier’s own key policy. And when the halves disagree, the records show the disagreement. They don’t say who is right.

Read the drafts

bilateral attestation  · composition  · CPB (canonicalization declaration)  (its own site ↗ )