Skip to content

feat: checkbox-based policy creator, batch approve, agent permissions#80

Merged
nerdsane merged 1 commit intomainfrom
feat/cedar-ux-iteration-2
Mar 21, 2026
Merged

feat: checkbox-based policy creator, batch approve, agent permissions#80
nerdsane merged 1 commit intomainfrom
feat/cedar-ux-iteration-2

Conversation

@nerdsane
Copy link
Owner

@nerdsane nerdsane commented Mar 20, 2026

Summary

  • Checkbox-based PermissionsMatrix replaces one-at-a-time radio-group policy creator — select multiple entity types and actions at once, create N policies in one click
  • Batch approve flow for similar pending decisions on the Decisions page with grouping strategies (by action+resource, agent+action, agent_type+action)
  • Agent permissions tab — click "Permissions" on any agent row to manage policies affecting that agent, with enable/disable/delete and inline policy creation
  • Tenant-scoped agent fetching — policy creator now filters agents by selected tenant

Test plan

  • Navigate to Policies page, click "New Policy", verify checkbox matrix shows entity types and their actions
  • Check entity type header → verifies "all actions" mode, check individual actions → verifies per-action mode
  • Verify "Create N policies" button count matches selections
  • Click "Show Cedar preview" to verify generated policies
  • Create policies and verify they appear in the policy list (needs live agent traffic)
  • Navigate to Decisions page, toggle "Batch" mode, verify grouping and batch selection
  • Select decisions and use "Approve Selected" flow (needs pending decisions)
  • Navigate to Agents page, verify "Permissions" button on each row
  • Click "Permissions" → verify agent detail policies tab with relevant policies
  • Switch tenants in policy creator → verify agent dropdown updates (needs multi-tenant setup)

🤖 Generated with Claude Code

… tab

Redesign Cedar policy UX in Observe UI:
- Replace one-at-a-time radio-group policy creator with PermissionsMatrix
  checkbox tree (select multiple entity types + actions, create N policies)
- Scope agent fetching by tenant in policy creator
- Add batch approve flow for similar pending decisions (grouping strategies,
  BatchApproveBar with PolicyBuilder)
- Add "Permissions" button on agents list linking to agent detail policies tab
- Add policies tab on agent detail page with enable/disable/delete controls
- Extract reusable RadioGroup, policy-options, and decision-grouping utilities

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nerdsane nerdsane merged commit ba937ba into main Mar 21, 2026
5 checks passed
@nerdsane nerdsane deleted the feat/cedar-ux-iteration-2 branch March 21, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants