Cedulon
v0.19.0Policy-gated agent spend with signed receipts and rail-extract audit
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cedulon_spend
Policy-gated spend on the mock rail. Allow returns a signed COSE receipt JSON. Deny returns the fail-closed reason.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Integer amount as a decimal string |
currency * | string | |
nonce * | string | |
payee * | string | |
tool | string | Calling tool name recorded on the request |
cedulon_audit
Reconcile the in-process receipt chain and checkpoint against the rail extract: this server's own ledger, or a signed extract you present. Returns audit: balanced or findings, names the account, rail and window it was computed over (scope) when an extract declared one, and counts the class every receipt and row landed in (counts).
| Parameter | Type | Description |
|---|---|---|
extraSettlements | array | Optional extra extract rows, used to inject a bypass settlement in tests |
extract | object | A signed rail extract you were presented with: { body: { accountId, railId, windowStartMs, windowEndMs, settlements: [{ ref, amount, currency, timestampMs }], clockSkewMs? }, signature, publicKeyPem }… |
issuerTrust | object | Issuer key(s) you hold out of band: { publicKeyPem: string | string[] }. Without it the audit checks this server's records against this server's own key. |
manifest | object | A Trade Manifest you were presented with. Omit for a no-manifest deployment. Present without manifestTrust is unauthenticated-manifest. |
manifestTrust | object | Manifest publisher key(s) you hold out of band: { publicKeyPem: string | string[] } |
payeeTrust | object | Payee keys you hold out of band, keyed by payee: { "payee-1": publicKeyPem } |
trust | object | Rail key you hold out of band: { publicKeyPem: string | string[], accountId?, railId?, windowStartMs?, windowEndMs? } |
witnessTrust | object | Transparency log key you hold out of band: { publicKeyPem: string | string[] } |
cedulon_verify_receipt
Verify a spend receipt COSE_Sign1 (and payee countersignature when present). Supply expectIssuerKeyPem to check it against a key you already hold; without one the receipt is only checked against the key it carries, which any key satisfies.
| Parameter | Type | Description |
|---|---|---|
coseHex | string | |
counterCoseHex | string | |
expectIssuerKeyPem | string | Issuer key you hold out of band. Omit and the check is self-referential. |
expectPayeeKeyPem | string | Payee key you hold out of band, for the countersignature. |
payeePublicKeyPem | string | |
publicKeyPem | string | |
receipt | object | Full SignedReceipt object from cedulon_spend |
cedulon_export_ledger
Export receipts, checkpoint, and rail extract in the same JSON shape as npm run demo:export, with the findings, guarantee and counts of the audit over this server's own ledger. A stored checkpoint whose encoding is not strict hex reports hash: null.
cedulon_status
Server version, policy summary, receipt count, and chain head hash.