Skip to content

fix(e2e): restore generic survivor candidate identity checks - #162976

Merged
steipete merged 1 commit into
mainfrom
upd/l1371-survivor-identity
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/l1371-survivor-identity

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Restores source-pinned base and sqlite-volume survivor candidate checks, which failed before their intended payload comparison because they do not create worker-only baseline metadata.

Refs #162586
Refs #160448

User Impact

Published-upgrade validation again verifies the selected candidate and installed bytes. Missing or unreadable post-update tarballs and payloads report the existing identity failure diagnostics instead of only raw filesystem errors. Installed updater and Gateway behavior is unchanged.

Why This Change Was Made

Bisect identified d89da7595d0d6c51f4e17b5631114023e49f931b in the cron Doctor landing, rather than the initially suspected executable-admission change. Keep the captured dynamic baseline mandatory for cron-owner-doctor; generic scenarios retain their original pinned baseline check. The installed identity boundary adds context while retaining the underlying error cause. Existing assertions are unchanged, and two table cases cover missing tarball and missing entrypoint failures.

Evidence

  • Whole original file: hourly 4f0541eb4691d155027d4febbe9e304a6e947127 failed 3/4 cases. Requested parent c4f5599a74a857013af36a8538bb6b8668779c8b passed all 4. Actual parent 0a2eba4eadf0d7e0f0dc4f536e44767c7f883654 passed all 4; d89da7595d0d6c51f4e17b5631114023e49f931b failed the same 3.
  • New missing-file cases fail on the original owner while its four original cases pass.
  • Exact head 83db916487f36550ab117eb94c5b6d93e7e42b62, fetched directly on fresh Blacksmith Testbox tbx_01m3wgf9xe9dg43d1ze7cjnd2q without a tree sync (lease run): frozen install passed; candidate identity and all three importing sibling files passed, 32 tests across 4 files, 3.11 seconds wall. The changed identity file's 6 cases took 373 ms test time.
  • OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 node scripts/check-changed.mjs --base 57396d3cfef392c5acdeefa8f6f9ebf144b78b73 --head 83db916487f36550ab117eb94c5b6d93e7e42b62: passed, 354.39 seconds wall.
  • Direct-route Codex P1 review: scoped-clean. Changed-file formatting and git diff --check passed.
  • Production/tooling LOC: +22/-8; tests: +19/-1; docs: +3/-0.

The initial diagnostic lease expired its ten-minute admission window while queued and failed before tests. A fresh lease completed the contrasts; final proof used the separate pinned-head lease above. No test retry or assertion weakening was used.

@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Oct 1, 2026
@steipete
steipete marked this pull request as ready for review October 1, 2026 20:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 1, 2026, 4:22 PM ET / 20:22 UTC.

ClawSweeper review

What this changes

The PR restores generic upgrade-test package identity checks, adds contextual errors for unreadable package files, and extends regression coverage and documentation.

Merge readiness

⛔ Blocked before merge - 1 item remains

This repair remains necessary on current main, and the inspected patch has no blocking correctness findings.

Priority: P2
Reviewed head: 83db916487f36550ab117eb94c5b6d93e7e42b62

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression coverage and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository-admin authorship exempts this internal harness repair from external-contributor setup proof. Reported tests exercise the actual identity CLI with synthetic package installation, not a complete published update; 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: Verified repository-admin authorship exempts this internal harness repair from external-contributor setup proof. Reported tests exercise the actual identity CLI with synthetic package installation, not a complete published update; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head patch changes scenario baseline selection and filesystem error context while retaining selected-source equality, tarball hashing, and complete application-payload comparison.
Current main still needs the repair: Fetched main still unconditionally reads baseline-package-identity.json in candidate mode. Generic base and sqlite-volume callers invoke candidate mode without creating that worker-only artifact; cron-owner-doctor explicitly captures it first.
Caller boundary: The generic source-pinned scenarios check candidate identity before updating and installed identity before subsequent candidate probes; the cron Doctor scenario captures its published baseline before preparing the candidate.
Findings None None.
Security None None.

How this fits together

Upgrade survivor tests install a published OpenClaw package and update it to a selected candidate. Package identity checks verify candidate source and installed application bytes before subsequent probes.

flowchart TD
  A[Selected source and candidate tarball] --> B[Candidate identity check]
  C[Scenario baseline] --> B
  B --> D[Package update]
  D --> E[Installed payload comparison]
  E --> F[Candidate probes]
  E --> G[Identity failure diagnostic]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +18, Docs +3, Other +14. Total +35 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 19 1 +18
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 1 22 8 +14
Total 3 44 9 +35

Review metrics

Metric Value Why it matters
Regression test cost 6 cases; reported 373 ms test time The added missing-file cases protect diagnostic and phase-ordering behavior within the documented test budget.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/worker-cell-package.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/worker-cell-package.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one package-identity owner with scenario-appropriate baseline checks and unchanged source and installed-byte verification.

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

Yes, from source: generic source-pinned survivor runs reach an unconditional read of baseline metadata they never create. Execution was not performed in this read-only review.

Is this the best way to solve the issue?

Yes. Scenario-specific baseline selection repairs the existing owner while preserving source, tarball, and installed-payload assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 74a47d542ee3.

Labels

Label changes:

  • add P2: This restores bounded upgrade-validation tooling without changing the installed updater or Gateway behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository-admin authorship exempts this internal harness repair from external-contributor setup proof. Reported tests exercise the actual identity CLI with synthetic package installation, not a complete published update; no stored-data contract changes.

Label justifications:

  • P2: This restores bounded upgrade-validation tooling without changing the installed updater or Gateway behavior.
  • 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: Verified repository-admin authorship exempts this internal harness repair from external-contributor setup proof. Reported tests exercise the actual identity CLI with synthetic package installation, not a complete published update; 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)

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.

Keep the captured baseline identity mandatory for the cron Doctor scenario without requiring its artifact in generic survivor flows. Preserve contextual identity failures when the frozen tarball or installed payload cannot be read.

Refs #162586, #160448
@steipete
steipete force-pushed the upd/l1371-survivor-identity branch from 83db916 to 812cb68 Compare October 1, 2026 21:37
@steipete
steipete merged commit 99567a6 into main Oct 1, 2026
96 of 97 checks passed
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed (squash 99567a65b7c5912d27339a699bc3d315a113d254, rebased head 812cb6877063; lead review scoped-clean (0.89) at 83db916487f3, rebase mechanical): 32 tests, changed checks, P1 clean; no failing CI job at merge time. Fixes the upgrade-survivor-candidate-identity main red introduced by #160448.

@steipete
steipete deleted the upd/l1371-survivor-identity branch October 1, 2026 21:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…w#162976)

The upgrade-survivor candidate identity check surfaced a raw node:fs read error instead of the identity messages when the candidate payload was missing or unreadable (test/scripts/upgrade-survivor-candidate-identity red on main since openclaw#160448 narrowed the contract). The generic baseline contract is restored (the captured baseline stays mandatory for cron-owner-doctor; generic scenarios use baselineCommit), and both filesystem error boundaries now produce the contextual identity error with the original cause retained.

Refs openclaw#160448
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

1 participant