Skip to content

bug(asks): an ask to: approver is filed for a seated approver who cannot open the agent, and then nobody can answer it #4501

Closed

Description

@webmixgamer

Build: v1.0.5-rc2 (af465288a), enterprise edition, local, PostgreSQL. Matrix row: B2.

What happens

  1. A person is seated as approver on an agent, and the agent is not shared with them. (The Access tab allows this state and warns about it: "Not shared with : they can't see this agent or its asks in the Workspace.")
  2. The agent raises an ask to: approver.
  3. The receipt says 201, to_role: approver, resolved: true.
  4. The seated person does not see the ask in their Workspace Inbox, and GET …/asks/{id}/context and POST …/asks/{id}/answer answer 404 for them.
  5. Everyone else is refused by the approver fence: POST /api/operator-queue/{id}/respond as an admin answers 403 not_addressee.

So the ask waits on one person who cannot see it, and nobody else may decide it. Only a cancel ends it. The agent was told resolved: true, which the tool describes as "a person's Workspace will show the ask".

Why

  • An ask to a canon role id (role:<id>) checks reach when it is raised and refuses role_cannot_open_agent when nobody seated can open the agent ("so they would never see the ask").
  • The approver kind has no such check: role_addressing.resolve returns whoever the seat provider names.
  • Before the approver fence (fix(asks): an answer to an approver ask needs the approver seat #4181) this state was survivable, because any person with access to the agent could answer the ask in Operations. With the fence it is a dead end.

Expected

One of:

  • refuse the raise by name when no seated approver can open the agent, as role:<id> does; or
  • file it but report resolved: false, so the agent and the operator know nobody will see it.

Repro (local, rc2)

  • POST /api/enterprise/assignments/agents/<agent> {"user_id": <id>, "kind": "approver"} for a person the agent is not shared with.
  • With the agent's key: POST /api/agents/<agent>/operator-queue {"request_id": "x", "title": "x", "type": "approval", "options": ["Approve","Decline"], "to": "approver"} → 201, resolved: true.
  • As the seated person: GET /api/enterprise/client-portal/asks does not list it; answer by id → 404.
  • As an admin: POST /api/operator-queue/<id>/respond → 403 not_addressee.
  • Share the agent with the person → the ask appears and they can answer it.

Severity

Suggested P2: a decision can silently wait forever, though the Access tab warns about the missing share and an admin sees "Waiting on " in Operations.

Activity

  1. added
    priority-p2
    type-bug
    theme-reliability
    on Nov 12, 2026
  2. webmixgamer commented on Nov 12, 2026

    @webmixgamer
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    on Nov 12, 2026
  4. github-actions commented on Nov 12, 2026

    @github-actions

    Claimed by @webmixgamer. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/4501-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #4501
  5. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 13, 2026
  6. removed
    status-in-dev
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority-p2theme-reliabilitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions