Attach the O2 route contract to an exactly configured model route #224

Merged
weichen merged 2 commits from feature/fast-slow-o2-i2-route-contract into main 2026-10-20 08:06:49 +00:00
Owner

Why: Fast/slow O2 increment I2. Backend can attach Agent-Native's RouteContractEOF (I1, Agent-Native 2fc66be) to one exactly configured OpenAI-chat route, so a tool-call stream that ends without [DONE] but satisfies C1-C9 is released. Design/plan passed user stage 4/5 on 2026-10-20; I1 passed stage 6.

Evidence (SELF, host @e1a90a5): deps/agent-native pinned to 2fc66be; gofmt; git diff --check; go build ./...; go vet ./internal/runtime ./internal/settings; go test ./internal/runtime ./internal/settings (and -race for RouteContract tests) all ok. CI (GATE): this PR. Independent review: see Dev task card.

Impact: Three system-scope settings models.routeContractEOF.model/.baseUrl/.identitySha256 (any empty = off, the default). All five openLLMClient call sites go through openRouteClient, which decides per resolved (model, base) only. No behaviour change unless configured. Dev repin (I3) and the paid probe (P1) are separate.

Refs: Agent-Native#48; Dev task feature/fast-slow-o2-i2-backend; plan docs/superpowers/plans/2026-10-19-fast-slow-o2-route-contract-eof-plan.md section 3. Draft pending user stage 6 review.

Why: Fast/slow O2 increment I2. Backend can attach Agent-Native's RouteContractEOF (I1, Agent-Native 2fc66be) to one exactly configured OpenAI-chat route, so a tool-call stream that ends without [DONE] but satisfies C1-C9 is released. Design/plan passed user stage 4/5 on 2026-10-20; I1 passed stage 6. Evidence (SELF, host @e1a90a5): deps/agent-native pinned to 2fc66be; gofmt; git diff --check; go build ./...; go vet ./internal/runtime ./internal/settings; go test ./internal/runtime ./internal/settings (and -race for RouteContract tests) all ok. CI (GATE): this PR. Independent review: see Dev task card. Impact: Three system-scope settings models.routeContractEOF.model/.baseUrl/.identitySha256 (any empty = off, the default). All five openLLMClient call sites go through openRouteClient, which decides per resolved (model, base) only. No behaviour change unless configured. Dev repin (I3) and the paid probe (P1) are separate. Refs: Agent-Native#48; Dev task feature/fast-slow-o2-i2-backend; plan docs/superpowers/plans/2026-10-19-fast-slow-o2-route-contract-eof-plan.md section 3. Draft pending user stage 6 review.
weichen added 1 commit 2026-10-20 06:31:10 +00:00
agent-exec transport 8eed31d0d96c50c2dfb6a834d78cb5e9/d97e9636ff2e
governance / governance (pull_request) Successful in 18s
ci / vet-and-test (pull_request) Successful in 1m29s
e1a90a5d31
weichen added 1 commit 2026-10-20 07:59:22 +00:00
agent-exec transport 4792e7917ab99a9f3fd0e21823af20c0/c578cddeabbd
governance / governance (pull_request) Successful in 21s
ci / vet-and-test (pull_request) Successful in 1m26s
16f98b8e4f
weichen marked the pull request as ready for review 2026-10-20 08:06:46 +00:00
weichen merged commit c16495006d into main 2026-10-20 08:06:49 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#224