# xChk as the approver behind an OWASP ACS Guardian's `ask`

23 Nov 2026. The OWASP GenAI Security Project's Agent Control Standard (ACS, 0.1.5) puts a Guardian in front of an
agent; the Guardian can answer a step with `ask`, "a person decides". Its gateway holds the call and lists it on a page
bound to 127.0.0.1; the project says the specification "defines no way for an approver's answer to reach the Guardian"
(issue #175), the page's answer carries `assurance: "declared"`, and "no approver signature exists yet".

This registry is that approver. The Guardian, or whatever holds the ASK, posts it here under the plate's API key.
The plate's owner answers on their phone, the passkey signs over the ask, and the answer comes back in the shape the
gateway's resend already carries, with `assurance: "verified"` and the receipt inline. The Guardian's next decision
is still the only thing that releases the call: xChk runs no tool.

## The call

```
POST https://in.xchk.io/api/acs/ask
X-API-Key: <the plate's API key>
Content-Type: application/json

{ "request": <the steps/toolCallRequest JSON-RPC envelope, or its params>,
  "result":  <the Guardian's AcsResult with decision "ask", or its result> }
```

The insides are accepted too: `{ "params": {...}, "result": {...} }`, or the params' fields beside `ask_details`.
The ask is honoured under the gateway's own rules: `approver.type` human, `options` exactly `["approve","reject"]`,
`timeout_disposition` deny, an integer `timeout_seconds` ≥ 1; anything else answers 400 with `error: ask_unsupported`.

Two clocks. The ceremony on the phone lives for the Guardian's whole `timeout_seconds`: that is how long the person
has. The HTTP hold is shorter (`min(timeout_seconds, 55 s)`; the 55 is the nginx read timeout on both registries,
`XCHK_ACS_HOLD_SECONDS` raises it once that is raised). A hold that ends first answers `202 { status: "pending",
expiresAt, reread }`, never a rejection; read the answer again at `reread` until it is final, or treat silence as a
reject when `expiresAt` passes:

```
GET https://in.xchk.io/api/acs/ask/<request_id>
X-API-Key: <the plate's API key>
```

## The answer

```json
{
  "ask_request_id": "7f1c1d3e-…",
  "answer": "approve",
  "approver": { "type": "human", "id": "xchk:FIN-RKPC:owner@example.com" },
  "assurance": "verified",
  "reason": "approved by owner@example.com (webauthn)",
  "decided_at": "2026-11-23T16:01:00.000Z",
  "xchk": {
    "registry": "https://in.xchk.io", "plate": "FIN-RKPC",
    "attestationId": "…", "status": "completed", "response": "approved", "authMethod": "webauthn",
    "recordHash": "<sha256>", "receipt": "https://in.xchk.io/api/receipt/<sha256>/bundle", "bundle": { … }
  }
}
```

`ask_request_id`, `answer`, `approver` and `assurance` are the gateway's `x_acs_lab_ask_answer` fields; drop the
answer into the resend as it is. `assurance` is `verified` when a person answered on a device the registry verified,
approve or reject alike, and `none` when nobody answered before the deadline (then `answer` is `reject`). `xchk.bundle`
is the receipt: `xchk-app/verify/` checks it offline, with no secret and no call to the registry.

## What the person sees

The Guardian's `question` first, then its `context`, the tool and operation, the arguments (values only), the raw
command if any, the stated intent, the ACS agent and session, the Guardian's `reasoning`, and the request id. The
passkey signs over that text.

## What the ledger keeps

The plate's own authority rung runs before the person is asked and is recorded with surface `acs-ask`, so the
reconciliation counts the decision apart from host-gated calls (no host recorder stands behind a Guardian). The
ceremony's record carries who answered and how; the 5-minute seal anchors it.

## Wiring the gateway

The gateway's approver page answers with a form (`id`, `choice`, `token`). Until the spec defines a service approver
wire, the smallest adapter is a few lines in the page's place: take the held ASK, POST it here, and feed the answer to
the resend. The `approver.endpoint` + `auth: bearer` fields on `ask_details` are where this address belongs once the
spec gives them an answer schema (ACS issue #175).

Server: `xchk-server/src/services/acsApproverService.js`, `routes/acs.js`; tests `tests/acsApprover.test.js`. The
Microsoft AGT backend (`/api/agt/approval`) is the same ceremony in that toolkit's shape.
