Skip to content

fix(qa): OpenClaw harness planning check fails after progress-card migration - #129143

Merged
steipete merged 1 commit into
mainfrom
fix/qa-openclaw-progress-card-planning
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/qa-openclaw-progress-card-planning

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the canonical live OpenClaw harness QA scenario completed its requested game but still failed after the planning tool migrated from update_plan to progress_card.

Why This Change Was Made

Updates the existing OpenClaw scenario and its current-attempt/stale-attempt fixture to require the canonical progress_card signal. The runtime and production tool surfaces are unchanged.

The regression was made visible by #125125, which replaced the OpenClaw planning tool without migrating this live scenario. The original fail-closed planning scenario came from #109282.

User Impact

No end-user runtime behavior changes. Maintainers regain a trustworthy live dual-harness gate for OpenAI GPT-5.6 Luna.

Evidence

  • Before: live pair at 02a5be389240 — Codex passed; OpenClaw built the artifact but failed with missing OpenClaw update_plan signal.
  • Exact-head live OpenAI pair at ca57f4bd9d5:
    • 2 total, 2 passed, 0 failed, 0 skipped
    • Codex runtime recorded a real App Server plan mirror and produced a 12,083-byte game.
    • OpenClaw runtime recorded three successful progress_card calls and produced a 14,754-byte game.
  • node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-flow-runner.test.ts — 22 passed.
  • node scripts/check-changed.mjs -- <changed files> — full fail-safe changed-file gate passed, including all typechecks, lint, dead-export scan, and import-cycle checks.
  • git diff --check origin/main...HEAD — passed.

AI-assisted. The change and live evidence were reviewed by the PR author; the isolated autoreview credential scan passed, but standalone Codex review could not authenticate to the upstream Responses endpoint in the orb, so repo-native review artifacts and exact-head CI remain required before merge.

@clawsweeper

clawsweeper Bot commented Aug 25, 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 25, 2026 08:04
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:53 AM ET / 08:53 UTC.

ClawSweeper review

What this changes

Updates the OpenClaw-harness QA scenario and its fixture to require a successful progress_card call instead of retired update_plan evidence.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking correctness finding: this is the narrow QA repair for a scenario still expecting the retired OpenClaw planning tool. Keep it open for the member-authored maintainer merge decision and exact-head gate confirmation.

Priority: P3
Reviewed head: ca57f4bd9d5a3d1e115887ff29d50043c6b6ab85
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned QA regression repair with supplied exact-head live evidence and no correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body reports an exact-head live OpenAI pair in which the OpenClaw harness recorded successful progress_card calls and both scenarios passed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body reports an exact-head live OpenAI pair in which the OpenClaw harness recorded successful progress_card calls and both scenarios passed.
Evidence reviewed 5 items Current-main gap: Current main still instructs and asserts update_plan for the OpenClaw scenario, so it does not yet solve the QA failure.
Runtime contract: The OpenClaw registration path exposes progress_card, and the tool itself is named progress_card before writing the durable card.
Transcript owner: QA counts only non-error tool results correlated with an assistant tool call, and the scenario supplies an after-event cursor to isolate the current attempt.
Findings None None.
Security None None.

How this fits together

QA Lab drives the embedded OpenClaw agent, reads its persisted transcript after a turn, and accepts the workspace artifact only after required tool evidence is present. The scenario must track the planning tool exposed by the OpenClaw runtime.

flowchart LR
  A[QA scenario] --> B[Embedded OpenClaw harness]
  B --> C[Progress card tool]
  C --> D[Persisted transcript]
  D --> E[Current-attempt assertion]
  E --> F[Artifact accepted]
Loading

Decision needed

Question Recommendation
Should this member-authored QA regression repair be landed after the current-head checks and merge result are confirmed? Land after gate refresh: Confirm the exact head remains green and cleanly mergeable, then land the focused scenario repair.

Why: The patch is correct by source and supplied live evidence, but the maintainer label and member authorship require explicit maintainer handling rather than automated closure.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; confirm its clean merge result and exact-head required checks before landing.
  • Complete next step (P2) - A member-authored focused PR already owns the repair; the remaining action is maintainer merge review, not automated remediation.
Agent review details

Security

None.

PR surface

Tests 0, Other 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 3 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 5 0
Total 2 8 8 0

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; QA scenario and test support +8/-8 The net-neutral diff changes only the QA scenario contract and its fixture.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused QA-only migration once the current head is green and cleanly mergeable, retaining the existing current-attempt transcript isolation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused QA-only migration once the current head is green and cleanly mergeable, retaining the existing current-attempt transcript isolation.

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

Yes. The PR body supplies a before/after live-harness command and outcome, and current source shows the scenario looks for a tool name no longer exposed by the embedded OpenClaw runtime.

Is this the best way to solve the issue?

Yes. Updating the prompt, assertion, diagnostic, and current-attempt fixture at the scenario boundary is the narrow canonical fix; the distinct Codex-harness scenario remains intentionally unchanged.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports an exact-head live OpenAI pair in which the OpenClaw harness recorded successful progress_card calls and both scenarios passed.

Label justifications:

  • P3: This restores an internal QA gate without changing end-user runtime behavior.
  • 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. Sufficient (live_output): The PR body reports an exact-head live OpenAI pair in which the OpenClaw harness recorded successful progress_card calls and both scenarios passed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports an exact-head live OpenAI pair in which the OpenClaw harness recorded successful progress_card calls and both scenarios passed.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged migration that replaced the OpenClaw planning tool contract. (role: progress-card migration author; confidence: high; commits: 7170a6231a4a; files: src/agents/openclaw-tools.registration.ts, src/agents/tool-policy.ts)
  • RomneyDa: Authored the merged fail-closed planning QA feature that established this scenario and its current-attempt invariant. (role: planning-QA feature author; confidence: high; commits: 14caaf3d4c2c; files: qa/scenarios/workspace/medium-game-plan-openclaw-harness.yaml, extensions/qa-lab/src/scenario-flow-runner.test.ts)

Rank-up moves

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

  • Confirm the exact current head remains green and cleanly mergeable before landing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-25T08:11:00.661Z sha ca57f4b :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready review is complete at exact head ca57f4bd9d5a3d1e115887ff29d50043c6b6ab85.

  • Native review artifacts: READY FOR /prepare-pr, no findings; validation passed.
  • Focused regression: node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-flow-runner.test.ts — 22/22 passed.
  • Live OpenAI proof: Codex and OpenClaw harness scenarios — 2/2 passed with openai/gpt-5.6-luna; Codex emitted App Server plan evidence and OpenClaw recorded three successful progress_card calls.
  • Independent review: Pi openai/gpt-5.6-sol, high thinking — TruffleHog clean; no accepted/actionable findings (0.99).
  • Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/32824738104 — success.
  • Native prepare: OPENCLAW_TESTBOX=1 scripts/pr prepare-run 129143 — hosted exact-head gates passed.

No known proof gaps remain for this QA-only change.

@steipete
steipete merged commit daefcc1 into main Aug 25, 2026
314 checks passed
@steipete
steipete deleted the fix/qa-openclaw-progress-card-planning branch August 25, 2026 09:31

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

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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