fix(console): batch Windows catalog ACL verification - #287
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesWindows ACL verification batching
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant discoverConsoleConfigCatalog
participant readTrustedConfiguration
participant windowsAclPathsVerifier
discoverConsoleConfigCatalog->>readTrustedConfiguration: pass candidate paths and ACL options
readTrustedConfiguration->>windowsAclPathsVerifier: verify directory and candidate file
windowsAclPathsVerifier-->>readTrustedConfiguration: return ACL result
readTrustedConfiguration-->>discoverConsoleConfigCatalog: return catalog status
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Closes #284.
Windows Console catalog discovery previously launched the trusted PowerShell ACL helper once for the canonical configuration directory and again for every candidate. Selected-profile mutations invoke fresh catalog discovery before each write, so the affected dashboard contracts could launch multiple helpers and intermittently cross their existing five-second boundary under Windows CI load.
This keeps the same trusted boundary but verifies the canonical directory and each candidate together in the existing bounded batch helper. Empty or wholly rejected catalogs still verify the directory alone before they can report
ready. No timeout, test skip, worker setting, coverage threshold, profile revalidation, or ACL fail-closed behavior changed.Evidence
tests/console-dashboard-application-service.test.ts: 28 passed, 2 skipped.tests/console-windows-first-run.test.ts: 11 passed.npm run test:oauth-console,npm test,npm run test:coverage, lint, typecheck, build, smoke CLI, and pack check: pass locally.Security properties preserved
Summary by CodeRabbit
New Features
Bug Fixes