Repository navigation
fix(quota): skip OpenDesign keeper when server answers - #16931
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
1237-B (alpha DRIVE landings, 2026-11-29): claiming for merge under standing authority. Verified by full-diff read against the PR purpose: new shouldRunOpenDesignRenewal(serverQuota) = (serverQuota === null) in opencode-provider-quota.ts; gather-quota main() now fetches the provider-only server quota ONCE, runs the OpenDesign managed-store keeper only when that answer is null, and passes the same read into collectRuns (duplicate fetch removed; fallback behavior when the server is unavailable is byte-for-byte the old path). New test pins both branches (null -> renew, ok answer -> skip). Body evidence: bun test src/opencode-provider-quota.test.ts 4 pass; body honestly records gatherer integration test + typecheck could not start in the fresh worktree (missing deps) — the focused suite is the executed evidence and the diff is small and self-consistent. No author merge gate in body or comments (only CodeRabbit skip notice); head unchanged since filing (18:33:15Z). CI is not a gate (Drew, 2026-11-29). Merging sha-pinned at 5d27bcc. |
Summary
Evidence
bun test src/opencode-provider-quota.test.tsfailed becauseshouldRunOpenDesignRenewalwas not exported (the regression test failed for the missing policy seam).bun test src/opencode-provider-quota.test.ts— 4 pass.web-pushdependency in the fresh worktree. Typecheck likewise could not start: missing Bun type definitions.Merge Danger
Low. When the server answer is unavailable, existing renewal and CLI fallback behavior is unchanged; an available server answer remains authoritative.
{ "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-29T18:33:03Z", "session_id": "ses_e5dd7893763ffelp0zT2qEWV8D", "lane": null, "host": "amd", "worktree": "/home/user/git/worktrees/any-o-5060-opendesign-keeper-fallback", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/worktrees/any-o-5060-opendesign-keeper-fallback", "repo": "developing-today/code", "branch": "lane/any-o-5060-opendesign-keeper-fallback", "sha": "5d27bcc541e84789fbb9c6ea7090c6fe6e28f37f" }, "auth_subject": "oc-code-08", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.