# Real-server reproduction

Linux x86_64; Codex CLI 0.172.0; GPT-6-Luna through an OpenAI-compatible API-key endpoint. No first-party ChatGPT OAuth was used. The same synthetic git project and prompts were used with fresh T3 server databases on both commits. Codex had an isolated home with model_reasoning_effort = "low" at the top level of config.toml.

Base: c9e231cdf3e7324371256f09c9b3918729ca75ca
Head: cb1d090eb36da132ee87e54485aa995443eb944d

Scenarios were not used because replay does not implement Codex's provider-specific load semantics.

## Setup, for each checkout

Install dependencies with `vp i`, then start `T3CODE_DEV_SEED=0 vp run dev`. Pair the browser using that server's printed URL. Use a fresh isolated T3 database, never a copied user database.

The supplied codex-capture.py is a transparent stdio logger, not a simulated provider. It executes the real Codex 0.172.0 binary under `runtime/package/vendor/x86_64-unknown-linux-musl/bin/codex` relative to itself and forwards every input/output line unchanged. It logs only effort fields and token usage, omitting prompts, credentials and paths. Set its executable permission.

In the paired browser console, use this helper (the server URL is the current browser origin):

```js
async function rpc(tag, payload) {
  return await new Promise((resolve, reject) => {
    const w = new WebSocket(location.origin.replace('http', 'ws') + '/ws?orchestrationProtocol=2');
    w.onopen = () => w.send(JSON.stringify({_tag:'Request',id:'1',tag,payload,headers:[]}));
    w.onmessage = e => { resolve(JSON.parse(e.data)); w.close(); };
    w.onerror = reject;
  });
}
await rpc('server.updateSettings', {
  patch: {idleCompaction:'off'},
  providerInstanceMutation: {
    operation:'upsert', instanceId:'codex',
    instance:{driver:'codex', enabled:true, usageAccess:'denied', config:{
      setupMode:'existing', binaryPath:'<absolute path to codex-capture.py>',
      homePath:'<isolated Codex home with API-key auth and Low default>'
    }}
  }
});
```

## Steps actually run

Run commands in each checkout; PROJECT is the same empty synthetic git repository. All CLI commands target that checkout's `.t3`.

```sh
node apps/server/src/bin.ts project add "$PROJECT" --base-dir .t3
node apps/server/src/bin.ts thread start "$PROJECT" 'How many positive divisors does 360 have? Show the prime factorization and reasoning. Do not use tools.' --provider codex --model gpt-6-luna --option reasoningEffort=max --title 'Reasoning effort proof' --wait --json --base-dir .t3
```

Retain the returned threadId and first runId. The initial turn completed on each side. Restart the real server via its development watcher (`touch apps/server/src/bin.ts` changes no source content), and wait for its new listening/recovery messages. Send the next task:

```sh
node apps/server/src/bin.ts thread send "$THREAD_ID" 'How many positive divisors does 840 have? Show the prime factorization and reasoning. Do not use tools.' --wait --json --base-dir .t3
```

Fork the original first completed turn via the paired browser's real dispatch RPC:

```js
await rpc('orchestration.dispatchCommand', {
  type:'thread.fork', commandId:crypto.randomUUID(),
  sourceThreadId:'<original threadId>', targetThreadId:'<unique fork id>',
  sourcePoint:{type:'run',runId:'<first completed runId>'},
  title:'Reasoning effort fork',createdBy:'user',creationSource:'web'
});
```

On head the fork command was dispatched while the resumed turn was in progress; the fork turn itself was sent only after that resumed turn completed. On base the fork was dispatched after the resumed turn completed. Both forks explicitly target the original first completed run, so their history source is the same.

```sh
node apps/server/src/bin.ts thread send "$FORK_ID" 'How many positive divisors does 1260 have? Show the prime factorization and reasoning. Do not use tools.' --wait --json --base-dir .t3
```

Read `wire.jsonl` from the logger after all three turns finish. Save it separately per side.

## Observed

Both sides started at Max and completed all three reasoning tasks. Both persisted the selected Max option. Base omitted model_reasoning_effort when loading resume and fork; real Codex returned Low for both. Head sent Max on both load requests and real Codex returned Max. Following turn/start requests sent Max on both sides. Token usage is included as observation, not as a deterministic assertion of effort.

This is server protocol evidence, not a visual UI claim. It does not establish that the API-key endpoint's model execution has the same reasoning/token behavior as the first-party ChatGPT backend.
