Skip to content

test(e2e): the simlock daemon restart leaves the agent's lease in place (#1578) - #1782

Merged
V3RON merged 1 commit into
mainfrom
bug/1578
Nov 19, 2026
Merged

V3RON merged 1 commit into
mainfrom
bug/1578

Conversation

@V3RON

@V3RON V3RON commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1578

Status

Implement: build and audit done Review: round 1 pass (0 findings) at 97dc4fd Hardware: pass at 97dc4fd (Android; iOS skipped by the test's leasingCase gate; probe without the lease rebuild fails on open) Gate: running
Next: gate

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 0.6M.
Runs: 4. Cost USD: 0.529. Agent seconds: 591.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The simlock-daemon restart test now installs and reopens the fixture app, then takes a snapshot after the old agent-device process exits. It checks that the original lease ID and device ID remain unchanged. This replaces the previous expectation that the next command would fail and the lease would be released.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 97dc4

This updates a slow end-to-end test so it expects the agent's lease and device to survive a daemon restart. It has no production impact, and there is no known merge-blocking risk.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #1578 asks that the simlock-kill test at e2e/slow-agent-device.test.ts:517 stop claiming the lease ends after a standalone worker restart. It asks the test to expect the lease to be rebuilt (ado… Provide the base-to-head diff of e2e/slow-agent-device.test.ts, or the file contents at lines 500-560 of the head revision. Confirm that the restart test asserts that the lease is adopted and the next agent-device command or heartbeat succe…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the change: an e2e test is updated so the simlock daemon restart leaves the agent's lease in place. The raw summary says the test no longer expects the lease to end on restart, and the…
Description check Passed The description links issue #1578 and reports implementation, review, and hardware status. It also lists the iOS skip by the leasingCase gate and the Android hardware pass. These details relate to the…
Out of Scope Changes check Passed The whole-PR summary lists one changed file: e2e/slow-agent-device.test.ts (+8/-9). That file contains the test named in #1578. The changes update the restart test's expectations and do not add unrela…
Full details: Title check

Explanation

The title names the change: an e2e test is updated so the simlock daemon restart leaves the agent's lease in place. The raw summary says the test no longer expects the lease to end on restart, and the objectives say the test is corrected to match ADR 0071 §4. The title is specific and matches the main change. It cites issue #1578, which matches the linked issue.

Full details: Description check

Explanation

The description links issue #1578 and reports implementation, review, and hardware status. It also lists the iOS skip by the leasingCase gate and the Android hardware pass. These details relate to the e2e test change. The description is not off-topic, though it mostly reports process status and does not describe the test edits in detail.

Full details: Out of Scope Changes check

Explanation

The whole-PR summary lists one changed file: e2e/slow-agent-device.test.ts (+8/-9). That file contains the test named in #1578. The changes update the restart test's expectations and do not add unrelated behavior. The PR description and objectives do not mention other code. The diff could not be read to confirm the file list, so this result relies on the summary.

Full details: Linked Issues check

Explanation

Issue #1578 asks that the simlock-kill test at e2e/slow-agent-device.test.ts:517 stop claiming the lease ends after a standalone worker restart. It asks the test to expect the lease to be rebuilt (adoptable) and the next heartbeat to succeed on the same device. The whole-PR summary says the restart test now installs and reopens the Appduct fixture, takes a snapshot, and checks that the original lease ID and device ID are unchanged. It also says the test no longer expects 'lease ended by simlock' or waits for the old lease to be released. That matches the issue's intent. However, the diff could not be read (changed blobs unavailable), and the file read was truncated before line 517, so the new assertions were not verified in source. The summary does not show a heartbeat check. The PR description reports the slow-lane test ran only on Android. The iOS path was skipped by the leasingCase gate, and no test name or run output is given. The gate is still running.

Resolution

Provide the base-to-head diff of e2e/slow-agent-device.test.ts, or the file contents at lines 500-560 of the head revision. Confirm that the restart test asserts that the lease is adopted and the next agent-device command or heartbeat succeeds on the same device. Provide the slow-lane run result for this test name, or confirm the gate result.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 95959ad5-0fc3-4a3d-aa77-ab0fb9128b2a
Commits

Reviewing files that changed from the base of the PR and between 66d8e73 and 97dc4fd.

Files selected for processing: 1

  • e2e/slow-agent-device.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@V3RON

V3RON commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 97dc4fd

Runs: 4. Cost USD: 0.529. Agent seconds: 591.
Tokens input 95, output 15046, cache read 1054356, cache write 109131.
- build implementer: claude-sonnet-5-5 56 s $0.1195
- audit implementer: claude-sonnet-5-5 59 s $0.1553
- review 1 reviewer: claude-sonnet-5-5 32 s $0.1054
- hardware hardware-verifier: claude-sonnet-5-5 444 s $0.1488
Finding outcomes: {}. Classes: {}.
{"findings":[]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 19, 2026 16:52
@V3RON
V3RON merged commit 92fa5af into main Nov 19, 2026
85 checks passed
@V3RON
V3RON deleted the bug/1578 branch November 19, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slow-agent-device: the simlock-kill test claims the lease ends, but ADR 0071 §4 says a standalone worker restart keeps it

1 participant