Demonstrate overlay model routing in prototype

This commit is contained in:
2026-09-24 00:19:51 +00:00
parent 2d8b441802
commit 228ac4e26d
5 changed files with 153 additions and 29 deletions

View File

@@ -5,8 +5,7 @@ is a standalone nested Go module, not a production Audita command. Its configura
and profile files are accepted by this prototype only. Design decisions, limitations,
and migration status belong to the [findings](../../docs/roadmap/library-boundary-findings.md).
The current prototype pins ConfigKit v0.4.0; the original v0.3.1 results remain
historical evidence in the findings. Selected overlays are not wired into this
executable yet.
historical evidence in the findings.
From this directory, acquire dependencies once (network access required):
@@ -19,6 +18,8 @@ these commands run offline and require no credentials:
```sh
GOTOOLCHAIN=local GOWORK=off GOPROXY=off GOSUMDB=off go run .
GOTOOLCHAIN=local GOWORK=off GOPROXY=off GOSUMDB=off go run . --overlay testing
GOTOOLCHAIN=local GOWORK=off GOPROXY=off GOSUMDB=off go run . --overlay testing --proposal-profile proposal
GOTOOLCHAIN=local GOWORK=off GOPROXY=off GOSUMDB=off go test ./...
GOTOOLCHAIN=local GOWORK=off GOPROXY=off GOSUMDB=off go test -race ./...
```
@@ -28,6 +29,13 @@ never makes a network connection. Both proposal and assessment first return inva
JSON, then valid output. Expected output reports one accepted correction, four
attempts, zero transient retries, and two structural repairs. It previews a synthetic
transcript correction without writing transcript files.
The default invocation uses `config.yaml` and its base proposal/assessment profiles.
`--overlay testing` loads `overlays/testing.yml`, selecting both testing profiles
from `profiles/`. An explicitly supplied `--proposal-profile` or
`--validation-profile` replaces that role's selection. The output shows the
requested overlay and each effective profile, backend, and model. Synthetic model
IDs demonstrate operator-selected routing; they are not measurements of price,
speed, or model quality.
Tests control provider responses, capacity, and cancellation. They cover positive
repair budgets for both roles, exhausted repair, domain rejection, transient retry,