rehearsal: second executor host — provision elitebook-03 so two standing drives run concurrently (phase-4 #652 beside the workstation's widened phase-3) #659
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.
Dependencies
No dependencies set.
Reference
Matou/idss#659
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?
Ben's ask 2026-08-22: running multiple rehearsals at once is valuable — the workstation is occupied by the widened phase-3 drive, and #652 (rented) is ready to arm with nowhere to run. Precedent: #380 provisioned matou-workstation as the executor. Two hosts are sound architecturally: each executor reads its OWN
rehearsal-env.sh(REHEARSAL_DRIVE_ISSUE/_TARGETare per host), the #577/ADR 0184 host lock is per host, and reporter/healer key on issue number — no collision.Inventory (read-only, 2026-08-22)
swarm@100.98.240.186(elitebook-distributed-server-03, Ubuntu 26.04, x86_64, 8 cpu / 14 GB / 182 GB free; passwordless sudo; docker swarm host; checkout already at/home/swarm/swarm/Matou/idss). Present: node, pnpm, git, jq, curl, ssh, docker. Missing:nix,doctl,Xvfb/xvfb-run, playwright chromium,rehearsal-env.sh, executor cron,~/.config/doctl, app state dir / own-VPS operator key, Mattermost+Claude tokens. The droplet-class targets (droplet,selfhosted,rented) need NO local guest/KVM — the machine under test is the droplet.Ben's half (sudo / secrets —
!)curl -fsSL https://install.determinate.systems/nix | sh -s -- install --no-confirm(the clan-lab golden recipe's installer);sudo apt-get install -y xvfb;doctlvia snap (sudo snap install doctl) +doctl auth init(the FULL-account token, same as the workstation's — NOT the scopedidss-brokerone)./home/dev/swarm/rehearsal-env.shfrom the workstation to/home/swarm/swarm/rehearsal-env.sh(mode 600), same 13 keys:PATH FORGEJO_TOKEN DIGITALOCEAN_ACCESS_TOKEN IDSS_BROKER_URL IDSS_PAYLOAD_DIR REHEARSAL_DRIVE_ISSUE ELECTRON_OVERRIDE_DIST_PATH CLAUDE_CODE_OAUTH_TOKEN CLAUDE_CODE_OAUTH_TOKEN_B REHEARSAL_DRIVE_TARGET MATTERMOST_URL MATTERMOST_BOT_TOKEN MATTERMOST_CHANNEL_ID— withREHEARSAL_DRIVE_ISSUE=652,REHEARSAL_DRIVE_TARGET=rented, and paths rewritten/home/dev→/home/swarm(IDSS_PAYLOAD_DIR,ELECTRON_OVERRIDE_DIST_PATH).swarm:*/2 * * * * . /home/swarm/swarm/rehearsal-env.sh && /home/swarm/swarm/Matou/idss/scripts/rehearsal-executor.sh >> /home/swarm/swarm/rehearsal-executor.log 2>&1(the workstation's line, paths swapped). NOT the session-runner line — one session-runner is enough.cd /home/swarm/swarm/Matou/idss && . ../../rehearsal-env.sh && nix develop .#e2e -c true && pnpm install && pnpm --filter app exec playwright install chromium— the cold/nix+ pnpm store costs 20–40 min once (elitebook's matou-app onboarding mis-logged exactly this as a preflight red — dev-factory #9).Swarm half (code)
scripts/rehearsal-executor.sh/rehearsal-cycle.sh/scripts/lib/*: audit for/home/devormatou-workstationliterals anddevuser assumptions; derive from$HOME/$root. AddREHEARSAL_HOSTto the drive-status record + reporter comment so a red names WHICH executor host ran it (the evidence pathtest-results/drive-<target>/<stamp>/is host-local)..forgejo/workflows/token-sync.ymlruns-onmatou-workstationonly: extend the Claude token pair sync to the second host (or document that elitebook reads the org secret itself) — without it the reporter limit-parks and the blocked-invariant flips the standing driveready-for-humanafter one red (the phase-3 4-day stall).docs/PROCESS.mdrunbook: "adding an executor host" section;.sandcastle/README.mdhost-lock note (per host).REHEARSAL_DRIVE_ISSUE(double-firing one standing drive = two droplets, two claims on one slug).Acceptance
A
--target rentedcycle fires from elitebook-03's cron, writestest-results/drive-rented/<stamp>/there, files/matches its red on #652 via the reporter (with the host named), while the workstation's phase-3 drive keeps running untouched.Related: #652 (ready to arm), #380 (first executor), #577/ADR 0184 (host lock), dev-factory #9 (cold store).
Ben's half IN PROGRESS (2026-08-22 ~11:55Z, Ben authorised the session to run steps 1–4): root door
ian@100.98.240.186(passwordless sudo) —xvfb(apt) +doctl(snap, AND nix profile so it is on the executor's PATH) + Determinate nix installed;/home/swarm/swarm/rehearsal-env.shlanded (13 keys mirrored from the workstation,/home/dev→/home/swarm,REHEARSAL_DRIVE_ISSUE=652,REHEARSAL_DRIVE_TARGET=rented, mode 600); payload (16 M) + electron-dist (452 M) mirrored to/home/swarm/swarm/rehearsal-{payload,electron}; nix profilego(workstation parity). Warm run/home/swarm/swarm/warm-elitebook.sh(e2e devshell, pnpm, chromium, go build check) running in background → logwarm-elitebook.log. Executor cron deliberately NOT installed until the warm run passes (a cold host ticking at #652 every 2 min would be noise). Gotcha hit: the env'sPATHline has no/snap/bin, so a snap-only doctl is invisible to cron — nix-profile doctl fixes it.elitebook-03 executor is LIVE (2026-08-22 11:58Z). Warm run passed in 7 min (e2e devshell, pnpm, chromium-1234,
go buildok — hot cache).*/2executor cron installed forswarmsourcing/home/swarm/swarm/rehearsal-env.shwithREHEARSAL_DRIVE_ISSUE=652+REHEARSAL_DRIVE_TARGET=rented— #652 is ARMED on elitebook-03; the workstation keeps the phase-3 widened drive (#657). Evidence for rented drives lives atelitebook-03:/home/swarm/swarm/Matou/idss/test-results/drive-rented/<stamp>/— note the reporter/healer copy still says "on matou-workstation" (#659 swarm half: stamp the hostname).First ticks on elitebook-03 — two host-prep lessons for the runbook section (swarm half):
go: command not foundat the payload refresh. Two concurrentnix profile installops (warm script'sgo+ a separatedoctl) raced; the profile generation briefly lacked one anddoctlsilently never landed. Rule: install ALL profile tools in ONEnix profile add nixpkgs#go nixpkgs#doctlcall, thenls ~/.nix-profile/binbefore trusting the cron. (Determinate nix 3.x:~/.nix-profile→~/.local/state/nix/profiles/profile, created by the first profile op — the env'sPATHline assumes it exists.)chrome-headless-shell: error while loading shared libraries: libatk-1.0.so.0.playwright install chromiumfetches the browser but not its system libs;playwright install-deps --dry-runprints nothing without a tty. Installed the documented Ubuntu set via sudo (libasound2t64 libatk-bridge2.0-0t64 libatk1.0-0t64 libatspi2.0-0t64 libcairo2 libcups2t64 libdbus-1-3 libdrm2 libgbm1 libglib2.0-0t64 libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 libgtk-3-0t64 libxss1 libxtst6 libnotify4 fonts-liberation libxcursor1 libxi6);lddon chrome-headless-shell and electron now shows 0 missing. Add anldd-based check to the warm script.Neither tick filed anything on #652 (preflight deaths are host-local, no drive dir) — correct behaviour.
Code half landed (
985e8f8) — your half is below, copy-paste readyAudit result first: the executor path was already host-agnostic (
$root/$HOME-derived). The only/home/devliteral was the crontab comment inrehearsal-executor.sh. So there was much less to port than the ticket assumed — the real gaps were evidence attribution and the token sync.Landed:
REHEARSAL_HOST, hostname fallback). With two executors the stamp alone is ambiguous —test-results/drive-<target>/<stamp>/is host-LOCAL, so knowing the stamp but not the box means you cannot find the evidence.token-syncruns one leg per executor host. Per-host paths are explicit rather than$HOME-derived, because the two runners run as different users (dev/swarm) and a wrong guess writes the token nowhere useful while reporting success.fail-fast: false, so before you provision elitebook its leg fails loudly on its own and the workstation still gets its tokens.docs/PROCESS.md— "adding an executor host", human-only steps marked.⚠️ The one thing that will bite
Two executors pointed at the same
REHEARSAL_DRIVE_ISSUEdouble-fire one standing drive: two paid droplets, two claims on one slug, and the secondpointoverwrites the first's DNS. Nothing in the machinery notices — the ADR 0184 lock protects a host from itself, never one host from another. The natural way in is copyingrehearsal-env.shand forgetting the two lines that matter, which is exactly what step 2 asks you to do.Your half (
!)Step 6 printing
652on both hosts means stop and disarm one before the next*/2tick.Still owed (not hand-patched on purpose)
The reporter naming the host in its comment lives in
.sandcastle/rehearsal-report.sh— aFACTORY_MANIFESTentry vendored byte-identical fromMatou/dev-factory(ADR 0180). Editing it here is the ownership inversion that ADR retired, andcheck-harness-drift.shreds on it (I made exactly this mistake on #664 and was corrected). It needs an upstream change plus aFACTORY_REFbump, so I am filing it rather than landing drift. Everything else in the acceptance criteria is in place; without it a red still names the drive and target, just not the box.Second-executor gap found live (2026-08-22 16:30Z):
swarm@elitebook-03had no SSH keypair, so the #661 auto-rebuild'sbuild.shcould not get into its build droplet —wait_sshsawPermission denied (publickey)for 5 min, logged "build droplet never answered SSH", deleted the droplet, and the drive parked on the #656 stale gate. Two attempts burned (~20 min of droplet time, both cleaned up).Fixed by hand: minted
~/.ssh/id_ed25519forswarm@elitebook-03and registered it at DO aselitebook-03(37:61:c4:…:86:a9) — the same shape as the workstation'smatou-workstationkey. Next executor tick retries the rebuild.For the runbook half of this ticket: add "executor host needs an SSH keypair registered at DO (
doctl compute ssh-key create <host> --public-key …)" to the second-executor checklist, and consider makingbuild.shfail loud up front when none of the DO-registered keys is loadable locally (today the symptom is a 5-minutenever answered SSHthat reads like a droplet fault).Ben's ruling, 2026-08-25 (interactive session): closed as delivered.
The provisioning ask is done in substance — elitebook-03 has been a live second executor since 2026-08-22 and drove #652 and the #720 confirmation loop to green concurrently with the workstation's phase-3 drive, which is exactly the concurrency this ticket asked for. The remaining residue (the DO SSH-keypair checklist line +
build.shfailing loud before renting a droplet it cannot enter, from the 2026-08-22 live gap) is split to #856 (ready-for-agent).