Deus Witness™

Quickstart | Concepts | API | Verify | Coverage | Teams | Anchors | Recovery | Human approval in CI | Verifiable audit log | Unattended runs | Approval when unattended | Hooks vs deny | Skip permissions | PreToolUse hook | Deny not working | Headless permissions | MCP human-in-the-loop

API

Base URL: https://witness.sipkigroup.com. JSON bodies, bytes are base64url without padding (*_b64), times are Unix seconds. Errors: {"error": "<CODE>", "detail": "..."}. A machine-readable description is in the OpenAPI file of the repository.

Agent API (Bearer key dwk_...)

callbodyanswer
POST /v1/actions{tool, args, client?}ActionResult
GET /v1/actions/{rid}?wait=0..25ActionResult (long poll while pending_approval)
POST /v1/actions/{rid}/present{}{result: accept|reject, reason} (consumes the receipt; call before executing)
POST /v1/actions/present-many{rids: [rid, ...]} (1..32){results: [{result, reason} | {error: {status, code, detail}}]} (r0433: the same as present of each rid in order, stopping at the first one not accepted; used by the hook when the judge answer says present_many)
POST /v1/actions/{rid}/report{executed: bool}{result: released|ignored}
GET /v1/witness{iss, alg, kid_hex, pub_hex, web_js_sha256}

ActionResult: {rid, verdict: allow|deny|defer|pass, reason, status, action, expires, aar_b64, proof, approval_url}. Repeating the same request while it is pending or approved returns the same action. For an allow the receipt aar_b64 is in the answer at once; GET /v1/actions/{rid} returns the inclusion proof.

Limits: 300 requests per minute per key, status reads (GET) counted in their own window (429 RATE_LIMIT, "slow down: N requests a minute per key; the call did not run"), 10000 actions per day per account and 4000 per agent (429 QUOTA), request body 256 KB (413 BODY_TOO_LARGE). Creating an agent needs a fresh passkey step-up (403 STEPUP_REQUIRED).

Python SDK:

from deus_witness import Witness
w = Witness("https://witness.sipkigroup.com", "dwk_...")
r = w.act("send_email", {"to": "bob@acme.example", "subject": "hi", "body": "..."})
if r.verdict == "allow" and w.present(r.rid)["result"] == "accept":
    ...   # do the thing
    w.report(r.rid, True)

Witness.act(..., verify=True) and the proxy check that the receipt belongs to the call that was sent. The TypeScript SDK does not verify receipts yet.

Web API (cookie dw_session; writes need Origin equal to the site origin)

Used by the dashboard; it needs a browser passkey.

The signing envelope (wa-sig) and test vectors are in the contract folder of the repository.