Skip to content

Operator Console

This page maps the shipped terminal operator console to its source-owned authority.

Concept Model

The operator console is a terminal control and inspection surface over the shipped services. It helps an operator choose orchestrator or worker mode, inspect selected settings, start or stop local processes, submit missions, and monitor existing mission and worker status. It is not a second source of deploy truth and does not own mission scheduling or worker execution.

The current mission submit flow is scenario-aware. Submit presets are assembled in state/mission_submit.py from the shared ScenarioId and scenario profile resolvers, so the operator chooses one active scenario preset. That preset selects the mission text, scene fixture, planner strategy, and requested workers for the active scenario; it does not mix multiple scenario presets unless a future source-owned feature explicitly configures that behavior. Maintainers adding or changing presets should start from the Scenario Authoring Guide.

The Submit tab uses the operator-private POST /operator/mission-submit-stream route for current streamed planning. MissionClient.stream_mission_submit() wraps the public MissionSubmitRequest in OperatorMissionSubmitStreamRequest, attaches MissionSubmitExecutionOptions, and parses each NDJSON line as a MissionSubmitStreamEvent. The Submit tab stays active while planning streams: reasoning_delta text renders as operator-private diagnostics, final_content_delta progress can be displayed in the same stream panel, validation/repair events update Submit status, and monitor_handoff is the event that opens Monitor after validation succeeds. Submit does not render the validated task graph; task graph inspection remains in Monitor and its Tasks detail surface.

The Advanced tab owns a session-local max_tasks control. -1 means full mission; a positive integer requests a dependency-closed execution prefix after full graph validation. The workspace snapshots the effective value when Submit starts and forwards that snapshot through MissionSubmitExecutionOptions.max_tasks; changing Advanced while a stream is in flight does not mutate the accepted request. Workers never receive max_tasks, and Submit copy does not duplicate the execution-scope setting. The orchestrator persists the outcome as MissionExecutionScopeMetadata on the runtime task graph artifact.

Before mission creation, the Workers and Submit surfaces may show pre-submit live projection from existing worker gate checks. Submit blocking is request-scoped: the active preset's requested_workers select the worker subset to evaluate, and per-skill readiness/admission from public worker readiness is advisory unless the request explicitly owns a required skill subset. Worker /readyz shell/discovery readiness remains separate from skill admission; the worker self-check can show a bounded public worker skill summary without exposing worker-private MCP config or treating every private implementation as a top-level shell blocker.

The current mission monitor consumes the canonical operator read model from GET /missions/{mission_id}/operator-read-model through MissionClient and MissionMonitorController. The active Monitor UI renders the selected mission's canonical task rows in the Tasks panel only; it no longer mounts selected mission extra subpages. Task output, resolved slot binding, worker operation, diagnostic, and artifact values remain public-safe read projections from the contract models and do not expose private runtime URLs, local paths, raw payloads, or runner internals. The Monitor tab remains MissionOperatorReadModel authority with no direct worker-private runtime probes from monitor. Worker status views still probe worker health, readiness, Agent Card, identity, and public skill projection, and runtime panels manage local process state. Mission-level realtime transport operator behavior is not part of the current Engineering Preview implementation.

Implementation Flow

RoleConsoleApp provides the Textual shell, command palette actions, role routing, workspace switching, focus handling, and terminal-size guard. Launch context and view models derive role/settings summaries from deploy-config authority instead of editing deploy assets in the console.

The orchestrator workspace wires runtime controls, worker gate checks, mission submission, and mission monitoring. MissionClient.get_operator_read_model() calls the shipped operator-read route, MissionMonitorController keeps the selected MissionOperatorReadModel in sync for the Monitor Tasks panel, and mission_operator_read_views.py owns the reusable operator-read widgets. The worker workspace wires local runtime control with a self-check ladder that probes health, worker /readyz shell/discovery readiness, Agent Card, identity, and profile skill alignment while presenting a bounded public skill readiness/admission summary. Source modules and shipped snapshots provide the current console implementation reference.

Scenario submit state is deliberately narrow. list_submit_presets() builds one operator-facing preset per repo-authored scenario profile, and load_submit_preset() maps that single scenario to labels, requested workers, fixture paths, and planner strategy. Submit defaults are derived from an explicit orchestrator settings file through load_submit_defaults_from_settings(settings_path) or load_default_submit_preset(settings_path); there is no implicit checked-in local or kitchen default. The console therefore routes scenario submit behavior to scenario profiles, explicit settings, and operator submit state. The active preset's requested_workers define the request-scoped gate subset; skill readiness remains an admission hint until a source-owned required skill subset is available, and the canonical mission read route remains the only terminal Monitor tasks source after the mission is created.

