GeezerVison is showing github.com — feat(quota-plane): adapter — OpenCode Go console, per-workspace windows · Issue #1161 · developing-today/code
feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161DescriptionPriority P1 — order 5b. Horizon: Week. Design: quota-plane-design-2026-10-26.md (usage-billing-hub goal files), Stage 2. Parent context: epic #1047. (§2) — on the framework + gatherer from this epic.
OpenCode Go console adapter: console session -> per-workspace window data (5h/weekly/monthly $ windows) for Personal and Lab separately (per-credential, see #1113). Replaces picker-value manual reads. Note the lapse dates (Personal Nov 2, Lab Nov 6; #1118): the adapter must handle a lapsed workspace as a state, not an error.
Acceptance: both workspaces current on the tick until lapse; lapse renders as lapsed.
Acceptance criteria
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 27, 2026 REVIEW FINDING (2026-10-26): this provider's adapter ALREADY EXISTS in OpenChamber's quota module (server/lib/quota/providers). Re-scope from "build adapter" to: wire the existing provider into the quota gatherer (#1151), verify it against the live account on the gatherer host (credential provenance is the open question, per #1155), fix gaps found, and confirm its output shape maps onto quota-current. Keep this issue open until the provider is arriving on the 15-minute tick. dezren39 commented on Oct 28, 2026 Intake review
- Related: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047 (quota plane, Stage 2, order 5b); design
quota-plane-design-2026-10-26.md (usage-billing-hub goal files, §2); feat(usage-hub): per-credential quota rows — stop collapsing same-type logins #1113 (per-credential workspaces), chore(usage-hub): OpenCode Go lapse handling — Personal Nov 2, Lab Nov 6 #1118 (lapse dates); sibling adapters feat(quota-plane): adapter — ClinePass via dashboard session token #1159 (5a), feat(quota-plane): adapter — Claude via claude.ai session (usage API) #1163 (5c), feat(quota-plane): adapter — Command Code via CLI/app credential #1165.
- Still live: a merged-PR search found no resolving PR; the issue carried only
meta/follow-up before this pass.
- Notes: the body states "Priority P1" in prose — normalized here to
priority/high. Its Acceptance line has been expanded into the appended ## Acceptance criteria section (original body preserved verbatim above it).
- Risks: time-sensitive — the Personal workspace lapses Nov 2 and Lab Nov 6, so the lapsed-state handling is not an edge case, it is the near-term steady state; per-workspace credentials (feat(usage-hub): per-credential quota rows — stop collapsing same-type logins #1113) must not be conflated or one workspace's lapse will read as the other's error.
- Suggested approach: build the two-workspace read with lapse as a first-class state from day one; verify against the console for both workspaces before the first lapse date.
- Labels normalized by fleet monitor:
kind/feature, priority/high (P1 in body), effort/m, source/human, status/needs-triage, meta/enriched.
dezren39 commented on Nov 3, 2026 agent-note:v1
task: 2444
lane: code-d
transition: handed_off
state: Task 2444 (triage: quota-plane adapter — OpenCode Go console, per-workspace windows) claimed by lane code-d and assigned execution_lane=opencode by the lane router. Handed off per worker runbook §1b — the opencode claimant session drives it to terminal state. dezren39 commented on Nov 9, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · picked up (direct)
- Agent: queue worker (repo-worker-code), lane code-l
- Session / ID: task 12991
- Found via: queue claim, lane L shift 2026-11-10
- Task: task 12991 for issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 (remainder): a lapsed OpenCode Go workspace renders as state 'error', not 'lapsed', in the quota plane. Fix entryFromResult (quota-gather-map.ts) to map the lapse signal to 'lapsed', extend the QuotaCurrentEntry state union + validators (quota-current.ts), propagate through entriesWithPoolSplits, and update the 'Go lapse' test.
- Fresh check: issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), no status/needs-triage. Lane assignment direct.
- Plan: worktree ~/git/fleet/12991-1161-lapsed (branch queue/12991-1161-lapsed); implement, run the aggregator quota suites with bun, PR, merge, complete.
- Links: task 12991 · issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161
dezren39 commented on Nov 10, 2026 🤖 Agent note · correction — canonical PR #7898 already exists (task 12991, lane code-l)
- Agent: queue worker (repo-worker-code), lane code-l
- Session / ID: task 12991
- On revalidation I found PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898 (OPEN, branch queue/12991-1161-lapsed, by lane code-k, 2026-11-08/09) already implements this feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 fix more broadly (13 files: gather retention, choices invalidation, lifecycle/digest/feed/notifications handling). My independent implementation in worktree ~/git/fleet/12991-1161-lapsed (local commit f3efbe1) was never pushed — the push was rejected against the existing branch, no competing PR was created.
- Action: shepherding PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898 to merge instead: merge current main into its branch, verify the Codex rounds are dispositioned (P2 test #1 fixed in 9b4b6b8 with reply; P2 Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 addressed by e572e55 — verifying), fix/reply the Copilot comments, run the aggregator suite, merge.
- Links: task 12991 · issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 · PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898
dezren39 commented on Nov 10, 2026 🤖 Agent note · done — PR #7898 merged (task 12991, lane code-l)
- Agent: queue worker (repo-worker-code), lane code-l
- Session / ID: task 12991
- Outcome: PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898 MERGED (merge commit 0ccd774, 2026-11-10T21:21:06Z). The lapsed OpenCode Go state now exists end to end: entryFromResult maps the lapse signal to 'lapsed', the quota-current validators/types accept it at entry and window level, pool splits propagate it, the overlay surfaces a lapsed pool (windows cleared, choices recomputed), and retention keeps lapsed rows beside failed siblings.
- Shepherd work this shift: merged current origin/main into the PR branch (one conflict, in quota-current.ts — resolved keeping both main's legError plumbing and the PR's choices-recompute capture at both applyEntry call sites); fixed two Copilot comments (canonicalized provider-id comparison in isGoLapseResult; newestMeasurement docstring); replied on all four outstanding review threads (Codex P2 test #1 already fixed in 9b4b6b8; Codex P2 Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 fixed in e572e55; Copilot digest comment answered with the design reasoning).
- Verification: full aggregator suite on the merged tree — every quota suite green; total 1779 pass / 32 fail vs pristine main's 1761 pass / 31 fail in the same environment (the delta is one load-flaky deriveEpicEta MBT test in an unrelated module; the other 31 are identical pre-existing environment failures, incl. 5s timeouts under fleet-wide laptop load).
- Note: this lane's independent implementation of the same fix (local commit f3efbe1, worktree ~/git/fleet/12991-1161-lapsed) was never pushed and no competing PR was created; it is superseded by PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898 in full.
- Action: closing issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 — its remaining acceptance criterion (a lapsed workspace renders as lapsed, a state not an error) is met by this merge; the adapter criteria were already landed. Task 12991 completes fixed_merged.
- Links: task 12991 · issue feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 · PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|