Skip to content

fix: restore release-validation fixture coverage - #124401

Merged
steipete merged 3 commits into
mainfrom
steipete/beautiful-bhaskara-0ff29f
Aug 16, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/beautiful-bhaskara-0ff29f

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves release-validation failures caused by test fixtures drifting behind the current owner contracts after #124282 and #124215 landed. The stale fixtures could fail before exercising the intended behavior, and long E2E shards could appear silent long enough to trip the 300-second false-stall watchdog.

Why This Change Was Made

The fixtures now use the state, admitted-run, migration, session, capability, and delivery outcomes owned by their production boundaries instead of maintaining local approximations. The E2E Vitest config uses the verbose reporter so long-running validation continuously emits per-test progress without weakening timeouts or changing runtime behavior.

This is test, test-support, and test-config work only: production runtime LOC is unchanged. The immutable v2026.8.1-beta.2 release, its tag, package, and artifacts are not modified.

User Impact

There is no user-visible runtime behavior change. Maintainers get release-validation coverage that reaches the intended assertions, matches the repaired owner contracts, and remains observable during long E2E runs.

Evidence

  • Combined non-isolated fixture run: 9 files, 110 tests passed.
  • Exact gateway steer regression: 1/1 passed.
  • Trigger-handling suite: 21/21 passed in 479.65s.
  • Claws lifecycle suite: 8/8 passed in 344.66s.
  • Post-rebase E2E config contract: 3/3 passed with node scripts/run-vitest.mjs src/infra/vitest-e2e-config.test.ts.
  • Targeted formatting completed on all 11 files; git diff --check is clean.
  • Two fresh full-diff Codex autoreviews, plus the final pre-commit rerun, reviewed the same 21,316-byte bundle and reported no accepted/actionable findings at 0.99 confidence.
  • Diff classification: 11 test/test-support/config files, +126/-82, zero production runtime LOC.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram commands Command implementations agents Agent runtime and tooling labels Aug 16, 2026
@steipete
steipete marked this pull request as ready for review August 16, 2026 04:05
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 1:02 AM ET / 05:02 UTC.

ClawSweeper review

What this changes

The PR updates release-validation fixtures to use current state, admission, session, plugin, and delivery contracts, and enables verbose progress reporting for E2E Vitest runs.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness findings. The latest head restores the target:none heartbeat assertion and seeds the sessions required by compaction, resolving both prior P1 findings; exact-head CI still needs to finish before merge.

Priority: P2
Reviewed head: b38a857fcaa36388840d800cb499210c610305c0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused fixture updates align with current owner contracts and resolve the prior blockers; only exact-head CI completion remains.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR is outside the external contributor real-behavior-proof gate; its recorded focused test output remains relevant validation evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR is outside the external contributor real-behavior-proof gate; its recorded focused test output remains relevant validation evidence.
Evidence reviewed 6 items Heartbeat fixture matches current owner contract: The current delivery-target owner returns target-none for an explicit none target, and the event owner adds the same operator message now asserted by the fixture.
Prior heartbeat blocker resolved: The PR-head fixture polls for skipped/target-none with the owner-generated message and now retains the observed event if polling fails.
Prior compaction ownership blocker resolved: The fixture now creates the active main and worker session entries before requesting compaction, matching the owner path that returns without compaction when no persisted sessionId exists.
Findings None None.
Security None None.

How this fits together

Release validation exercises gateway, agent, plugin, and CLI behavior through integration fixtures. The changed fixtures must use the production-owned state and delivery contracts, while the E2E reporter keeps long-running CI observable.

flowchart LR
  A[Release validation] --> B[Integration fixtures]
  B --> C[Production owner contracts]
  C --> D[Gateway and agent behavior]
  B --> E[E2E reporter]
  E --> F[Visible CI progress]
Loading

Before merge

  • Resolve merge risk (P1) - One exact-head CI check is still in progress; merge should wait for it to complete successfully. The PR is behind current main but GitHub reports it cleanly mergeable.
  • Complete next step (P2) - No repair lane is needed: the remaining action is normal exact-head CI completion before merge.
