orchestrata_ultimate.postman
Reference › orchestrata_ultimate › postman
Postman (U:PS) - Message routing and delivery engine
The postman package is the message broker (U:PS, SPEC-002) between Orchestrata's agents: it takes a CXPPacket from a sender and gets it to the right recipient handler, queue or topic subscribers, with a record of what happened. Redis holds its queues and thread trail when available, with in-memory fallbacks. The hand-written story is the curated postman page. Its main user is the kernel: cli_main starts a Postman, and the pipeline registers each volk's handler with it.
How messages move:
- Synchronous path: the pipeline calls
route_sync(sync_router) for every hop. It stamps a deterministic id, drops duplicates, persists the packet to the thread's Redis list, queues it, runs the recipient's registered handler and returns the stamped reply. A human intent travels this way fromHUMANto the concierge volk, and the reply travels back. - Async path: postman offers
route,arouteandaroute_outcome(delivery_outcome) andpublish_topicfor pub/sub fan-out. - Envelope path, the component-based design: envelope and payload build and validate messages, router resolves recipients, and delivery places the message on recipient queues.
Parts, by role:
- Contracts and types: interfaces, types, constants, exceptions.
- Routing: router, routing_rules, filter, topic_registry, subscription_manager.
- Queues and guarantees: queue, queue_manager, priority, guarantees.
- Storage: message_store, receipt_store, replay_engine.
- Resilience, policy and operations: error_handler, governance, metrics, health, admin, config, event_emitting_postman.
The entry points are the Postman class, re-exported by init, and the standalone cli. Start reading at postman, then sync_router.
Curated narrative
The hand-written story of this package: orchestrata_ultimate.postman.
31 modules, 11,199 lines of code.
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
Postman (U:PS) - Message routing and delivery engine | 21 |
admin |
Administrative interface and REST API for Postman. | 167 |
cli |
Orchestrata Postman CLI — standalone message router process. | 119 |
config |
Postman Configuration Manager. | 350 |
constants |
Postman Message Broker Constants | 157 |
delivery |
Delivery Manager - Core delivery orchestration for Postman message broker. | 506 |
delivery_outcome |
Honest delivery status for volk<->volk messaging (SPEC-001 US-002 / SPEC-002). | 63 |
envelope |
Message Envelope Handler Implementation. | 411 |
error_handler |
Error handling with circuit breaker and retry backoff for Postman. | 161 |
event_emitting_postman |
Event-emitting wrapper for Postman message routing. | 109 |
exceptions |
Custom exceptions for the Postman message broker. | 334 |
filter |
Message Filter implementation. | 175 |
governance |
Governance Integration Layer for Postman Message Broker. | 759 |
guarantees |
Delivery Guarantee System for Postman Message Broker. | 363 |
health |
Health checks for Redis/the operational graph and liveness/readiness endpoints. | 196 |
interfaces |
Postman Component Interfaces. | 1366 |
message_store |
Message Store module for Orchestrata. | 400 |
metrics |
Metrics collection and export for Postman. | 140 |
payload |
Payload handler for message encoding, decoding, compression, and validation. | 401 |
postman |
Postman (U:PS) - Message routing and delivery engine | 555 |
priority |
Priority queue implementation with starvation prevention. | 444 |
queue |
Queue implementations for Postman message broker. | 721 |
queue_manager |
Queue Manager for Postman Message Broker. | 286 |
receipt_store |
Receipt Store module for Orchestrata. | 359 |
replay_engine |
Replay Engine module for Orchestrata. | 368 |
router |
Routing engine for Postman message broker. | 433 |
routing_rules |
Routing Rules Engine. | 187 |
subscription_manager |
Subscription Manager implementation. | 257 |
sync_router |
Synchronous routing mixin for Postman. | 293 |
topic_registry |
Topic Registry implementation. | 151 |
types |
Postman Message Broker - Shared Type Definitions | 947 |