Narrow docker-host-staging API by making SAFE_BINARY_NAME_REGEX private#3878
Conversation
docker-host-staging API by making SAFE_BINARY_NAME_REGEX private
There was a problem hiding this comment.
Pull request overview
Reduces unnecessary public API surface in the agent volumes service by making SAFE_BINARY_NAME_REGEX module-private within docker-host-staging.ts, without changing runtime behavior.
Changes:
- Removed the
exportmodifier fromSAFE_BINARY_NAME_REGEXto keep it internal to the module.
Show a summary per file
| File | Description |
|---|---|
| src/services/agent-volumes/docker-host-staging.ts | Makes SAFE_BINARY_NAME_REGEX private while keeping extractCommandBinaryName behavior unchanged. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
Smoke Test: Claude Engine
Result: PASS
|
🧪 Smoke Test: Copilot BYOK (Offline) Mode
Running in BYOK offline mode ( Overall: PARTIAL — BYOK inference and MCP confirmed ✅; pre-computed step outputs were not injected (template variables unresolved). PR author:
|
🔬 Smoke Test Results
PR: "Narrow Overall: PARTIAL — MCP ✅, pre-step outputs not injected into task body
|
|
#3852 [awf] ARC/DinD chroot: auto-stage runner binary and critical /etc files for split-filesystem Docker hosts\n#3851 api-proxy: add Anthropic Workload Identity Federation provider\n✅ GitHub PR queries\n✅ Safeinputs GH CLI query\n✅ Playwright title\n✅ File write/read\n✅ Discussion lookup/comment\n✅ Build\nOverall: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Chroot Runtime Version Comparison
Result: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot environments.
|
|
Gemini Smoke Test: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results
Overall: FAIL —
|
src/services/agent-volumes/docker-host-staging.tsexposedSAFE_BINARY_NAME_REGEXas a public export even though it had no external consumers. This PR reduces unnecessary API surface by making the constant module-private without changing runtime behavior.API surface cleanup
exportmodifier fromSAFE_BINARY_NAME_REGEX.docker-host-staging.ts.Behavioral impact
extractCommandBinaryName(...)continues to validate binary names with the same regex.