Agent review details

Security

None.

PR surface

Source -19, Tests +40. Total +21 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 2 10 29 -19
Tests 9 96 56 +40
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 106 85 +21

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests, test support, and test configuration +106/-85 The branch changes validation coverage and CI observability without changing production runtime behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor.e2e-harness.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head validation (recommended)
    Wait for the in-progress exact-head release-validation check to finish successfully before merging the fixture and reporter updates.

Technical review

Best possible solution:

Merge after exact-head CI is green, retaining the fixtures’ direct use of the production-owner contracts and the verbose E2E progress reporter.

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

Not applicable: this PR repairs test fixtures and test-run reporting, not a user-facing defect. Its body records targeted passing suites, while this read-only checkout lacks dependencies for a local rerun.

Is this the best way to solve the issue?

Yes. The fixtures now consume the production-owned contracts rather than maintaining local approximations; the reporter follows an existing verbose E2E configuration pattern.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded release-validation reliability repair with limited blast radius and no user-visible runtime change.
  • merge-risk: 🚨 automation: The E2E reporter and fixture changes can alter CI observability and release-validation outcomes after merge.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer-authored, test-only PR is outside the external contributor real-behavior-proof gate; its recorded focused test output remains relevant validation evidence.

Evidence

What I checked:

  • Heartbeat fixture matches current owner contract: The current delivery-target owner returns target-none for an explicit none target, and the event owner adds the same operator message now asserted by the fixture. (src/infra/outbound/targets.ts:235, f1ca5e20d8a4)
  • Prior heartbeat blocker resolved: The PR-head fixture polls for skipped/target-none with the owner-generated message and now retains the observed event if polling fails. (test/e2e/qa-lab/runtime/gateway-rpc-automation.e2e.test.ts:414, b38a857fcaa3)
  • Prior compaction ownership blocker resolved: The fixture now creates the active main and worker session entries before requesting compaction, matching the owner path that returns without compaction when no persisted sessionId exists. (src/auto-reply/reply/agent-runner-memory.ts:696, f1ca5e20d8a4)
  • Existing reporter pattern: The dedicated TUI E2E configuration already uses the verbose reporter, supporting the same observability approach for long-running tests. (test/vitest/vitest.tui-pty.config.ts:48, f1ca5e20d8a4)
  • History and current-main provenance: Current heartbeat behavior dates to the target:none fixture repair, which git blame ties to the same current-main source lines; the commit is on main and not in a release tag found locally. (src/infra/heartbeat-events.ts:63, 5943cd0362e0)
  • Recorded validation: The PR body reports focused fixture suites passing, including the E2E config contract; local rerun was not attempted because this read-only checkout has no node_modules. (b38a857fcaa3)

Likely related people:

  • steipete: Peter Steinberger authored the current PR and the target:none contract commit that current-main blame attributes to the production owner. (role: recent area contributor; confidence: high; commits: 5943cd0362e0, b38a857fcaa3; files: src/infra/heartbeat-events.ts, src/infra/outbound/targets.ts, test/e2e/qa-lab/runtime/gateway-rpc-automation.e2e.test.ts)

Rank-up moves

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

  • Wait for the in-progress exact-head CI check to complete successfully.

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 (2 earlier review cycles)
  • reviewed 2026-08-16T04:12:12.881Z sha 50427f2 :: found issues before merge. :: [P1] Keep the explicit target:none heartbeat expectation
  • reviewed 2026-08-16T04:35:05.640Z sha e58b813 :: found issues before merge. :: [P1] Restore the target:none heartbeat expectation | [P1] Preserve the compaction session-ownership guard

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@steipete
steipete merged commit 8cf85e3 into main Aug 16, 2026
220 checks passed
@steipete
steipete deleted the steipete/beautiful-bhaskara-0ff29f branch August 16, 2026 05:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
* test(release): refresh validation fixtures

* test(release): satisfy fixture lint gates

* test(release): preserve fixture owner contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: telegram Channel integration: telegram commands Command implementations maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant