feat(tui): checkpoint live provider catalogs and routed usage - #5726
Draft
Hmbown wants to merge 8 commits into
Draft
feat(tui): checkpoint live provider catalogs and routed usage#5726Hmbown wants to merge 8 commits into
Hmbown wants to merge 8 commits into
Conversation
Preserve the dependency-coupled OpenRouter/Baseten catalog, route-envelope, pricing, usage-accounting, and UI integration as a reviewable checkpoint. This is not a completion claim: two runtime_api tests still abort with stack overflow, Clippy reports 17 findings, and authenticated provider/CI/product proof remains outstanding.\n\nIncludes the completed Fable dispatch-origin accounting fix and the completed Opus failed-before-turn settlement fix, reconciled by the primary integrator.\n\nCo-authored-by: Claude Fable 5 <noreply@anthropic.com>
added 3 commits
August 30, 2026 01:08
…route tests CI-form clippy repairs on the checkpoint head: - box MailboxMessage::TokenUsage.route (large_enum_variant) with call-site and test updates in subagent_routing and mailbox - needless_return in session_manager lock-file open, doc_lazy_continuation in translation, obfuscated_if_else in provider_lake - route resolver + provider lake alignment for the opencode_zen wire-route expectations (Responses/AnthropicMessages vs ChatCompletions) Verified locally: - cargo test -p codewhale-tui --locked --lib: 11596 passed, 6 failed — the 6 are the pre-existing main-baseline sandbox::read_guard symlink family that #5724 makes whole-fn-unix; zero Slice-A regressions - auto_review_guardian family 7/7 (accounting + denial + cache replay) - web vitest run of crates/tui/src/runtime_web/app.test.mjs: 28/28 - CI-form clippy clean (previous session) Signed-off-by: CodeWhale Bot <bot@codewhale.net>
…ctor The new-thread dialog now loads provider catalogs through collectProviderModelPages (bounded pages, cursor-progress checks, injected fetch boundary). The drift guard still pinned the pre-pagination single-shot URL shape and failed on the rewritten app.mjs. Pin the new contract: dialog calls collectProviderModelPages(provider.id) and the wire endpoint remains /v1/providers/<encoded id>/models. Also rustfmt two files from the previous gate-repair commit (CI 'Check formatting' failure). Verified: node --test crates/tui/tests/runtime_web_client.test.mjs — pass 36, fail 0. cargo fmt --all -- --check clean. Signed-off-by: CodeWhale Bot <bot@codewhale.net>
- runtime_api session tests: build request URLs with the loopback host
spelled literally (127.0.0.1:{port}) instead of an opaque {addr} variable,
so the cleartext-transmission analysis can prove the request never leaves
the host. Behavior unchanged; the listeners already bind 127.0.0.1.
- cost_status / runtime_threads anti-leak assertions: stop interpolating the
credential fragment into the panic message — the assertion message must
not itself become the logging sink it guards against.
Verified: cargo check -p codewhale-tui --tests --locked clean; 194 passed /
0 failed across cost_status + runtime_threads filters; cargo fmt clean.
Signed-off-by: CodeWhale Bot <bot@codewhale.net>
Owner
Author
CodeQL aggregate — per-alert disposition (Slice A)The 14 new high alerts are handled in two classes: Fixed in code (
Founder-dismissal packet — the remaining 2 (
No gate weakening: no query config changes, no inline suppressions, no dismissals by the agent. |
added 2 commits
August 30, 2026 10:02
…en-live-catalog-20260829
…en-live-catalog-20260829
added 2 commits
August 30, 2026 12:59
… stack The Runtime API test harness ran its whole setup (Config load via toml::de visit_map frames, manager construction) and every axum handler on the 2 MiB libtest thread. Config load under a profile and the thread-lifecycle path marginally overflowed that stack in debug builds, aborting the whole lib suite with SIGABRT; CI masked it with RUST_MIN_STACK=16MiB. The harness now builds and serves on a dedicated thread sized with CODEWHALE_MAIN_STACK_BYTES (16 MiB, matching lib.rs runtime workers and the .cnb.yml gate), with the test's sealed env scope adopted onto that thread via env_scope_ticket/join_env_scope so Config::load env reads never block on the mutex the sealing test holds while awaiting setup. The libtest thread keeps only the test body and its HTTP client. Verified with no RUST_MIN_STACK override: the previously aborting reload_config/lifecycle filters and the provider_lake/catalog/guardian/ kernel filters all pass (279 passed; 0 failed). Signed-off-by: CodeWhale Bot <bot@codewhale.net>
…en-live-catalog-20260829
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Draft integration checkpoint. Slice A gate repair (2026-08-30) has landed on this branch; see the receipts below. Remaining red is one founder-gated item (CodeQL dismissal packet posted as a PR comment).
Included
Slice A repair receipts (2026-08-30, commits 84d64a8, b6a14d0, 9f381e0)
collectProviderModelPagescontract (the rewrite was correct; the guard pinned the old URL shape). node --test 36/36.Hosted check state (head 9f381e0)
Pass: Lint, Safety gate, Test (ubuntu/windows), Version drift, link, integrations, DCO, npm smoke, ohos check, GitGuardian, all CodeQL Analyze lanes. Pending at last sweep: Test (macos-latest). Fail: CodeQL aggregate (the 2 documented alerts only).
Still true (unchanged scope)
No-Issue: long-lived integration checkpoint tracked in the Ops takeover plan; slice receipts inline above.