Repository navigation
fix(test): correct startup rollback and node expiry expectations - #197929
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper re-review Please review the final two-file fixture correction at aec8733. The startup case preserves genuine cleanup-failure assertions after #197883's successful late settlement; the expiry case freezes only Date before admission. Both controlled failures reproduce on their original inputs, all eight owner cases pass, and the combined independent review is clean. Production code and deadlines are unchanged. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR corrects successful startup-rollback expectations and freezes the expiry fixture’s Date clock before node redemption. Example: A process-owned startup rollback finishes sidecar cleanup after the 5,000 ms diagnostic grace.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, correct repair of two test defects still present on current main; no actionable findings were identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway lifecycle tests exercise startup failure and cleanup settlement; OpenClaw ID authority tests exercise signed node invitations, pending deadlines, and owner approval. flowchart TD
A[Startup failure fixture] --> B[Gateway startup]
B --> C[Sidecar cleanup and final join]
C --> D[Original error or cleanup failure]
E[Signed node redemption fixture] --> F[Serialized authority admission]
F --> G[Pending deadline and approval rejection]
Technical reviewBest possible solution: Merge these minimal fixture corrections after the existing CI gates pass, preserving production cleanup and expiry behavior. Do we have a high-confidence way to reproduce the issue? Source establishes both failures: successful late cleanup contradicts the old process-owned assertion, and awaited redemption can cross the second sampled by the old deadline expectation; execution was not repeated. Is this the best way to solve the issue? Both hunks are the smallest complete repairs using existing owners: distinguish actual cleanup rejection and freeze Date before computing and admitting the pending redemption. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 614924dc4ad6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2. Total -2 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 4:52 PM ET / 21:52 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes two full-CI failures: startup rollback expected a cleanup failure after successful settlement, and node invitation expiry depended on whether verification crossed a second boundary.
User Impact
There is no user-visible behavior change. Both tests now enforce their owners' existing contracts without changing deadlines or cleanup behavior.
Why This Change Was Made
The sidecar fix in #197883 correctly made the required late join own final settlement, but missed one startup test expectation. Successful cleanup must preserve the original startup error; genuine cleanup rejection still requires
GatewayStartupCleanupError. Separately, the expiry fixture introduced in #194001 sampled its expected deadline after awaited verification, although the owner captures the admission time before it. Freeze only the fixture's Date clock before redemption.All rollback modes, cleanup-custody checks, expiry/approval assertions, and deadlines remain. Production change: 0 lines; combined test change: −2 lines.
Evidence
Both failures were retained from full run 43299098210. The original rollback matrix reproduced the held-process failure and confirmed it returned the identical original startup error; the corrected four-mode matrix passes. A controlled one-millisecond clock crossing during the actual invitation commit reproduces the expiry mismatch, and the corrected fixture passes that same control and all four owner cases.
Thirty named owner, fixture, dependency and test-configuration inputs match the pinned main base, qualifying those proofs for reuse. Both owners’
pnpm check:changedruns passed, including all three unused-export scans, targeted types, format/lint and guards. A fresh combined Codex P0–P2 review of these exact two files and their complete owner contexts is clean. The component checks are reused through the recorded source comparison. Exact-head PR CI passed, and the completed final-head ClawSweeper review has no findings or open items.