Skip to content

fix(qa): await Codex parity tool completion - #181907

Merged
RomneyDa merged 2 commits into
mainfrom
tideclaw/rri-560-codex-parity-completion
Oct 26, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
tideclaw/rri-560-codex-parity-completion

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • wait for the asynchronous Codex tool-completion boundary before comparing QA parity state
  • keep the wait bounded and limited to otherwise-passing Codex scenarios
  • preserve fail-closed behavior when completion never arrives

Why

Codex can report a successful scenario just before its final tool-completion notification is observed, making parity checks race a valid asynchronous completion.

Testing

  • focused QA parity and adjacent suites: 53 passed
  • typecheck, lint, formatting, erasability, and git diff --check

Closes RRI-560.

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for pending Codex tool results before capturing otherwise-passing QA parity scenarios.

Example: Codex persists image-call-2 before its image_generate completion result arrives.

  • Before: Parity capture immediately records tool-result-missing.
  • After: Capture allows up to 10 seconds for the result and retains the failure if it remains missing.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and synchronized regressions are sound, with green exact-head gates; behavioral evidence remains at the in-process harness boundary.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation covers synthetic persisted-session capture rather than a real Codex completion run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: QA operators can receive a missing-tool-result failure when a successful Codex scenario's completion evidence arrives asynchronously.
Reason: The maintainer-authored direction improves evidence accuracy without weakening result-backed coverage or changing product runtime behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a focused QA repair, resolves the earlier timing finding, and has no remaining actionable findings.

Priority: P2
Reviewed head: 08d4d5e20a8e06ea5e4f171d4cbe9b98598ce04f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied run demonstrates late Codex completion through the real QA entry point, and red-on-base regression execution is not shown.
Agent review details

How this fits together

QA Lab collects session transcripts and trajectory events into runtime parity cells used for comparison and tool-coverage reports.

flowchart LR
  A[QA scenario] --> B[Standard suite runner]
  B --> C[Bounded parity capture]
  D[Session transcripts] --> C
  E[Trajectory events] --> C
  C --> F[Comparison and coverage]
Loading

Technical review

Best possible solution:

Keep completion settling in the existing parity collector, preserving session ownership and failures for unresolved results.

Do we have a high-confidence way to reproduce the issue?

Source establishes that capture can observe an invocation before its completion result; this read-only review ran no target code.

Is this the best way to solve the issue?

The bounded reread is a focused repair at the existing capture owner, and the two regressions protect late completion and permanently missing results.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 05bc4bf5c9fc.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c66f0d3 adds extensions/qa-lab/src/suite-run-standard.ts:308 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c66f0d340be6; files: extensions/qa-lab/src/suite-run-standard.ts)

PR surface

Source +38, Tests +119. Total +157 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 40 2 +38
Tests 1 120 1 +119
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 160 3 +157

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: False missing-result failures affect internal QA and release validation without a demonstrated shipped-runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Optionally provide redacted output from the real QA entry point showing a late Codex result captured before comparison.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-23T20:40:47.720Z sha e8371fd :: needs changes before merge. :: [P3] Control the regression clock instead of racing wall time

Reviewed October 23, 2026, 9:50 PM ET / October 24, 2026, 01:50 UTC (Revision 2).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@RomneyDa
RomneyDa merged commit 4acca27 into main Oct 26, 2026
131 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/rri-560-codex-parity-completion branch October 26, 2026 03:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* fix(qa): await Codex parity tool completion

Co-authored-by: RomneyDa <[email protected]>

* test(qa): synchronize pending parity capture

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants