Repository navigation
feat(core): a phone's hardware serial is kept on its record, and one phone keeps one record - #1622
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Review ledgerRound 1: f951fed {"findings":[{"id":"R1","role":"code","class":"testing 10","outcome":"nonblocking","path":"src/core/physical-presence.test.ts","round":"1"}]}Written by an agent. |
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
Closes #1605 ### Status Implement: done (build 8/8, audit probed 10/10, fixes R1-R4, Fallow splits, ADR 0080 Accepted) Review: passed round 2 + fix-check (R4 verified by coordinator) Hardware: pass (network case, 6154a06) Gate: running on the stack Next: gate merges #1594, #1622, #1627 ## Done when - [x] `pnpm test:changed` passes, with a test per B1–B5 and B10–B12 case above (B12's core case excepted, already pinned), and today's `network-only` tests (X19) pass unchanged. — audit run at bc75164, 10/10 tests probed red; remaining failures are base flakes #1613, #1628 - [x] The website build and its HTTP API check pass (`definition.ts` changes). — audit ran the project checks the diff triggers: pass - [x] `website/src/content/docs/docs/reference/configuration.mdx` has the `android.networkDevices` row; `worker/enrolling-physical-devices.mdx` and `using-devices/physical-devices.mdx` describe network phones, reconnects, the address as the ID, moving a phone, and the warning that with both keys on any network phone connected on the worker is enrolled. — read in the diff; claims review found no defect - [x] `safety.md` rules 1, 7 and 8 and `src/drivers/android/AGENTS.md` name the exceptions; `toolchain.md`'s Physical Android row names `SIMLOCK_PHYSICAL_ANDROID_NETWORK` beside `SIMLOCK_PHYSICAL_ANDROID_APK`. — fixed in review (R1, R3), verified by round 2 claims lens - [x] Slow lane: `scripts/slow-e2e.sh --physical e2e/slow-android-physical.test.ts` passes its network case on a phone connected by `adb connect` or wireless debugging (`SIMLOCK_PHYSICAL_ANDROID_NETWORK` and `SIMLOCK_PHYSICAL_ANDROID_APK` set). — hardware lane at 6154a06, network case pass over wireless debugging (1 min) ## Assumptions - Assumption: a record's reclaim guard follows the record, not the key — a record that has a hardware serial is checked before any `pm` command even when `android.networkDevices` is later turned off, the conservative choice for the "another phone is never cleaned up" rule. - Assumption: no reconnect when the first `devices -l` fails or is blocked — nothing is run beyond what the list allowed, and every ID reads `not-present` as today. ## Completion conditions (#1589) - [x] On a worker with `android.networkDevices: true`, `simlock device add --platform android <ip>:5555` enrols a phone connected by `adb connect`, and `simlock lease --platform android --physical` grants it with `ANDROID_SERIAL=<ip>:5555`. — slow-lane network case at 6154a06 asserts the ID and ANDROID_SERIAL (wireless-debugging address) - [x] After `adb kill-server` on that worker, the enrolled phone is present again within two probe intervals with no command typed. — B4 reconnect tests at the handler with scripted adb, probed red; not run on a real phone - [x] A different phone answering at an enrolled address reads absent, and a release of a lease on that address uninstalls nothing on it. — B3 and B12 tests, probed red in the audit - [x] `device add` of a phone already enrolled under another ID is refused `enrolled-under-other-id`. — #1622's B6–B9 tests - [x] With the key off, every row of the Examples tables answers as its key-off column says, and a worker that has no network record answers every `device add` exactly as today. — key-off rows of B1–B5 and B10, and today's `network-only` tests unchanged - [x] With `devices.autoEnroll` on too, a phone connected by `adb connect` is enrolled within one probe interval. — B5 host-level list tests feed the existing auto-enrol path; not run on a real phone ## Review Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 0 notes. Claims review: 2 blocking, 2 fixed, 0 notes. Rounds: 2. Tokens: 5.4M. Runs: 18. Cost USD: 6.5168. Agent seconds: 3449. Assessment: complete *Written by an agent.*
Closes #1604
Status
Implement: done (build 8/8, audit probed 33/33, covered 17/17) Review: passed round 1 Hardware: n/a Gate: waiting for the stack
Next: none until the stack merges
Done when
pnpm test:changedpasses, with a test per B6–B9 case above. — audit run at f951fed, every B6–B9 case probed redpnpm test:e2e e2e/physical-enrollment-auto-enroll.test.ts e2e/physical-enrollment.test.tspasses. — audit run, 33 passedwebsite/src/content/docs/docs/reference/errors.mdxand the reasons table ofworker/enrolling-physical-devices.mdxlistenrolled-under-other-idwith what to do. — read in the diff; claims review found no defectsrc/contract/changes). — audit ran the website build andcheck-openapi.mjs: passAssumptions
PROTOCOL_VERSION_RANGEmovesmaxby one (92) and leavesmin, since a new refusal reason is additive and an older client still reads every other answer.Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 1 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 3.5M.
Runs: 6. Cost USD: 4.5207. Agent seconds: 1951.
Assessment: complete
Written by an agent.