Skip to content

Artifacts And Storage

This page is the source-owned reference index for mission artifacts, mission storage, and northbound artifact-backed reads. It maps where persisted mission truth is defined, written, loaded, and proven without turning docs into a parallel artifact catalog.

Index

Artifact or storage concern Retrieval pointers
Mission creation MissionStorage.create_mission persists the submit artifact, initial mission state, and first mission event through apps/orchestrator/src/omega_orchestrator/services/mission_storage/service.py.
Mission state authority MissionStateArtifact and MissionStateSnapshot connect packages/contracts/src/omega_contracts/mission_artifacts.py with packages/contracts/src/omega_contracts/mission_state.py.
Event log authority MissionEventLogArtifact and MissionEventEnvelope preserve mission event history in mission_artifacts.py and events.py.
Worker discovery artifact WorkerDiscoveryArtifact stores validated DiscoveredWorkerSnapshot values after orchestrator discovery.
Runtime task graph artifact TaskGraphArtifact stores executable TaskNode truth; planner draft envelopes remain diagnostic and do not replace the runtime graph.
Execution-scope metadata MissionExecutionScopeMetadata in packages/contracts/src/omega_contracts/mission_artifacts.py records whether the runtime task graph represents the full mission or an operator-stream max_tasks dependency-closed prefix. It carries bounded counts and clipped task ids, not raw planner text or reasoning stream content.
Planner input, public planning trace, and private planner debug PlannerInputArtifact is internal source input, PlanningTraceArtifact is the only active StorageExposure.PUBLIC_PROJECTED slot at planner_outputs/planning_trace.json, and raw planner/provider responses stay in the private debug sidecar planner_outputs/private_debug/raw_responses.json.
Worker reports and task attempts FinalWorkerReportsArtifact, TaskAttemptsArtifact, and TaskAttemptArtifact preserve terminal worker reports and ordered attempt history.
Task-output-to-slot evidence TaskOutputRef values are resolved before worker dispatch, and resolved slot binding evidence is written through orchestrator mission artifact/storage paths rather than worker-private runtime docs.
Public evidence policy Public evidence artifacts and DTO projections are bounded by packages/contracts/src/omega_contracts/public_evidence.py; docs route to that policy instead of copying payload bodies.
Slot catalog and file naming apps/orchestrator/src/omega_orchestrator/services/mission_storage/catalog.py owns canonical slot names and relative artifact locations.
Serialization boundary apps/orchestrator/src/omega_orchestrator/services/mission_storage/filesystem.py owns model read/write mechanics for storage slots.
Northbound read projections omega_orchestrator.services.mission_reads.MissionReadService is the stable facade over split read-model modules under apps/orchestrator/src/omega_orchestrator/services/mission_reads/; monitoring and operator reads load internal persisted slots, then return typed public DTO projections.
Route exposure apps/orchestrator/src/omega_orchestrator/mission_api.py exposes mission submit and artifact-backed read routes through shared response models.

Canonical Files

File or directory Role
apps/orchestrator/src/omega_orchestrator/services/mission_storage/ Storage package for mission slot catalog, filesystem helpers, and MissionStorage.
apps/orchestrator/src/omega_orchestrator/services/mission_storage/service.py Write-side mission artifact authority and MissionStorage implementation.
apps/orchestrator/src/omega_orchestrator/services/mission_storage/catalog.py Canonical storage slot registry and artifact filename authority.
apps/orchestrator/src/omega_orchestrator/services/mission_storage/filesystem.py Model serialization and schema-version validation boundary.
apps/orchestrator/src/omega_orchestrator/services/mission_reads/ Read-side package for artifact-backed views, public projection helpers, degraded/inconsistent diagnostics, and split read-model ownership.
omega_orchestrator.services.mission_reads.MissionReadService Stable read service facade exported by the package; route and app wiring should depend on this facade rather than individual read-model modules.
apps/orchestrator/src/omega_orchestrator/services/mission_reads/planning.py Planning read assembly that resolves planning_trace through the public-projected storage-slot policy and returns public planning DTOs for the mounted planning route.
apps/orchestrator/src/omega_orchestrator/services/mission_reads/operator.py Canonical operator read projection assembly from internal mission state, task graph, task attempts, final reports, events, and worker discovery artifacts.
apps/orchestrator/src/omega_orchestrator/mission_api.py Northbound mission intake and read route router.
apps/orchestrator/src/omega_orchestrator/graph.py Applies MissionSubmitExecutionOptions.max_tasks by clipping the executable graph to a dependency-closed prefix and writing MissionExecutionScopeMetadata.
apps/orchestrator/src/omega_orchestrator/app.py App factory wiring MissionStorage, MissionReadService, runtime loop, planner service, and worker client.
packages/contracts/src/omega_contracts/mission_artifacts.py Schema-versioned mission artifact wrappers.
packages/contracts/src/omega_contracts/mission_state.py Mission status, node status, discovered worker, and mission state snapshot contracts.
packages/contracts/src/omega_contracts/mission_api.py Mission submit contract models.
packages/contracts/src/omega_contracts/monitoring_api.py Northbound mission read models.
packages/contracts/src/omega_contracts/operator_read_model.py MissionOperatorReadModel operator read contract.
packages/contracts/src/omega_contracts/public_evidence.py Public evidence contract boundary that filters private runtime and deploy internals from operator-visible evidence.

