Skip to main content

Module context_kernel

Module context_kernel 

Source
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§

ContextState
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.