Engineering notebook
How the pieces
work together.
Follow one candidate through the control plane. Each decision has a reason, a failure boundary, and inspectable code.
PostgreSQL is the database. It keeps the version history and records of what changed and why.
01 / Lifecycle
Register an exact version
The manifest ties owner, source, tools, provider settings, and evaluation configuration to an immutable identity. Repeating an identical registration is safe; replacing the content of an existing version is rejected.
02 / Lifecycle
Evaluate against requirements and a baseline
Versioned datasets and gates measure correctness, groundedness, tool use, safety, latency, and cost. Required failures block release progression. Comparison against a baseline makes regressions visible.
03 / Lifecycle
Authorize each action
The gateway authenticates callers. Governed model and tool wrappers enforce policy and budgets outside the model. Local mode has explicit development identities; production requires configured credentials.
04 / Lifecycle
Release through explicit states
Candidate releases carry source and evaluation references. Promotion checks the current state and required evidence. Database transactions and revisions protect concurrent changes.
05 / Lifecycle
Compare in shadow, then limit exposure
Shadow execution retains the stable response and isolates candidate effects. Canary stages require paired samples, observation windows, telemetry, and quality, safety, latency, error, and cost guardrails.
06 / Lifecycle
Measure the request path
OpenTelemetry records runtime observations and traces. Prometheus stores exported metrics, Tempo stores traces, and Grafana provides inspection. In-process fleet measurements reset when the API process restarts.
07 / Lifecycle
Collect evidence before drawing conclusions
An incident trigger links affected release and runtime evidence. The local deterministic analyzer cites content-addressed evidence and communicates uncertainty; it does not have deployment credentials.
08 / Lifecycle
Derive a safe rollback on the server
The browser sends intent. The coordinator checks persisted incident, route, canary, gate, and release state to choose an eligible known-good target. Route changes and audit events are controlled together.
09 / Lifecycle
Verify recovery separately
Requested, executed, verifying, and recovered are distinct states. The operator click does not fabricate a recovery window. The deterministic E2E scenario supplies observations to test the full recovery path.