rehearsal: the self-hosted and connect journeys still await the S4d dial-in terminal right after Continue — the stand-up approves the machine, so both hit the ceiling (twin of 9acd1a4e) #1643

Closed
opened 2026-09-19 23:31:31 +00:00 by ben · 2 comments
Owner

What is wrong

journey.selfhosted.spec.ts (leg connect-dial-in) and journey.v2-connect.spec.ts (leg self-hosted-dial-in) both hold the S4d enroll terminal to the waiting-on-operator frontier, click Continue, and then await session.done. That rests on #1634's assumption that the Continue click IS the operator's decision. It is not, and the await can only end at the ceiling.

What is true (seam-probed 2026-09-19, proven live on the IDIP drive 20260919T222916Z / 20260919T230228Z)

  • OfferDialIn is the only hook that runs before a stand-up exists. Continue at S4d approves nothing.
  • The request made at S4d is approved by the STAND-UP: after Build it, the first ObservePairing poll finds the one Pending gateway-role request (pendingGatewayRequest) and approves it, then steps to reachability. BeginStandup also mints a fresh S7b code nobody needs.
  • idss-agent enroll blocks in AwaitAndLand (ADR 0209) until that approval — so the terminal exits during the pair leg, never inside connect-dial-in.

journey.idip.spec.ts was restructured on this in 9acd1a4e and went green through pair on two consecutive live fires. That commit is the pattern.

What to build

journey.selfhosted.spec.ts — mirror 9acd1a4e exactly:

  • declare enrollSession before connect-dial-in; the leg holds the PTY to the frontier, asserts consent recorded + connection request sent, sets enrollSession, and does NOT await .done;
  • arm the ports-honest DROP before create (it was armed before agent-install, which goes away);
  • create accepts ['install-machine', 'spec-gate-pass'] (s6aRecoveryPhraseAndCreate / reviewAndCreate already take a list on the IDIP side — extend whichever this journey uses);
  • REMOVE the install-command, agent-install and consent legs — the machine is already connected;
  • pair awaits spec-gate-pass, then enrollSession!.done, writes connect-dial-in-transcript.txt, and reds on a non-zero exit;
  • drop the imports that go unused; update the leg-count comments and any leg list a reporter or STATUS names for this journey.

journey.v2-connect.spec.ts — this journey never reaches Build it, so nothing will ever approve its request. The leg must not await .done: assert the frontier (the two lines above), keep the single-use re-run refusal (ADR 0054), and end the held session at teardown rather than waiting on it.

