From intent to verification.
Read the public clearance head, submit signed Mandate or Aegis artifacts, and verify receipt signatures with the pinned engine public key.
These examples use the supplied ARKHEIA clearance wire specification. The live OpenAPI lists the routes but omits their schemas. The provided lease and mandate signatures verify offline; they have not been replayed against the live service.
API base URL
https://arkheia-cps-10.onrender.comClients never send issuer seeds or private signing material. Request bodies use strict JSON: no duplicate keys, floats, unknown schema fields, or unsafe integers. The wire body limit is 65,536 bytes.
/api/clearance/head01. Read the clearance head
Inspect the policy version, logical clock, chain head, active key ID, and public engine key. Compare both key fields with independently trusted pins.
curl --fail-with-body --max-time 20 \
https://arkheia-cps-10.onrender.com/api/clearance/headInitial observed head snapshot
{
"engine_public_key": "9e2c04f0027bce2844eb10241a9b107d215d0dfa384c537acf45d75d4f97aa27",
"public_key_id": "ed25519:a2008a603a195230",
"policy_version": "arkheia.mandate-aegis/1.0.1",
"head_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"lamport": 0,
"length": 0
}lamport is a logical clock, not wall-clock time. Always fetch a current head before preparing a new signed artifact.
/api/mandate/verify02. Verify a signed mandate
The closed request contains type, mandate_id, lamport, tool_call, pool, allocations, lease, delegations, actor, and sig. All are required. The actor signs the mandate; the trusted issuer signs the embedded CUSTOS lease.
curl --fail-with-body --max-time 20 -X POST \
https://arkheia-cps-10.onrender.com/api/mandate/verify \
-H 'Content-Type: application/json' \
--data-binary @mandate-request.jsonUse a fresh signed mandate-request.json. Mandate IDs are single-use. The action must lie within the effective grant’s scopes, budget, and Lamport validity window. Allocation basis points sum to 10,000 and must conserve the integer pool.
The fixture names payments.transfer. It proves the supplied signing format locally; it is not a reusable payment approval or a safe live test payload.
/api/aegis/evaluate03. Evaluate with Aegis-Swarm
Submit a signed OBSERVATION or HUMAN_RELEASE artifact. Observations are signed by a trusted sensor. Human releases carry approvals from the configured release authorities.
curl --fail-with-body --max-time 20 -X POST \
https://arkheia-cps-10.onrender.com/api/aegis/evaluate \
-H 'Content-Type: application/json' \
--data-binary @aegis-request.jsonHuman release field template
{
"type": "HUMAN_RELEASE",
"subject": "<hex32>",
"quarantine_receipt_hash": "<hex32>",
"policy_version": "arkheia.mandate-aegis/1.0.1",
"invariant_check": {"passed": true, "evidence_digest": "<hex32>"},
"lamport": 0,
"nonce": "<hex16>",
"approvals": [{"authority": "<hex32>", "sig": "<hex64>"}]
}This field template was supplied separately by the user; the attached wire excerpt ends during OBSERVATION. Each approval signs ARKHEIA/aegis/human-release/v1, a zero byte, and JCS of the artifact without approvals. Never send the placeholder template as a signed artifact.
Handle rejections explicitly
Malformed or unauthorized requests return opaque rejections. A receipt_hash is not a signature or execution permit. Empty JSON currently returns HTTP 403.
{
"schema": "ARKHEIA/clearance/rejection/v1",
"code": "X*",
"decision": "REJECTED",
"receipt_hash": "…"
}Download the supplied wire specification