The stream path is intentionally diagnostic. MissionSubmitController.stream_submit() blocks locally on the same request-scoped gate rules before opening the stream, forwards the snapshotted max_tasks value to MissionClient.stream_mission_submit(), and yields typed MissionSubmitStreamEvent values to the workspace. The workspace handles reasoning_delta, final_content_delta, validation_succeeded, terminal_failure, stream_interrupted, and monitor_handoff as UI state transitions; it does not parse stream text into TaskNodes or build a task graph display in Submit.

Workspace Diagram

This diagram shows how the terminal shell routes users into role-specific workspaces without taking over deploy or scheduling authority.

flowchart LR
    Launch["launch context"]
    Shell["RoleConsoleApp"]
    Chooser["role chooser"]
    OrchestratorWorkspace["orchestrator workspace"]
    WorkerWorkspace["worker workspace"]
    RuntimeControls["runtime controls"]
    GateChecks["worker gate checks"]
    Submit["mission submit"]
    Monitor["mission monitor"]
    WorkerStatus["worker status and logs"]

    Launch --> Shell
    Shell --> Chooser
    Chooser --> OrchestratorWorkspace
    Chooser --> WorkerWorkspace
    OrchestratorWorkspace --> RuntimeControls
    OrchestratorWorkspace --> GateChecks
    OrchestratorWorkspace --> Submit
    OrchestratorWorkspace --> Monitor
    WorkerWorkspace --> RuntimeControls
    WorkerWorkspace --> WorkerStatus

Operator Read Path Diagram

This diagram shows the terminal Monitor tasks path after a mission exists. The console renders the canonical read model; it does not assemble private runtime state.

flowchart LR
    MissionId["selected mission_id"]
    Client["MissionClient"]
    Route["operator-read route"]
    Contract["MissionOperatorReadModel"]
    Controller["MissionMonitorController"]
    Views["Tasks panel"]
    Policy["public evidence policy"]

    MissionId --> Client
    Client --> Route
    Route --> Contract
    Contract --> Controller
    Policy --> Contract
    Controller --> Views

Responsibility

Provide a role-based terminal surface for selecting orchestrator or worker mode, showing read-only settings summaries, launching/gating local processes, submitting missions, and monitoring shipped mission/status reads without replacing deploy configuration authority.

Owns

  • Terminal shell routing, chooser flow, role workspaces, theme, and widget composition in app.py and screen modules.
  • Orchestrator workspace tabs for runtime, worker gate, mission submit, and mission monitor interactions.
  • Submit stream presentation for operator-private MissionSubmitStreamEvent diagnostics, validation status, terminal failure, and Monitor handoff.
  • Session-local Advanced max_tasks parsing, validation, and submit-time snapshotting.
  • Scenario submit preset selection for one active scenario at a time, sourced from shared scenario profile authority and console submit state.
  • Worker workspace tabs for runtime, worker status, and logs.
  • Console-side controllers, state models, and widgets that present existing orchestrator, worker, and local runtime status.
  • Mission client interaction with the canonical operator-read route for terminal Monitor tasks.

Does Not Own

  • Checked-in topology, settings, or deploy command authority.
  • Orchestrator scheduling logic or worker execution logic.
  • Worker-private MCP operation semantics or worker-private execution authority.
  • Scenario profile contracts, topology files, worker skill authority, or cross-scenario execution semantics.
  • Public mission artifact authority, A2A payload semantics, worker payload semantics, or task graph parse input for raw reasoning_delta / final_content_delta stream text.
  • Runtime clipping semantics beyond sending MissionSubmitExecutionOptions.max_tasks to the operator-private stream route.
  • Topology, settings, environment, compose, deploy asset, or private runtime service editing from the mission monitor.
  • Mission-level realtime transport observation behavior beyond the shipped terminal read/status surfaces.

Current Status

Shipped component source map for the current role-based terminal operator surface, including scenario submit presets, operator-private Submit stream diagnostics, session-local Advanced max_tasks, Monitor handoff, and canonical operator-read-model rendering for public evidence.

Source Of Truth

