Skip to content

Add opt-in Gemini JSON output to memory experiments - #300

Merged
0thernet merged 1 commit into
mainfrom
codex/memory-api-json-mode-20261001
Oct 1, 2026
Merged

0thernet merged 1 commit into
mainfrom
codex/memory-api-json-mode-20261001

Conversation

@0thernet

@0thernet 0thernet commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Outcome

The memory benchmark transport can request JSON output from Gemini with outputFormat: "json". This sets the provider's JSON MIME option while preserving the existing response, schema and source checks. Omitting the option preserves the previous request and capture bytes; xAI bindings reject the option.

Campaign v2/v3 recovery now validates the saved request body and reserved amount when reconstructing a missing local receipt. This prevents a claimed request hash alone from accepting an altered capture.

Contract impact

Adds the benchmark-only request/capture protocol oh.memory-lab-api-json.v1. JSON requests include 38 extra body bytes in context and cost calculations. The existing request protocol remains unchanged for bindings without the option. Wave plans, journals, locks, spending ledgers, stored Oh data and packaged library interfaces keep their existing formats.

Verification

  • 147 focused API and campaign tests passed before the final inherited-property correction. After that correction, all 94 affected API tests passed with 2,915 assertions; script types and all 52 cost surfaces passed.
  • Independent AI source review found no remaining issues. Regression coverage includes literal legacy bytes, explicit opt-in, inherited-property rejection, capture protocol pairing, serial/wave replay and altered campaign captures.
  • Package dry-run inspected: 560 files, 14.51 MB unpacked; no credentials or private research data.
  • Required PR CI passed on the exact head and current base; all 16 integrated-main checks passed, including package installation and native builds.

PR CI: https://github.com/hraness/oh/actions/runs/36901753064 — tested merge cff3a54dcc62b01ef080c565eff215358e2fdb9c, head 6abf81bda0457b625a73dea545b0481fe3f6e8db, base a1f67abbebc68999f387c7d40252dfd32509c4e1. Integrated main: 290de0c005b047b51c1c99e10d89f5477bd01975, https://github.com/hraness/oh/actions/runs/36902482111. The reviewed head and integrated main have identical Git trees.

Tests use invented responses. Live qualification and benchmark results remain separate from this source change.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
oh-beam-reader-runtime Ready Ready Preview Oct 1, 2026 5:46pm UTC
oh-computer Ready Ready Preview Oct 1, 2026 5:46pm UTC
oh-vercel-wasm Ready Ready Preview Oct 1, 2026 5:46pm UTC

Request Review

@0thernet
0thernet merged commit 290de0c into main Oct 1, 2026
20 checks passed
@0thernet
0thernet deleted the codex/memory-api-json-mode-20261001 branch October 1, 2026 17:51

This branch was successfully deployed

3 active deployments
Preview – oh-beam-reader-runtime — 6abf81bd Deployed Oct 1, 2026 by vercel[bot]
Preview – oh-vercel-wasm — 6abf81bd Deployed Oct 1, 2026 by vercel[bot]
Preview – oh-computer — 6abf81bd Deployed Oct 1, 2026 by vercel[bot]
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