Skip to content

refactor(ai): remove Responses replay test seams - #123825

Merged
steipete merged 1 commit into
mainfrom
test/remove-responses-replay-test-seam
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-responses-replay-test-seam

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The OpenAI Responses transport exposed two replay-preparation helpers through an internal barrel and the global transport test API even though production had no caller for the tag builder and the preparation function had only one local production caller.

Tests then depended on those production exports to manufacture replay fixtures, preserving a broader runtime/test-support surface than the behavior requires.

Why This Change Was Made

The replay preparation function is now private to its owning conversion module. The unused tag builder, its barrel exports, and both global test-API properties are deleted. Tests construct the legacy embedded-provenance fixture directly with the canonical replay metadata builder, so the real compatibility behavior remains covered without a test-only production helper.

Production: +1/-26 (net -25). Tests: +26/-28 (net -2). Total: +27/-54 (net -27).

User Impact

No intended user-visible behavior change. Route-bound encrypted reasoning replay, compaction recovery, retry behavior, and the legacy embedded-provenance compatibility fallback remain covered at their transport boundaries.

Evidence

  • Responses replay owner proof: 4 files, 116 tests passed after the final rebase.
  • pnpm build passed, including the AI package and published transport surfaces.
  • node scripts/check-changed.mjs -- <six changed files> passed the core/coreTests gates locally, including production/test typecheck, lint, dead-export scans, formatting, import cycles, environment budget, max-lines ratchet, and architecture guards.
  • The changed-gate wrapper first attempted Crabbox/Testbox, but no remote provider was ready; trusted-source policy therefore used the documented local fallback.
  • git diff --check passed.
  • Fresh structured autoreview reported no accepted/actionable findings.
  • Exact-head CI passed for db86c68b6f0f7f7946943ca803aeb0d600d95d00: https://github.com/openclaw/openclaw/actions/runs/31839942825

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 14, 2026 20:52
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@steipete
steipete merged commit bf70d5d into main Aug 14, 2026
249 of 252 checks passed
@steipete
steipete deleted the test/remove-responses-replay-test-seam branch August 14, 2026 21:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant