orchestrata_ultimate.kernel
Reference › orchestrata_ultimate › kernel
Orchestration Kernel - Central coordination engine
The kernel package is where Orchestrata's pieces are joined into a running system, and where an intent from a human becomes a sequence of CXP packets between volks. It holds the kernel object and event bus, the per-packet router and dispatcher, the pipeline that drives the volks, the command-line entry points that boot everything, and supporting services for audit, policy, sessions, configuration and performance. The hand-written story is the curated kernel page; the broader picture is in the architecture page and the runtime services page.
How messages and intents move:
- A human intent enters through the gateway (the
orchestrator.intentcall from cli_main or a UI) and reaches a booted PipelineRunner through the CXP server thatcli_mainstarts on the port named byCXP_GRPC_PORT. The transport is the cxpt direct transport; the gRPC retirement removed grpcio and only the key name kept "GRPC". submit_intentasks the Prolog gate for permission and routes a packet to the concierge volk through the postman. Replies move on volk to volk in pipeline_escalation until a reply is addressed to the human; stage milestones are published by pipeline_events and can be followed with cli_watch.- At packet level, router resolves recipients, dispatcher delivers with retries and queue_manager parks packets for offline volks. The broker itself is the postman package, and policy is decided by the governance package and policy_evaluator.
Parts by role: core (kernel, event_bus); pipeline mixins (pipeline_session, pipeline_kg, pipeline_audit, pipeline_checkpoint); services (session_manager, session_context, config_manager, resource_monitor, heartbeat_pump); and the subpackages audit, pam and performance. Entry points are cli_main (monolithic deployment and client commands), cli (standalone kernel) and pipeline_cli (REPL). Start with cli_main, then pipeline.
Curated narrative
The hand-written story of this package: orchestrata_ultimate.kernel.
51 modules, 19,600 lines of code.
Subpackages
| Package | Modules | LOC |
|---|---|---|
audit |
6 | 1,642 |
pam |
4 | 1,323 |
performance |
9 | 2,666 |
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
Orchestration Kernel - Central coordination engine | 8 |
__main__ |
Enable python -m src execution. | 8 |
audit_bootstrap |
Shared boot-time construction + fire-and-forget helpers for kernel.audit. | 146 |
audit_logger |
Backward-compat shim. | 5 |
cli |
Orchestrata Kernel CLI — standalone kernel process. | 118 |
cli_client |
Gateway client helpers for the orchestrata CLI. |
162 |
cli_main |
Orchestrata CLI — monolithic deployment entry point. | 1696 |
cli_watch |
Streaming client for orchestrata watch -- the Phase 0 proof consumer. |
340 |
config_manager |
Configuration Management for Orchestration Kernel. | 1082 |
console_cli |
Orchestrata Console CLI — TUI entry point (stub). | 40 |
dispatcher |
CXP Message Dispatcher for Orchestration Kernel. | 1031 |
event_bus |
Dual-layer (in-process + Redis) EventBus implementation. | 353 |
heartbeat_pump |
SPEC-001 volk-comms-heartbeat — the roster heartbeat pump (closes G1). | 126 |
kernel |
Orchestration Kernel - Central coordination engine | 134 |
pam_enforcer |
Backward-compat shim. | 10 |
performance_manager |
Backward-compat shim. | 5 |
pipeline |
PipelineRunner — boots the 11-volk pipeline and routes commands. | 693 |
pipeline_artifacts |
Kernel-side re-export of the canonical artifact store. | 16 |
pipeline_audit |
PipelineRunner audit mixin. | 84 |
pipeline_checkpoint |
Pipeline checkpoint / resume — reuse completed-stage outputs. | 302 |
pipeline_cli |
Orchestrata Pipeline — REPL-based CLI. | 311 |
pipeline_escalation |
PipelineRunner escalation routing mixin — the PACKET-level mesh. | 590 |
pipeline_events |
Pipeline milestone events — emitted at each stage transition. | 595 |
pipeline_kg |
PipelineRunner knowledge graph mixin. | 1064 |
pipeline_session |
PipelineRunner session management mixin. | 516 |
policy_evaluator |
Policy Evaluator for Orchestration Kernel. | 1331 |
queue_manager |
Redis-backed Message Queue Manager for Orchestration Kernel. | 674 |
resource_monitor |
System resource monitoring for Orchestrata. | 301 |
router |
CXP Message Router for Orchestration Kernel. | 647 |
session_context |
Session Context Management for Orchestration Kernel. | 704 |
session_manager |
Session Management for Orchestration Kernel. | 703 |
volk_status_bridge |
SPEC-001 volk-comms-heartbeat — the status-change -> kernel-event bridge (closes G3d). | 174 |
Dependency diagram
Truncated: showing 34 of 34 modules/subpackages (most connected first) and 10 of 15 outside packages.