Skip to content

port(go): Spark-independent Codex quota scope from #599 #663

Description

@Wibias

Context

Transition workflow for #599 (scope Spark cooldowns to its native quota).

Why a port is needed

Go already has Codex routing and cooldowns (go/internal/codex/routing.go, routing_health.go, auth_context.go) and knows gpt-5.3-codex-spark in the catalog, but it does not yet have the #599 CodexQuotaScope model (shared vs spark), scoped health maps, or independent pool/affinity behavior so Spark reset-derived cooldowns stay out of the shared Terra/Luna native scope.

Source commits

  • 20cdc0d1fix: scope Spark cooldowns to its native quota (#599)

Scope (suggested)

Port against the current TS oracle on dev2-go:

  • src/codex/routing.ts (CodexQuotaScope, NATIVE_MODEL_QUOTA_SCOPES, scoped health/pools/affinity)
  • src/codex/auth-context.ts
  • src/server/responses/core.ts / compact.ts metadata plumbing
  • matching tests under tests/codex-*.test.ts and responses compaction/failover coverage

Done when

Go keeps Spark reset-derived cooldowns in the Spark scope while preserving shared Terra/Luna behavior and account-wide Retry-After/default cooldowns, with Go tests green on dev2-go.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions