Repository navigation
improve(upgrade): cover project workspace startup migration - #150077
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: needs maintainer review before merge. Reviewed September 16, 2026, 12:26 PM ET / 16:26 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds an opt-in upgrade test for project workspace migration during Gateway startup and centralizes scenario declarations for dependency-free test planning. Merge readiness✅ Ready for maintainer review Keep open as useful, distinct upgrade coverage. The updated runtime receipt resolves the previous review’s incomplete-second-startup concern, and no actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade survivor harness installs a published OpenClaw release, prepares isolated user state, and runs its updater against a candidate package. It then checks Gateway startup and persisted state to detect upgrade regressions. flowchart TD
A[Published OpenClaw release] --> B[Local project and legacy sessions]
B --> C[Doctor import and verified backup]
C --> D[Published updater installs candidate]
D --> E[Two Gateway start and stop cycles]
E --> F[Compare persisted state and transcripts]
G[Scenario catalog and package identities] --> D
F --> H[Upgrade evidence]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +408, Docs +12, Other +680. Total +1100 across 20 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain this focused scenario within the existing survivor lifecycle, with package-bound observations and unchanged aggregate defaults. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: this PR adds internal validation coverage. Its supplied runtime receipt reports the intended migration and repeat-startup behavior. Is this the best way to solve the issue? Yes. Extending the canonical upgrade harness and sharing inert scenario metadata avoids a competing lifecycle or planner implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 22c4164c86b5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
…#150077) * test(upgrade): cover project workspace startup migration * fix(upgrade): keep survivor catalogs dependency-free * test(upgrade): copy current catalog into frozen target fixtures * test(upgrade): recognize formatted shutdown results
Related: #149487, #148637, #149386, #149392
What Problem This Solves
Project inventory checks do not exercise startup backfilling a registered project's canonical workspace from legacy session data during an upgrade.
User Impact
No product behavior change. Maintainers gain an opt-in
projects-startup-migrationregression scenario for Projects storage work. It stays outside aggregate suites and uses synthetic state, a local project repository and no live provider.Why This Change Was Made
The scenario creates a project and managed worktree through published
[email protected]owners, verifies a backup, and imports two supported legacy sessions with four transcript events. The original updater installs a frozen candidate. Two ordinary Gateway start/probe/stop cycles must then demonstrate one workspace backfill, clean shutdown, preserved state/history and an unchanged second startup.Policy and shared assertions consume one canonical JSON scenario catalog. Cold planning reads fixed, committed metadata without executing target modules or requiring Acorn. Historical literal catalog hashes remain intact; malformed present JSON is rejected. Both tooling and explicit current-target fixtures carry the declaration. Shutdown checks recognize the actual rendered subsystem prefix and raw JSON/file messages, while rejecting warning or failed terminal results.
Evidence
5ddfc42902e0exercised published2026.9.4/3a9d69db306cagainst frozen candidatedb3194e07ccc, tar SHA256c351851a36418e708516b6b8faacbd432b06f3e0d7588c447a1ca3182e0c09d7. All 9,848 installed application records matched the artifact. The actual updater completed in 75.576 s, without follow-up repair.Evidence limit: the canonical import phase validated the migration manifest and archived-original hashes before successful test cleanup removed those raw files from the ephemeral runtime. Verification hashes, raw reports, the verified backup, all four snapshots and both Gateway logs are retained privately. This qualifies the stated two-session/four-event path on the exact frozen candidate above; it makes no blanket claim about newer main or other runtime scenarios.