Repository navigation
feat(opencode-config): wall-skip slice C — _commandcode-free alias split, wallScope declarations, checker validation - #13784
Merged
Merged
Conversation
…lit + wallScope declarations + checker validation (Part of #13693)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
Open
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.
Part of #13693 — lane WALL-SKIP, slice C (config/checker). No other issue is closed or referenced for closure by this PR.
What lands
1.
_commandcode-freealias split (.opencode/opencode.jsonc)_commandcode-free:instanceOf: "_commandcode", catalog containing ONLY the five free models (poolside/laguna-s-2.1-free, inclusionai/ling-3.0-flash-sante:free, inclusionai/ling-3.1-flash:free, reflection/beam:free, stealth/glyph-cluster:free). No credential or endpoint declared — exactly like the base, the native provider reads~/.commandcode/auth.jsonin place, so the alias inherits the same credential source silently._commandcodecatalog. Reasoning: the checker's (and the proxy's) catalog resolution treats an explicitmodelsmap as authoritative for that provider id, so leaving them in the paid block would keep_commandcode/<free model>a servable, tracked leaf — the split would be seats-deep only. With them removed, the paid alias cannot serve them at all.commandcode-free-plantargets + weights now name_commandcode-free/...(a full-config grep found no other active seats; the dormant commented beam-plan seat was re-pointed to the alias as well). Paid legs (the DeepSeek pools etc.) stay on_commandcode, untouched.2.
wallScopedeclarations —_commandcode→"provider"(its $10 monthly plan window binds provider-wide — the reason its free models needed the alias),_commandcode-free→"per-model",groq→"per-model"(per-model-per-org), the four freegoogle.*aliases (muse, gen-lang, personal, drew) →"per-model"(per-model-per-project; the PAYG google.developing-today is deliberately NOT declared). A dated comment at the first declaration (google.muse) explains the field: absent = inferred scope; values per-model|provider|account; consumed as the override when inference gets a provider wrong.3. Checker validation (
bin/check-opencode-route-rules.mjs+ tests) — all three rules landed:wallScopeoutside {per-model, provider, account} on any provider block fails, naming the provider;instanceOfalias whose id ends in-freemust not declare an apiKey/credential or baseURL (top-level or underoptions) differing from its base provider's — a differing declaration fails, naming both ids; re-declaring the base's exact value passes;-freealias's catalog must not also be seated under the paid base id anywhere inmodel_routes(targets, object targets, and weights keys are all scanned) — implemented in full, not fixture-only.Tests: each rule fires on a bad fixture and passes on a good one; the canonical-config test passes on the real config with the split in place.
4. Fork consumption — NOT landed; recorded as slice C2 (see the outcome comment on #13693 for the exact hook point). The fork's
model-route.tsnever reads provider blocks directly: provider-definition fields reach it only through per-Location readers registered bypackages/core/src/config/plugin/model-routes.ts(the membership pattern), and a top-levelwallScopeis stripped even earlier — the v1 provider migration inpackages/core/src/config/normalize.tsdecodes withonExcessProperty: "ignore", so the field never survives into the decoded entries any reader could see. Consuming it therefore needs new plumbing (schema/migration preservation + a new registered reader + the gate consult), which the slice brief explicitly excludes.Verification
bin/check-opencode-route-rules.mjs+bin/check-opencode-metered-providers.mjs: exit 0 on the new config; tier coverage counts unchanged from main (42/42/6/8).bin/opencode-route-proxy.test.mjs63/63 pass against the new config.bin/check-opencode-go-seating.mjs(the live-evidence checker) fails at baseline on main for unrelated live-traffic reasons (Go leaves without a successful route attempt in 24h) — unchanged by this PR; its test suite passes./api/configread-back after merge + laptop config sync is recorded in the outcome comment on route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693.Coordination: claim posted on #13693 before editing; #13693 + #13677 comments and open config PRs re-checked before opening this PR and again before merging. KEY-CREATE-2's config PR #13777 (under #13677) merged while this slice was being claimed and is included in this branch's base (origin/main 57597b8) — the premise was re-verified on that main before editing.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T21:36:41Z", "session_id": null, "lane": null, "host": "amd", "worktree": "/home/user/wt-wallskip-config", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/wt-wallskip-config", "repo": "developing-today/code", "branch": "lane-wallskip-config", "sha": "f4932ab1c103306411e15188341523875a9fcb80" }, "auth_subject": "oc-code-02", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.