Repository navigation
Description
Task
T-047· Milestone M3 — Oracles + runner + store · Size S · Priority P1 · Epic #3Implements 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-backendanchor;/healthzhealth checks on internal ports. scripts/seed_demo.pyor CLI-onlymake demotarget;configs/campaigns/k2d_demo_50.yaml.
Implementation guidance
make demomust 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 democompletes the demo campaign;docker compose psall healthy. -
--scale worker-k2d=6works. - Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
- Docs, config reference and CHANGELOG
Unreleasedupdated 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.yamlscripts/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)
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity
orchestrator,worker,api) and ad-hocrun --scenario,scenario export#96coreprofile: Postgres 17 with secrets, migrate placeholder, make up/down/db-up #27e2e.ymlworkflow #186