Skip to content

[T-047] Compose: orchestrator + worker-k2d services and make demo #97

Closed

Description

@CodewithJha

Task T-047 · Milestone M3 — Oracles + runner + store · Size S · Priority P1 · Epic #3

Implements NFR-DEP-001 · PR-13

Branch ci/t-047-compose-orchestrator-worker-k2d-services — one task = one branch = one PR (doc 32 §6)

Summary

Add orchestrator and worker-k2d (scalable, ROBOPROBE_K2D_REPLICAS) services to the core profile with health checks, and make demo that registers warehouse_v1 and runs a 50-run k2d S-PROBE campaign (S-RANDOM until M5 lands).

Context / motivation

Doc 17 §3 quick start; M3 makes the stack do real work.

Scope

In scope

  • Services use the backend image and x-backend anchor; /healthz health checks on internal ports.
  • scripts/seed_demo.py or CLI-only make demo target; configs/campaigns/k2d_demo_50.yaml.

Implementation guidance

  • make demo must be idempotent (re-registering the space is a no-op).
  • Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff PLR2004); public APIs typed (mypy strict) and documented.

Acceptance criteria

  • make up && make demo completes the demo campaign; docker compose ps all healthy.
  • --scale worker-k2d=6 works.
  • Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
  • Docs, config reference and CHANGELOG Unreleased updated where behaviour, keys or interfaces changed.
  • Definition of Done (doc 32 §3) satisfied.

Tests required

  • Compose smoke script scripts/compose_smoke.sh (used later by e2e workflow).

Dependencies

Blocked by: #96 (T-045c), #27 (T-005b)

Blocks: #186 (T-117), #216 (T-129), #217 (T-130), #219 (T-127)

Parallelization notes

Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:

  • docker/compose.yaml (2 services)
  • Makefile (demo)
  • configs/campaigns/k2d_demo_50.yaml
  • scripts/compose_smoke.sh

Adds service blocks only.

Definition of Done

Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-047 (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.

References

Design docs: doc 17 §3 · doc 17 §4 · doc 29 §5 · ADR-0013

Requirements: NFR-DEP-001 · PR-13 (traceability: doc 28)

Activity

  1. added
    type:infraCI, build, deployment infrastructure
    area:deployDocker images, compose, release packaging
    priority:P1Required for milestone exit
    milestone:M3M3 — Oracles + runner + store
    taskChild task of a milestone epic
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:deployDocker images, compose, release packagingmilestone:M3M3 — Oracles + runner + storepriority:P1Required for milestone exitsize:S<= 1 daytaskChild task of a milestone epictype:infraCI, build, deployment infrastructure

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions