Skip to content

feat(locomo): add Codex subscription evaluator - #382

Merged
fazpu merged 1 commit into
mainfrom
feat/locomo-codex-subscription
Sep 7, 2026
Merged

fazpu merged 1 commit into
mainfrom
feat/locomo-codex-subscription

Conversation

@fazpu

@fazpu fazpu commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

Problem

LoCoMo answer generation and judging could only use API-backed provider credentials. We want an opt-in path that can use an existing ChatGPT Codex subscription without copying OAuth material, reading the Codex auth file, issuing an API key, or replacing the existing retrieval loop.

Scope

  • add a benchmark-only provider built on the official openai-codex Python SDK and pinned runtime
  • add the separately fingerprinted full-v22-codex-subscription protocol for answer and judge
  • compose providers per stage so answer and judge do not instantiate unrelated OpenRouter or Vertex credentials
  • preserve OpenRouter embeddings and ingest preflight routing
  • add strict-schema, fail-closed action, accounting, SDK-boundary, protocol, routing, fresh-ingest, and replay tests
  • document the non-binding analysis, binding benchmark amendment, operator usage, and Antigravity review

Important decisions

The LoCoMo runner remains the only retrieval agent. Codex receives one schema-constrained prompt at a time and no native RememberStack tools. Every call uses a new empty working directory, an ephemeral thread, deny-all approvals, and the pinned read-only policy whose wire form has networkAccess=false; any agent-action item still fails the call. Authentication remains inside Codex app-server and the adapter accepts ChatGPT account type only.

The variant pins gpt-5.6-luna, reasoning low, and temperature=null. It retains v22 prompts, schemas, call limits, tools, judge rubric, and scoring, but is intentionally a distinct protocol because provider controls differ.

ChatGPT provides token counts but no per-turn USD charge, so usage records carry turn-total tokens and cost_usd=0 as the reported marginal amount. This is not a claim that the subscription seat is free.

Sources inspected

Validation

  • Ruff: pass
  • Pyright: 0 errors, warnings, or informational diagnostics
  • focused adapter, routing, protocol, and runner tests: 131 passed
  • full suite excluding one reproduced clean-main MIME assertion: 1,680 passed, 742 skipped, 1 deselected
  • full suite without deselection: the same unrelated baseline failure where macOS detects a temporary note.md as application/octet-stream instead of text/markdown
  • real conv-42/qa/0001 answer and independent judge integration against the processed Hetzner PostgreSQL/P3 store: both stages completed, retrieval and token accounting worked; the generated answer was incomplete and the judge correctly returned WRONG
  • Antigravity round one found the ingest-preflight control mismatch and accounting issues; all were fixed. Round two independently rechecked the branch and returned APPROVE with no remaining actionable findings.

Limitations

  • experimental smoke/development provider variant, not the default publication protocol
  • Codex agent scaffolding has high input-token overhead
  • subscription quota is bounded by run call ceilings and service limits, not the USD ledger
  • synchronous SDK calls do not expose a harness turn deadline
  • when the SDK raises a failed turn before returning its usage event, the real error is retained but no partial usage is fabricated
  • the SDK adds a large pinned CLI binary to the benchmark extra only

Follow-up

Measure answer quality, latency, and subscription quota consumption over a larger smoke slice before considering publication use. If unattended publication is desired, add a supported cancellation deadline or a bounded codex exec subprocess fallback.

@fazpu
fazpu force-pushed the feat/locomo-codex-subscription branch from 9128915 to 421d511 Compare September 6, 2026 22:06
@fazpu
fazpu force-pushed the feat/locomo-codex-subscription branch from 421d511 to f817584 Compare September 7, 2026 07:50
@fazpu
fazpu merged commit c0f5c01 into main Sep 7, 2026
10 checks passed
@fazpu
fazpu deleted the feat/locomo-codex-subscription branch September 7, 2026 07:59
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.

1 participant