axon/lib.rs
1//! AXON runtime library — exposes the full AXON runtime: compiler
2//! frontend (re-exported from `axon-frontend`), handlers, runtime
3//! primitives, ESK, HTTP/WebSocket servers, persistence, OTS pipelines.
4//!
5//! Used by the `axon` binary and by integration tests.
6//!
7//! # Frontend vs runtime
8//!
9//! §Fase 12.a — the compiler frontend (lexer, parser, AST, type checker,
10//! IR generator, top-level checker, and the closed catalogs used by the
11//! type checker) lives in the sibling crate `axon-frontend`, which has
12//! zero runtime dependencies. This crate re-exports those modules
13//! transparently so every existing caller (76 call sites across 26
14//! files) keeps compiling without changes. The crate `axon-lsp`
15//! consumes `axon-frontend` directly, skipping the runtime surface.
16
17// ── §Fase 12.a — frontend re-exports (transparent to callers) ───────
18pub use axon_frontend::{
19 ast,
20 checker,
21 // §Fase 115 — the Epistemic Module System (resolver · interfaces ·
22 // ECC · linker · cache · driver). Re-exported so the CLI and the
23 // enterprise workspace reach the module pipeline through the single
24 // `axon = …` dep, exactly like the rest of the frontend.
25 compilation_cache,
26 ems,
27 epistemic,
28 epistemic_compat,
29 ir_generator,
30 ir_nodes,
31 module_interface,
32 module_linker,
33 module_resolver,
34 legal_basis,
35 lexer,
36 parser,
37 refinement,
38 // §Fase 41.a — the session-type algebra (duality, regular-coinductive
39 // equality, §41.c credit-refined backpressure, §41.e SSE-polarity
40 // predicate). Re-exported so downstream consumers (the enterprise
41 // server's §Fase 41.f WS surface in `axon-enterprise`) reach it via the
42 // single `axon = …` workspace dep without an extra `axon-frontend`
43 // dependency line.
44 session,
45 // §Fase 41.h — multiparty session types (global types + projection).
46 // The orchestration story for n-agent skill/tool topologies: declare
47 // a `GlobalType`, project per role, drive each role's binary
48 // `SessionType` over the §41.d/41.f runtime — composition stays in
49 // lock-step by construction.
50 multiparty,
51 store_introspect,
52 store_schema,
53 store_schema_manifest,
54 stream_effect,
55 tokens,
56 type_checker,
57 // §Fase 80.f/80.g — the blessed preset catalog + the voice/preset
58 // desugar surface (`axon desugar` renders from these).
59 upstream_presets,
60 voice_desugar,
61};
62
63// `ots_catalog` is the compile-time slug catalog; the runtime `ots`
64// module (below) re-exports these constants for backward compatibility.
65
66// ── Runtime modules (stay in this crate) ────────────────────────────
67
68pub mod anchor_checker;
69pub mod api_keys;
70pub mod audit_trail;
71pub mod auth_middleware;
72pub mod axon_server;
73pub mod backend;
74pub mod backend_error;
75pub mod circuit_breaker;
76pub mod compiler;
77pub mod config_persistence;
78pub mod conversation;
79pub mod cors;
80pub mod cost_estimator;
81pub mod daemon;
82/// §Fase 108.b — the deterministic columnar engine behind `dataspace`
83/// (immutable record batches, validity bitmaps, zone maps, provenance).
84pub mod dataspace_engine;
85/// §Fase 110.b — Governed Human Notification: the canonical contract
86/// (evidence labels, recipient custody, fail-closed provider port).
87pub mod notification;
88pub mod db_pool;
89pub mod deployer;
90pub mod emcp;
91pub mod event_bus;
92/// §Fase 74.c — the durable event outbox (the append-only log + processed
93/// cursor that makes `emit` survive the consumer being down).
94pub mod event_outbox;
95/// §λ-L-E Fase 2 — Handler layer (Free Monad + CPS). Port of `axon/runtime/handlers/`.
96pub mod handlers;
97/// §λ-L-E Fase 3 + 5 runtime primitives. Port of `axon/runtime/` (lease kernel,
98/// reconcile loop, ensemble aggregator, immune kernels).
99pub mod runtime;
100/// §Fase 41.d — the **runtime** of a session-typed dialogue. The static
101/// algebra (`axon_frontend::session`: duality, regular-coinductive
102/// equality, credit-refined backpressure index `!ⁿA.S`) gets a dynamic
103/// counterpart here: an operational state machine (`SessionRuntime`)
104/// with one method per algebra rule, a wire envelope (`Frame`), and an
105/// RFC 6455 WebSocket carrier (`ws::drive`) that runs a session type
106/// against a peer. Carrier-agnostic core; the WS layer is one binding.
107pub mod session_runtime;
108/// §Fase 80.d — the `upstream` runtime: the CLIENT dual of the §41.d
109/// carrier. Dials OUT to a third-party vendor (STT/TTS/realtime speech)
110/// over RFC 6455 + TLS, applies the declared auth handshake, transcodes
111/// wire↔session per the compiled `map:` projection (T849-total), applies
112/// the declared `overflow:` policy when the vendor is the slow side, and
113/// reconnects with witnessed, fail-closed exponential backoff. A new
114/// vendor is a new DECLARATION, never new Rust code.
115pub mod upstream_runtime;
116/// §Fase 51.e — the `quant` cognitive primitive's RUNTIME: the
117/// [`quant::QuantBackend`] port + a usable dense-statevector reference
118/// simulator capped at n ≤ 10 (the OSS half; enterprise mounts the QuIDD /
119/// VRAM / QPU engine behind the same trait in §51.f–i).
120pub mod quant;
121/// §Fase 23.f — Algebraic effects runtime. FSM dispatch loop +
122/// handler stack + Free-Monad interpretation of CPS-lowered IR
123/// (consumes the JSON IR emitted by the Python frontend in 23.b/c/d).
124pub mod effects;
125/// §Fase 24.b — Native Rust LLM backends. Per-provider async clients
126/// behind a `Backend` trait + `Registry`. Per-provider modules
127/// (anthropic.rs / openai.rs / gemini.rs / kimi.rs / glm.rs / ollama.rs
128/// / openrouter.rs) land in 24.c–24.i; this module ships the shared
129/// infra (trait + types + error + retry + observability + locked_model
130/// + tokens dispatch).
131pub mod backends;
132/// §Fase 36.b — the Backend Resolution Contract (D1): the pure,
133/// deterministic precedence ladder that resolves a flow's execution
134/// backend (request → axonendpoint `backend:` → server default →
135/// environment-available `auto` → honest failure).
136pub mod backend_resolution;
137/// §Fase 68.c — pure capability-aware model resolution: a step's
138/// `requires_context:` + a backend's §68.a model catalog → the smallest model
139/// that fits, or honest fail-closed (never a too-small model).
140pub mod model_resolution;
141/// §Fase 69.a — the Advantage Witness: a transversal law
142/// (`axon://logic/no_unwitnessed_advantage`). A primitive may not claim an
143/// advantage over a cheaper baseline without a machine-checkable witness on real
144/// data; the `AdvantageWitness` trait + closed metric catalog + verdict.
145pub mod advantage_witness;
146/// §Fase 69.b — quant as the first Advantage-Witness instance: the amplitude-
147/// fidelity ≡ cosine theorem made executable + the `QuantKernelWitness` that
148/// fails closed (no advantage over the classical baseline).
149pub mod quant_witness;
150/// §Fase 69.d — the SECOND Advantage-Witness instance (transversality proof):
151/// retrieval / navigate via the `ranking_lift` metric over flat cosine retrieval.
152pub mod retrieval_witness;
153/// §ESK Fase 6 — Epistemic Security Kernel. Port of `axon/runtime/esk/`.
154pub mod esk;
155/// §Fase 51 — Proof-Carrying Code. apx/axonendpoint carry a portable,
156/// machine-checkable proof object an INDEPENDENT verifier checks
157/// against the artifact WITHOUT trusting the compiler that produced it
158/// (the move from `esk`'s builder-signed attestation to a consumer-
159/// verifiable proof). §51.a ships the kernel + the ComplianceCoverage
160/// property class.
161pub mod pcc;
162/// CLI handlers for the ESK audit commands (dossier, sbom, audit, evidence-package).
163pub mod audit_cli;
164/// §Fase 51.f — CLI handlers for the PCC commands (`axon pcc prove` /
165/// `axon pcc verify`). Closes the Proof-Carrying Code loop at the
166/// command line: generate a proof bundle from source, then
167/// independently verify it against a recompile of that source.
168pub mod pcc_cli;
169pub mod flow_inspect;
170/// §Fase 33.x.g — Closed-catalog runtime warnings for the SSE
171/// production path. Surfaces `axon-W002 streaming-not-supported`
172/// when the async streaming path falls back to legacy synchronous
173/// delivery (D5 — no silent degradation).
174pub mod runtime_warnings;
175/// §Fase 33.x.h — Process-wide runtime opt-in flags. Today carries
176/// the `tokenizer_fallback` flag that gates BPE-tokenized chunking
177/// on the SSE LEGACY path (D9 — opt-in; defaults OFF for v1.24.0
178/// wire byte-compat).
179pub mod runtime_flags;
180/// §Fase 33.x.b — Streaming-shaped execution plan extractor. Builds
181/// `StreamingExecutionPlan` from `.axon` source for the production
182/// async SSE path; pre-resolves per-step `BackpressurePolicy` via
183/// `stream_effect_dispatcher` so the hot per-chunk loop in
184/// `axon_server::server_execute_streaming_async` does not re-walk
185/// the AST per chunk. Rejects flows that use 33.x.b-unsupported
186/// features (anchors / lambda apply / let bindings / mid-stream
187/// use_tool / hibernate / pix) with a closed-catalog `PlanFallback`
188/// so the SSE handler can route them to the legacy synchronous path.
189pub mod flow_plan;
190/// §Fase 33.y.b — Per-IRFlowNode async dispatcher skeleton. Closed-
191/// catalog, compiler-enforced exhaustive match over the 45-variant
192/// `IRFlowNode` enum. Subsequent sub-fases 33.y.c–j replace the
193/// transitional legacy shim with real per-variant async handlers.
194/// 33.y.l retires the shim + the `LegacyShimHandled` outcome variant
195/// once every IR variant has its real handler.
196pub mod flow_dispatcher;
197/// §Fase 33.z.b — Streaming-via-dispatcher graft skeleton. Lifts
198/// `flow_dispatcher::dispatch_node` (Fase 33.y, 45/45 structurally
199/// complete) into the production SSE hot path behind the
200/// `AXON_STREAMING_VIA_DISPATCHER` runtime flag (default OFF;
201/// flip to ON for v1.27.0 stable in 33.z.c; legacy path retired
202/// in 33.z.e).
203pub mod streaming_via_dispatcher;
204pub mod flow_version;
205pub mod epistemic_capture;
206pub mod exec_context;
207pub mod graceful_shutdown;
208pub mod graph_export;
209pub mod health_check;
210pub mod hooks;
211pub mod http_tool;
212/// §Fase 99.e/f — the deterministic OOXML writer (DOCX/PPTX/XLSX) behind the
213/// `DocumentRenderer` native tool. Byte-deterministic + provenance-embedding.
214pub mod ooxml;
215/// §Fase 100.b — the read-only filesystem capability + path sandbox.
216pub mod fs_sandbox;
217/// §Fase 100.c/d — the OOXML reader: bounded, born-Untrusted, Parsed text tree.
218pub mod ooxml_read;
219/// §Fase 100.e — the surgical edit engine + per-part hash manifest.
220pub mod ooxml_edit;
221/// §Fase 101.a — the `Inferred`-extraction contract: the `ExtractionEngine`
222/// trait, the born-`Inferred` span with measured confidence, and the
223/// confidence-floor quarantine gate. The producers §100 left the class without.
224pub mod extraction;
225/// §Fase 101.c — the IDP-E recognizer kernel: the deterministic geometry+topology
226/// engine (Otsu → cubical β₀/β₁ → geometric discrimination → reading order →
227/// pix-navigable canonical tree). Reads a bounded PGM/PBM raster; real image
228/// decode is the sidecar (§101.e). Scoped to clean machine-print (D101.17).
229pub mod idpe;
230/// §Fase 101.d — the active-inference foveation planner: spend the recognizer on
231/// the highest-information-scent regions until the answer resolves or the budget
232/// (§72) is exhausted; every foveation is a replayable `ledger` trail entry.
233pub mod foveation;
234/// §Fase 101.e — the IDP-E image front-end: deterministic Perona-Malik anisotropic
235/// diffusion (Catté-regularised) + Gabor phase-tensor orientation energy that
236/// clean and analyse a raster before recognition. The CVE-prone image DECODE is
237/// isolated in the sidecar binary (`src/bin/idpe_sidecar.rs`), which feeds this
238/// front-end already-decoded grayscale — hostile bytes never reach the runtime.
239pub mod idpe_frontend;
240pub mod inspect;
241/// §Fase 98.e — Native Web Acquisition runtime (`scrape_http` / `scrape_dom` /
242/// `scrape_crawl`); born-Untrusted content, pluggable stealth fetcher.
243pub mod scrape_tool;
244/// §Fase 104.a — Governed Contact Enrichment (`scrape_enrich`): structured
245/// contact lookup via a pluggable enterprise provider; results born Inferred
246/// (≤ believe-ceiling) + Untrusted. OSS default = typed refusal (no fabrication).
247pub mod enrichment;
248/// §Fase 116.a — axon-agora governed social connectors (`agora_linkedin` /
249/// `agora_facebook` / `agora_instagram` / `agora_tiktok`): the first official
250/// library of axon-lang. Per-platform pluggable `SocialConnector` cores; every
251/// result born Untrusted. OSS default = typed refusal (no fabrication).
252pub mod agora_runtime;
253/// §Fase 116.b.2 — the agora OAuth token-refresh orchestration (the OSS core the
254/// enterprise §52 daemon drives): enumerate → decide → exchange → atomically
255/// persist, closing the rotating-refresh-token trap. Clock injected; the vault
256/// is the `SecretCustody` port.
257pub mod agora_refresh;
258/// §Fase 105 — Governed CRM Delivery (`deliver`): the egress-dual of acquisition.
259/// Canonical, idempotent CRM operations delivered via a pluggable enterprise
260/// transducer; each field carries its epistemic provenance (D105.2) or the author
261/// vouched (T920). OSS default = typed refusal (no fabricated receipt).
262pub mod delivery;
263pub mod lambda_data;
264pub mod lambda_runtime;
265pub mod logging;
266pub mod migrations;
267pub mod output;
268pub mod mdn;
269pub mod mdn_memory;
270pub mod mdn_provenance;
271pub mod parallel;
272pub mod pix_mdn_pcc;
273pub mod pix_navigator;
274pub mod plan_diff;
275pub mod plan_export;
276pub mod rate_limiter;
277pub mod request_binding;
278pub mod request_log;
279pub mod request_middleware;
280pub mod repl;
281pub mod replay;
282pub mod request_tracing;
283// §Fase 32.c — Body schema validation for first-class axonendpoint
284// routes. `route_schema` hosts the pure `validate_body` primitive +
285// `collect_type_table` walker. The fallback handler in `axon_server`
286// consults the table at request time per (method, path).
287pub mod route_schema;
288// §Fase 32.f — Idempotency-Key store for POST/PUT axonendpoint routes.
289// Stripe-compatible. Cross-tenant isolation via (client_id, path, key)
290// composite key. 24h default retention. Same-key-different-body
291// returns 422 per industry convention.
292pub mod idempotency;
293// §Fase 32.g — Auth scope (capability subset matching) for first-class
294// axonendpoint routes. `requires: [admin, legal.read, ...]` declarations
295// gate dispatch on declared_requires ⊆ token_capabilities. Closed slug
296// grammar shared with `axon_frontend::parser`. Mirror of Python
297// `_is_valid_capability_slug`.
298pub mod auth_scope;
299// §Fase 32.h — Replay-token binding for first-class axonendpoint routes.
300// Append-only log keyed by trace_id; populated on every successful 2xx
301// POST/PUT where `replay:` resolves to true. `GET /v1/replay/<trace_id>`
302// returns the original request body + response body + metadata for
303// regulatory audit (PCI DSS Req 10, FedRAMP AU-2, FRE 502, 21 CFR Part 11).
304pub mod axonendpoint_replay;
305// §Fase 33.b — Layer 1: flow execution event stream. Closed catalog of
306// {FlowStart, StepStart, StepToken, StepComplete, FlowComplete,
307// FlowError} per D2. Consumed by execute_sse_handler (33.c) for live
308// SSE forwarding; cross-stack drift-gated against the Python mirror.
309pub mod flow_execution_event;
310pub mod resilient_backend;
311pub mod retry_policy;
312pub mod runner;
313// §Fase 40.b — public shield-scanner registration hook. OSS ships no
314// scanners (identity); enterprise vertical crates register HIPAA/legal/AML
315// scanners here at boot. The `shield apply` handler consults it.
316pub mod shield_registry;
317/// §Fase 112.b — the Cognitive-I/O supervisor: the loop that instantiates the
318/// declared λ-L-E dataflow graph (`observe` → {`ensemble`, `immune`} →
319/// {`reflex`, `heal`}, plus `reconcile`) and drives it. The language was complete
320/// and the kernels took the IR directly; **nobody had ever built the loop.**
321pub mod cognitive_io_supervisor;
322/// §Fase 112.a — the source adapter registry: what an `observe` actually looks at.
323/// **Deny-by-default** — an unregistered source is UNKNOWN, not healthy, and the
324/// observation refuses rather than fabricating a reading.
325pub mod source_registry;
326pub mod server_config;
327pub mod server_metrics;
328pub mod session_scope;
329pub mod session_store;
330pub mod step_deps;
331pub mod storage;
332pub mod storage_postgres;
333// §Fase 35 — the `axonstore` cognitive data plane runtime. 35.b ships
334// `store::filter` (the parameterized where-expression compiler).
335pub mod resource_lease;
336pub mod resource_resolver;
337pub mod store;
338pub mod stdlib;
339pub mod tenant;
340pub mod tenant_secrets;
341// §Fase 10.e — JWT signature verification + JWKS client. Used by
342// tenant::tenant_extractor_middleware when AXON_JWT_JWKS_URL is set.
343pub mod jwt_verifier;
344// §λ-L-E Fase 11.a runtime — `trust_verifiers` holds the runtime
345// implementations that the compiler recognises; `stream_runtime` is
346// the Stream<T> channel with policy dispatch. The compile-time
347// `refinement` and `stream_effect` catalogs live in `axon-frontend`.
348pub mod trust_verifiers;
349pub mod stream_runtime;
350// §Fase 33.e — Stream-effect dispatcher (Layer 4 of the Fase 33 cycle).
351// Bridges the `effects: <stream:<policy>>` declarations on tool
352// definitions to actual runtime backpressure behavior on the SSE
353// wire. The dispatcher itself is a thin composition over
354// `stream_runtime::Stream<T>` (which carries the policy semantics)
355// and the AST resolver (which extracts the declared policy from the
356// tool referenced by each step).
357pub mod stream_effect_dispatcher;
358// §Fase 33.f — Cooperative cancellation primitives (D6 cancel-safety).
359// `CancellationFlag` + `CancelOnDrop` are the building blocks that
360// bind SSE response lifetime to the executor's spawn_blocking task:
361// when the wire client disconnects, the consumer cancels the flag,
362// which the producer observes between event emissions and exits
363// early instead of running the flow to completion against a dropped
364// channel.
365pub mod cancel_token;
366pub mod channel_semaphore;
367// §Fase 33.z.k (v1.28.0) — Wire-format adapter framework.
368// `wire_format` defines the WireFormatAdapter trait + per-dialect
369// adapters (axon / openai / anthropic). The SSE producer in
370// `axon_server::execute_sse_handler` uses `select_adapter(dialect)`
371// to translate internal FlowExecutionEvents into the dialect-
372// specific wire shape adopters' SDKs expect.
373pub mod wire_format;
374// §Fase 39.b — Pure Silicon Cognition wire envelope. The canonical
375// `FlowEnvelope` payload for `transport: json` axonendpoint responses
376// + legacy `POST /v1/execute`. Isomorphic serialization of the
377// ψ-vector `⟨T, V, E⟩`. See `docs/fase/fase_39_pure_silicon_cognition.md`.
378pub mod wire_envelope;
379// §Fase 39.c — Wire envelope producer helpers. Closed-taxonomy
380// translators from runtime execution metadata into the wire envelope's
381// epistemic fields (`provenance_chain` + `blame_attribution`).
382pub mod wire_envelope_producers;
383// §Fase 39.f — Rust CLI binary parity. New subcommands that closed
384// the gap vs the Python CLI (`axon parse` aggregator + `axon fmt`
385// round-trip formatter).
386pub mod cli_parse;
387pub mod cli_fmt;
388// §λ-L-E Fase 11.b — Zero-Copy Multimodal Buffers.
389// `buffer` defines ZeroCopyBuffer (Arc<[u8]>-backed) + BufferKind
390// (open registry) + BufferPool (slab allocator with per-tenant
391// soft-limit accounting). `ingest` hosts the network deposit paths
392// (multipart/form-data streaming parser, WebSocket binary-frame
393// accumulator) that populate buffers without intermediate copies.
394pub mod buffer;
395pub mod ingest;
396// §λ-L-E Fase 11.c runtime — `replay_token` hosts ReplayToken canonical
397// hashing + pluggable ReplayLog + ReplayExecutor for re-running from
398// any token. The compile-time `legal_basis` catalog lives in
399// `axon-frontend`.
400pub mod replay_token;
401// §λ-L-E Fase 11.d — Stateful PEM over WebSocket. `pem::state`
402// defines CognitiveState with Q32.32 fixed-point float encoding
403// so density-matrix round-trips are bit-identical across reconnects.
404// `pem::continuity_token` is an HMAC-signed handshake that proves
405// a reconnecting client is the original party. `pem::backend`
406// exposes the PersistenceBackend async trait + in-memory impl;
407// production uses axon_enterprise::cognitive_states (Postgres +
408// envelope encryption).
409pub mod pem;
410// §λ-L-E Fase 11.e — Ontological Tool Synthesis binary pipelines.
411// `ots::pipeline` hosts Transformer trait + TransformerRegistry +
412// Dijkstra-based path search. `ots::native` seeds μ-law ↔ PCM16
413// + resample (8k/16k/48k ladder). `ots::subprocess::ffmpeg` is
414// the subprocess fallback with warm-pool + availability detection.
415// The compile-time slug catalog lives in `axon-frontend::ots_catalog`.
416pub mod ots;
417pub mod tool_executor;
418pub mod tool_registry;
419// §Fase 34.b (v1.29.0) — Tool trait + ToolChunk closed-catalog
420// surface for tools-as-stream-producers. Bridges adopter-source
421// `effects: <stream:<policy>>` declarations into the runtime via
422// the dispatcher's per-chunk wire emission path (Fase 34.d/g lands
423// the wiring; this module is the structural foundation).
424pub mod tool_trait;
425// §Fase 34.d (v1.29.0) — Bridge from ToolEntry (registry shape) to
426// Tool trait impls (dispatcher's streaming surface). The dispatcher's
427// `pure_shape::run_step` calls `tool_dispatch_bridge::resolve_streaming_tool`
428// for is_streaming-flagged tools + drains the resulting Stream<ToolChunk>
429// chunk-by-chunk into the wire.
430pub mod tool_dispatch_bridge;
431// §Fase 84.d — Remote Hands runtime: pure argv render + confirmation-hash
432// binding + output bounding + the axon⇄agent wire protocol.
433pub mod technician_dispatch;
434// §Fase 85.d — result-memoization cache core: content-addressed keys,
435// in-process LRU tier with single-flight + TTL jitter + size bound, the
436// `CacheBackend` trait (enterprise injects Redis), and policy resolution.
437pub mod cache_runtime;
438// §Fase 86 — the mathematical core of `forge` Directed Creative Synthesis:
439// Boden profiles, NCD novelty (the computable Kolmogorov-novelty proxy),
440// best-of-N selection, and fail-closed verification.
441pub mod forge;
442// §Fase 87.e — the `HolographBackend` port + the OSS reference HRR codec
443// (circular-convolution binding via a self-contained radix-2 FFT), the
444// `savant` long-horizon memory-compression layer (paper §5).
445pub mod holograph;
446// §Fase 87.f — the remaining `savant` runtime ports + OSS reference impls:
447// `inference` (classical VFE/EFE active inference, no advantage claim),
448// `topology` (Vietoris–Rips β₀/β₁ + PHC-proxy centrality), and `synth`
449// (deny-by-default dynamic tool synthesis — the Extism executor is enterprise).
450pub mod inference;
451pub mod synth;
452pub mod topology;
453// §Fase 88.d — the `WardenBackend` port + the OSS reference static analyzer
454// (attested `Vulnerability` findings; authorization + deny-by-default enforced;
455// paraconsistent finding-validator). The enterprise LLM engine mounts §88.f.
456pub mod warden;
457pub mod tool_validator;
458pub mod trace_export;
459pub mod trace_store;
460pub mod trace_stats;
461pub mod tracer;
462pub mod version_diff;
463pub mod webhook_delivery;
464pub mod webhooks;
465/// §Fase 92.c — the `CredentialMinter` port behind the `mint` flow verb
466/// (attenuated, TTL-bounded ephemeral credentials; fail-closed when absent).
467pub mod credential_minter;
468/// §Fase 94.d — the `SecretCustody` port behind the `backend: secrets`
469/// metadata store, the `rotate` verb and the `tool { secret: }` injection
470/// (`rotation_without_revelation`; fail-closed when absent).
471pub mod secret_custody;
472/// §Fase 91.b — declared cognitive time: the runtime half of `now:` (one
473/// capture per run, deterministic prompt line, envelope record).
474pub mod temporal_context;
475/// §Fase 71.b — the runtime for the `window` temporal execution guard
476/// (timezone-aware `is_in_window` / `next_window_open` via chrono-tz).
477pub mod window;