Skip to content

ADR 0009: Planner Route Authority And Selected-Attempt Lineage

This ADR preserves the shipped decision that planner routing is resolved through repo-owned configuration and service seams, while selected-attempt lineage is persisted as diagnostic truth alongside the executable task graph.

Context

Planner execution may use deterministic, native provider, or compatibility backends, but backend choice must not be hidden inside ad hoc constructor defaults or provider-specific branches. The system needs route authority before runtime execution begins, plus durable diagnostics that explain which attempts were made and which attempt was selected.

At the same time, planner diagnostics are not the executable mission graph by themselves. The selected attempt must pass validation and materialize into the runtime TaskGraph before dispatch.

Decision

OMEGA preserves planner route authority in repo-owned configuration, deploy-config bootstrap, planner route contracts, and orchestrator planner service seams. Planner fallback behavior remains explicit route/service behavior, not an unrecorded provider shortcut.

Selected-attempt lineage is preserved through planning contracts, planner trace artifacts, mission storage, and planning read models. The trace explains the attempt sequence and selected attempt, while the validated runtime TaskGraph artifact is the executable graph authority for dispatch. Public planning reads project the planning_trace storage slot through StorageExposure.PUBLIC_PROJECTED; raw planner/provider responses stay in planner_outputs/private_debug/raw_responses.json as private debug and are not public read inputs.

Status

Shipped decision record originally captured for an earlier public documentation baseline.

Shipped. This decision is active for current OMEGA planner route selection, attempt lineage, planner diagnostics, and planning reads and must be preserved unless superseded by a later ADR.

Consequences

  • Backend/provider selection remains visible in configuration, route snapshots, planner metadata, and persisted diagnostics.
  • Failed, repaired, fallback, and selected attempts remain auditable without becoming a second executable graph truth.
  • Planning reads can expose lineage from artifacts rather than recomputing or guessing route behavior.
  • Future planner-route changes must update contracts, service code, artifacts, reads, docs, and validation together.

Preserved In

Surface Path
Design docs docs/design/task-graph-lifecycle.md, docs/design/mission-runtime.md
Component docs docs/components/orchestrator.md, docs/components/contracts.md
Reference docs docs/reference/contracts-index.md, docs/reference/artifacts-and-storage.md
Planner source apps/orchestrator/src/omega_orchestrator/services/planner/
Route/bootstrap source apps/orchestrator/src/omega_orchestrator/services/planner/routing.py, packages/deploy_config/src/omega_deploy_config/bootstrap.py
Contract source packages/contracts/src/omega_contracts/planning.py, packages/contracts/src/omega_contracts/mission_artifacts.py, packages/contracts/src/omega_contracts/monitoring_api.py
Storage/read source apps/orchestrator/src/omega_orchestrator/services/mission_storage/, apps/orchestrator/src/omega_orchestrator/services/mission_reads/

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
Planner route and attempt contracts packages/contracts/src/omega_contracts/planning.py
Planner service source apps/orchestrator/src/omega_orchestrator/services/planner/
Planner route resolution apps/orchestrator/src/omega_orchestrator/services/planner/routing.py, packages/deploy_config/src/omega_deploy_config/bootstrap.py
Planner trace artifacts packages/contracts/src/omega_contracts/mission_artifacts.py, apps/orchestrator/src/omega_orchestrator/services/planner/trace.py
Mission artifact persistence apps/orchestrator/src/omega_orchestrator/services/mission_storage/
Planning read models packages/contracts/src/omega_contracts/monitoring_api.py, apps/orchestrator/src/omega_orchestrator/services/mission_reads/ with MissionReadService.load_public_planning_view_result as the route-facing facade method
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

Out Of Scope

  • Hidden provider defaults, unrecorded fallback behavior, or docs-defined route selection.
  • Treating raw provider output, planner drafts, or trace diagnostics as executable task graph truth before validation and materialization.
  • Runtime-phase replanning after the selected graph becomes executable mission truth.
  • Broad planner reliability sweeps outside an explicit future milestone.
  • Presenting mission-level realtime transport planning reads as current Engineering Preview behavior.