refactor(rebuild): unify post-restore verification and completion gating - #6491
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage remains at 96%, unchanged from the TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor (Nemotron Ultra) — No blocking findingsMerge posture: No blocking advisor findings Action checklist
Findings index
Review findings by urgency: 0 required fixes, 0 items to resolve/justify, 2 in-scope improvements
|
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Target RecommendationRequired E2E targets: Dispatch required E2E targets:
Full E2E target advisor summaryE2E Target AdvisorBase: Required E2E targets
Optional E2E targets
Relevant changed files
|
PR Review Advisor — No blocking findingsMerge posture: No blocking advisor findings Action checklist
Test follow-ups to resolve or justifyIf these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.
This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision. |
|
Addressed the initial PR Review Advisor findings in
The focused verifier, finalization-boundary, transaction-boundary, rebuild-flow, DCode, and local-provider suites pass locally. Required live E2E runs have been dispatched for |
E2E Target Results —
|
| Job | Result |
|---|---|
| rebuild-hermes |
E2E Target Results —
|
| Job | Result |
|---|---|
| sandbox-rebuild |
E2E Target Results —
|
| Job | Result |
|---|---|
| rebuild-openclaw |
E2E Target Results —
|
| Job | Result |
|---|---|
| live |
E2E Target Results — ✅ All requested jobs passedRun: 28982052746
|
E2E Target Results — ✅ All selected jobs passedRun: 28982053077
|
E2E Target Results —
|
| Job | Result |
|---|---|
| rebuild-openclaw |
E2E Target Results —
|
| Job | Result |
|---|---|
| rebuild-hermes |
E2E Target Results — ✅ All selected jobs passedRun: 28982301085
|
E2E Target Results — ✅ All requested jobs passedRun: 28982301148
|
E2E Target Results — ✅ All requested jobs passedRun: 28982301131
|
E2E Target Results — ✅ All requested jobs passedRun: 28982301095
|
|
Final validation on head
This supplies the advisor's remaining runtime-validation and CI-evidence follow-ups. The PR remains draft as requested. |
|
Closing this draft stack as requested while the broader human-and-agent lifecycle architecture is reconsidered. |
Summary
rebuild-finalization.tsimplementation and its duplicate testsreplacement_createdwith a precise retryable failure code when required verification is incomplete, and publishcompletedonly when every required check passesStack
This PR is stacked on draft PR #6470 and should be reviewed after it. It implements #6485 and prepares the completion contract consumed by #6436.
Completion contract
Required verification covers state restore, mutable config permissions/hash, MCP restoration, policy restoration/exact reconciliation, registry reconciliation, shields relock, and configured messaging forwarding. OpenClaw doctor and the existing recovery-shields warning remain explicit advisory findings.
Tests
npm run build:clinpm run typecheck:clinpx vitest run --project cli src/lib/actions/sandbox/rebuild-post-restore-verification.test.ts(12 tests)npx vitest run --project cli src/lib/actions/sandbox/rebuild-transaction-finalization-boundary.test.ts(5 tests)npx vitest run --project cli src/lib/actions/sandbox/rebuild-transaction-boundary.test.ts(16 tests)npx vitest run --project cli src/lib/actions/sandbox/rebuild-flow.test.ts(75 tests)npm run lintLine budget relative to #6470
Closes #6485