check: parity S06, OC2 quota-minimum refusal, #297/#299

Merged
OA
1h ago
+869-153

Check branch for the full CI matrix before main.


Summary by cubic

Brings Pi and OpenCode 2 vault mode into S06 limit-policy parity, and lands #297/#299. Pi previously routed only HTTP 429 responses for migration and holds; confirmed SSE/WebSocket usage limits now follow the same path, acting only on the terminal pi-ai attempt's outcome. OpenCode 2 vault mode refuses with a distinct message when every served account is below the configured quota minimum.

Pi streamed limits

  • codex.rate_limits and response.failed events on SSE/WebSocket confirm usage limits with the same absolute-before-relative reset rule as HTTP 429.
  • Only the terminal pi-ai outcome counts; a provisional limit on a retried send never migrates the session or reports exhaustion.
  • Explicit provider reset evidence is preserved so fitting-cache holds match HTTP 429.

OpenCode 2 and release

  • Vault mode checks routes against the configured minimum and refuses with OPENAI_QUOTA_MINIMUM_REFUSAL_MESSAGE only when zeroing the minimum would admit a route; empty rosters and killswitch-floor failures keep their existing texts.
  • README documents the required one-time re-sign-in after upgrading OpenCode 1 to OpenCode 2.
  • scripts/release.sh re-runs the non-version-file check against the pre-commit tree and pushes branch and tag atomically.