Skip to content

ci: keep unit-daemon e2e groups out of the home account - #412

Merged
SSFSKIM merged 5 commits into
masterfrom
launchd-groups-off-home
Oct 31, 2026
Merged

SSFSKIM merged 5 commits into
masterfrom
launchd-groups-off-home

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Enforce the architect's ruling: e2e groups that install a unit daemon never run in the mini's home account, where the owner's real mawsd lives.

What changes

  • LAUNCHD_E2E: cross-build daemon-unit is the single workflow list for protected placement and cleanup. Outside hosted/overflow placement, listed groups take the proven guest alone, or EC2. Peer groups never take the guest; neither current group is admitted to it, so both use EC2 when not hosted.
  • Plan-time errors name the rule for conflicts with MEASURED_E2E, MAC_HOME_E2E or MAC_SHARED_E2E, live runs, and a listed group's EC2 placement when MAC_EC2=off. Both workflow planner callers receive the repository variable; nothing sets it.
  • Every listed matrix entry carries launchd: true, including hosted, guest and overflow entries. The shared e2e steps sweep those units before stopping peer processes, so a leftover KeepAlive unit cannot relaunch after the stop.
  • Plan summaries distinguish mandatory EC2 placement from queue overflow.

Placement pinned by tests

Route / lane (ordinary refs) cross-build daemon-unit
Mirror: none, hosted, vm, vm-trial EC2 Hosted mirror
Direct: none, hosted, vm, vm-trial Hosted macos-26 Hosted macos-26
Either route: no-hosted EC2 EC2
Either route: any reserved final ref, any lane EC2 EC2

Cross-build has the same placement on Linux and macOS lanes. Daemon-unit is macOS-only. A future effective guest admission sends a non-hosted daemon-unit to the guest alone (trial guest under vm-trial); cross-build stays off the guest even if listed. Neither group is newly admitted here.

Verification

Head: 1afa327d7a2652f7f5356ed549212e24c315f021.

  • TDD: seven new regression tests failed before implementation, including unsafe home/solo labels, missing refusals and missing sweep flags. Gate-plan's complete test file now passes 104/104.
  • Placement coverage crosses mirror/direct, all five Lane settings, macOS/Linux where applicable, and every reserved final-ref label. Additional tests cover effective guest admission, peer/unbuilt exclusions, exact flag propagation, cleanup conditions/order and EC2-off mandatory-placement refusal and optional-overflow fallback.
  • The first static run 41232475090 caught one stale caller expectation in scripts/ci-gate.test.mjs: the protected peer now requires EC2, not generic Mac labels. Updated that assertion; the launcher file passes 26/26 locally. A search of both caller-test directories found no other real-workflow placement expectation needing changes. Run 41232746889 was cancelled after this fixture fix superseded its head.
  • Pre-review static acceptance 41233115401 passed on attempt 1: plan and static succeeded, the launcher exited 0 and removed its temporary CI ref. Launched through detached origin/master with --gates static --class1a pool --peer none --label launchd-groups-off-home. This repository has no automatic PR-branch checks; gate.yml runs on ci/** pushes or dispatch.
  • Only the four authorized focused test files ran locally. No Mac services/settings, repository variables, Decision Logs or repository tracker files changed.

Review follow-up

Both P2 findings are fixed in 7583cbd5e:

  • MAC_EC2 now passes through the shared local planner-variable list and the launcher’s identity/pool-demand handoffs. The preflight no longer blocks hosted-only work on an EC2 alert when EC2 is off.
  • Peer eligibility is shared separately from final placement. Holder discovery can find an older direct-hosted check before EC2-off validation; final planning still refuses an unheld or explicitly requested EC2 check.
  • Three regression checks first failed (EC2-off preflight, holder discovery, launcher passthrough), then passed. All four authorized test files passed 187/187 serially: gate-plan, gate-peer-held, ci-gate-alerts and ci-gate.
  • Review-fix-head static acceptance 41234129831 passed on attempt 1: plan and static succeeded, the launcher exited 0 and removed its temporary CI ref. Same detached origin/master launcher and prescribed flags.

Final candidate-validation correction

1afa327d7 limits placement-independent eligibility to the current run. Older holder candidates again go through their full plan with their own ref and lane, so a no-hosted candidate that must refuse with EC2 off cannot suppress a newer direct-hosted peer job. The regression first returned the invalid hold 90 plan in_progress; after the fix it leaves cross-build on macos-26 with no waiter. All four authorized files pass 188/188 serially. Final-head static acceptance 41234805652 passed on attempt 1: plan and static succeeded, the launcher exited 0 and removed its temporary CI ref. Same detached origin/master launcher and prescribed flags.

For the architect

This includes both O5 landing 1 cleanup changes: cross-build participates through the shared list, and the sweep runs before peer stop. Whichever lands second rebases. MAC_EC2 remains unset for CI-opt to set at release. With MAC_EC2=off, optional overflow stays hosted for every group, listed or not; the old-rule shadow count stays unchanged. Only a listed group requiring EC2 outside hosted placement refuses. This follows CI-opt’s correction of the initial implementation: the new regression first reproduced the erroneous whole-run refusal, then passed with all three eligible groups hosted and the shadow count still three.

This PR is for the architect to land; this worker does not merge it.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Route LAUNCHD_E2E off hosted to the guest alone or EC2, refuse home-account conflicts and unavailable EC2, and sweep units before stopping peer processes.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T19:07:43.315849Z 0ca5f7c PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Disable actual EC2 overflow for every group while preserving the old-rule shadow count. Only a protected group's mandatory non-hosted EC2 placement refuses.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Update the real-planner launcher regression to require the EC2-specific runner instead of the home account's generic Mac labels.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Pass MAC_EC2 through local planner inputs. Share placement-independent peer eligibility so a held check can remove mandatory EC2 work before final validation, while unheld and explicit checks retain the refusal.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Discover this run's eligibility before placement, but reject older candidates whose own ref or lane cannot produce a peer verdict.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 0d39a6d into master Oct 31, 2026
@SSFSKIM
SSFSKIM deleted the launchd-groups-off-home branch October 31, 2026 19:46
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
…ni's home account (PR #412, master 0d39a6d) and e2e:remote on the hosted Macs (PR #416, master 0a1fa31); gate-peer-held's candidate discovery as a tracker row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
…for landing 1

O7 M2 (#410), CI-opt's #412 (LAUNCHD_E2E, the sweep before gate-peer.sh stop) and #416 (e2e:remote on the hosted Macs),
#411, #414, #415. Conflicts reconciled side by side: the render and remote namespaces in names, grades, schema and
its test, and the link surface's client rules; the router's host binding keeps daemonRenders under master's routeLaneB;
the default-spec count is 103 (render-host and remote); gate.yml's comment keeps both groups' notes. #410's
host-supervisor forward and StandIn.clients hunks merged to master's text (no duplicate). The wire minor and the
generated snapshots follow in their own commits.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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