Cedulon

v0.19.0
io.github.dogrucanemek-alt/cedulon Checked 5 hours ago Published 3 days ago

Policy-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.

ParameterTypeDescription
amount *stringInteger amount as a decimal string
currency *string
nonce *string
payee *string
toolstringCalling 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).

ParameterTypeDescription
extraSettlementsarrayOptional extra extract rows, used to inject a bypass settlement in tests
extractobjectA signed rail extract you were presented with: { body: { accountId, railId, windowStartMs, windowEndMs, settlements: [{ ref, amount, currency, timestampMs }], clockSkewMs? }, signature, publicKeyPem }…
issuerTrustobjectIssuer 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.
manifestobjectA Trade Manifest you were presented with. Omit for a no-manifest deployment. Present without manifestTrust is unauthenticated-manifest.
manifestTrustobjectManifest publisher key(s) you hold out of band: { publicKeyPem: string | string[] }
payeeTrustobjectPayee keys you hold out of band, keyed by payee: { "payee-1": publicKeyPem }
trustobjectRail key you hold out of band: { publicKeyPem: string | string[], accountId?, railId?, windowStartMs?, windowEndMs? }
witnessTrustobjectTransparency 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.

ParameterTypeDescription
coseHexstring
counterCoseHexstring
expectIssuerKeyPemstringIssuer key you hold out of band. Omit and the check is self-referential.
expectPayeeKeyPemstringPayee key you hold out of band, for the countersignature.
payeePublicKeyPemstring
publicKeyPemstring
receiptobjectFull 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.