ADR 0007: Mission And Task State Authority¶
This ADR preserves the shipped decision that mission state, executable task graph truth, task attempts, and northbound read models are orchestrator-owned and contract-backed.
Context¶
Centralized Explicit only works if one service owns mission truth. Workers need local task records and snapshots to execute assigned work, but those snapshots are observations. They are not the authoritative mission DAG, retry ledger, mission artifact set, or northbound read model.
The shipped orchestrator persists submit artifacts, worker discovery results,
selected task graphs, planning traces, task attempts, event logs, final worker
reports, and terminal mission state. Northbound reads are built from those
artifacts through contract-backed models. planning_trace is the only active
StorageExposure.PUBLIC_PROJECTED storage slot; raw planner/provider responses remain in
planner_outputs/private_debug/raw_responses.json and are not public mission, monitoring, or
operator-read inputs.
Decision¶
OMEGA preserves orchestrator-owned mission and task state authority. The
selected runtime TaskGraph and its TaskNodes are executable truth after
planning validation. The scheduler, mission graph, mission storage, and mission
read service own runtime task progression, attempt ledgers, artifacts, and
northbound views.
Worker task snapshots and reports cross the A2A boundary as inputs to orchestrator state transitions. They do not replace mission artifacts or grant workers global mission state authority.
Status¶
Shipped decision record originally captured for an earlier public documentation baseline.
Shipped. This decision is active for current OMEGA mission runtime state, task state, task attempts, artifacts, and northbound reads and must be preserved unless superseded by a later ADR.
Consequences¶
- Mission state has one write-side authority and one artifact-backed read-side path.
- Worker-local state remains bounded to assigned execution and report projection.
- Retry, cancel, failure, and terminal semantics are applied by orchestrator services against shared contracts.
- Future read-model changes must preserve artifact-backed mission truth or supersede this decision explicitly.
Preserved In¶
| Surface | Path |
|---|---|
| Design docs | docs/design/task-graph-lifecycle.md, docs/design/mission-runtime.md, docs/design/authority-boundaries.md |
| Component docs | docs/components/orchestrator.md, docs/components/contracts.md |
| Reference docs | docs/reference/artifacts-and-storage.md, docs/reference/contracts-index.md |
| Orchestrator source | apps/orchestrator/src/omega_orchestrator/graph.py, apps/orchestrator/src/omega_orchestrator/services/scheduler.py, apps/orchestrator/src/omega_orchestrator/services/mission_storage/, apps/orchestrator/src/omega_orchestrator/services/mission_reads/ |
| Contract source | packages/contracts/src/omega_contracts/task_graph.py, packages/contracts/src/omega_contracts/mission_state.py, packages/contracts/src/omega_contracts/mission_artifacts.py, packages/contracts/src/omega_contracts/monitoring_api.py |
Supersession Rule¶
Future work that changes this decision must add a superseding ADR and update the preserved source and docs references in the same change.
Do not silently drift source, docs, or runbooks away from this record.
Source Of Truth¶
| Concern | Source-owned truth |
|---|---|
| Task graph lifecycle design | docs/design/task-graph-lifecycle.md, docs/design/mission-runtime.md |
| Orchestrator runtime and scheduler | apps/orchestrator/src/omega_orchestrator/graph.py, apps/orchestrator/src/omega_orchestrator/services/scheduler.py |
| Mission storage and reads | apps/orchestrator/src/omega_orchestrator/services/mission_storage/, apps/orchestrator/src/omega_orchestrator/services/mission_reads/ with omega_orchestrator.services.mission_reads.MissionReadService as the stable facade |
| Public planning/private debug split | apps/orchestrator/src/omega_orchestrator/services/mission_storage/catalog.py, apps/orchestrator/src/omega_orchestrator/services/mission_storage/service.py, apps/orchestrator/src/omega_orchestrator/services/mission_reads/planning.py |
| Mission and task contracts | packages/contracts/src/omega_contracts/mission_state.py, packages/contracts/src/omega_contracts/task_graph.py, packages/contracts/src/omega_contracts/mission_artifacts.py |
| Worker task observation | apps/orchestrator/src/omega_orchestrator/services/task_observation.py, packages/worker_boundary/src/omega_worker_boundary/ |
Out Of Scope¶
- Worker-owned mission DAG mutation, global scheduling, or task state authority.
- Treating worker task snapshots, runtime snapshots, logs, or docs as durable mission truth.
- Encoding waits as fake
TaskNodes. - Runtime-phase replanning after a selected task graph becomes executable truth.
- Moving mission-level realtime transport read behavior into current Engineering Preview semantics.