fix(bundles): a service bundle install without Docker Compose v2 stops before the target or team, and a plan says so #2025
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 586 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.381
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2025"
general
weight: 0.35
openrig-review
What a person gets
A service bundle install on a Docker without the Compose v2 plugin (a bare Docker CLI, or some Lima and colima setups) now stops
before the install target is written or a team is created:
A plan (
rig bundle install --plan) still previews the install, so someone on a laptop without Compose can still see what it wouldinstall on a server. The same diagnostic appears as a warning, in human and JSON output.
Before this change, the install wrote the target and imported the rig, and only then failed at
docker compose … up -dwithDocker's
unknown shorthand flag: 'f'. Its rollback failed the same way, so the half-made rig was kept "for recovery".The cause
Without the Compose v2 plugin, plain
dockerreads Compose's-fas its own flag, so every compose command fails, including thecompose downthat a failed boot's rollback runs.The change
bootstrap-orchestrator.ts): a plan or install of a service bundle with a target runsdocker compose version,just before the install target would be written. It's read-only and client-side, so no running Docker daemon is needed.
- An install whose check fails stops there with stage code
compose_missing. The bootstrap run record and the bundle'stemporary unpacking already exist at that point. The install target and the team don't.
- A plan whose check fails keeps its usual
plannedresult andservices_planstage, and its target checks, with thediagnostic as a warning.
unknown shorthand flag: 'f', or'compose' is not a docker command) lead afailed
compose upordownto rundocker compose version. Every other failure is reported as it came, with no extra commands.compose upthen names a missing Compose before Docker's own error.compose downwith Compose missing checks the project's containers with plain Docker(
docker ps -aq --filter label=com.docker.compose.project=<project>, no plugin needed).- No containers: nothing could have started through Compose, so the services teardown succeeds. A failed install's rollback
then removes the rig instead of keeping it.
rig downon a rig an earlier version left behind finishes its services teardownwithout a warning.
- Containers, or Docker unreadable: it still fails, naming the missing Compose.
- Volumes and networks: an empty container list doesn't show whether the project's volumes or networks are gone. That
includes a
down_and_volumesteardown, which this fallback doesn't query.- What
rig downdoes to the rig record is unchanged: plainrig downkeeps it, andrig down --deletecould already deleteit despite a service error, with a warning.
-
rig bundle inspectdoesn't run the check.Proof
All runs are in a Linux container with no Docker, as root, with
--maxWorkers=2.This round (batch cm3):
c1e915c8(round 1's tests on the previous head), 3 fail:- a plan without Compose still previews;
- an install stops before the target and the team, with the new wording;
- the message keeps the check's diagnostic without claiming a cause.
33d7185f, the test with Docker's real output shape fails. The message took the last output line,See 'docker --help'.bb10c6b9, every daemon test file on the Compose path (service-orchestrator,bundle-,bootstrap-,pod-rigspec-instantiator,restore-orchestrator,compose-,services-,env-routes,rig-teardown,service-teardown,tcp-readiness):- 1343 pass, 2 skipped, 4 fail;
- main
74f55197with the same set (cm2): 1334 pass, the same 4 fail;- the 4 are
bundle-routes' "unreadable" cases, which fail because root reads a file whose mode forbids it.test:repopasses 324 of 324.The first round (cm1 and cm2): at the tests-only commit
dba04766, all 7 new tests fail.Two existing tests follow the check:
serviceOrchestratorstub gainscomposeAvailable;docker compose versionand no project command.Not run here: a real install or plan on a machine without the Compose plugin.
🤖 Generated with Claude Code