Skip to content

hubclient: an undecided ticket is reported to the agent as denied ("no decision yet" + "do not retry") #165

Closed

Description

@DavidGodefroid

Problem

Running a ticket that the hub has not decided yet returns a denied error, and tells the agent to give up:

locksql_run(ticket=01M70353RRFRHGAR9QVWMKSFSS)    (~110 s and ~200 s after the ask)
→ denied: ticket 01M70353RRFRHGAR9QVWMKSFSS: hubclient: no decision yet
  The human denied this; do not retry it.

At that moment the hub's audit shows decision ◆ asked · waiting for an answer · state pending (lox audit show pg/01M70353…). The agent recorded the write as denied and moved on. If the human then approves, the agent never runs it. Worse, the agent's report says "denied" while the ticket was in fact still open.

Found in the lock family e2e (locksql v0.17.2 image on lockkit, profile at tier write, lox run).

Expected

  • no decision yet maps to status: pending with the ticket, and the usual "wait for the decision, then run with the ticket" retry rule. It must never map to denied.
  • Only an actual denial (signed by the hub) yields denied … do not retry.

Acceptance criteria

  • hubclient unit test: no decision yet → pending error type; denied decision → denied type.
  • locksql / lockmq MCP mapping test: pending → status: pending, never the denied text.

Related: #162 (auto decisions not notified).


Found in the local end-to-end test of the lock family (2026-11-09): lox 0.10.0, lockhub v0.10.1, locksql v0.17.2, lea agent through MCP.

Activity

  1. DavidGodefroid commented on Nov 14, 2026

    @DavidGodefroid
    OwnerAuthor

    lockkit side done in #199 (merged 8daf4b0): hubclient.Begin already returns ErrPending for an undecided ticket and ErrDenied only for a signed denial; TestPendingIsNotDenied now pins that both ways. The denied answer comes from locksql, whose run/grant ticket paths lack an ErrPending case and fall into a catch-all CodeDenied (lockmq, lockfile, locklog already map ErrPending to PendingResp). The MCP mapping criterion moves to DavidGodefroid/locksql#234.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions