Skip to content

ui-server: fail closed on the unreachable non-managed governed turn path and correct its docs #3314

Closed

Description

@schlessera

Problem

#2654 asked for the Claude turn egress relay to run on hosts without managed native storage. Since #1793, no such host exists: createApp refuses to boot without the native manager and managed Btrfs storage (packages/ui-server/src/app.ts:320-324), and every governed turn's startup view comes from prepareNativeWorkerStartupView, which refuses anything that isn't managed storage (packages/ui-server/src/brain/governed-turn.ts:165). The relay therefore already runs for every governed and strict Claude turn (packages/ui-server/src/ws/run-session.ts:732-734).

The "not managed" turn branches and egress.active: false remain in the code, but only test doubles reach them. Docs still describe hosts without managed native storage as a supported state.

Evidence and options: #2654 (comment). The maintainer ruled on 2026-11-02 to close #2654 as obsolete and to do this cleanup instead.

Acceptance criteria

  • Every non-managed branch on the governed and strict turn path either fails closed with an explicit error or is removed. No turn can run governed or strict without the relay.
  • Tests that reached those branches through copied fixture views or mocked managed-storage checks are updated or removed. A test proves that the fail-closed path refuses, and a mutation receipt shows that test failing when the refusal is removed.
  • docs/hosting/agent-workers.md (credential table, metered-relay section, default-on activation section) and docs/integration-contract/http.md (governed.egress) no longer describe hosts without managed native storage as supported.
  • No contract shape change. If egress.active becomes always true, the doc says so; it is not removed.
  • Moved citations are updated (git grep -n '<file>.ts:' -- docs packages).

Out of scope

A hosted mode without the native manager, which would reverse #1793.

Refs #2654, epic #1645.

Blocked by #3461

Activity

  1. added
    type: chore
    area: ui-server
    area: docs
    priority: p2
    agent-ready
    on Nov 2, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claiming (token claim-3314-4a966f80). Branch fix/3314-fail-closed-governed-turn from epic/1645-egress-controls at 3c9f48b92; the PR targets that epic branch. Collision report: path overlap with #3312 on docs/hosting/agent-workers.md (different epic base); the rest are closure-only test overlaps.

  4. added this to the 0.45.0 milestone on Nov 2, 2026
  5. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Delivered to the epic integration branch epic/1645-egress-controls as 2f8f11db3 via #3335, after ready-candidate proof passed against the exact epic base. This issue closes when the epic batch lands on main.

  6. removed their assignment
    on Nov 2, 2026
  7. added
    blocked
    on Nov 3, 2026
  8. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Delivered on epic/1645-egress-controls. Its landing on main (#3443) is blocked by #3461: the ready-candidate run 41625377355 failed runtime_host on that issue's maintenance-admission race, which is not rerun into green under the strict-flake rule. The landing resumes once #3461 merges.

  9. removed
    blocked
    on Nov 3, 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: docsarea: ui-serverpriority: p2type: chore

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions