Skip to content

fix: make live harness planning QA fail closed - #109282

Merged
RomneyDa merged 4 commits into
mainfrom
fix/qa-live-harness-planning-proof
Jul 17, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/qa-live-harness-planning-proof

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 16, 2026 •

Copy link
Copy Markdown
Member
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where live harness planning QA could run outside its intended provider lane, accept stale evidence from an earlier retry or an emitted-but-failed tool call, and lose structured Codex plan updates before the terminal transcript was written.

Why This Change Was Made

The three scenarios require the live-frontier openai/gpt-5.6-luna lane and declare their runtime through the suite-owned selection seam. The canonical transcript summary now checkpoints its event cursor per attempt, correlates successful tool results, and exposes assistant mirrors; Codex structured plan updates remain owned by the existing projector. Executable flow tests discover the scenarios from their taxonomy-backed YAML coverage metadata, prove current-attempt success, and reject stale prior-attempt evidence without maintaining a parallel scenario-id registry.

This PR is AI-assisted. The implementation, upstream Codex protocol behavior, focused tests, and live artifacts were reviewed directly.

User Impact

No direct end-user behavior changes. Maintainers get fail-closed, runtime-specific live QA evidence for Codex and OpenClaw planning behavior, including per-attempt transcript isolation, same-turn App Server correlation, and successful tool completion.

Evidence

  • Final branch base/head: a70d583f2461a0313735d3e0331b9eafd1931a7b / e5fe4bee92aafa637c8749ef0e85d656956febc1. fix: restore lint after duplicate docs sync declarations #109383 canonical docs-sync fix 1f5299da7e1636c625e3f77790fedb2deee5f78f is present in the base.
    • Exact 10-file task scope; no conflicts or contamination.
    • The three proven implementation patch IDs remain unchanged: 649f86df..., 60525775..., 6e89e984.... The taxonomy-discovery correction is isolated in patch d944814a...; final binary diff fingerprint b48e67d75e94261031845f05b818ccbc95fe2ee0ebbbe465b7478e0c383cab49.
    • Runtime, projector, transcript-summary, and scenario YAML blobs are unchanged from the credentialed proof; only two already-owned test files changed to remove the parallel scenario-id registry and ID-name runtime inference.
  • Fresh final-head Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/29535387110
    • Provider/lease: blacksmith-testbox / tbx_01kxpcjna8e88v1n2hg0n06s4v (harbor-hermit), stopped after proof.
    • Focused proof passed 164 Codex projector tests plus 111 QA suite/session/flow/catalog/lane tests (275 total).
    • Remote hashes for the runtime and scenario YAML task files match the proven blob vector; the later correction changes test discovery only.
  • Fresh credentialed run passed all three exact scenarios together using live provider/model openai/gpt-5.6-luna, --fast --thinking medium. Transport was the internal non-live qa-channel; no external channel was invoked.
    • codex-harness-no-meta-leak: runtime codex; agent run a8c173e8-3af3-45e9-b5ca-f66878a938b0; App Server turn 019f6ccb-3c53-72e2-8806-16a51ade55c9; same-turn internal/plan mirror 019f6ccb-3c53-72e2-8806-16a51ade55c9:plan; artifact n/a; exact visible reply QA_LEAK_OK.
    • medium-game-plan-codex-harness: runtime codex; agent run d00772a7-6aaf-46f3-b770-ec39a5f7447c; App Server turn 019f6ccb-3cb0-7dd1-a519-22dd584a1f7e; same-turn plan 019f6ccb-3cb0-7dd1-a519-22dd584a1f7e:plan; artifact /tmp/openclaw/openclaw-qa-suite-ebozCN/workspace/star-garden-defenders-codex.html (13,191 bytes); exact visible reply: Built [star-garden-defenders-codex.html](/tmp/openclaw/openclaw-qa-suite-ebozCN/workspace/star-garden-defenders-codex.html).\n\nImplemented:\n\n- Canvas arcade loop with `requestAnimationFrame`\n- Keyboard and pointer/touch controls\n- Player movement and shooting\n- Enemy waves with varied enemy types\n- Collisions, enemy projectiles, lives, score, and bloom meter\n- Rapid-fire and shield power-ups\n- Pause/resume and game-over states\n- Visible Restart button wired to `restartGame()`\n- Inline CSS and no external dependencies\n\nInline JavaScript syntax check passed.
    • medium-game-plan-openclaw-harness: runtime openclaw; agent run 1b56c02f-17bc-42b0-bc1a-dc88510ea4ba; App Server turn n/a; plan signal update_plan:success:3; artifact /tmp/openclaw/openclaw-qa-suite-IGsyHN/workspace/star-garden-defenders-openclaw.html (14,948 bytes); exact visible reply: Created `./star-garden-defenders-openclaw.html`.\n\nImplemented:\n- Canvas-based `requestAnimationFrame` arcade loop\n- Keyboard and pointer/mouse controls\n- Player movement and aiming\n- Enemy waves with scouts and brutes\n- Shooting, collisions, particles, and enemy destruction\n- Shield and rapid-fire power-ups\n- Score, health, wave number, best score\n- Pause and game-over states\n- Visible Restart button wired to `restartGame()`\n- Responsive inline styling and on-screen controls\n\nEmbedded JavaScript syntax validation passed.
  • Fresh taxonomy-discovery autoreview after the flow-type narrowing fix: .agents/skills/autoreview/scripts/autoreview --mode uncommitted; Codex gpt-5.6-sol, high reasoning, one 4,156-byte pass, no accepted/actionable findings, patch-correct confidence 0.92.
  • Local focused QA proof passed 64 tests across the catalog, lane-selection, and executable flow-runner files; git diff --check passed.

@RomneyDa
RomneyDa force-pushed the fix/qa-live-harness-planning-proof branch 2 times, most recently from 0b042fb to 5ea8ac5 Compare July 16, 2026 21:20
@RomneyDa
RomneyDa force-pushed the fix/qa-live-harness-planning-proof branch from 5ea8ac5 to 38e3bea Compare July 16, 2026 22:09
@RomneyDa
RomneyDa force-pushed the fix/qa-live-harness-planning-proof branch from 38e3bea to 71b97e0 Compare July 16, 2026 22:53
@blacksmith-sh

This comment has been minimized.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. P2 Normal backlog priority with limited blast radius. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 17, 2026, 7:23 PM ET / 23:23 UTC.

Summary
The branch pins three planning QA scenarios to the intended live provider/runtime lane, scopes transcript evidence to the current attempt, correlates successful tool calls, and preserves Codex turn-plan mirrors for fail-closed assertions.

PR surface: Source +85, Tests +391, Other +25. Total +501 across 10 files.

Reproducibility: no. high-confidence independent reproduction was run in this review because the read-only local shell failed before commands could execute. The supplied scenarios and focused tests make the affected current path source-reproducible, and the PR body includes a live after-fix run.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: extensions/codex/src/app-server/event-projector.test.ts, serialized state: extensions/qa-lab/src/scenario-catalog.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Have an independent QA/Codex owner inspect the exact App Server event contract at this head and confirm the planned fail-closed assertions.

Risk before merge

  • [P1] An exact-head reviewer still needs to inspect the sibling Codex App Server protocol/runtime source required by repository policy before relying on the new turn-plan and mirror assertions as a merge verdict.
  • [P1] The PR’s principal effect is stricter live-QA acceptance; an owner should confirm the intended fail-closed behavior remains limited to these taxonomy-backed scenarios rather than creating avoidable flake or lane exclusion.

Maintainer options:

  1. Decide the mitigation before merge
    Retain the suite-owned taxonomy/lane selection and per-attempt transcript assertions, then land only after an owner verifies the exact Codex event contract and confirms the three scenarios remain the intended fail-closed live-QA coverage.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] A member-authored, maintainer-labeled Codex/QA change requires independent exact-head contract review rather than an automated repair or cleanup action.

Maintainer decision needed

  • Question: Should a QA/Codex area owner complete the required exact-head Codex protocol review and accept these stricter planning-QA assertions for merge?
  • Rationale: Repository policy requires direct inspection of the sibling Codex source for a Codex-related merge verdict, while this member-authored PR is also protected from automated cleanup by its maintainer label.
  • Likely owner: RomneyDa — They authored the focused QA/Codex implementation and can provide the immediate rationale, though an independent area reviewer should make the merge decision.
  • Options:
    • Complete exact-head owner review (recommended): Verify the relevant Codex App Server event semantics and merge if the stricter scenario evidence matches the intended live-QA contract.
    • Pause for contract adjustment: Keep the PR open if the owner finds that turn-plan or mirror events are not stable enough to serve as required live-QA proof.

Security
Cleared: The supplied diff is limited to QA scenarios, tests, and extension-local transcript/projector logic; it adds no dependency, workflow, permission, secret, package-resolution, or artifact-execution surface.

Review details

Best possible solution:

Retain the suite-owned taxonomy/lane selection and per-attempt transcript assertions, then land only after an owner verifies the exact Codex event contract and confirms the three scenarios remain the intended fail-closed live-QA coverage.

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

No high-confidence independent reproduction was run in this review because the read-only local shell failed before commands could execute. The supplied scenarios and focused tests make the affected current path source-reproducible, and the PR body includes a live after-fix run.

Is this the best way to solve the issue?

Unclear pending the required direct Codex protocol inspection. The design appears to keep ownership in the existing projector, scenario catalog, and QA session-summary seams rather than adding a parallel runtime registry.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a4287653375b.

Label changes

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded QA-harness correctness improvement with maintainer-facing impact but no direct end-user outage, data loss, or security signal.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a member-authored QA-infrastructure PR, so the external-contributor proof gate does not apply; nevertheless, the PR body supplies live credentialed scenario output and focused Testbox evidence.
Evidence reviewed

PR surface:

Source +85, Tests +391, Other +25. Total +501 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 2 101 16 +85
Tests 5 406 15 +391
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 298 273 +25
Total 10 805 304 +501

What I checked:

  • Current patch surface: The reviewed PR head changes the Codex reasoning projector, QA session transcript summarization, scenario discovery/lane tests, and three planning scenario YAML files; it does not add dependencies, user configuration, workflows, or publish/install behavior. (extensions/qa-lab/src/suite-runtime-agent-session.ts:46, e5fe4bee92aa)
  • Current contract boundary: The root and extension guidance require exhaustive dependency inspection for Codex-related behavior and keep bundled extension production code within its plugin boundary; the proposed changes remain within the Codex and QA Lab extension/test surfaces. (AGENTS.md:4, a4287653375b)
  • After-fix behavior evidence: The PR body records a fresh credentialed run of all three exact scenarios using openai/gpt-5.6-luna plus focused Testbox proof, including same-turn Codex plan mirrors and successful OpenClaw update_plan evidence. (e5fe4bee92aa)
  • Release state: The current release is v2026.7.1 at 2d2ddc4; this PR head is newer and remains unmerged, so the change is neither on current main nor shipped. (2d2ddc43d0dc)
  • Related work separation: The only provided related PR, fix: restore lint after duplicate docs sync declarations #109383, was merged for a duplicate docs-sync declaration and is stated to be in this branch’s base; it does not supersede the planning-QA behavior here. (1f5299da7e16)

Likely related people:

  • RomneyDa: The current head consists of four focused QA/Codex commits by this repository member, including the per-attempt evidence and taxonomy-discovery revisions; no independent current-main ownership trail could be collected after the local read-only shell failed. (role: recent QA/Codex contributor; confidence: low; commits: 4fe5c76aa619, 71b97e000583, e5fe4bee92aa; files: extensions/qa-lab/src/suite-runtime-agent-session.ts, extensions/codex/src/app-server/event-projector-reasoning.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-17T00:30:28.563Z sha 71b97e0 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/qa-live-harness-planning-proof branch from dd7680f to e5fe4be Compare July 17, 2026 23:19
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jul 17, 2026
@RomneyDa
RomneyDa merged commit 14caaf3 into main Jul 17, 2026
131 of 133 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-live-harness-planning-proof branch July 17, 2026 23:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
* test(qa): prove live harness planning signals

* test(qa): satisfy scenario static checks

* test(qa): scope planning evidence per attempt

* test(qa): derive planning scenarios from coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

1 participant