Skip to content

[Bug] ASK has no way to deliver the approver's answer to the Guardian #175

Open

Description

@President

What is broken

ASK pauses a step until an approver answers. The approver answers to the Observed Agent. The spec does not say how that answer gets back to the Guardian.

Where

specification/v0.1.0/ask-details.json, and §6 and §9 of docs/spec/instrument/specification.md

What the specification says, and what happens instead

ask-details.json requires approver, question and timeout_seconds, and offers options. So the Guardian can say:

  • who should answer
  • what is being asked
  • which answers are acceptable

Nothing says how the answer comes back. There is no method for it, and no field to put it in. timeout_seconds and timeout_disposition only cover the case where nobody answers.

In practice the agent can send the step again, with the chosen option somewhere in the payload. The Guardian binds it to the ASK it raised and answers allow or deny. I tested this on top of the Go port (#87) and it works.

The spec gives no name to the field that carries the chosen option. So it only works between one agent and one Guardian.

#14 is the mirror of this on DEFER. There the Guardian side decides, and the agent is the one left without a way to learn the answer.

Impact on implementers

Two implementations that both support ASK cannot work together on it. Each picks its own name for the answer. An agent built against one Guardian will not resolve an ASK raised by another.

ASK is one of the five dispositions §6 makes mandatory, so this affects every conformant pair.

Current Priority Scope

This is deferred or out of scope and I am filing it to be tracked

Activity

  1. added
    type:bug
    status:needs-triage
    on Sep 21, 2026
  2. imran-siddique commented on Oct 19, 2026

    @imran-siddique
    Contributor

    When the answer reaches the Guardian through the Observed Agent, as in your Go port test, the only signature on it is the agent's per-session HMAC (§10). Then "Guardian MUST verify approver identity against policy" (§9, specification.md:317 at 9c05f04) has nothing to check. The answer field should name the ASK's step_id and the request_id it resolves, carry a digest of the approved parameters, and be signed by the approver.

  3. President commented on Oct 19, 2026

    @President
    CollaboratorAuthor

    @imran-siddique - agree: the answer must point to the exact ASK and the exact action, and be signed by the approver.

    My suggestion:

    1. ASK from the Guardian - as in the spec today, only options becomes required (the Guardian needs a fixed list to map each answer to allow or deny):

    "result": {
      "request_id": "6f1c...",
      "decision": "ask",
      "ask_details": {
        "approver": { "type": "human", "id": "alice@example.com" },
        "question": "Delete table orders?",
        "options": ["approve_once", "deny"],   // NEW: required (optional today)
        "timeout_seconds": 300
      }
    }

    2. The agent repeats the same step with a new request_id and the answer:

    "params": {
      "request_id": "9a2d...",
      "payload": { ...same as in the first step... },
      "ask_resolution": {                      // NEW
        "ask_request_id": "6f1c...",           // NEW: the step that got the ASK
        "selected_option": "approve_once",     // NEW: one of ask_details.options
        "signature": { ... }                   // NEW, optional: signed by the approver
      },
      "signature": { ... }                     // as today: signed by the agent
    }

    The Guardian checks the answer against step 6f1c...: that step got an ASK in this session, the payload is the same as in that step, and the option is one of its options. Otherwise it denies. The Guardian already keeps that step, so the answer needs no digest of the action.

    The approver's signature proves that a real approver answered, not the agent. I'd make it optional for now: today the Guardian trusts the agent and all it's data anyway - an agent that could fake the answer can also just not call the Guardian.

    What do you think?

    P.S. Your digest fits another case: an approval the agent gets before any ASK, signed by the approver - then there is no stored step, so the digest of the action must be inside the signed part. But it is a separate topic..

  4. imran-siddique commented on Oct 21, 2026

    @imran-siddique
    Contributor

    Pointing at the stored step works, and for this path it makes the digest unnecessary. Agreed on options becoming required.

    I would keep the approver signature required. An agent that skips the Guardian leaves a hole in the hash chain that an auditor can see. An agent that fills in selected_option itself leaves an entry that reads as alice@example.com approving the delete. One is a missing record, the other is a false one.

    If it has to stay optional for 0.x, then without it the Guardian should log the resolution as agent-asserted rather than as the approver's, and §9's "MUST verify approver identity" applies only when the signature is present. That is the same point #272 adds to §8.6 for HMAC decisions.

  5. President commented on Oct 27, 2026

    @President
    CollaboratorAuthor

    @imran-siddique - agree, the approver’s signature should be required, BUT only when approvers have a way to sign. The spec doesn’t define one yet, so for now the field can only be optional.

    Without the approver’s signature, the Guardian records the answer as “declared” (the agent could say so), not “verified”.

    How approvers sign is a separate topic for the spec.

  6. added
    status:accepted
    scope:in-focus
    priority:P2
    workstream:spec
    and removed
    status:needs-triage
    on Nov 1, 2026
  7. self-assigned this
    on Nov 1, 2026
  8. rocklambros commented on Nov 1, 2026

    @rocklambros
    Collaborator

    Accepting this and taking it. The ACS mapping against AARM (issue #213) found that AARM R4 needs STEP_UP to resolve on a recorded human decision, and AARM R5 needs each receipt to carry the approver's identity, decision, and time. With no way for the approver's answer to reach the Guardian, ACS has nowhere to put either.

    Merge note: this adds to the v0.1.0 wire, so the PR waits on the 0.x version rule (issue #32, item 5) to settle whether it ships in a 0.1.x release or under a v0.2.0 spec $id.

  9. moved this from Needs triage to Accepted in ACS Project Trackeron Nov 1, 2026
  10. rocklambros commented on Nov 1, 2026

    @rocklambros
    Collaborator

    One more piece for the same fix: the spec never says which party applies timeout_disposition when an ASK times out. It appears only in ask-details.json. Because §6.4 requires the Observed Agent to honor any decision that arrives in time, an agent has no conformant way to refuse an ASK carrying timeout_disposition: allow, which AARM's STEP_UP tests fail. The fix should name the timeout owner.

  11. President commented on Nov 18, 2026

    @President
    CollaboratorAuthor

    @rocklambros (+@bar-capsule @afogel), JFYI a few things related to ASK to consider:

    1. Today's adapters hand ASK to the host's usual "Allow this tool?" prompt. The host does not know who clicks Yes, and the answer never reaches the Guardian: the next thing the Guardian sees is the tool's result.

    2. The user can change their mind.
      "Send $500 to Bob", ASK, then the user types "stop, I changed my mind".
      I see no way for the agent to interrupt a waiting ASK, so with timeout_disposition: allow the money will be sent after timeout so if the approver still clicks approve, the money is sent.
      (Edit: I missed D-043, the timeout already gives deny.)
      I raised the same for DEFER in DEFER: the agent cannot withdraw a step it no longer needs #497.

    3. While an ASK waits, the session can end, or the approver can answer after the timeout.
      Define defer/subscribe for DEFER resolution #496 covers both for DEFER.
      For ASK the spec says nothing yet.

    +Related: #471, on tying the approval to the exact action.

  12. minitru commented on Nov 23, 2026

    @minitru

    One working answer path, as a data point rather than a proposal: an approver service that takes {request, result} as they crossed the wire under the agent's credential, asks a verified human, and returns x_acs_lab_ask_answer's four fields plus evidence (assurance: "verified", the signer's auth method, a receipt the Guardian can verify offline). It honours ask_details under the gateway's own rules and answers pending with a re-read when the hold is shorter than timeout_seconds. If approver.endpoint + auth: bearer on ask_details gained an answer schema, this would conform to it as is. Write-up: https://in.xchk.io/examples/xchk-acs-approver/README.md

  13. bar-capsule commented on Nov 29, 2026

    @bar-capsule
    Collaborator

    @President thanks, all three should be part of the #175 fix. Here's where each stands with what we've already decided:

    1. The host's own prompt doesn't resolve an ASK: under D-043, which Fail closed by default and separate refusals from decision failures (§6.4) #603 writes into §9, the Observed Agent never proceeds on an ASK on its own, and an answer only the agent vouches for is recorded as declared but doesn't approve the step (spec(ask): clarify approver authentication in §9 #342). A click the Guardian never hears about is that case. So until [Bug] ASK has no way to deliver the approver's answer to the Guardian #175 gives the answer a way back, the adapters apply ASK as deny and audit it, as NAT already does, and Claude Code and Cursor change to match. Once the answer path exists, the host prompt can collect the answer and the adapter sends it back with the step.

    2. The user wins, as you wrote on DEFER: the agent cannot withdraw a step it no longer needs #497: an approval lets the step run, it doesn't make the agent run it. With the resend you proposed above, a withdrawn step is never resent, so nothing runs whatever the approver clicks. What's left is the approver's wasted time, so I'd have the cancel from DEFER: the agent cannot withdraw a step it no longer needs #497 close a pending ASK too.

    3. The timeout is covered, and session end is new: the Guardian owns the timeout (D-043). For a session that ends while an ASK waits, I'd add a new rule, the one [Bug] DEFER disposition has no resolution wire method, behavior between DEFER and resolution undefined #14 sets for DEFER: the ASK resolves as deny, with the reason in the record. An answer that arrives after either changes nothing: the Guardian records it, and the agent sends the step again as a new request, which gets its own decision. That matches the late-answer rule Fail closed by default and separate refusals from decision failures (§6.4) #603 adds to §6.4.

    On #471: your ask_request_id, checked against the stored step, binds the answer to the exact action, and #294 proposes making it single use. The FinBot lab (#695) shows why: its Guardian accepts any resend carrying the lab approver's answer without checking which ask it answered.

    @rocklambros these could be the acceptance criteria for the #175 PR on release/0.2.

  14. DanPazlev commented on Nov 29, 2026

    @DanPazlev
    Collaborator

    Recommendation for the leads (Rock): this is a P1 item in the roadmap reset. ASK cannot interoperate across implementations until the approver's answer reaches the Guardian. My earlier check showed status:needs-triage with no milestone, but this issue now shows the "Spec and docs fixes for v0.1" milestone, so please confirm the triage state. If it still needs triage, could a lead triage it? Happy to draft the spec change once it is triaged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:P2scope:in-focusstatus:acceptedtype:bugworkstream:spec

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions