Repository navigation
Description
Out of scope
No changes to individual review, the legacy literal-false capability fields, protected publication semantics, or provider history.
Context
Follow-up to #3611 under #3597, deferred from review of #4428. futureRules (packages/ui-server/src/governance/owner-safety-reviews.ts:29) offers combined review whenever Settings is wired. prepare (packages/ui-server/src/brain/trust-settings.ts:277-279) refuses preparation on non-Linux hosts. Combined prepare (packages/ui-server/src/governance/combined-safety-reviews.ts:21-35) creates its verdict request before Settings preparation, so the unavailable path leaves an unbound prepared verdict request until expiry. The owner sees an offered choice which cannot succeed.
Scope
Make the hello offer reflect whether combined preparation can succeed, and avoid creating any verdict request when preparation is unavailable.
Acceptance criteria
sessionSafetyFutureRulesis false where Settings preparation is unavailable, and the UI shows only “Only this trigger”.- A refused combined preparation leaves no prepared row in
safety_review_requests. - Individual review is unchanged.
- Existing legacy literal-false fields remain unchanged.
- A keyless test fails when the offer ignores platform availability.
Verification
Use a keyless platform-availability harness for the real capability producer and combined preparation path; demonstrate a failing-first assertion and mutation receipt. Verify individual review remains usable.
Contract impact
Preserve all wire shapes and legacy fields; the additive future-rule offer must accurately reflect availability. Update the relevant contract description if its semantics need clarification.
Activity
schlessera commentedon Nov 21, 2026
Deferred test follow-up from the binding fix check of #4428 at 9e21fc4:
The cancelFuture wiring (
packages/ui-react/src/lib/safety-reviewer.ts:22,packages/ui-react/src/components/chat/safety-indicator.tsx:168) lacks an independently failing test. Making cancelFuture a no-op leaves all 38 unit tests green; the browser cancellation test fails only if markSafe's discardFuture call is also removed.Add this keyless case: prepareFuture, cancelFuture, set a new evidence revision, then expect no new progress entry. Prove it fails when cancelFuture is a no-op and passes when restored. Keep this issue unscheduled with no milestone; this adds test coverage only and does not reopen the verified client fixes.