rehearsal: scope the systemctl preflight gate (and guest teardown) to local-guest — the droplet target must not require a user bus #379
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the #183 rehearsal ratchet. Follow-on from #377's clean negative: the droplet target (
--target droplet,6829b21) was built to shed the local-guest substrate requirements, and mostly does — the/dev/kvmgate is scoped to local-guest (scripts/smoke-private-path.sh:113-115), the memory floor drops to 2048 MiB for droplet (line 137), and the payload demand shrinks tocontrol-plane+dashboard(line 210). But one gate is over-broad:scripts/smoke-private-path.sh:117—command -v systemctl || die_host "...the guest runs under the operator's user systemd (ADR 0129)"fires for EVERY target. The own-VPS journey never stands upourcloud-guest.service; its guest is the droplet. On the Sandcastle substrate (PID1=sleep, no systemd — #377 comment host facts) this is an immediate refusal even though the droplet drive-stack needs nothing from systemd.oc_teardown_guest(lines 90-108) likewise callssystemctl --user— hygiene that only matters on hosts that ran local-guest drives.What to do
systemctlhard gate to[[ "$target" == "local-guest" ]], same shape as the kvm gate.oc_teardown_guestcall (or its body) to local-guest.systemctl --user/ guest-unit codepath reachable from the own-VPS branch inapp/tests/e2e/journey.droplet.spec.ts+ the manager). If it does, this ticket's premise is wrong — say so on the ticket instead of landing it.--target local-guest --dry-runoutput unchanged — the Task-6 seam's own invariant).Acceptance
scripts/smoke-private-path.sh --target droplet --dry-runpasses in an environment WITHOUTsystemctl(e.g. the Sandcastle container), given the droplet prerequisites (doctl/token, broker URL, 2-artifact payload).--target local-guestpreflight refusals unchanged (kvm, systemctl, 6144 floor, 5-artifact payload).Evidence trail: #377 comment 5152 (substrate host facts), #378 comment 5188 (Tasks 5+6 landing).
Landed in
c1c1073(onorigin/main).What changed:
scripts/smoke-private-path.sh:117— thecommand -v systemctlhard gate is now scoped to[[ "$target" == "local-guest" ]], same shape as the/dev/kvmgate directly above it. The local-guest check order stays byte-identical (kvm → nix → systemctl — the Task-6 seam invariant):nixremains an all-target gate between them, onlysystemctlmoved inside a local-guest guard.Step 2 (oc_teardown_guest): its call was already
local-guest-scoped as of6829b21(if [[ "$target" == "local-guest" ]]; then oc_teardown_guest; fi), so itssystemctl --userbody only runs on that path. No change needed there.Premise VERIFIED (step 3): the app's own-VPS wizard branch (
s4AccessOwnVPS→install-own-vpsinjourney.droplet.spec.ts) emits an install command that runs ON the VPS over ssh and never touches the user bus. The guest-unit codepath (Manager.Createlayingourcloud-guest.service) is the local-guest path's alone —grepforsystemctl/--user/guest.serviceacrossapp/srcfinds no wizard/manager own-VPS user-bus reach. The only app-sidesystemctl --usercalls are best-effort evidence collectors (app/tests/e2e/fixtures/evidence.ts,afterAll, failure-tolerant). Premise holds.Proven both directions on this systemd-less host (no
systemctlon PATH — the exact Sandcastle substrate #377 named):--target droplet --dry-run→PREFLIGHT: systemctl not found …(exit 3).--target droplet --dry-runclears the systemctl gate and dies later atPREFLIGHT: the electron binary is not installed …— electron is a droplet drive-stack prerequisite, out of scope here (acceptance says "given the droplet prerequisites"). The systemctl refusal is gone.--target local-guest --dry-runkeeps its refusal (no /dev/kvmfires first here; kvm→nix→systemctl order unchanged).bash -nclean; no new shellcheck findings (the two pre-existing SC2034/SC1091 on lines 52/64 are untouched). STATUS.md carries a milestone-log entry + date bump.