Skip to content

ui-server: future-rule review is offered on hosts where Settings cannot prepare a rule #4436

Open

Description

@schlessera

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

  • sessionSafetyFutureRules is 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

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 21, 2026
  2. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    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.

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-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-reactReact chat/files/voice components, stores, WebSocket transport.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions