You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hubclient: an undecided ticket is reported to the agent as denied ("no decision yet" + "do not retry") #165
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.
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.
Activity
test(hubclient): pin pending vs denied on Begin (#165) (#199)
DavidGodefroid commentedon Nov 14, 2026
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.