Skip to content

fix(e2e): release lanes misread web search, consent timeouts, Windows temp paths and session status - #160346

Merged
steipete merged 5 commits into
mainfrom
fix/release-lane-harnesses-2
Sep 28, 2026
Merged

steipete merged 5 commits into
mainfrom
fix/release-lane-harnesses-2

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes four release-lane harness bugs that failed 2026.9.7 Full Release Validation (release-checks 36381536769) independently of the product:

  • plugins/runtime services / openai-web-search-minimal: assert-success-request picked the first mock request containing the success marker. Since Activity recaps (feat: show rolling session recaps in Activity #147441) quote the user prompt, that is a recap with no tools, not the agent turn.
  • plugin-update (and plugin prerelease kitchen-sink-rpc--plugin-update): the consent scenario ran a full package update under the generic 300 s CLI cap. The timeout's empty stdout was misreported as "did not return JSON (exit 124)".
  • Windows packaged upgrade (Node 24 and 26): the published 2026.9.5 updater compares a native-realpath receipt against the runner's 8.3 short TEMP (C:\Users\RUNNER~1\...) and fails with "directory changed during durable directory operation". Main fixed that updater bug in fix(windows): preserve scheduled task owner through stop #151157, but the published driver cannot be patched.
  • Telegram package E2E current-session status tool context: the QA mock only called session_status when it was directly declared. Default Tool Search hides it behind structured dispatch, so the turn never produced the OK reply.

User Impact

No product change. These lanes test the intended behavior again, and a timed-out consent update now reports as a timeout, with stdout/stderr/ledger paths.

Why This Change Was Made

  • Web search: select the agent request by model and the exact success prompt. Tool presence and reasoning are then asserted on that request, not used to find it.
  • Consent: full package updates use the existing 900 s update-lane budget (same as the corrupt-plugin and channel-switch update lanes). Timeouts are asserted before JSON parsing, and the run ledger is written first.
  • Windows: canonicalize inherited TEMP/TMP/TMPDIR to the long spelling of the same existing directory for published-updater lanes. The physical directory is unchanged.
  • QA mock: reuse the existing dispatcher-aware canCallScenarioTool check.

Evidence

  • Each regression fails on the original harness code and passes with the fix. Testbox tbx_01m3kn76nc6t1pm1hgrr8ea8jx (fixed) and a second one-shot lease (original code: 2, 2, 1, 1 failures respectively).
  • node scripts/run-vitest.mjs <file> --maxWorkers=1 walls: openai-web-search-minimal-assertions.e2e.test.ts 6.6 s (8 tests), plugin-update-consent-scenario.test.ts 3.8 s (17), openclaw-cross-os-release-checks-upgrade-lane.test.ts 3.4 s (21), mock-openai/server.tool-surface.test.ts 66.6 s (6, dominated by existing cold module load).
  • Independent Codex autoreview is clean through P2. Formatting passed.
  • Exact-lane reruns against merged main follow after landing.

@clawsweeper

clawsweeper Bot commented Sep 28, 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 P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:51 AM ET / 09:51 UTC.

ClawSweeper review

What this changes

The branch updates release checks to identify the web-search agent request, allow more time for consent updates, normalize Windows temporary paths, and route a Telegram session-status probe through structured tools, with regression tests.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR open. Current main retains the four release-harness failures, and the cited merged PRs address surrounding product behavior rather than these checks.

Priority: P2
Reviewed head: ee92694a3f50ad12157c884d7813574d3ae4efb4

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repairs are focused and have regression coverage, but native Windows release-lane behavior remains unverified.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The changed owners are release scripts and a QA mock; the PR reports before-and-after Testbox regressions, while its Windows test mocks native path expansion and no real published-updater result is shown. The maintainer-authored contributor-proof gate does not apply, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed owners are release scripts and a QA mock; the PR reports before-and-after Testbox regressions, while its Windows test mocks native path expansion and no real published-updater result is shown. The maintainer-authored contributor-proof gate does not apply, and no stored-data contract changes.
Evidence reviewed 9 items Introduced web-search repair: The PR selects the exact success prompt on the agent model before checking its native web-search tool and reasoning setting.
Current-main web-search behavior: Current main still picks the first request whose body contains the marker; the scenario client sends the exact prompt targeted by the patch.
Consent timeout boundary: The branch passes a 900-second budget to the shared command wrapper for package updates and records the run before reporting timeout exits.
Findings None None.
Security None None.

How this fits together

OpenClaw release validation drives installed CLI commands and agent turns, then checks their requests, process results, and runner environment. QA Lab supplies mock model responses; the scripts turn observations into pass or failure evidence.

flowchart LR
A[Release scenarios] --> B[Gateway and installed CLI]
C[Runner environment] --> B
B --> D[Requests and command results]
D --> E[QA mock and script checks]
E --> F{Expected behavior?}
F --> G[Release evidence]
Loading

Before merge

  • Resolve merge risk (P1) - The Windows path test mocks both the platform and the long-path result. No after-fix Windows packaged-upgrade run shows that the unmodified published updater completes with a short inherited TEMP path; the same environment helper also feeds fresh-install lanes.
  • Complete next step (P2) - Record a real Windows published-updater packaged-upgrade result with short TEMP and a fresh-install result through the changed environment helper before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source 0, Tests +158, Other +47. Total +205 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 4 165 7 +158
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 65 18 +47
Total 8 231 26 +205

Review metrics

Metric Value Why it matters
Production versus test growth harness code +47 net lines; tests +158 net lines The harness growth implements request selection and diagnostics; most added lines protect the four reported regressions.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/plugin-update/consent-scenario.mjs, unknown-data-model-change: scripts/e2e/lib/plugin-update/consent-scenario.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Qualify the Windows lanes (recommended)
    Capture an after-fix Windows packaged-upgrade run with the published updater and short TEMP path, plus a fresh-install run using the changed environment helper.

Technical review

Best possible solution:

Keep the normalization at the release-harness boundary and qualify a real Windows published-updater upgrade and fresh install with the inherited runner environment.

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

Yes for the marker-selection, timeout, and structured-dispatch paths: current-main source and the targeted regressions give concrete checks. The Windows 8.3-path failure still lacks an observed after-fix native run.

Is this the best way to solve the issue?

Yes: each repair stays with its release-harness owner and reuses the existing timeout wrapper or tool dispatcher. Windows path normalization needs platform qualification before its claimed outcome is established.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: False release-validation failures are a bounded automation problem rather than an observed product-runtime outage.
  • merge-risk: 🚨 automation: The patch changes release-lane selection, timeout reporting, and Windows updater inputs, which can alter qualification results after merge.
  • 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. Not applicable: The changed owners are release scripts and a QA mock; the PR reports before-and-after Testbox regressions, while its Windows test mocks native path expansion and no real published-updater result is shown. The maintainer-authored contributor-proof gate does not apply, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Attach a native Windows packaged-upgrade result using the published updater and a fresh-install result for the changed environment path.

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.

@steipete
steipete merged commit db566b0 into main Sep 28, 2026
172 checks passed
@steipete
steipete deleted the fix/release-lane-harnesses-2 branch September 28, 2026 10:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
… temp paths and session status (openclaw#160346)

Fixes four release-lane harness bugs that failed 2026.9.7 Full Release Validation independently of the product:

- openai-web-search-minimal selects the agent request by model and exact success prompt instead of the first request quoting the marker (Activity recaps quote it since openclaw#147441).
- plugin-update consent package updates use the existing 900 s update-lane budget; timeouts are reported as timeouts with stdout/stderr/ledger paths before JSON parsing.
- Windows packaged upgrade lanes pass the long spelling of the inherited TEMP/TMP/TMPDIR to published updaters (the immutable 2026.9.5 driver mis-compares 8.3 short paths; fixed on main by openclaw#151157).
- The QA mock calls session_status through dispatcher-aware capability detection, so the Telegram current-session scenario works under default Tool Search.

Each regression fails on the original harness code and passes with the fix (Testbox).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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