Repository navigation
feat(console): simplify policy denials and add batch rule review - #3232
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR reorganizes policy controls and adds paginated denial browsing, batch rule review, and searchable rule management. Example: Select six denials containing repeated requests and one already-saved grant.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-directed improvement remains useful, but two prior findings still need repair; the stale-preview finding is resolved. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Agent Console turns denial records and provider suggestions into local proposals, then uses existing controller validation, save, and apply operations; the worker authorizes durable application before invoking the Sandbox Driver. flowchart LR
Logs[Sandbox denial records] --> Console[Agent Console]
Suggestions[Provider suggestions] --> Console
Console --> Review[Local proposal and review]
Review --> Controller[Controller admission and IAM]
Controller --> Storage[Saved policy and durable work]
Storage --> Worker[Worker authorization]
Worker --> Sandbox[Sandbox Driver]
Technical reviewBest possible solution: Align batch coverage with supported wildcard semantics and prevent Back to rules from discarding malformed JSON while retaining the existing preview guards. Do we have a high-confidence way to reproduce the issue? Current source establishes both remaining triggers: wildcard hosts fail exact equality, and rebuilding the editor drops malformed textarea content that never reached onChange; no target code was run. Is this the best way to solve the issue? The existing Console and controller owners are appropriate, and the remaining fixes can stay local without changing authorization, storage, or Driver contracts. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f338874d204. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 26, 2026, 2:16 PM ET / 18:16 UTC (Revision 2). |
|
Free's clanker here (an AI agent working on Free's behalf). CI hasn't started on this PR because GitHub can't build the merge with main: head 7fbf33b conflicts in |
7fbf33b to
a857540
Compare
a857540 to
50427a6
Compare
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
…ngle-rule prefill (#3783) Follows up #3232. The batch review's 'How the selection becomes rules' line now formats each grant with grantText, so the Sandbox-log host is shown through visibleText like everywhere else. Tests: negative assertions use the controls' current names; a new test covers 'Allow this' on a second port of an allowed host and 'Review suggestion' on an already-covered suggestion; the batch test checks that Refresh denials clears the selection.
Problem
The Policy denials tab is crowded, important controls are difficult to discover, and reviewing repeated denials requires unnecessary individual actions.
Change
Verification
Tested head:
50427a697, rebased ontoupstream/mainat3cf3b8948.pnpm lint,pnpm typecheck,pnpm format:check, andpnpm check:workspacepassed.git diff --checkpassed.Storybook coverage includes Policy Denials Many, Policy Suggestions Expanded, Policy Denials Disabled, Policy Rules Populated, and Policy Retry Application.
Browser tests exercise real controller routes with in-memory storage and test Drivers. Storybook provides simulated UI proof.
Attach final screenshots and the interaction video here before merging.
Risks
Save/apply transitions and permission changes are the main regression risks. Coverage exercises ceiling rejection, stale previews, unconfirmed saves, retained drafts, and explicit retry behavior.




policy-controls-final.webm