Skip to content

fix(quota): skip OpenDesign keeper when server answers - #16931

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
lane/any-o-5060-opendesign-keeper-fallback
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
lane/any-o-5060-opendesign-keeper-fallback

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Skip the OpenChamber-managed OpenDesign session keeper once the provider-only OpenCode quota API answers.
  • Keep managed credential renewal only as compatibility maintenance when server route, auth, or credential is unavailable.
  • Reuse the server quota result so the gatherer makes one provider-only request per tick.

Evidence

  • Before: bun test src/opencode-provider-quota.test.ts failed because shouldRunOpenDesignRenewal was not exported (the regression test failed for the missing policy seam).
  • After: bun test src/opencode-provider-quota.test.ts — 4 pass.
  • Local gatherer integration test could not start: missing web-push dependency in the fresh worktree. Typecheck likewise could not start: missing Bun type definitions.
  • Fleet Actions focused-test dispatch was attempted from this pushed ref but returned HTTP 403: Resource not accessible by integration.

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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: 0ebac263-b001-4019-b24d-4354a2bde9b8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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.

@developing-today-fleet
developing-today-fleet Bot merged commit f3e7df8 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/any-o-5060-opendesign-keeper-fallback branch November 29, 2026 19:00
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

1237-B: MERGED — merge commit f3e7df8, mergedAt 2026-11-29T19:00:54Z, confirmed by second gh read (state=MERGED). Sha-pinned at 5d27bcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants