Skip to content

Observability Model

This page explains the shipped tracing, logging, service identity, and correlation model for the current orchestrator -> worker-agent -> worker-private LIFT2 MCP path.

Current Design Truth

Each long-lived process owns its own logical telemetry identity. The shipped runtime path uses distinct service.name values for the orchestrator, worker agent, and LIFT2 MCP server, with service.instance.id available for instance-level identity. Docker containers and Compose services are deployment mechanics; telemetry identity is application-owned.

The logical service names are orchestrator, worker-agent, and lift2-mcp in service.namespace="omega". Concrete local identity stays in service.instance.id, for example omega-orchestrator, omega-worker-agent-b, omega-worker-agent-c, omega-lift2-mcp-b, and omega-lift2-mcp-c.

Business correlation flows through explicit keys: mission id, task id, worker id, worker task id, the public worker report session_id, the worker-internal MCP operation id, and attempt number. packages/observability/ binds those keys into logs and spans, and HTTP instrumentation propagates W3C trace context across orchestrator-to-worker-agent and worker-agent-to-LIFT2 MCP HTTP boundaries. The internal operation id is diagnostic context below the worker boundary; the public lifecycle report correlation field remains session_id.

Trace context is HTTP observability metadata only. Public DTOs, mission artifacts, Agent Cards, scheduler targets, operator projections, and MCP domain payloads do not carry traceparent, tracestate, trace_id, or span_id; cross-service propagation remains a source-owned observability responsibility rather than public payload authority.

Structured logs and spans complement mission artifacts; they do not replace contracts, task records, runtime snapshots, or persisted mission state. Tests verify that each role writes its own output and that role-specific logs do not leak into the wrong service stream.

The canonical operator read model and public evidence hardening are current source-owned read surfaces. Observability helps correlate how evidence was produced, but it does not define the public evidence taxonomy or replace the operator-read projection. Those facts remain owned by contracts, route projections, mission artifacts, and their tests.

Planner-provider backend labels can still appear in planner-route diagnostics, but worker execution observability does not reintroduce a worker backend or implementation route identity. Worker execution events are correlated by mission/task/worker/session fields plus private MCP diagnostic context.

Optional collector fan-in uses the same logical model when an active deployment elects to export OTLP. Collector export is additive and removable; the shipped proof model remains valid without making collector mode a default gate. Collector validation stays with source-owned observability selectors and the current deploy example that elects collector export. No Jaeger, Tempo, or other trace backend is part of the current architecture.

Observability Propagation Diagram

This diagram shows diagnostic propagation only. Logs and spans correlate the shipped path; they do not replace contracts, worker task records, runtime snapshots, or mission artifacts.

flowchart LR
    subgraph O["service.name: orchestrator"]
        MissionCtx["mission_id / task_id context"]
        OSpan["mission, discovery, dispatch, observation spans"]
    end

    subgraph W["service.name: worker-agent"]
        WorkerCtx["worker_id / worker_task_id / attempt context"]
        WSpan["accept, execute, refresh, cancel spans"]
    end

    subgraph R["service.name: lift2-mcp"]
        RuntimeCtx["private operation context"]
        RSpan["mcp.tool.* and mcp.task.* spans"]
    end

    Artifacts["Mission artifacts and worker reports"]
    Collector["optional OTLP collector"]
    Tests["trace/log propagation tests"]

    MissionCtx --> OSpan
    OSpan -->|"HTTP W3C trace context"| WSpan
    WorkerCtx --> WSpan
    WSpan -->|"HTTP W3C trace context"| RSpan
    RuntimeCtx --> RSpan
    OSpan -. diagnostic correlation .-> Artifacts
    WSpan -. diagnostic correlation .-> Artifacts
    RSpan -. diagnostic correlation .-> Artifacts
    OSpan -. optional export .-> Collector
    WSpan -. optional export .-> Collector
    RSpan -. optional export .-> Collector
    Tests -. proves propagation .-> OSpan
    Tests -. proves propagation .-> WSpan
    Tests -. proves propagation .-> RSpan

