Repository navigation
fix(ai): fence Responses replay metadata - #120777
Conversation
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Pre-land ClawSweeper disposition for
Repository policy says a queued or late-publishing re-review refreshes the rating and must not block landing on the publisher. The maintainer accepts this documented ClawSweeper infrastructure gap and considers the exact head ready for the guarded prepare/merge workflow. Any later durable review can refresh the merged-item record. |
|
Land-ready proof for exact head
No paid live-provider rerun was performed under the explicitly accepted proof relaxation; focused owner-boundary tests and exact-head CI are recorded as substitute evidence, not live proof. |
|
Merged via squash.
|
Punchcard-Session: amber-workshop-workshop-36 * origin/main: (28 commits) perf(doctor): keep bundled doctor contract closures dependency-light (#120698) fix(elevenlabs): preserve repeated committed speech segments (#120792) fix(ai): fence Responses replay metadata (#120777) fix(ai): invalidate stale compaction replay (#120786) fix(telegram): clean up every failed webhook startup phase (#120788) fix(codex): preserve configured MCP tools in scheduled turns (#120366) fix(ui): show dev checkout commit lag in Updates (#120769) fix(agents): repair XML-polluted tool names (#113814) fix(discord): remove only the bot own reactions (#120785) fix(macos): complete ChatGPT subscription setup (#120782) fix(plugins): surface safe administrator install warnings (#120783) fix(release): keep upgrade survivor sessions fresh (#120778) fix(providers): preserve realtime tool-result delivery ownership (#120776) fix(plugins): retain incognito scope for embedded session ownership (#120215) fix(elevenlabs): surface realtime provider error events (#120772) fix(agents): preserve exact steering delivery ownership (#120770) fix(telegram): prevent session-count routing slowdown (#120774) fix(agents): preserve authoritative background process outcomes (#120754) test(process): make Linux adapter wiring portable (#120741) fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212) ...
Related: #120457 and #120729.
What Problem This Solves
This fixes three replay-integrity bugs in the OpenAI Responses path:
Why This Change Was Made
The public converter now reuses the canonical reasoning replay metadata validator, terminal duplicate detection requires an exact type, ID, and encrypted-payload match, and optional compaction IDs are canonicalized independently from otherwise valid replay state.
The shipped compatibility from commit
03dec8bb3a00remains preserved: metadata-less public stateless reasoning replay continues to work, while tagged or malformed provenance is fenced. There is no config, protocol, or schema change.User Impact
Newly captured tagged reasoning cannot cross session, authentication, or endpoint boundaries; idless compaction survives terminal recovery; and valid exact-route replay state survives a malformed optional ID.
Evidence
node scripts/run-vitest.mjs packages/ai/src/providers/openai-responses-shared.test.ts packages/ai/src/transports/openai-responses-compaction-replay.test.ts src/agents/transcript-redact.test.ts— 178 tests passed (117 + 61), 0 failed.oxfmt --check, targeted lint, andgit diff --check origin/main...HEADpassed.