GeezerVison is showing github.com — feat(opencode-config): wall-skip slice C — _commandcode-free alias split, wallScope declarations, checker validation by dezren39 · Pull Request #13784 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
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-free alias split (.opencode/opencode.jsonc)
- New provider
_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.json in place, so the alias inherits the same credential source silently.
- The five free models are REMOVED from the
_commandcode catalog. Reasoning: the checker's (and the proxy's) catalog resolution treats an explicit models map 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.
- Every active seat moves:
commandcode-free-plan targets + 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. wallScope declarations — _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 free google.* 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:
- (a) a
wallScope outside {per-model, provider, account} on any provider block fails, naming the provider;
- (b) an
instanceOf alias whose id ends in -free must not declare an apiKey/credential or baseURL (top-level or under options) differing from its base provider's — a differing declaration fails, naming both ids; re-declaring the base's exact value passes;
- (c) a model in a
-free alias's catalog must not also be seated under the paid base id anywhere in model_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.ts never reads provider blocks directly: provider-definition fields reach it only through per-Location readers registered by packages/core/src/config/plugin/model-routes.ts (the membership pattern), and a top-level wallScope is stripped even earlier — the v1 provider migration in packages/core/src/config/normalize.ts decodes with onExcessProperty: "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).
- Suites: route-rules + metered + go-seating test files 72/72 pass (route-rules file alone 40/40, +9 new);
bin/opencode-route-proxy.test.mjs 63/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.
- Live
/api/config read-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-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…lit + wallScope declarations + checker validation (Part of #13693)
Warning
Review limit reached
You'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.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
38aab3de-1a39-499b-846c-34db97116a1a
Commits
-
Reviewing files that changed from the base of the PR and between 8e61b2c and f4932ab.
Files selected for processing: 3
-
.opencode/opencode.jsonc
bin/check-opencode-route-rules.mjs
bin/check-opencode-route-rules.test.mjs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|