Data And Control Flow

  1. Each app configures an observability runtime at startup with its logical service identity.
  2. Mission intake binds mission context in the orchestrator and starts mission spans and logs.
  3. A2A worker discovery, gate inspection, dispatch, task observation, and cancel attach business attributes to spans and structured logs.
  4. Worker execution binds mission, task, worker, worker task, public session_id, private MCP operation, and attempt context around acceptance, MCP projection, and cancel.
  5. LIFT2 MCP tool calls, task reads, terminal results, and cancel bind worker operation context and emit role-owned runtime logs and spans.
  6. HTTP instrumentation carries W3C trace context between orchestrator, worker-agent, and LIFT2 MCP server.
  7. Console exporters or optional collector fan-in observe the same logical path.

Authority Boundaries

Boundary Current authority Rule
Shared telemetry API packages/observability/ Services use shared config, context, logging, tracing, and taxonomy helpers.
Business truth Contracts, worker records, runtime snapshots, mission artifacts Logs and spans are diagnostics, not canonical state.
Public read/evidence truth Operator read model contracts and public evidence policy Observability metadata can correlate proof, but it does not define typed worker DTO shape or output_mapping.
Service identity App factories and observability bootstrap Each role has its own service.name; Docker is not the tracing boundary.
Trace propagation HTTP instrumentation and explicit business context binding Cross-service calls preserve W3C trace/log correlation across the shipped worker-private LIFT2 MCP path while public payloads omit trace headers and IDs.
Collector mode packages/observability/ and the current deploy example that elects collector export Collector fan-in is optional, removable, selector-only, and does not imply a required Jaeger/Tempo backend.

Validation Responsibilities

Behavior Source-owned validation responsibility
Shared config and business context keys packages/observability/src/omega_observability/ owns shared config and business-context binding.
Logging isolation by service logging.py owns service-specific structured logging behavior.
Bootstrap and instrumentation lifecycle bootstrap.py and tracing.py own startup and instrumentation lifecycle.
Cross-service trace propagation Orchestrator, worker-agent, and LIFT2 MCP server app factories own HTTP propagation.
Runtime failure and cancel diagnostics WorkerService, LIFT2 MCP server source, and observability taxonomy own diagnostic semantics.
Public evidence and operator read routing Public evidence policy and operator read model contracts own public read visibility.
Optional collector fan-in packages/observability/, service app factories, and the current deploy example that elects collector export own optional collector topology.

Current Status

This page reflects the current Engineering Preview implementation. packages/observability/ owns the shared observability runtime, config, business context helpers, structured logging setup, tracing setup, and low-cardinality operation taxonomy. Collector fan-in is optional; console tracing and structured logs remain valid without a collector.

Public evidence and the canonical operator read model are not redefined by this page. Mission-level realtime transport and hard process/job supervisor semantics remain out of scope; live ROS/GPU/VLA/robot execution beyond deterministic MCP proof remains optional HUMAN-UAT evidence.

Source Of Truth

Concern Source-owned truth
Shared observability package packages/observability/
Business correlation keys packages/observability/src/omega_observability/context.py
Trace resource identity and HTTP instrumentation packages/observability/src/omega_observability/tracing.py
Structured logging setup packages/observability/src/omega_observability/logging.py
Operation taxonomy packages/observability/src/omega_observability/taxonomy.py
Service bootstrap Orchestrator, worker-agent, and LIFT2 MCP server app factories
Public evidence policy packages/contracts/src/omega_contracts/public_evidence.py
Operator read model packages/contracts/src/omega_contracts/operator_read_model.py, apps/orchestrator/src/omega_orchestrator/services/mission_reads/
Observability modes packages/observability/ and current deploy runbooks when collector export is enabled
Validation responsibilities packages/observability/, service app factories, public evidence contracts, and current deploy examples