Repository navigation
fix(agentctl): finish leased Polylogue dev-loop migration - #4119
Conversation
Problem: The merged dev-loop operation exposed its runner through the public devtools catalog and accepted only caller-provided port environment values. Browser helper scripts also retained direct receiver, free-port, and detached Chrome lifecycle paths. What changed: The declared operation now executes a private fixed module that validates Sinnixd job identity, exact managed-workspace head, descriptor lease slots, and allocated port ranges before any archive or process side effect. CDP is a third leased port. Standalone extension dev-loop commands are removed, while the retained provider-capture module is reachable only through the fixed proof and leaves final child cleanup to systemd. Verification: focused devtools service tests, generated-surface check, pending Sinnixd service-lease descriptor parse, Node syntax check, zero-reference scans, and devtools verify --quick all passed. Ref polylogue-agentctl-adapter.1 Co-authored-by: Codex <[email protected]>
Problem: Browser deployment smoke remained publicly invocable with a caller-selected executable and a free CDP port. Checkout-local dev-loop environment checks also overstated their authority, while the copied-profile provider workflow had been removed rather than preserved behind a typed operation boundary. What changed: Add a fixed AgentCTL browser-render operation with a leased CDP port and remove Chrome control from public deployment smoke. Retain only honest fail-closed shell-context guards in Polylogue, preserve the copied-profile helper as import-only product semantics, and document the current typed-operation blocker. Contract tests distinguish descriptor and product-wiring evidence from the coordinator-owned Sinnixd receipt. Co-authored-by: Codex <[email protected]>
Problem: Browser proof services trusted forgeable environment variables and could leave Chrome or Node descendants after launcher failure. The copied-profile flow also retained a general importable launcher instead of a declared fixed operation. What changed: Attest private service commands against their matching Sinnixd cgroup and unit environment, add the fixed copied-profile operation, and terminate each launcher process group locally on every failure path. Direct execution fails before Node or Chrome starts. Focused tests cover forged context rejection and descendant cleanup. Compatibility: Sinnixd remains the authority for exact-head admission and leases. Local checks only constrain private commands to that already-authorized unit. Co-authored-by: Codex <[email protected]>
Problem: Sinnixd supplies child identity through ExecStart's env -i command, so checking unit Environment rejected valid jobs. The copied-profile proof also had no controlled provisioning route, and its timeout and browser spawn checks left review gaps. What changed: Verify the current child environment against the matching cgroup and rendered ExecStart, add a fixed bounded profile-provisioning operation, align the Node, Python, and job deadlines, and guard every private Chrome spawn boundary. Timeout results are typed JSON after process-group cleanup. Verification: devtools test focused service-context, profile, timeout, and launch-boundary coverage; devtools render all --check; devtools verify --quick; Node syntax checks and manifest validation. Co-authored-by: Codex <[email protected]>
Problem: The finite copied-profile provisioning operation declared a service\nwithout ports, so Sinnixd rejected the entire Polylogue adapter.\n\nWhat changed: Model provisioning as a non-service declared operation while\nretaining its matching transient-unit guard. Test the complete adapter through\nSinnixd's production parser and verify only port-owning browser operations\ndeclare services.\n\nVerification: uv run devtools test tests/unit/devtools/test_deployment_browser_smoke_service.py tests/unit/devtools/test_live_provider_profile_provision_service.py tests/unit/devtools/test_sinnixd_service_context.py; production Sinnixd parser proof; uv run devtools verify --quick.\n\nCo-authored-by: Codex <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ffd39eb32
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):
Resolving these threads. |
|
Closing out open Codex review threads on this PR (evidence checked against master at c950478):
Resolving the fixed, stale and refuted threads; tracked threads stay open. |
Summary
Finish the Polylogue dev-loop migration by making AgentCTL’s declared service operation the only host-control route, leasing API/receiver/CDP ports, and deleting direct devtools/npm launchers.
Problem
The initial migration left a public devtools runner, browser-extension npm callers that could start live host control directly, mocked boundary claims, a 7,200-second full-suite cap already disproved live, and Chrome/CDP lifecycle outside the complete service-lease contract.
Solution
dev_loop_proofoperation and validate exact-head/descriptor/lease admission before any archive or process creation.verify_all.timeout_secondsto the supported 14,400-second maximum.Verification
devtools render all --check: generated surfaces current.devtools verify --quick: passed on the final branch.git diff --checkpassed.The coordinator will run the real exact-head service operation and final
verify_allafter merge, because the live project catalog intentionally resolves the canonical master descriptor.Ref:
polylogue-agentctl-adapter.1.