Parent
Part of #1049. This is the second independently reviewable slice of the Destructive Command Guard work.
Dependency
Depends on the shared managed-binary infrastructure issue created as the first slice.
Problem
The extension needs a small, testable service boundary for selecting, installing, verifying, and invoking the pinned DCG binary. Command-execution policy should not own platform/archive/process details.
Scope
- Define the pinned DCG version and supported platform/architecture archive metadata.
- Install and verify DCG through the shared managed-binary infrastructure.
- Cache/deduplicate installation within the extension process while allowing retries after failure.
- Run DCG with a command and working directory, parse its structured result, and map it to a typed allow/deny result.
- Treat unsupported platforms, malformed output, process failures, and timeouts conservatively.
- Add focused manager and runner tests.
Out of scope
- Persisted settings or settings UI.
- Auto-approval policy and command tool integration.
- Chat rendering for denied commands.
Acceptance criteria
Stack
Base: the managed-binary PR. The settings issue will build on this issue.
Parent
Part of #1049. This is the second independently reviewable slice of the Destructive Command Guard work.
Dependency
Depends on the shared managed-binary infrastructure issue created as the first slice.
Problem
The extension needs a small, testable service boundary for selecting, installing, verifying, and invoking the pinned DCG binary. Command-execution policy should not own platform/archive/process details.
Scope
Out of scope
Acceptance criteria
Stack
Base: the managed-binary PR. The settings issue will build on this issue.