orchestrata_contracts.protocols
Reference › components › contracts › orchestrata_contracts › protocols
orchestrata_contracts.protocols package.
The protocols subpackage of contracts holds the structural contracts through which components call each other without importing concrete classes, which is how the component DAG keeps its edges one-directional. It continues the Protocol layer described in the core narrative. The base vocabulary is component_protocol, component_type, component_metadata, component_scope, health_status, system_event, event_bus_protocol and event_subscription. Service protocols cover the orchestration kernel (orchestration_kernel_protocol, orchestrator_protocol), messaging (postman_protocol), state (state_manager_protocol, redis_state_manager_protocol), memory (memory_engine_protocol with memory_entry, memory_scope), providers (provider_protocol, provider_manager_protocol, provider_request, provider_response, model and pricing types), volks (volk_protocol, volk_registry_protocol, volk_runtime_protocol, volk_health_probe), sessions (session_manager_protocol, session_log_protocol, session_controller_factory) and audit (audit_trail_protocol). Several are marked net-new contracts (AD-34, AD-40, AD-43, AD-65, AD-81): llm_call, llm_profile_port, refactor_call, verification_gate_protocol. Ports for embedding_port, redis_factory and token_counter_protocol are how the tools component reaches embeddings and Redis (ADR-0112).
56 modules, 1,967 lines of code.
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
orchestrata_contracts.protocols package. | 2 |
audit_trail_protocol |
79 | |
budget_status |
19 | |
component_metadata |
21 | |
component_protocol |
42 | |
component_scope |
13 | |
component_type |
20 | |
context_file_protocol |
orchestrata_contracts.protocols.context_file_protocol — net-new contract (AD-40 D-S17, AD-43). | 20 |
cost_estimate |
17 | |
cost_record |
14 | |
embedding_port |
EmbeddingPort protocol — structural contract for text embeddings. | 30 |
event_bus_protocol |
49 | |
event_subscription |
25 | |
governance_prolog_bridge_protocol |
49 | |
health_status |
14 | |
llm_call |
orchestrata_contracts.protocols.llm_call — the injected LLM call port (AD-81). | 32 |
llm_profile_port |
orchestrata_contracts.protocols.llm_profile_port — net-new contract (AD-65 R1). | 65 |
memory_classification |
13 | |
memory_engine_protocol |
108 | |
memory_entry |
61 | |
memory_scope |
24 | |
memory_summary |
19 | |
message |
19 | |
model_capability |
16 | |
model_info |
18 | |
model_pricing |
17 | |
orchestration_kernel_protocol |
96 | |
orchestrator_protocol |
79 | |
plugin_volk_registry_protocol |
27 | |
postman_protocol |
107 | |
provider_config |
19 | |
provider_manager_protocol |
80 | |
provider_protocol |
32 | |
provider_request |
31 | |
provider_response |
26 | |
raw_provider_response |
18 | |
redis_factory |
RedisFactory protocol — structural contract for creating Redis clients. | 29 |
redis_state_manager_protocol |
56 | |
refactor_call |
orchestrata_contracts.protocols.refactor_call — net-new contract (AD-81, D-N14). | 21 |
registered_volk_protocol |
26 | |
routing_strategy |
18 | |
service_endpoint |
16 | |
session_controller_factory |
orchestrata_contracts.protocols.session_controller_factory — net-new contract (AD-43). | 22 |
session_log_protocol |
orchestrata_contracts.protocols.session_log_protocol — net-new contract (AD-40 D-S17, AD-43). | 44 |
session_manager_protocol |
29 | |
state_manager_protocol |
79 | |
summarization_strategy |
12 | |
system_event |
49 | |
token_counter_protocol |
19 | |
token_usage |
13 | |
usage_report |
16 | |
verification_gate_protocol |
orchestrata_contracts.protocols.verification_gate_protocol — net-new contract (AD-34 NEEDS-4). | 25 |
volk_health_probe |
24 | |
volk_protocol |
44 | |
volk_registry_protocol |
48 | |
volk_runtime_protocol |
orchestrata_contracts.protocols.volk_runtime_protocol — net-new contract (AD-34 NEEDS-1, AD-65 R2). | 56 |
Dependency diagram
Truncated: showing 40 of 53 modules/subpackages (most connected first) and 5 of 5 outside packages.