DARK-22: restrict nested CLI provider tools - #685
Conversation
Preserves existing working-copy changes for review during DARK-20.
📋 PR Overview
🔬 Coverage
|
🎨 Storybook previewUpdated for 274f816
|
Preserves existing working-copy changes for review during DARK-20.
📋 PR Overview
🔬 Coverage
|
🎨 Storybook previewUpdated for 274f816
|
Parked after Cooper narrowed DARK-20 to pre-existing workspace issue work. This repository discovery has an audit-created tracking issue and is outside the active merge recommendation; source and validation below are preserved records.
Runs nested CLI invocations from an empty temporary directory and centralizes provider arguments for summary and evolve paths. Claude built-in/MCP tools and configuration discovery are disabled; Codex and OpenCode invocations are refused. Includes the existing root-cause report and four regression tests.
Draft pending a provider compatibility decision: Claude now always receives
--bare, which the official CLI documentation says skips OAuth credentials and the system keychain and does not use subscription login. The current provider only passes tool/model and does not inject an API key, so subscription-authenticated CLI users lose access unless a supported API credential is inherited. Removing--barewould reopen hook/config discovery; choose the authentication/containment contract before changing implementation.Readiness review of head
274f81682adb489ad6b127bc70e71fa45e1072de: all completed CI checks passed, including Rust Check, Rust Tests (Linux), macOS build, TypeScript, Treefmt, Storybook, hooks, and Danger. Those tests establish argument/cwd behavior, not real CLI login compatibility. No live model calls or additional code changes were made. Published under DARK-22/DARK-20; no merge or deployment.