Skip to content

ui-server: the checkout byte ceiling pauses a turn without recording a scope hold in Activity #4431

Open

Description

@schlessera

Part of #4426 (follow-ups from #4278). Found in the sixth review of PR #4362 (#4297). Related to #4413 and #4389, which cover the same branch.

Context

When checkoutBytes exceeds the fixed ceiling, check (packages/ui-server/src/brain/turn-scope.ts:134-147) freezes the workers and records the receipt and governance event. It does not call journal.scopeHold, which the ordinary cap path does (:201). Activity therefore has no scope hold interval, stop timestamp or triggering tool id for the pause, even when the observation supplied the id.

Scope

The hold record for the checkout ceiling. No change to the ceiling or to Stop-only behaviour. Out of scope: live checkout accounting (#4413, #4389).

Acceptance criteria

  • A turn paused at the checkout ceiling has one scope hold in Activity, with requestedAt, stoppedAt and the triggering toolUseId when the observation carries one.
  • A failure while recording the hold does not change whether the turn pauses or stops.
  • A test asserts that the hold callback runs once for an acknowledged freeze at 17 MiB, and fails without the call.

Activity

  1. added
    type: fix
    area: ui-server
    priority: p3
    agent-ready
    on Nov 21, 2026
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

    agent-readyarea: ui-serverpriority: p3type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions