Repository navigation
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 3 minutes. View limit details
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. |
Review ledgerRound 1: d989b8a {"findings":[{"id":"R1","role":"code","class":"repeated capacity wait line","outcome":"fixed","path":"src/core/seed-settle/settler.ts","round":"1","fix":"92b637c565fc439ad52530cf5243dec53821cb13"},{"id":"R2","role":"spec","class":"testing 3","outcome":"fixed","path":"src/daemon/dispatcher-seed.test.ts","round":"1","fix":"92b637c565fc439ad52530cf5243dec53821cb13"},{"id":"R3","role":"claims","class":"gateway refusal list omits seed","outcome":"fixed","path":"website/src/content/docs/docs/reference/errors.mdx","round":"1","fix":"92b637c565fc439ad52530cf5243dec53821cb13"},{"id":"R4","role":"code","class":"disk wait line lacks threshold","outcome":"nonblocking","path":"src/cli/commands/seed.ts","round":"1"},{"id":"R5","role":"claims","class":"waiting colon wording","outcome":"nonblocking","path":"website/src/content/docs/docs/worker/capacity.mdx","round":"1"},{"id":"R6","role":"code","class":"android default loses install advice","outcome":"fixed","path":"src/daemon/dispatcher-seed.ts","round":"fix-check"},{"id":"R7","role":"code","class":"testing 10","outcome":"fixed","path":"src/cli/index-seed.test.ts","round":"fix-check"},{"id":"R8","role":"claims","class":"comment says 15 s, interval is 5 min","outcome":"fixed","path":"src/core/seed-settle/settler.ts","round":"fix-check"},{"id":"R9","role":"code","class":"ios default below floor gets failing install advice","outcome":"fixed","path":"src/daemon/dispatcher-seed.ts","round":"fix-check"},{"id":"R10","role":"spec","class":"feature text disagrees with decided bound","outcome":"nonblocking","path":"docs feature #1732 B13 (feature.md:119,184)","round":"fix-check"}]}Written by an agent. |
… and pins the measured Android image (#1749)
Decision takenQuestion: how much less CPU must a copy of a settled Android seed use than a copy of its quick seed in its first 5 minutes? B13 said under a quarter, based on ADR 0090's figures (about 530 core-seconds for a quick copy against about 65 for a settled one). What the lane measured on this Mac, Android 36.1, Pixel 8: quick copy 271 core-seconds, settled copy 104, ratio 0.38. The quick copy used about half what the ADR measured. The settled copy pays about 78 core-seconds in its first minute, then about 6 per minute. Options:
Taken: under half. It keeps the check that matters, that settling saves real work, and matches the numbers on real hardware. The issue body's B13 line records it. To revert: set the bound in Also seen: the lane's default Android image, 37.0 with 16 KiB pages, idles at about one core whether or not its seed is settled. The test pins Written by an agent. |
Decision takenQuestion: what should B13 check for iOS? It asked for a settled copy under 0.75 of a quick copy's CPU time in its first 5 minutes, and under 0.3 cores from minute 3. What the lane measured on this Mac, with one run: quick copy 585.1 core-seconds, settled copy 555.9, so the ratio is 0.95. Per minute, quick was [417, 155, 1.3, 0.9, 10.2] and settled [315, 212, 18.7, 8.3, 2.0]. Both copies are quiet from minute 3, and the cost is the boot itself. ADR 0090 measured about 690 against 455. Options:
Taken: the second, because the maintainer said to continue. Users see nothing different: settling still runs, and the docs only say that later copies do less work. On iOS that saving is now small, and ADR 0090's iOS figures are not confirmed on this machine. To revert: put the iOS Written by an agent. |
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
Closes #1749
Status
Implement: done Review: round 1, fix-check x4 (R6–R9 fixed, none open) Hardware: pass (B13 at 65f6bb5) Gate: waiting for the stack
Next: stack gate
Done when
pnpm test:changedpasses, with the B10 to B12 cases above. B10 and B11 refusals:src/daemon/dispatcher-seed.test.ts; stages push:src/daemon/server-pushes.test.ts; client:src/simlock-client/client-pushes.test.ts; B12 CLI and Ctrl-C:src/cli/index-seed.test.ts.pnpm typecheckpasses.PROTOCOL_VERSION_RANGEis one higher than after Core settles quick seeds in the background, one at a time, when the worker is quiet #1746 (103 to 104,src/contract/protocol.ts).pnpm test:e2e e2e/contract-surface.test.tspasses withseed.makeprobed.check-openapi.mjspass;cli.mdx(simlock seed),errors.mdx(SEED_SETTLE_FAILED) andworker/capacity.mdx(settling a seed) describe it.scripts/slow-e2e.sh e2e/slow-seed-settle.test.tspasses (B13). — hardware-verifier on this Mac at 65f6bb5, 32 min, both cases pass, with the bounds decided in delivery (Android under half, iOS under 0.3 cores from minute 3; pending the maintainer)Assumptions
settle(counted from arrival, the settle under way goes on), as I4 and architecture rule 11 describe.imageTaggrammar —seed.makeuses the lease'simageTagSchema(letters, digits,_,.,-, up to 64), the same words a lease takes, not a looser 1–100.seed.makekeeps the lease's ownRUNTIME_MISSINGmessage for an exact or default request, since "install it with simlock component install" would fail for it; a range with no runtime still gets I7's message.doctor --json—simlock doctortakes no--jsonand always prints the JSON report, so the test runs plaindoctor.--image-tagwith ios (driver behaviour, no code here), anddoctor --jsonafter a seed.Review
Spec review: 1 blocking, 1 fixed, 1 notes. Code review: 4 blocking, 4 fixed, 0 notes. Claims review: 2 blocking, 2 fixed, 1 notes.
Rounds: 1. Tokens: 25.0M.
Runs: 29. Cost USD: 17.7322. Agent seconds: 13514.
Assessment: complete
Completion conditions
simlock seeddoes less work than on main: on Android its emulator uses under half of a quick copy's CPU in its first 5 minutes after ready; on iOS its simulator uses under 0.3 cores from minute 3 (decided in delivery, pending the maintainer: measured 0.38 on Android 36.1 and 0.95 on iOS, against ADR 0090's figures). — B13 slow lane on this Mac at 65f6bb5, both cases passensureSeedand B20 copy turns (feat(ios): an iOS worker settles its quick seeds in the background #1784, feat(android): a quick seed is replaced by its settled copy, and copies and deletions take turns #1830); Android slow lane 5/5 on feat(android): a quick seed is replaced by its settled copy, and copies and deletions take turns #1830simlock doctor --jsonsays so. — B1 gate and quiet-period tests and B8 doctor test (feat(core): core settles quick seeds in the background, one at a time, when the worker is quiet #1770)simlock seedexits 0 with a settled seed on both platforms (Android on macOS, Linux and Windows), refuses a missing runtime or image and a gateway, and leaves its settle queued on Ctrl-C. — B10 to B12 tests here; B13 slow lane on macOS for both platforms; Windows reading through B19's win32 fixture captured on DesktopWindows (feat(android): a quick seed is replaced by its settled copy, and copies and deletions take turns #1830); Linux and Windows not run end to endsimlock eventsas oneseed.settle-startedand oneseed.settle-endedwith its outcome; a settle cut by a crash has no end event, and the next start sweeps it. — B23 event tests (feat(core): core settles quick seeds in the background, one at a time, when the worker is quiet #1770); B16 and B21 sweep tests (feat(ios): an iOS worker settles its quick seeds in the background #1784, feat(android): a quick seed is replaced by its settled copy, and copies and deletions take turns #1830)Written by an agent.