Repository navigation
pkgs/laptop-agent: reconciled daemon source — live ∪ vendored lineages (#10131) - #11015
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
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 18 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex gate disposition: the Codex connector reported usage limits for code reviews on this PR and produced zero findings (no review findings to read). Per the repo charter the merge proceeds on the strength of the recorded verification: 65/65 vendored-lineage tests in-tree and the 19-check live-protocol parity round-trip, both run on the laptop against this exact source (sha-verified). — lane any-f, task 20480 |
What
Vendors the reconciled laptop-agent daemon as the single source at
pkgs/laptop-agent/—src/laptop_agent.py,package.nix(the darwin-nix package shape), andtests/(the vendored lineage's 65-test suite plus the live-protocol parity round-trip script). This is the prerequisite that makes #5769's M2 executable.The two lineages, and what the union carries
/execprocess-group timeout kill, no orphanstrips.jsonl,_t_receivedecho)POST /exec/<trip>/cancel(+ legacy/cancel)GET /filebyte ranges (code#5757)GET /jobssummary shape (no payload reads)job_dirpath-escape validationAuth header is
X-Agent-Tokenin both lineages (verified in both sources and in the client) — no wire change.Deliberate choices (recorded, not silent)
/execkeeps the live in-memory drain + process-grouprun_one. The vendored spool-to-filerun_onewas not adopted: the live cancel/disconnect semantics the fleet depends on are built on the in-memory runner.tail_fileis retained for spool sampling./healthrequires auth (vendored behavior; the live lineage served it unauthenticated). The client and all fleet probes send the token, so nothing operational changes.BASHresolution:LAPTOP_AGENT_BASH(set by the package wrapper) first, then the live lineage's PATH/NixOS-profile chain.Parity evidence
pkgs/laptop-agent/tests/test_laptop_agent.py, run on the laptop against this source).tests/parity_roundtrip.py, 19 checks, run on the laptop against the reconciled daemon on a scratch port/state dir — the live daemon on :4799 was not touched): health, 401 without token, exec argv+shell, timeout kill with no orphan, trip cancel, 400s for bad cmd/timeout/JSON, job create→complete with output paging, jobs-list summary shape, job kill,/filerange +X-File-Size, restart persistence (running job → done+interrupted, finished job still pollable),trips.jsonlexec+job records. All pass.Closes #10131
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.