Skip to content

fix(agentctl): finish leased Polylogue dev-loop migration - #4119

Merged
Sinity merged 5 commits into
masterfrom
feature/agentctl/dev-loop-postmerge-repair
Aug 23, 2026
Merged

Sinity merged 5 commits into
masterfrom
feature/agentctl/dev-loop-postmerge-repair

Conversation

@Sinity

@Sinity Sinity commented Aug 23, 2026

Copy link
Copy Markdown
Owner

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

  • Execute one fixed private module only through the declared dev_loop_proof operation and validate exact-head/descriptor/lease admission before any archive or process creation.
  • Lease API, browser-capture, and Chrome CDP ports; keep daemon and Chrome descendants in the transient systemd job cgroup.
  • Validate the live systemd cgroup and Sinnixd-rendered fixed child context before browser proofs can touch provider state.
  • Provision the live-provider Chrome profile as a finite declared operation into a private copied profile; it is deliberately not modeled as a port-owning service.
  • Delete direct browser-extension dev-loop scripts/npm commands while retaining the provider-capture semantic helper inside the operation.
  • Remove the runner from the public devtools catalog and update generated documentation.
  • Raise verify_all.timeout_seconds to the supported 14,400-second maximum.

Verification

  • Focused service/profile/context suites: 16 passed on the final repair.
  • devtools render all --check: generated surfaces current.
  • devtools verify --quick: passed on the final branch.
  • The complete descriptor loads through Sinnixd's production parser: all seven operations accepted, profile provisioning has no service contract, and exactly the three port-owning proof operations declare services.
  • Three independent cold reviews drove process/cgroup confinement, private-profile, timeout hierarchy, and real-parser fixes; signed-commit verification and git diff --check passed.

The coordinator will run the real exact-head service operation and final verify_all after merge, because the live project catalog intentionally resolves the canonical master descriptor.

Ref: polylogue-agentctl-adapter.1.

Sinity and others added 5 commits August 23, 2026 20:40
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]>
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c7b1d8a4-e439-4175-929c-a2f39f2026f5


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 06f826e into master Aug 23, 2026
3 checks passed
@Sinity
Sinity deleted the feature/agentctl/dev-loop-postmerge-repair branch August 23, 2026 20:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread devtools/live_provider_proof_service.py Resolved
@Sinity

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):

Resolving these threads.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant