You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fd63be9
Browse filesBrowse the repository at this point in the historyBrowse files
feat: verifier-gated model router (run cheap → verify → escalate)
Run a cheap model first, verify the result deterministically (`dbt build`), and
escalate to a stronger model only when verification fails. Flag-gated
(`ALTIMATE_ROUTER`), default off — the normal single-model path is unchanged.
- `router/verifier.ts` — deterministic `Verdict` from `dbt build`/`dbt test`;
spoof-proof (last-summary + exitCode backstop); pluggable `Impl`; honest
`unverifiable` state when a gate cannot run
- `router/router.ts` — escalation ladder; per-tier exception handling so a
transient tier failure escalates instead of aborting; env ladder override
- `router/policy.ts` — static default ladder or an altimate-API-served policy
(key-gated, `AbortSignal` timeouts, `sanitizeTiers` validation + cap)
- `router/verdict.ts` — verdict envelope (schemaVersion, evidence hash, signer seam)
- `cli/cmd/run.ts` — orchestrator: routes only verifiable (dbt) workspaces;
non-dbt projects run once with the user's model (no silent downgrade)
- 51 unit tests + 3 env-gated E2E suites (real dbt / real model / real network)
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments