Proposal: This page presents the draft API and profile model. Send feedback on GitHub.
Produce the outcome and settle
After the resource commits, it signs an outcome over the operation, exact permit and request references, intent, resource audience, journal row, units, epoch, commit time and SHA-256 of result bytes. Its signing key must be configured for that resource. Persist the actual journal with the effect.
const observation = await executeAtResource(packet, permit, actualRoute);
const outcome = await resourceSigner.sign({
v: "http6-guide-01", kind: "outcome", op: packet.attempt.op,
permitRef: ref(permit), requestRef: ref(packet.request),
intentRef: H("intent", packet.intent), audience: packet.intent.audience,
row: observation.rowId, resultHash: rawHash(observation.resultBytes),
units: packet.intent.units, epoch: permit.payload.epoch, at: observation.commitTime
});
await ledger.settleOnce({permit, outcome, resourceJournalRef: observation.rowId});
Settlement verifies the resource's signature and all bindings, then converts the corresponding reservation to spent once. If delivery fails after commit, the state remains reserved or uncertain until the outcome is reconciled. A no-effect closure may release funds only after the resource has durably excluded both an earlier effect and any later commitment for that permit. The schema's closure is an assertion; the mutual exclusion must be enforced transactionally.