Skip to content

ui-react: name unresolved evidence in grouped safety reasons #4268

Closed

Description

@schlessera

Part of #3596. Confirmed against main c5071f7 during the final combined epic review.

SafetyIndicator (packages/ui-react/src/components/chat/safety-indicator.tsx:75) takes its restriction reason from the first occurrence, including one already reviewed. A collapsed group containing a reviewed web fetch followed by an unresolved workspace read says one unresolved trigger but names Web fetch in its accessible name and hover/focus tooltip.

The per-trigger indicator requirements in docs/plans/reviewable-session-safety.md and docs/decisions/session-safety-reviews.md require an accurate reason without hiding independent unresolved triggers. The wire contract retains individual occurrence and decision identity. No schema change is needed.

Acceptance criteria:

  • A mixed reviewed/unresolved group derives its restriction reason from unresolved evidence, never an earlier reviewed occurrence.
  • Hover, focus and accessible name agree on the remaining source; counts and persistent details retain all individual evidence and reviews.
  • A failing-first pinned-container browser test and restored mutation cover the reviewed web fetch / unresolved workspace read case at 320px in both themes.

Activity

  1. added
    type: fix
    area: ui-react
    priority: p2
    agent-ready
    on Nov 20, 2026
  2. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Claim: safety-review-20261120, branch fix/safety-review-findings-20261120, alongside #4267. Dedicated checkout starts at main c5071f7. Pinned Chromium reproduces GROUP_REASON_NAMES_UNRESOLVED_SOURCE in both themes: expected Workspace read, received Safety restrictions: 1 unresolved trigger; Web fetch · Only this trigger can be reviewed. No new interaction design is needed. Collision inspection reports shared proof closures with concurrent PRs; changes stay scoped to these two defects.

  3. self-assigned this
    on Nov 20, 2026
  4. added this to the 0.45.0 milestone on Nov 20, 2026
  5. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Implemented unresolved-evidence reason selection while retaining all individual details and counts. Pinned offline Chromium at 320px in both themes reproduces the wrong accessible name before the fix. Restoring the first-occurrence expression as a mutation gives exactly 2 failures/9 passes, both at GROUP_REASON_NAMES_UNRESOLVED_SOURCE; restoring the fix gives 11/11 passes including hover, focus, accessible name, persistent details and the existing 320/1280 light/dark review flows. Initial module-loading and screenshot-permission harness failures are separate, not failing-first receipts. PR and complete qualification follow.

  6. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Delivered by PR #4269, squash 63bb400b31403ee319926d38e223711a9bf0e7e1 on main, milestone 0.45.0. Failing-first and restored mutation receipts, 28 focused safety tests, 11 pinned browser tests, build, strict typecheck and current-candidate preflight passed. Independent review returned no findings; the clean base merge preserved that review. Candidate run https://github.com/schlessera/brain-kit/actions/runs/44764503535 and automatic-main run https://github.com/schlessera/brain-kit/actions/runs/44767813281 passed. Main qualification audited all nine selected categories and all 17 successful job checkouts at the exact squash, whose parent/tree match the tested candidate. Main attempt 1 had a registry reset before endurance tests; one documented infrastructure retry passed. Operational incident #4272 separately awaits a subsequent inclusive plan for its controller marker; no implementation remains here. Epic #3596 is intentionally open for follow-up review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-reactpriority: p2type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions