Skip to content

fix(ai): fence Responses replay metadata - #120777

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-openai-replay-identity
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-openai-replay-identity

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Related: #120457 and #120729.

What Problem This Solves

This fixes three replay-integrity bugs in the OpenAI Responses path:

  • Tagged encrypted reasoning in the public Responses converter ignored route, session, and authentication provenance, allowing captured ciphertext to be considered for replay outside its originating context.
  • An idless terminal-only compaction could be skipped because two missing IDs compared equal even when no matching compaction had actually been captured.
  • An unsafe optional compaction ID caused otherwise valid exact-route ciphertext replay state to be discarded instead of preserving the state without the malformed ID.

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 03dec8bb3a00 remains 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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Aug 8, 2026
@steipete
steipete marked this pull request as ready for review August 8, 2026 23:52
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Pre-land ClawSweeper disposition for b709858c5ae00269d0361e34f0079d8ae6a4c3dd:

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.

@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head b709858c5ae00269d0361e34f0079d8ae6a4c3dd:

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.

@steipete
steipete merged commit 993a415 into main Aug 9, 2026
180 checks passed
@steipete
steipete deleted the steipete/fix-openai-replay-identity branch August 9, 2026 00:35
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 9, 2026
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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant