Repository navigation
Open
Labels
area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.blockedWaiting on another issue or an upstream dependency. Say which in the body.priority: p3Someday. Needs a driving use case before it starts.type: fixSomething is broken and must behave the way it is documented.
Description
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 forprivate_state_in_brainanddatabase_in_brain, as well as forprivate_state_unverified. For the first two,status()still reportsprofile: "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), anddocs/integration-contract/http.md:977-980lists only an incomplete check as the exception. Enforcement is the stricter side; only the descriptions are wrong. - Missing
egress. Theprivate_state_unverifiedearly return instatus()(host-boundary.ts:616) omitsgoverned.egress, whichhttp.md:1182-1188says is present on every running server. - Working directory inside the brain.
governedAvailability(host-boundary.ts:222-234) returnsserver_cwd_in_brainbefore it checks private state. Status then advertises strict whileprepare()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.mdsay that turns are refused. -
governed.egressis 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.
Metadata
Metadata
Assignees
Labels
area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.blockedWaiting on another issue or an upstream dependency. Say which in the body.priority: p3Someday. Needs a driving use case before it starts.type: fixSomething is broken and must behave the way it is documented.
Activity