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
ui-server: a deferred scope refusal answers the relay before its egress record commits #4401
Added from the second review of PR #4395 (same theme): a deferred scope refusal can be left unpersisted, or recorded under the wrong reason.
The confirmed deferred hold waits for scope writes through settled() (packages/ui-server/src/brain/turn-scope.ts:272-274), whose tails swallow results (:42-47). save returns false when nothing was stored (:66-68), and nothing acts on that.
The relay finishes the egress record as upstream_unreachable before the answer gate (packages/ui-sdk/src/server/inference-relay.ts:225-229), so the gate's deferred_observation_refused finish (:131-133) is a no-op. The cancelled and credential exits have the same order.
Additional acceptance criteria:
A cap pause whose save matches no row stops the turn as unrecorded, with a test.
An upstream failure during a capped deferred observation records deferred_observation_refused, with a test.
Every exit that finishes before the gate is checked for the same order.
Activity
schlessera commentedon Nov 21, 2026
Added from the second review of PR #4395 (same theme): a deferred scope refusal can be left unpersisted, or recorded under the wrong reason.
settled()(packages/ui-server/src/brain/turn-scope.ts:272-274), whose tails swallow results (:42-47).savereturns false when nothing was stored (:66-68), and nothing acts on that.upstream_unreachablebefore the answer gate (packages/ui-sdk/src/server/inference-relay.ts:225-229), so the gate'sdeferred_observation_refusedfinish (:131-133) is a no-op. The cancelled and credential exits have the same order.Additional acceptance criteria:
deferred_observation_refused, with a test.