Skip to content

fork: consume wallScope declarations in the provider gate (WALL-SKIP follow-on from #13693) #13790

Backlog

Description

@dezren39

Follow-on from #13693 (lane WALL-SKIP, slice C2)

PR #13784 landed wallScope declarations in .opencode/opencode.jsonc (_commandcode → provider; _commandcode-free, groq, the four free google.* aliases → per-model), validated by bin/check-opencode-route-rules.mjs. The declarations are currently declarative only: nothing in the fork consumes them yet, because the fork strips the field at decode — packages/core/src/config/normalize.ts (migrateProviders, onExcessProperty: "ignore", no schema field for it), confirmed live in the decoded /api/config read-back after PR #13784 (slice C outcome, #13693 c.7114902291).

Work

  1. Schema preservation: carry wallScope through the fork's provider config schema/decode (values: per-model | provider | account).
  2. Reader: expose it beside the existing membership readers — an onWallScope-style registered reader in packages/core/src/config/plugin/model-routes.ts, next to onMembershipLimits (the pattern model-route.ts already consumes).
  3. Consumption in packages/core/src/model-route.ts: in observeGatheredProviderWall / providerQuotaBlocked, a provider declared per-model never receives a provider-scope gathered gate (its model-scope plants still apply); a provider declared provider or account is judged at that scope even when the reading's shape would infer a narrower one. Absent declaration = today's inference, unchanged.

Acceptance

{
  "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:48:13Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions