Skip to content

ui-server: a failed checkout's mask is described to the worker as a path that appeared mid-turn #4503

Open

Description

@schlessera

Context

Found in the round-3 independent review of PR #4490 (finding F148), which fixes #4486. Line numbers are at the PR's head c1f7103a1.

restrictFailedCheckouts (packages/ui-server/src/brain/checkout-restrictions.ts:7-14) passes failed checkouts as appeared paths to get a full-subtree mask. resolveWorkerProtection then labels them "appeared during an active turn; awaiting quarantine" (packages/ui-sdk/src/server/worker-protection.ts:122), and the governed worker note prints that reason verbatim (packages/ui-sdk/src/server/worker-sandbox.ts:597). The checkout existed before admission and no quarantine is pending.

Scope

Keep the mask and report its real cause: a failed checkout capture. Out of scope: mask coverage (#4491).

Acceptance criteria

  • The protection entry for a failed checkout carries a reason naming the failed capture, both in the worker note and in status protectedPaths.
  • Paths that really appeared mid-turn keep their current reason.
  • A test asserts the note text for a failed checkout.

Blocked by #4486 (the code lands in PR #4490).

Activity

  1. added
    type: fix
    area: ui-server
    priority: p3
    blocked
    on Nov 23, 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

    area: ui-serverblockedpriority: p3type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions