Skip to content

ui-react: agent policy warning claims 'Enforcing the last valid version' while facts are refreshing #4433

Open

Description

@schlessera

Out of scope

Changing policy enforcement, policy loading semantics, or trust CRUD behavior.

Context

Parent epic: #3597. Follow-up from the final triage of review round 3 of #4425 at 60e9d32f6. This is deferred follow-up work, with no release commitment.

packages/ui-react/src/components/settings/agent-policy-group.tsx:13,26-28,43 retains the previous last-valid warning during refresh. Its wording says “Enforcing the last valid version” and names the old hash even while currentFacts is false. Changing the separate version label to “Last read version” does not remove this current-enforcement claim. The existing T22 defaults case has no last-valid hash in its warning.

Scope

Make the last-valid warning accurately describe stale facts while refresh is pending or unavailable.

Acceptance criteria

  • No warning claims current enforcement while currentFacts is false.
  • A T22 last_valid case verifies warning wording while a refresh is pending and after it settles.
  • Fresh facts still show the appropriate last-valid policy warning.

Verification

Real browser T22 last_valid case, failing before the fix and with a mutation restoring the stale current-enforcement claim.

Contract impact

None; UI wording and state presentation only.

2026-11-23 triage at main a3395c4: verified the cited anchors (AgentPolicyGroup, packages/ui-react/src/components/settings/agent-policy-group.tsx:8, lines 13, 26-28 and 43; T22 cases at packages/ui-react/tests/browser/hit-reach.trust-settings.pointer.tsx:418 and :479); they hold. Replaced non-manifest type: bug with type: fix; changed priority: p3 to priority: p2, because this restores an honest enforcement claim and needs no further driving use case, matching sibling #4436.

Activity

  1. added
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    priority: p3Someday. Needs a driving use case before it starts.
    on Nov 21, 2026
  2. added
    type: fixSomething is broken and must behave the way it is documented.
    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.
    and removed
    priority: p3Someday. Needs a driving use case before it starts.
    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

    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.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