@dharma-ai-labs/agent-fabric-contracts
v0.1.10
Published
Versioned schemas, signatures, and TypeScript contracts for Dharma Agent Fabric
Downloads
6,830
Readme
@dharma-ai-labs/agent-fabric-contracts
Versioned TypeScript contracts and validators for Dharma Agent Fabric protocol envelopes, provider capabilities, evidence requests, signed tasks, and receipts. Schema validity establishes structure and integrity; it does not prove factual grounding or reasoning validity.
Action-decision receipts
dharma.action-decision-receipt/v1 is a short-lived receipt signed by a named
KMS key version. It carries exactly one release, block, escalate, or
withhold outcome and binds the decision to the organization, task, action,
endpoint, workspace, evaluation contract, state envelope, evidence references,
and canonical SHA-256 task-action digest. Receipts may live for at most 30
minutes.
Use actionDecisionDigest() over dharma.task-action/v1 and verify the embedded
{ id, actionDigest, receipt, signature, keyVersion } with
verifyActionDecisionReceipt(). buildActionDecisionAcknowledgement() emits
the HQ enforcement payload with an executed, contained, or unknown
disposition. The acknowledgement is returned inside the existing signed device
protocol channel.
Licensed under MIT.
