Repository navigation
fix(agent): preserve edge registration ownership in v1.7 - #1166
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds ownership validation to registry component registration and agent component synchronization. Retired edge agents stop registration, cache publication, and rollback of replacement owners. Disconnected adapters reject request and stream operations before allocating state or sending frames. Tests cover registration races, cleanup failures, replacement ordering, and disconnected request behavior. Suggested labels: Merge Risk: ⚪ Minimal · up to This change prevents retired edge connections from publishing stale state and rejects work after disconnect. Reported validation passes, with no actionable merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
@greptileai Review exact head |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@greptileai Review exact head |
fix(agent): forward-port edge registration ownership to v1.7
Carry the reviewed fix from merged 1.6 PR #1161 (
64a0e1e7e67830c8f656c73648700a7f8fb4afe7) into the maintained 1.7 line. An edge connection could disconnect while its component initialization was waiting, then publish its retired watcher over a replacement connection's component. The retired caller could also attempt name-wide rollback against the replacement.Changes
GET /containers/json?all=truesent through the loopback bridge, disconnects the adapter, and registers its replacement. It does not pause bridge initialization or invoke concurrent client synchronization directly.The diff is seven files, +500/-6 against
dev/v1.7atad04f8b7fa5e847ae120fec812434395242803cc. Head is7526dc465c8f7eae399f4be84651e63a7dcc01a3. This contains no 1.6 release metadata, dependency changes, or workflow edits. All six workspace installs were restored to their existing 1.7 manifests and locks without changing those files.Verification
7526dc465c8f7eae399f4be84651e63a7dcc01a3in 311.36 seconds: 13,832 backend tests across 425 files and 4,791 UI tests across 228 files, both with 100% coverage; both builds, 215 script tests, 263 workflow tests, UI typecheck, Biome, knip, static scans, and workflow security checks passed. The remote branch matches the exact head. The UI build regenerated two pre-existing Lucide icon definitions; only that generated local drift was restored to the committed bytes, with no product change included. The checkout is clean and all owned gate processes have exited.Hosted fleet verification
Fleet soak 34424059769 passed all six assertions: eight agents connected, 48 exec sessions/output frames, slow-consumer reconnect and two recovered reconnect storms. RSS growth was 8,450,048 bytes within 128 MiB; controller heap growth was 1,616,312 bytes within 64 MiB. The tested merge commit
3f1ab294ee066f62af2540783f4ffe058d3e4dcbhas tree52f3eeac3e8e51bd31529c9c3bc6138051542fde, exactly matching this PR head. Portwing was unchanged atd6ba7a9255e4a12418ffa6ac7ff8c21de6560a18.Results finished at 01:08:09.707Z, the process step exited successfully by 01:08:12Z, and the job completed at 01:08:19Z. No retained process tail or forced-success exit was observed. These hosted resource measurements precede cleanup and are not a post-cleanup handle census; that separate proof is the bounded compiled diagnostic above. Artifact 10132017859 was fetched and its archive hash verified against the published SHA-256 digest
93dbad20642810f04e088d4d441b8d09fe1efda1cde851ea121f2bb587cad583.All 11 required checks pass or correctly skip on this exact head. CI Verify passed, including coverage in 10m58s, build in 6m30s, Cucumber in 5m01s and image scanning. Playwright passed in 8m52s. Actual first CodeRabbit review summary 5611105402 was updated at 2026-09-10T08:21:34Z, run
1ece9fff-e66d-4d84-9c71-5abd2257bbf9, covering exact ad04f8b to 7526dc4 across all six source/test files. It reported no actionable findings or similarity skips and minimal risk. Request 5615355519 and reply 5615400260 were fetched; no second review was needed. Greptile's request alone remains no review evidence.After independent verification of published v1.6.1-rc.13 completed, #1166 merged at 2026-09-10T17:00:46Z as
c597842df72b820d120c346cafb9aac90dc7cfda. Its full tree52f3eeac3e8e51bd31529c9c3bc6138051542fdeexactly matches reviewed head 7526dc4. No new release is cut by this runtime merge.Release impact
The published v1.7.0-rc.14 image does not contain this runtime fix and remains held from promotion. This PR does not cut a release or edit candidate identities. Including the fix requires a fresh candidate, exact-source release checks, artifact verification, and a fresh seven-day soak measured from that candidate's actual publication. RC15 metadata preparation is now in #1169. The 1.8 forward-port is prepared locally after this reviewed landing and has not merged.
Review scope: legitimate disconnect/reconnect races and abandoned in-flight work in the controller/edge lifecycle. No new registration subsystem or cross-repository wire contract is introduced.