Repository navigation
fix(qa): keep Anthropic mock tool ids replay-stable - #123153
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:57 PM ET / August 16, 2026, 03:57 UTC. ClawSweeper reviewWhat this changesThe PR replaces generated Anthropic mock tool IDs with a deterministic 40-character alphanumeric form and updates mock-provider assertions for repeated and distinct IDs. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking code finding. This remains open because it is maintainer-labeled and the exact-head build-artifacts check is still running; the focused QA-only repair otherwise follows the mock-provider owner boundary. Priority: P3 Review scores
Verification
How this fits togetherQA Lab converts shared response events into Anthropic Messages-compatible mock responses. Its scenarios then replay those responses through OpenClaw’s transcript handling to validate compaction and memory causality without production provider traffic. flowchart LR
A[QA scenario events] --> B[Mock provider]
B --> C[Anthropic response adapter]
C --> D[Stable generated tool IDs]
D --> E[Transcript replay]
E --> F[Scenario causality checks]
Decision needed
Why: The patch has no supported correctness blocker, but the protected maintainer label requires explicit human landing handling. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +6. Total +6 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the deterministic conversion at the QA mock producer, retain the repeated-versus-distinct ID regression coverage, and merge only after exact-head CI completes. Do we have a high-confidence way to reproduce the issue? Unclear: the PR records two targeted mock-provider scenario passes, but this read-only review did not execute the current head. Is this the best way to solve the issue? Yes: normalizing at the mock response producer gives every downstream Anthropic response representation the same deterministic ID, and the replay sanitizer preserves the new alphanumeric 40-character shape. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against acbbff19bad0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Punchcard-Session: frost-orchard-lantern-ze
7a510b4 to
72b9f71
Compare
|
Merged via squash.
|
Punchcard-Session: frost-orchard-lantern-ze (cherry picked from commit 3f32569)
Punchcard-Session: frost-orchard-lantern-ze
What Problem This Solves
Fixes an issue where Anthropic QA scenarios could report false tool-call causality failures when generated mock IDs were normalized differently during replay.
Why This Change Was Made
Generated mock Anthropic tool IDs now use the replay-stable canonical
tooluplus 35-character SHA-256 form. Nativetoolu_*IDs remain unchanged.User Impact
No production user-visible behavior changes. Anthropic QA compaction and thread-memory scenarios now evaluate the intended runtime behavior instead of failing on mock-only ID formatting.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/providers/mock-openai/server.test.ts: 267/267 passed.eb7a9ab16e5290398a6e7467707e3c5121c9fec3(current head changes only the Punchcard trailer):compaction-retry-mutating-toolandthread-memory-isolationboth passed.anthropic, modelanthropic/claude-opus-4-8,live=false, fixturemock-openai, and the exact tested SHA.@openclaw/aioverlay; no TypeScript or bundled-plugin rebuild occurred.node scripts/run-oxlint.mjsfor both changed files,oxfmt --check, andgit diff --check: passed.Punchcard-Session: frost-orchard-lantern-ze