← Back to Pull requests

internal: Remove local deployment adapter #612

Closed
unknown closed this pull request without merging on Aug 05, 2026 22:56 UTC
View on GitHub
unknown unknown commented on Aug 05, 2026 19:48 UTC
Author

Description

The local Docker deployment adapter was built for demos and directly managed
host Docker Compose state from the registry process. That coupling is unsafe to
present as a supported runtime and does not match the current Kubernetes-only
deployment model.

This continues the cleanup from #605, which made E2E coverage Kubernetes-only,
#606, which removed the CLI daemon manager, and #609, which repaired the
Kubernetes deployment suite. The remaining local adapter left an untested
standalone path that looked production-ready even though it was unsupported.

This removes the adapter and its materialization code, the Local runtime type
and seed data, Docker socket and runtime configuration, UI deployment paths,
and now-unused dependencies and generated API fields. It also removes the
custom arctl-agentgateway image and release wiring, which existed only to
support the local adapter. Kubernetes is now the only built-in deployment
environment.

Existing databases receive a reversible forward migration that tombstones
active Local runtime rows. Fresh and upgraded installations therefore expose
the same supported runtimes without destroying state needed by a rollback. The
server image also drops its now-unused Docker CLI and Compose plugin.

The integration and E2E fixtures now use the migration-seeded Kubernetes
runtime instead of reconstructing demo-era local runtime state. Kubernetes
materialization helpers now live with their sole owning runtime rather than in
a shared utility package.

Change Type

/kind breaking_change

Changelog

``release-note
Remove the demo-only local Docker deployment runtime; Kubernetes is now the only built-in deployment environment.
`

Additional Notes

The local arctl run developer workflow is unaffected; this change removes
only server-managed local deployments.

The migration-seeded kubernetes-default Runtime is temporary compatibility
behavior, not a long-term bootstrap contract. Follow-up work will stop seeding
runtime instances by default, make environment setup configure them
explicitly, and replace the current generic Kubernetes materialization path
with a direct kagent runtime integration.

The Makefile still provisions kind-registry as a Docker container on the
host. Replacing that with the native Kubernetes registry integration is worth a
separate follow-up and is intentionally outside this PR.

Verified with make verify, make lint, go test ./...`, a targeted Postgres
upgrade and rollback test, Dockerfile validation, the affected
PostgreSQL-backed controller and MCP integration suites, an E2E package
compile, and the two previously failing batch-apply E2E tests against Kind.

Diff: 336 lines (+252 / -84) across 4 files Reviewer: lcopi Review duration: 188m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 336 lines diff across 4 files
0.65
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.348
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #612"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 65.4% (HIGH) · Higher = larger blast radius
65.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 25.8% · Safe to merge
25.8%