fix(messaging): preserve forward-list failures during cleanup - #8526
fix(messaging): preserve forward-list failures during cleanup#8526aryansk wants to merge 8 commits into
Conversation
Signed-off-by: Aryan Singh K. <70511529+aryansk@users.noreply.github.com>
📝 WalkthroughWalkthroughThe cleanup contract now preserves ChangesForward cleanup failure handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — InformationalAdvisor assessment: Informational / low confidence Model lanes
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. 2 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite against this exact revision. Recommended E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
cv
left a comment
There was a problem hiding this comment.
Contributor compliance blocks this PR: add the required Signed-off-by: declaration and replace the unsigned commit with GitHub-verified history. The draft also has no required PR workflows. Before marking it ready, cover the concrete messaging adapter that converts an OpenShell command failure into the nullable list result; the current test proves only the shared helper seam. PR #8529 addresses the same issue, so coordinate the intended surviving contribution rather than maintaining two partial implementations.
|
A fresh branch and PR are required because this PR contains unsigned commit Before a maintainer can transfer your material contribution into the replacement PR, repository attribution policy requires you to add your own DCO declaration to this PR description. Please add this line yourself if it matches your contribution identity:
Do not rewrite this branch. After the declaration is present, the replacement PR can preserve your exact source-commit identity and supersede #8526 with verified history. |
Summary
Before this change, a failed OpenShell forward-list query could be treated as an empty list during messaging recovery. The recovery path could then run a sandbox-scoped stop or accept an unverified live listener. The change preserves unknown ownership, skips the stop, prevents startup verification, and reports accurate recovery guidance.
Related Issue
Fixes #8522
Changes
nulland classify that result aslist-failedbefore ownership parsing.nullfor a failed OpenShell query.Type of Change
Quality Gates
db85a5bcdfound no remaining issue. The change narrows the OpenShell ownership boundary, adds no credential flow or dependency, and keeps failures fail-closed.Documentation Writer Review
no-docs-neededDGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shdoes not change.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHub — contributor action required: add the contributor's DCO declaration. Commit1e0c4ac453475b09d3b33885e352d3e410482d9fremains unsigned and cannot be replaced because force-push is disabled.pre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project cli src/lib/actions/sandbox/messaging-host-forward-lifecycle.test.ts src/lib/actions/sandbox/rebuild-finalization.test.ts src/lib/actions/sandbox/rebuild-post-restore-phase.test.ts src/lib/onboard/forward-cleanup.test.ts src/lib/onboard/forward-start.test.ts: 5 files and 67 tests passed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: not run; focused source tests cover the changed behavior.npm run docsbuilds without warnings (doc changes only)