The operator console application remains authoritative for current behavior. This page points to the shipped terminal read/status surfaces; it does not replace deploy configuration, orchestrator services, worker services, or future runtime-observation designs. Old mission fragment routes may remain useful as lightweight or diagnostic route candidates, but terminal runtime-aware operator semantics are sourced from MissionOperatorReadModel. Scenario submit facts are sourced from state/mission_submit.py plus the scenario profile contracts and deploy configuration resolvers. Stream-submit facts are sourced from mission_client.py, mission_submit.py, orchestrator_workspace.py, and packages/contracts/src/omega_contracts/mission_api.py; execution-scope artifact facts come from packages/contracts/src/omega_contracts/mission_artifacts.py. Public evidence display is bounded by the operator read model and public evidence policy.

Key Source Paths

Path Purpose
apps/operator_console/ Operator console application package and entrypoints.
apps/operator_console/src/omega_operator_console/app.py Textual shell, role routing, workspace navigation, terminal size guard, and command palette actions.
apps/operator_console/src/omega_operator_console/launch.py ConsoleRole and launch context ownership for role/settings selection.
apps/operator_console/src/omega_operator_console/controllers/ Console controllers for local runtime, mission client, mission monitor, mission submit, orchestrator gate/runtime, worker runtime, and worker self-check behavior.
apps/operator_console/src/omega_operator_console/controllers/mission_client.py Builds OperatorMissionSubmitStreamRequest, attaches MissionSubmitExecutionOptions.max_tasks, calls POST /operator/mission-submit-stream, and validates streamed MissionSubmitStreamEvent payloads.
apps/operator_console/src/omega_operator_console/controllers/mission_submit.py Enforces request-scoped submit gates before stream start, forwards snapshotted max_tasks, and maps stream transport/protocol errors to bounded terminal stream events.
apps/operator_console/src/omega_operator_console/state/mission_submit.py Scenario submit presets, labels, requested workers, fixture paths, and planner strategy routing for one active scenario.
apps/operator_console/src/omega_operator_console/state/ Console-owned state projections for mission monitor, runtime controllers, worker gates, and worker self-check presentation.
apps/operator_console/src/omega_operator_console/screens/ Role chooser, orchestrator workspace, worker workspace, and focused help screens.
apps/operator_console/src/omega_operator_console/screens/orchestrator_workspace.py Submit tab stream rendering, reasoning_delta / final_content_delta handling, monitor_handoff, and Advanced max_tasks input/snapshot behavior.
apps/operator_console/src/omega_operator_console/widgets/mission_operator_read_views.py Reusable widgets for canonical operator-read payloads; the current Monitor UI mounts the Tasks view.
packages/contracts/src/omega_contracts/mission_api.py OperatorMissionSubmitStreamRequest, MissionSubmitExecutionOptions, and MissionSubmitStreamEvent contracts.
packages/contracts/src/omega_contracts/mission_artifacts.py MissionExecutionScopeMetadata persisted by the orchestrator after max_tasks execution clipping.
packages/contracts/src/omega_contracts/operator_read_model.py MissionOperatorReadModel contract consumed by the terminal mission monitor.
packages/contracts/src/omega_contracts/public_evidence.py Public evidence policy that bounds operator-visible values before display.
packages/contracts/src/omega_contracts/scenario_profiles.py ScenarioId and scenario profile contracts used by submit presets.
apps/operator_console/src/omega_operator_console/view_models.py Read-only orchestrator and worker settings summary view models derived from deploy config authority.
deploy/ Deployment assets consumed by the console; the console does not replace them.

Source Authority

Console behavior is owned by the source paths above. Use them for current terminal presentation, read-model consumption, settings projection, and submit-stream ownership.

Out Of Scope

  • Copying deploy commands, settings files, topology YAML, route payloads, or contract definitions.
  • Replacing orchestrator scheduling, worker execution, or LIFT2 MCP server authority.
  • Mixing multiple scenario presets from a default scenario selection path.
  • Treating GET /missions/{mission_id}, /task-graph, /events, or /reports as terminal runtime-aware operator semantics.
  • Treating raw reasoning_delta or final_content_delta stream text as public mission artifacts, A2A payloads, worker payloads, diagnostic report content, or task graph parse input.
  • Rendering the validated task graph inside Submit; use Monitor/Tasks for graph inspection.
  • Presenting mission-level realtime transport operator behavior as shipped.