Repository navigation
test(e2e): select prerelease companions, keep failed outcomes, retain Doctor diagnostics in the upgrade survivor - #149705
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 16, 2026, 3:27 AM ET / 07:27 UTC (Revision 3). ClawSweeper reviewWhat this changesRepairs historical upgrade-test fixtures, distinguishes unknown and failed update outcomes, and preserves bounded Doctor migration diagnostics. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the harness repairs remain useful and are absent from current main. No actionable correctness or security defect was found in the introduced changes; the protected maintainer campaign remains active. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade survivor installs a published OpenClaw baseline, seeds operator state, and runs a candidate update. Its assertions and diagnostic artifacts tell maintainers whether that upgrade preserved the expected behavior. flowchart TD
A[Published baseline] --> C[Version-aware fixtures]
B[Candidate package] --> D[Upgrade survivor]
C --> D
D --> E[Migration and survival assertions]
D --> F[Private diagnostic snapshot]
E --> G[Outcome summary]
F --> H[Validated and redacted diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +297, Docs +17, Other +218. Total +532 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep fixture adaptation and diagnostic projection in their existing harness owners, qualify the historical upgrade path, and leave product Doctor repairs with their separate PR. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main can report an unspecified update outcome as success, and the added fixture cases exercise failures before and during update. No tests or live upgrade were executed in this read-only review. Is this the best way to solve the issue? Yes: the patch repairs the existing fixture and diagnostics owners while preserving the remaining scenario assertions; the actual historical install/update path still needs its requested campaign validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 05a5bd1c19b7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
ec302f1 to
94419c2
Compare
Select published prerelease companion cohorts through moving tags, record unpublished companions without dropping the remaining operator-state proof, keep unknown and failed update outcomes, and retain bounded Doctor migration evidence. Separate historical keyed rosters from explicit ownership. Consolidates harness work from upd-matrix-L7, upd-matrix-L8, and upd-matrix-L9, with availability and diagnostics findings from upd-matrix-L4 and upd-matrix-L6. Product code is unchanged.
Materialize injected shell runners so the Darwin Bash guard can replay them. Use the current source redactor in installed-version unit diagnostics so existing build artifacts do not consume the command timeout. Preserve all assertions and timeout values.
94419c2 to
9ff59a1
Compare
|
Merged via squash.
|
… Doctor diagnostics in the upgrade survivor (openclaw#149705) * test(e2e): repair upgrade survivor fixtures and diagnostics Select published prerelease companion cohorts through moving tags, record unpublished companions without dropping the remaining operator-state proof, keep unknown and failed update outcomes, and retain bounded Doctor migration evidence. Separate historical keyed rosters from explicit ownership. Consolidates harness work from upd-matrix-L7, upd-matrix-L8, and upd-matrix-L9, with availability and diagnostics findings from upd-matrix-L4 and upd-matrix-L6. Product code is unchanged. * test(e2e): isolate survivor fixture execution Materialize injected shell runners so the Darwin Bash guard can replay them. Use the current source redactor in installed-version unit diagnostics so existing build artifacts do not consume the command timeout. Preserve all assertions and timeout values.
What Problem This Solves
Fixes upgrade-survivor matrix fixtures that fail before testing a prerelease update, misreport failed updates as successful, or discard the Doctor evidence needed to diagnose a failure.
User Impact
No application behavior changes. Maintainers get version-correct baseline fixtures, explicit unavailable-companion coverage, accurate update outcomes, and retained migration evidence. Product production LOC: 0. This is maintainer-requested update-reliability campaign work.
Why This Change Was Made
Use the baseline's moving prerelease tag and advance that tag to the candidate, preserving ordinary external-plugin updates. Confirm exact companion availability with npm: only a published-registry E404 skips the legacy companion, with a recorded reason; other registry failures still fail setup, and the remaining operator-state and external-plugin migration assertions stay enabled. Separately model July's keyed agent roster and August's explicit ownership boundary.
Unset update outcomes remain unknown; an attempted update starts failed and becomes successful/recoverable only after its existing assertions accept it. The diagnostics owner retains the latest complete session migration manifest and issue report privately (2 MiB each, within the existing 8 MiB snapshot budget), then publishes validated, sanitized per-agent histograms and explicit omissions.
The matrix download overlap came from the caller's success/failure download mapping, not the survivor. Document distinct destinations and task-owned elevated archive collection for container-owned observation directories; retain their permissions.
Evidence
Rebased onto
c97ddb6e63c98f3a3544cce03a0e7b09f8a2f5ad; current head:94419c2f8fd245f9780e114da99522e1cd173025.run.shby retaining cleanup of both backup/rollback and companion receipts; indiagnostics.mjsby retaining main's migration/Doctor IPC/SQLite admission logic alongside the bounded latest-report capture and both omission allowlists; and inupgrade-survivor-first-hop.test.tsby retaining both rollback and migration evidence suites. Main's worker-scenario additions remain intact.node scripts/check-changed.mjspassed, including types, unused-export scans, and script/test lint. Bash syntax, formatting, andgit diff --checkpassed.autoreview --mode branch --base origin/main --max-priority P1:scoped-clean(0.86), no actionable findings; all review outputs are outside the repository.in_progress). REST confirmsmergeable: true; CI completion and landing belong to the lead.Live proof gap: the single requested
2026.7.2-beta.7/legacy-operator-stateDocker command reached its 25-minute limit (exit 124) during candidate plugin SDK declaration generation, before baseline installation. Candidate build time was 24m52s, including 15m57s for unified declarations. No published-driver update or live companion installation is claimed, and no second row was run. Product source wasef93dfcbb0daf5d5bda66b79b52f635bd4abee02; the working-tree harness contained this change.LOC split: application production 0; harness support +243/-25; tests +413/-116; documentation +17/-0. No dependencies, product options, SQLite schemas, suppressions, or expected-failure exceptions were introduced.
Matrix source evidence:
.claude/worktrees/upd-matrix-L{2,4,5,6,7,8,9}/.local/matrix/report.md.Adopted prepared harness work from
upd-matrix-L7(prerelease selectors, registry tags, provenance assertion and tests),upd-matrix-L8(roster boundaries and tests), andupd-matrix-L9(failed outcome and regression), extending the latter for failures before update starts. L7 subsumesupd-matrix-L5's beta-only selector. Availability and diagnostics repairs implement the findings fromupd-matrix-L4andupd-matrix-L6.Left out
upd-matrix-L2's post-core completion and deferred-import receipt repairs, plus the Doctor production/test proposals fromupd-matrix-L5,upd-matrix-L6, andupd-matrix-L7: they change or validate product behavior and belong to their separate owners. No product fix or matrix passing result is claimed here.