← Back to Pull requests

fix(bundles): a service bundle install without Docker Compose v2 stops before the target or team, and a plan says so #2025

Closed
unknown closed this pull request without merging on Oct 25, 2026 15:28 UTC
View on GitHub
unknown unknown commented on Oct 25, 2026 13:11 UTC
Author

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:

Service bundles need Docker Compose v2, and docker compose version failed: docker: 'compose' is not a docker command. Make sure

this Docker has its Compose v2 plugin. The install target wasn't written and no team was created.

A plan (rig bundle install --plan) still previews the install, so someone on a laptop without Compose can still see what it would
install 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 -d with
Docker'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 docker reads Compose's -f as its own flag, so every compose command fails, including the
compose down that a failed boot's rollback runs.

The change

  • The check (bootstrap-orchestrator.ts): a plan or install of a service bundle with a target runs docker 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's
    temporary unpacking already exist at that point. The install target and the team don't.
    - A plan whose check fails keeps its usual planned result and services_plan stage, and its target checks, with the
    diagnostic as a warning.
  • The message keeps the check's own diagnostic. A missing plugin is the usual cause, not the only one.

  • Only Docker's own words for a missing plugin (unknown shorthand flag: 'f', or 'compose' is not a docker command) lead a

  • failed compose up or down to run docker compose version. Every other failure is reported as it came, with no extra commands.
  • compose up then names a missing Compose before Docker's own error.

  • compose down with 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 down on a rig an earlier version left behind finishes its services teardown
    without a warning.
    - Containers, or Docker unreadable: it still fails, naming the missing Compose.
  • Not covered:

  • - Volumes and networks: an empty container list doesn't show whether the project's volumes or networks are gone. That
    includes a down_and_volumes teardown, which this fallback doesn't query.
    - What rig down does to the rig record is unchanged: plain rig down keeps it, and rig down --delete could already delete
    it despite a service error, with a warning.
    - rig bundle inspect doesn't run the check.

    Proof

    All runs are in a Linux container with no Docker, as root, with --maxWorkers=2.

    This round (batch cm3):

  • At 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.
  • At 33d7185f, the test with Docker's real output shape fails. The message took the last output line, See 'docker --help'.

  • At 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 74f55197 with 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:repo passes 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:

  • a serviceOrchestrator stub gains composeAvailable;

  • the ambiguous-predecessor refusal expects exactly one read-only docker compose version and no project command.
  • Not run here: a real install or plan on a machine without the Compose plugin.

    🤖 Generated with Claude Code

    Diff: 586 lines (+439 / -147) across 7 files Reviewer: openrig-review Review duration: 136m
    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
    0.50
    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.381
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2025"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 49.9% (MEDIUM) · Higher = larger blast radius
    49.9%
    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: 19.7% · Safe to merge
    19.7%