Repository navigation
refactor(qa): share harness drift result construction - #146903
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:41 AM ET / 10:41 UTC (Revision 2). ClawSweeper reviewWhat this changesQA Lab now uses one local constructor for harness comparison drift results and adds table-driven coverage for complete result metadata. Merge readiness✅ Ready for maintainer review Keep open: this member-authored cleanup remains distinct from current main, and the pinned diff introduces no actionable correctness or security findings. Priority: P3 Review scores
Verification
How this fits togetherQA Lab compares captured harness results, including prompts, tool calls, transcripts, and token usage. Its comparison results feed QA diagnostics and confidence checks. flowchart LR
A[Captured harness results] --> B[Normalize comparison cells]
B --> C[Compare prompts and behavior]
C --> D{Drift detected}
D -->|Yes| E[Shared drift result constructor]
D -->|No| F[No-drift result]
E --> G[QA diagnostics and confidence checks]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -56, Tests +106. Total +50 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep drift metadata construction local to the existing comparator while preserving comparison precedence and the distinct no-drift result. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims behavior-preserving cleanup, and source comparison supports that claim; no runtime defect is reported. Is this the best way to solve the issue? Yes: one typed local constructor removes repeated metadata without changing the public surface, comparison policy, or caller contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f3bdcc10d628. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* temp/pr-146799: (70 commits) test: reuse explicit fallback config fixtures (openclaw#146948) fix(computer): return fresh window observations after actions (openclaw#146822) refactor(feishu): remove unreachable requester topic selection (openclaw#146904) improve(gateway): reduce CPU spent listing agent-owned sessions (openclaw#137745) fix(ui): avoid recapturing chat drafts during UI updates (openclaw#146884) fix(ui): show system uptime in the debug overlay (openclaw#146960) fix(retry): honor waits beyond the native timer limit (openclaw#145718) fix(ui): keep chat history idle when run status changes (openclaw#146802) fix(ui): reuse persisted text during chat streaming (openclaw#146831) refactor(qa): share harness drift result construction (openclaw#146903) test(agents): coordinate settings lock contention (openclaw#146949) fix(worker): avoid repeatedly serializing screenshot history (openclaw#146907) fix(secrets): stop buffered upload writes after cancellation (openclaw#146840) perf(doctor): avoid unnecessary state runtime imports (openclaw#146926) improve: reduce compaction request estimation work (openclaw#146961) fix(ci): wait for forwarded avatar imports before assertions (openclaw#146729) perf(workers): skip configured Git author lookups (openclaw#146833) fix: admit borrowed memory writes through the agent database owner (openclaw#146760) fix(discord): prevent voice playback gaps and stale turn controls (openclaw#146798) improve: reduce worktree filesystem stalls and archive syncs (openclaw#146906) ...
* commit 'ccfd2377cd07d1ad3a583ba64d08e29a065f7061': (1587 commits) fix(ui): avoid recapturing chat drafts during UI updates (#146884) fix(ui): show system uptime in the debug overlay (#146960) fix(retry): honor waits beyond the native timer limit (#145718) fix(ui): keep chat history idle when run status changes (#146802) fix(ui): reuse persisted text during chat streaming (#146831) refactor(qa): share harness drift result construction (#146903) test(agents): coordinate settings lock contention (#146949) fix(worker): avoid repeatedly serializing screenshot history (#146907) fix(secrets): stop buffered upload writes after cancellation (#146840) perf(doctor): avoid unnecessary state runtime imports (#146926) improve: reduce compaction request estimation work (#146961) fix(ci): wait for forwarded avatar imports before assertions (#146729) perf(workers): skip configured Git author lookups (#146833) fix: admit borrowed memory writes through the agent database owner (#146760) fix(discord): prevent voice playback gaps and stale turn controls (#146798) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) ... # Conflicts: # test/tsconfig/tsconfig.core.test.agents-other.json # test/tsconfig/tsconfig.core.test.agents-root.json
What Problem This Solves
QA harness comparisons repeat the same result metadata in eight drift branches, making those reports harder to maintain consistently.
User Impact
No user-visible behavior changes. Comparison priority, diagnostics, token deltas, and transcript drift positions are preserved.
Why This Change Was Made
One typed local constructor now owns drift results. The no-drift result still omits drift details and the first drift turn. Production changes: −56 lines; tests: +106 lines.
Evidence
openclaw/ci-gate.openclaw/ci-gate; no permission changes or retries were made.