GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — quota: rewire gatherer to opencode quota subcommand as sole source · Issue #6127 · developing-today/code

quota: rewire gatherer to opencode quota subcommand as sole source #6127

New issue
Copy link
New issue
Copy link
Closed
Closed
quota: rewire gatherer to opencode quota subcommand as sole source#6127
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/refactorCode restructuring with no behavior changemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus:done

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

quota: rewire gatherer to opencode quota subcommand as sole source

Program tracker: #6125. Drew's order 2026-11-05: quota-current.json is populated EXCLUSIVELY from opencode quota --json (fork subcommand tracked in developing-today-forks/opencode, "quota: opencode quota subcommand + per-provider quota functions").

Changes in pm-stack/aggregator/scripts/gather-quota.ts:

  • Replace the in-process OpenChamber module import (OPENCHAMBER_LIB_DIR) with an exec of the subcommand; results flow through the existing quota-gather-map.ts unchanged (same result shape).
  • Retire gatherer-side reads: Turso family-3 direct API read (moves into the subcommand), ClinePass native adapter fill (feat(quota-plane): adapter — ClinePass via dashboard session token #1159 path), file-export producer family (already empty).
  • KEEP: the OpenDesign renewal keeper (family 6 — it maintains the credential the provider's quota function consumes), last-known retention (perf(quota-plane): parallel provider fetching + per-provider timeout budget for the 15-min tick #1268), fail-soft contract (a failed tick never touches quota-current.json), heartbeat + §4 snapshot appends.
  • Subcommand invocation configurable (env, default opencode quota --json) so the tick can target the deployed binary; until the nix switch ships the new system binary, the unit drop-in points at the fork-built binary — remove the drop-in when the switch lands.

Acceptance: one tick whose quota-current.json is regenerated solely from subcommand output (heartbeat names the source), all pools present incl. Mistral dollar budgets; Supabase agent.quota_records rows continue on cadence from the subcommand-sourced file.

Acceptance criteria

  • One gatherer tick regenerates quota-current.json solely from opencode quota --json output, with the heartbeat naming the source; the quota-gather-map flow is unchanged.
  • Gatherer-side reads are retired: Turso family-3 direct read, ClinePass native adapter fill, file-export producer family.
  • Kept intact: the OpenDesign renewal keeper, last-known retention (perf(quota-plane): parallel provider fetching + per-provider timeout budget for the 15-min tick #1268), the fail-soft contract (a failed tick never touches quota-current.json), heartbeat + snapshot appends, and Supabase quota_records cadence.
  • All pools present in the output, including Mistral dollar budgets; the subcommand invocation is configurable via env with the documented default.

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1768

  2. developing-today
    added
    status:in-review
    on Nov 5, 2026
  3. dezren39
    added
    kind/refactorCode restructuring with no behavior change
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: program tracker Direct providers: full-function completeness + quota single-source (opencode quota subcommand) #6125; quota: opencode quota subcommand + per-provider quota functions developing-today-forks/opencode#1718 (the quota subcommand this rewires onto); perf(quota-plane): parallel provider fetching + per-provider timeout budget for the 15-min tick #1268 (retention, kept); feat(quota-plane): adapter — ClinePass via dashboard session token #1159 (the ClinePass adapter path being retired).
    • Still live: verified at intake — the gatherer still imports the OpenChamber module in-process and carries the gatherer-side reads named for retirement.
    • Notes: this is the single-source-of-truth move for quota data: one producer (the subcommand), the existing map/retention/fail-soft contracts preserved. The env-configurable invocation plus the temporary unit drop-in is the migration bridge until the nix switch ships the binary — the drop-in removal needs tracking so it does not become permanent.
    • Risks: a tick that writes a partial file on subcommand failure would poison every consumer; the fail-soft contract (failed tick never touches quota-current.json) is the guard and is named in the acceptance.
    • Suggested approach: exec the subcommand behind the env knob, diff one tick's output against the current producer set (all pools incl. Mistral budgets), then retire the in-process reads.
  5. dezren39
    added a commit that references this issue on Nov 5, 2026

    Merge pull request #6136 from developing-today/quota/gatherer-subcomm…

    97cd55c
  6. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 5, 2026
  7. developing-today
    closed this as completedon Nov 5, 2026
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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/refactorCode restructuring with no behavior changemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.