Expand description
Context Control Kernel — unified orchestration over all context stores.
Modules§
- a2a_
fixes - Standalone fixes for avoidable agent-to-agent context overhead.
- accounting_
fix - Honest token accounting after all delivery-time additions.
- activation
- Kernel activation configuration and receipt-driven feedback wiring.
- adaptive_
bridge - Adaptive compression signals exposed through the Context Kernel.
- adaptive_
hook - Adapts kernel compression advice from observed context-read bounces.
- attribution
- Receipt-based savings attribution for Context Kernel providers.
- bounded
- Bounded stores, queues, and circuit breakers for kernel HA.
- bridge
- Runtime integration helpers for the Context Control Kernel.
- capsule_
wire - Wire types for transferring reference-only context between agents.
- client_
profile - Client capability and efficiency profiles.
- client_
wiring - Request-scoped wiring for client profiles, identity, and live ETPAO metrics.
- config_
bridge - Bridge between the main lean-ctx configuration and Context Kernel features.
- context_
broker - Client-adaptive selection of tools, context, and output representation.
- context_
dedup - Content deduplication for context delivered to language models.
- coverage_
class - Coverage classification and capability detection for client integrations.
- ctx_
read_ dedup - Thin content-deduplication bridge for the ctx_read hot path.
- dashboard_
report - Structured dashboard reporting across Context Kernel subsystems.
- dedup_
wiring - Global content-deduplication wiring for context delivery hot paths.
- degradation
- Kernel degradation levels and fallback planning.
- enforce
- Kernel policy enforcement modes.
- envelope_
bridge - Bridges canonical provider usage into kernel evidence and aggregate statistics.
- etpao
- Effective tokens per accepted outcome metrics.
- etpao_
live - Live Effective Tokens Per Accepted Outcome (ETPAO) measurement.
- evidence_
hook - Thin evidence-recording hooks for tool and proxy hot paths.
- evidence_
wiring - Dispatch-aware evidence recording for MCP tools and proxy requests.
- feedback
- Outcome feedback collection for Context Kernel learning.
- health
- Aggregated Context Kernel health reporting.
- health_
api - Enhanced health dashboard for the Context Kernel.
- hotpath_
wiring - Unified Context Kernel integration for tool hot-paths.
- identity
- Identity and cost-center attribution for context-kernel requests.
- invalidation
- Invalidation propagation across kernel plans, receipts, and candidates.
- kernel_
config - Central runtime configuration for Context Kernel features.
- knowledge_
health - Privacy-safe health and efficiency views for project knowledge stores.
- learning
- Receipt-driven learning for Context Kernel provider weights.
- list_
tools_ opt - Hot-path bridge for MCP list-tools schema optimization.
- live_
dashboard - Aggregated live metrics for dashboard consumers.
- mcp_
bridge - Unified integration between MCP clients and the context kernel.
- mcp_
coverage - MCP-specific client coverage detection and efficiency profiles.
- mcp_
receipt - Receipt recording and honest accounting for MCP tool calls.
- mcp_
schema_ opt - MCP tool-schema compression and budget enforcement.
- orchestrator
- Candidate orchestration, scoring, and feedback artifacts for the context kernel.
- outcome_
signal - Outcome quality signals inferred from observable LLM behavior.
- policy
- Context policy filtering for the Context Kernel.
- policy_
engine - Hierarchical policy decisions for Context Kernel requests.
- provider_
display - Dashboard and CLI formatting for per-provider token statistics.
- provider_
normalization - Provider-specific usage normalization for execution receipts.
- provider_
parity - Provider detection and provider-neutral usage normalization.
- proxy_
bridge - Unified bridge between raw proxy requests and context-kernel services.
- receipt_
builder - Builder for the version-one execution receipt.
- receipt_
chain - Evidence chain for context delivery lifecycles.
- recovery
- Kernel state serialization, snapshots, and recovery.
- response_
evidence - Response-token evidence recorded at tool output boundaries.
- result_
fusion - Fusion of child-agent results into one attributed report.
- schema_
wiring - Wiring between MCP tool registries and kernel schema optimization.
- shadow
- Shadow logging for Context Kernel plans and receipts.
- startup
- Context Kernel startup initialization and status reporting.
- stream_
controller - Delta tracking for append-oriented content streams.
- tool_
surface - Budget-aware reduction of tool schemas exposed to clients.
- types
- Shared types for the Context Control Kernel.
- usage_
normalizer - Session-level aggregation for canonical token envelopes.
Structs§
- Context
State - Mutable task context assembled from technical and organisational sources.
Functions§
- enrich_
with_ knowledge - Query governed knowledge and attach a deterministic task-local snapshot.
- enrich_
with_ optional_ knowledge - Preserve normal task execution when no Knowledge Hub is configured.