Skip to content

ui-server: status, Activity and the HTTP contract disagree with the enforced private-state refusals #4502

Open

Description

@schlessera

Context

Found in the round-3 independent review of PR #4490 (findings F142, F143, F144), which fixes #4487. Line numbers are at the PR's head c1f7103a1.

  • Confirmed exposure after boot. assertReadable (packages/ui-server/src/brain/governed-turn.ts:120-122) refuses governed and strict turns for private_state_in_brain and database_in_brain, as well as for private_state_unverified. For the first two, status() still reports profile: "strict" (packages/ui-server/src/brain/host-boundary.ts:614-645). The Activity line says "Interactive and voice turns run under strict" (packages/ui-server/src/activity/runtime-status.ts:230), and docs/integration-contract/http.md:977-980 lists only an incomplete check as the exception. Enforcement is the stricter side; only the descriptions are wrong.
  • Missing egress. The private_state_unverified early return in status() (host-boundary.ts:616) omits governed.egress, which http.md:1182-1188 says is present on every running server.
  • Working directory inside the brain. governedAvailability (host-boundary.ts:222-234) returns server_cwd_in_brain before it checks private state. Status then advertises strict while prepare() refuses the turn, and the refresh check (governed-turn.ts:271) skips the private-state check. The order is the same on main.

Scope

Make status, the Activity line and the contract describe what admission enforces, and give the private-state verdict precedence over the working-directory shortcut. The client error code is #4497.

Acceptance criteria

  • For every reason that refuses both profiles, status advertises no strict profile, and the Activity line and http.md say that turns are refused.
  • governed.egress is present in status while a private-state check is failing.
  • With the server's working directory inside the brain, status reports an incomplete or exposed private-state check, and the refresh check refuses the turn.
  • Tests cover an exposure that appears after a verified boot and the working-directory case, each with a mutation receipt.

Contract impact

http.md wording, and governed.egress present in one more state. Both are additive.

Blocked by #4487 (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