Acceptance

  • Neither journey awaits the S4d enroll terminal before the stand-up exists.
  • journey.selfhosted carries no second install: no install-command / agent-install / consent legs.
  • pnpm --filter app exec tsc --noEmit (or the repo's typecheck for app/tests/e2e) is clean; no unused imports.
  • STATUS.md notes the harness change in the same commit.

A live drive is the real proof and is not this ticket's job — the next self-hosted drive on the executor proves it.

## What is wrong `journey.selfhosted.spec.ts` (leg `connect-dial-in`) and `journey.v2-connect.spec.ts` (leg `self-hosted-dial-in`) both hold the S4d enroll terminal to the waiting-on-operator frontier, click **Continue**, and then `await session.done`. That rests on #1634's assumption that the Continue click IS the operator's decision. It is not, and the await can only end at the ceiling. ## What is true (seam-probed 2026-09-19, proven live on the IDIP drive `20260919T222916Z` / `20260919T230228Z`) - `OfferDialIn` is the only hook that runs before a stand-up exists. Continue at S4d approves nothing. - The request made at S4d is approved by the STAND-UP: after **Build it**, the first `ObservePairing` poll finds the one Pending gateway-role request (`pendingGatewayRequest`) and approves it, then steps to reachability. `BeginStandup` also mints a fresh S7b code nobody needs. - `idss-agent enroll` blocks in `AwaitAndLand` (ADR 0209) until that approval — so the terminal exits during the `pair` leg, never inside `connect-dial-in`. `journey.idip.spec.ts` was restructured on this in `9acd1a4e` and went green through `pair` on two consecutive live fires. That commit is the pattern. ## What to build **`journey.selfhosted.spec.ts`** — mirror `9acd1a4e` exactly: - declare `enrollSession` before `connect-dial-in`; the leg holds the PTY to the frontier, asserts `consent recorded` + `connection request sent`, sets `enrollSession`, and does NOT await `.done`; - arm the ports-honest DROP before `create` (it was armed before `agent-install`, which goes away); - `create` accepts `['install-machine', 'spec-gate-pass']` (`s6aRecoveryPhraseAndCreate` / `reviewAndCreate` already take a list on the IDIP side — extend whichever this journey uses); - REMOVE the `install-command`, `agent-install` and `consent` legs — the machine is already connected; - `pair` awaits `spec-gate-pass`, then `enrollSession!.done`, writes `connect-dial-in-transcript.txt`, and reds on a non-zero exit; - drop the imports that go unused; update the leg-count comments and any leg list a reporter or STATUS names for this journey. **`journey.v2-connect.spec.ts`** — this journey never reaches Build it, so nothing will ever approve its request. The leg must not await `.done`: assert the frontier (the two lines above), keep the single-use re-run refusal (ADR 0054), and end the held session at teardown rather than waiting on it. ## Acceptance - Neither journey awaits the S4d enroll terminal before the stand-up exists. - `journey.selfhosted` carries no second install: no `install-command` / `agent-install` / `consent` legs. - `pnpm --filter app exec tsc --noEmit` (or the repo's typecheck for `app/tests/e2e`) is clean; no unused imports. - STATUS.md notes the harness change in the same commit. A live drive is the real proof and is not this ticket's job — the next self-hosted drive on the executor proves it.

swarm-claim host=bens-mac-04 run=27882
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=27882 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1643 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1643,
  "status": "success",
  "commits": [
    "a6d0dd556aea6a3aa3c3595aad4ea57575452109"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/droplet.test.ts",
    "app/tests/e2e/fixtures/droplet.ts",
    "app/tests/e2e/fixtures/wizard.ts",
    "app/tests/e2e/journey.selfhosted.spec.ts",
    "app/tests/e2e/journey.v2-connect.spec.ts"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vue-tsc --noEmit -p tsconfig.json (app)",
      "exit_code": 0
    },
    {
      "command": "eslint app/tests/e2e/journey.selfhosted.spec.ts app/tests/e2e/journey.v2-connect.spec.ts app/tests/e2e/fixtures/droplet.ts app/tests/e2e/fixtures/droplet.test.ts app/tests/e2e/fixtures/wizard.ts",
      "exit_code": 0
    },
    {
      "command": "vitest run tests/e2e/fixtures/droplet.test.ts tests/e2e/fixtures/selfhosted.test.ts (49 passed)",
      "exit_code": 0
    },
    {
      "command": "playwright test --config playwright.config.ts --list (collects clean)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Neither journey awaits the S4d enroll terminal before the stand-up exists": "journey.selfhosted.spec.ts connect-dial-in holds the PTY to the frontier and sets enrollSession without awaiting .done (pair awaits it only after Build it/the stand-up); journey.v2-connect.spec.ts self-hosted-dial-in never awaits .done and ends the held session at teardown (heldEnroll.close()). Commit a6d0dd55.",
    "journey.selfhosted carries no second install: no install-command / agent-install / consent legs": "Those three test.step legs are removed; grep for 'install-command'/'agent-install'/'consent' test.step keys returns none; the cloud-init wait + systemctl is-active check were moved into the connect-dial-in callback. journey.selfhosted.spec.ts.",
    "pnpm --filter app exec tsc --noEmit (or repo typecheck for app/tests/e2e) is clean; no unused imports": "vue-tsc --noEmit -p tsconfig.json exits 0 (tsconfig includes tests); eslint on all changed files exits 0; dropped unused imports enrollmentCodeFrom + s7bInstallCommand and the dead CEILING.installCommand key.",
    "STATUS.md notes the harness change in the same commit": "STATUS.md updated with the #1643 milestone entry in commit a6d0dd55 (merged with the concurrent #1620/#1642 entry, both preserved newest-first)."
  },
  "summary": "Applied 9acd1a4e's IDIP dial-in restructure to journey.selfhosted and journey.v2-connect so neither awaits the held S4d enroll PTY before a stand-up exists.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1643 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1643, "status": "success", "commits": [ "a6d0dd556aea6a3aa3c3595aad4ea57575452109" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/droplet.test.ts", "app/tests/e2e/fixtures/droplet.ts", "app/tests/e2e/fixtures/wizard.ts", "app/tests/e2e/journey.selfhosted.spec.ts", "app/tests/e2e/journey.v2-connect.spec.ts" ], "tests": [ { "command": "node_modules/.bin/vue-tsc --noEmit -p tsconfig.json (app)", "exit_code": 0 }, { "command": "eslint app/tests/e2e/journey.selfhosted.spec.ts app/tests/e2e/journey.v2-connect.spec.ts app/tests/e2e/fixtures/droplet.ts app/tests/e2e/fixtures/droplet.test.ts app/tests/e2e/fixtures/wizard.ts", "exit_code": 0 }, { "command": "vitest run tests/e2e/fixtures/droplet.test.ts tests/e2e/fixtures/selfhosted.test.ts (49 passed)", "exit_code": 0 }, { "command": "playwright test --config playwright.config.ts --list (collects clean)", "exit_code": 0 } ], "criteria": { "Neither journey awaits the S4d enroll terminal before the stand-up exists": "journey.selfhosted.spec.ts connect-dial-in holds the PTY to the frontier and sets enrollSession without awaiting .done (pair awaits it only after Build it/the stand-up); journey.v2-connect.spec.ts self-hosted-dial-in never awaits .done and ends the held session at teardown (heldEnroll.close()). Commit a6d0dd55.", "journey.selfhosted carries no second install: no install-command / agent-install / consent legs": "Those three test.step legs are removed; grep for 'install-command'/'agent-install'/'consent' test.step keys returns none; the cloud-init wait + systemctl is-active check were moved into the connect-dial-in callback. journey.selfhosted.spec.ts.", "pnpm --filter app exec tsc --noEmit (or repo typecheck for app/tests/e2e) is clean; no unused imports": "vue-tsc --noEmit -p tsconfig.json exits 0 (tsconfig includes tests); eslint on all changed files exits 0; dropped unused imports enrollmentCodeFrom + s7bInstallCommand and the dead CEILING.installCommand key.", "STATUS.md notes the harness change in the same commit": "STATUS.md updated with the #1643 milestone entry in commit a6d0dd55 (merged with the concurrent #1620/#1642 entry, both preserved newest-first)." }, "summary": "Applied 9acd1a4e's IDIP dial-in restructure to journey.selfhosted and journey.v2-connect so neither awaits the held S4d enroll PTY before a stand-up exists.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1643
No description provided.