Stability Notes

  • The storage service is the write-side authority; docs should not define alternate artifact names, alternate persistence locations, or database migration semantics.
  • catalog.py is the exposure authority. planning_trace is the only active StorageExposure.PUBLIC_PROJECTED storage slot; mission state, events, worker discovery, task graph, planner input, task attempts, and final worker reports are internal source slots loaded by services before typed public projection.
  • planner_outputs/private_debug/raw_responses.json is a private debug sidecar written by MissionStorage.write_private_planner_raw_responses. Public mission, monitoring, planning, and operator-read routes must not load it or document it as public route input.
  • The read service is the read-side authority; degraded and inconsistent read behavior belongs in code and tests first.
  • Planner diagnostics and executable runtime task graph truth stay separate. The public planning trace preserves selected-attempt lineage and sanitized planner-draft diagnostics, but runtime reads use the mission-root task graph artifact for executable nodes.
  • Operator-private submit stream diagnostics stay separate from persisted public artifacts. MissionSubmitStreamEvent.reasoning_delta and final_content_delta are transient Submit stream events; execution clipping is represented by MissionExecutionScopeMetadata on TaskGraphArtifact, not by storing reasoning text, final planner content, or stream event payloads as public mission artifacts.
  • Stream diagnostics are not public mission artifacts, A2A payloads, or worker payloads. Validation events, repair events, terminal failure, and Monitor handoff are route lifecycle events for the operator-private stream, not persisted artifact authority.
  • MissionSubmitExecutionOptions.max_tasks=-1 means full mission. Positive max_tasks values clip the executable runtime graph to a dependency-closed prefix after full graph validation, and MissionExecutionScopeMetadata records original/executed counts plus the clipped task ids.
  • Resolved-slot evidence belongs to orchestrator storage and public evidence projections: workers and private runtimes receive literal values after TaskOutputRef materialization, not unresolved references.
  • Public evidence and operator read projections expose stable proof facts such as public worker, skill, attempt, and bounded route/provider identities, while omitting private runtime paths, URLs, runner internals, branch/SHA/image details, checkpoint text, and raw artifact payloads.
  • Legacy artifact files may coexist where tests explicitly prove coexistence, but the hot path writes the current canonical artifacts named by the storage slot catalog.
  • Future artifact schema migration remains outside current shipped behavior until source and tests introduce it.

Validation

Artifact and storage behavior belongs with the source modules named above. Use those contract, storage, read-service, and route owners for the current artifact model and debug-file boundaries.

Current Status

The shipped system persists mission truth through orchestrator-owned storage and shared contract envelopes. MissionStorage writes canonical artifacts, including public planner_outputs/planning_trace.json lineage and private planner_outputs/private_debug/raw_responses.json diagnostics. MissionReadService from omega_orchestrator.services.mission_reads builds read models from canonical artifacts, and shared contracts define the typed wrappers and northbound public DTOs. Current resolved-slot and public evidence proof stays on the existing storage path, while current worker-private MCP execution keeps runtime details below the worker boundary and routes public operator read evidence through worker-owned projections. The current Engineering Preview implementation includes execution-scope metadata for operator-stream max_tasks clipping without turning reasoning deltas, final-content deltas, validation events, repair events, terminal failure, or Monitor handoff into public mission artifact authority. Active storage and contract source paths use the omega_orchestrator and omega_contracts package roots. Mission-level realtime transport remains not part of the current Engineering Preview implementation and does not redefine artifact authority here.

Source Of Truth

Concern Source-owned truth
Artifact contract wrappers and task-attempt ledgers packages/contracts/src/omega_contracts/mission_artifacts.py
Execution-scope metadata MissionExecutionScopeMetadata in packages/contracts/src/omega_contracts/mission_artifacts.py; compile-time propagation lives in apps/orchestrator/src/omega_orchestrator/graph.py.
Mission state snapshot contract packages/contracts/src/omega_contracts/mission_state.py
Mission submit contract packages/contracts/src/omega_contracts/mission_api.py
Monitoring read contracts packages/contracts/src/omega_contracts/monitoring_api.py
Operator read contract packages/contracts/src/omega_contracts/operator_read_model.py
Public evidence contract packages/contracts/src/omega_contracts/public_evidence.py
Filesystem-backed mission storage apps/orchestrator/src/omega_orchestrator/services/mission_storage/
Storage service class MissionStorage in apps/orchestrator/src/omega_orchestrator/services/mission_storage/service.py
Storage exposure policy StorageExposure and public_projected_storage_slots() in apps/orchestrator/src/omega_orchestrator/services/mission_storage/catalog.py; planning_trace is the only active public-projected slot.
Private planner debug sidecar MissionStorage.write_private_planner_raw_responses writes planner_outputs/private_debug/raw_responses.json; private writer/catalog paths and negative non-exposure tests own this reference.
Artifact-backed read service facade MissionReadService exported from omega_orchestrator.services.mission_reads; implementation modules live under apps/orchestrator/src/omega_orchestrator/services/mission_reads/.
Northbound mission routes apps/orchestrator/src/omega_orchestrator/mission_api.py
Orchestrator app dependency assembly apps/orchestrator/src/omega_orchestrator/app.py

Out Of Scope

  • Copying artifact examples, model internals, planner raw outputs, or filesystem snapshots into docs.
  • Replacing MissionStorage, MissionReadService, shared contracts, or tests with prose.
  • Introducing database, remote object storage, dual-write persistence, or migration behavior not present in the shipped source tree.
Page Relationship
Contracts Index Contract modules behind persisted artifacts and read models.
Routes Mission routes that expose storage-backed reads.
Orchestrator Component responsibility for storage, runtime loop, and reads.