← Back to Pull requests

Verify the actual coordinator image in CI #124

Closed
unknown closed this pull request without merging on Oct 30, 2026 22:27 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 16:34 UTC
Author

Closes the backlog gap PR #89 left open: the coordinator image (Dockerfile.coordinator) had never been built or run in CI.

What it adds


  • .github/workflows/coordinator-image.yml, a sibling of site-image.yml that leaves it untouched. It runs on PRs, pushes to main and manual dispatch. It has read-only contents permission, pinned action SHAs and no repository secrets, and it publishes nothing.

  • It builds once with --iidfile and tests that image by ID. The image starts with its default command, the environment that docker compose config resolves from compose.dokploy.yaml, synthetic secrets generated for each run, and two labelled named volumes.

  • tools/test/coordinator-image.test.ts runs these checks:

  • - 13 against the started image: public status, admin and join auth, https redirect, CORS, the effective release config, the Deno validator and pinned case script from the image cache, the non-root user writing both volumes, a graceful stop and a restart that keeps state.
    - 10 refusal cases, each a bad environment the image must refuse to start with.
    - A control start without the join token.
  • Two damaged-image canaries: one with the validator cache removed, one running as root. Each must fail exactly one named assertion, with exit 1 and JUnit failures=1 errors=0. tools/ci/verify-image-gate.mjs enforces this and is fixture-tested in tools/test/ci-verify.test.ts.

  • Cleanup is scoped by label, and a failed listing or a surviving resource fails the job.
  • Evidence so far


  • Local run against the actual image, arm64 on Docker Desktop: 27/27 pass. Both canaries fail only on their named assertions, and cleanup leaves nothing.

  • tools/test and experiments/test both pass (2,327 tests). Typecheck and actionlint are clean.

  • Sonnet 5.5 High and Codex Sol 6.1 High reviewed the plan and the code, and Sol rechecked the fixes and reviewed before commit. All findings are closed. The dispositions are in docs/coordinator-image-gate-2026-10-30.md.

  • Pending: this PR's hosted amd64 run is the acceptance gate.
  • Finding (follow-up, not in this PR)


    With BL_DISCOVERY_JOIN_TOKEN unset, the release admits unauthenticated joins via [::1] inside the container; via 127.0.0.1 they get 401. As deployed today this is guarded by Compose's :? check, and the site container is not loopback to the coordinator. A runtime refusal is being done separately.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Chores
    Added an automated CI check that builds and validates the coordinator image, including startup, service behavior, and resource cleanup.
    The check verifies the image runs without root privileges and rejects invalid production settings.
    Documentation
    Added guidance on image checks, local testing, and verification limitations, along with hosted and local test results.
    Tests
    * Added coverage for image validation, expected startup refusals, and cleanup behavior.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 389 lines (+291 / -98) across 4 files Reviewer: treetopdevs Review duration: 353m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 389 lines diff across 4 files
    0.43
    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.357
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #124"
    general weight: 0.35
    Reviewers
    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: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    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: 17% · Safe to merge
    17%