Expand description
Core types and routing logic for Jevia.
Structs§
- Cache
Config - Local routing-decision cache controls.
- Config
- Project-level Jevia configuration.
- Execution
Evidence - Observable facts from a configured harness execution.
- Execution
Recording - A finished, application-owned execution. Reporting is optional and does not assert task correctness. One immutable snapshot per routed run permits retries.
- Feedback
Event - Harness
Config - Process template and tier-to-model mapping for a coding-agent harness. Arguments are executed directly, never through a shell.
- Harness
Event - Harness
Invocation - A shell-free process invocation rendered from a harness template.
- Harness
Observations - JevClient
- Minimal Jev HTTP client. The API key is intentionally excluded from Debug, errors, and serialized values.
- JevConfig
- Connection settings for the Jev decision API.
- Observation
Totals - Whole-session counters, independent of the bounded recent event sample.
- Outcome
Evidence - Privacy
Config - Persistence controls for every history backend.
- Route
Decision - Inspectable result after model output and local safety policy are combined.
- Route
Record - Persisted record used by the outcome feedback loop.
- Router
Config - Deterministic policy applied after Jev responds.
- Routing
Candidate - A bounded, routing-only representation. The original record is never changed.
- Routing
History - Prepared history shared by cache-key construction, provider requests and diagnostics. Its two serialized windows are each capped at 64 KiB.
- RunLifecycle
- Tier
Config - A stable capability lane. Model names are deliberately kept out of this layer so harness adapters can map tiers independently.
- Verification
Config - Optional process that verifies a successful harness run.
- Verification
Evidence - Observable facts from a configured post-run verifier.
- Verification
Invocation - A shell-free verification process rendered from a harness template.
Enums§
- Config
Error - Decision
Source - Origin of a routing decision.
- Harness
Event Kind - JevError
- Observation
Mode - Observation
Source - Observation
Status - Outcome
- Result observed after a routed task runs.
- Outcome
Source - RunState
- Execution progress is separate from whether the task succeeded.
- Storage
Config - Opt-in persistence. Credentials are only resolved by the CLI at runtime.
Constants§
- MAX_
HARNESS_ EVENTS - MAX_
OBSERVED_ MODELS - RECORD_
SCHEMA_ VERSION - Current version of a persisted run record.
Functions§
- route_
cache_ key - Hash every input that can change a routing decision without persisting task text in the cache index.
- route_
cache_ key_ with_ history - The prepared-history equivalent of
route_cache_key; request bytes match. - valid_
identifier - Identifiers only: never free text, tool arguments, transcript paths, or output.