Install-session acceptance: onboard Matou/matou-website end-to-end with install-prompt.md #62

Closed
opened 2026-08-24 17:14:53 +00:00 by ben · 4 comments
Owner

Sub-project 4 of the agent-driven install-session arc (Ben, 2026-08-21; docs/superpowers/specs/2026-08-21-vendor-command-design.md §Context). Sub-projects 2 (vendor), 1 (policy + rendering) and 3 (host enrolment) are closed — every mechanical step exists as an onboard.sh subcommand. This sub-project adds the missing probes and the instruction layer that drives them as ONE agent session on the target host.

Why human

Ben's hands + a one-way-door bundle: picking the target repo, pasting the credential bytes (never through the session), any org/team grant the new repo needs (machines team already covers Matou repos), and runner registration if the target needs a new host. The session does everything else.

What

Run the install session (install-prompt.md) against a repo that has never been a factory consumer, on its target host. The arc's original acceptance bar (#572's "runner registration + one smoke ticket end-to-end"), now expected to be: human answers the interview + pastes secrets; everything else lands autonomously, ending with the smoke ticket closed by the gate and the drift check green.

Deliverables

  • The new consumer live (pin, labels, workflows, policy, prompts, host enrolment, smoke ticket closed).
  • A ## Residue comment here for every step that needed a human beyond the declared one-way doors — each becomes a ticket; an empty residue list is the arc's DONE.
  • STATUS.md milestone in dev-factory (INSTALLABLE) + memory of the arc closed.
_Sub-project 4 of the agent-driven install-session arc (Ben, 2026-08-21; `docs/superpowers/specs/2026-08-21-vendor-command-design.md` §Context). Sub-projects 2 (vendor), 1 (policy + rendering) and 3 (host enrolment) are closed — every mechanical step exists as an `onboard.sh` subcommand. This sub-project adds the missing probes and the instruction layer that drives them as ONE agent session on the target host._ ## Why human **Ben's hands + a one-way-door bundle:** picking the target repo, pasting the credential bytes (never through the session), any org/team grant the new repo needs (`machines` team already covers Matou repos), and runner registration if the target needs a new host. The session does everything else. ## What Run the install session (`install-prompt.md`) against a repo that has never been a factory consumer, on its target host. The arc's original acceptance bar (#572's "runner registration + one smoke ticket end-to-end"), now expected to be: human answers the interview + pastes secrets; everything else lands autonomously, ending with the smoke ticket closed by the gate and the drift check green. ## Deliverables - The new consumer live (pin, labels, workflows, policy, prompts, host enrolment, smoke ticket closed). - A `## Residue` comment here for every step that needed a human beyond the declared one-way doors — each becomes a ticket; an empty residue list is the arc's DONE. - STATUS.md milestone in dev-factory (`INSTALLABLE`) + memory of the arc closed.
Author
Owner

Target ruled (Ben, 2026-08-24): Matou/matou-website. The install session (#61's install-prompt.md) runs on the target host against a fresh checkout of matou-website; Ben's declared one-way doors stand (credential bytes, any new-host runner registration — machines team already covers Matou repos).

**Target ruled (Ben, 2026-08-24): `Matou/matou-website`.** The install session (#61's `install-prompt.md`) runs on the target host against a fresh checkout of matou-website; Ben's declared one-way doors stand (credential bytes, any new-host runner registration — `machines` team already covers Matou repos).
ben changed title from Install-session acceptance: onboard a real new repo end-to-end with install-prompt.md to Install-session acceptance: onboard Matou/matou-website end-to-end with install-prompt.md 2026-08-24 17:32:16 +00:00
Author
Owner

The launch flow for this acceptance run changed (Ben's 2026-08-24 ruling, superseding his 2026-08-21 "on the target host" ruling — recorded in ADR 0006 point 2, amended in place; landed in ce7d360).

The kickoff is now from Ben's local dev-factory checkout, not on a fleet machine:

cd <local-dev-factory-checkout>
claude "Follow onboarding/install-prompt.md and onboard Matou/matou-website onto
        the fleet. Its local checkout is at <local-matou-website-checkout>."

What the revised session does differently:

  • It asks which enrolled machine(s) (one or both) will carry the repo, by ssh door — the machine list stays host-resident (ADR 0005), so this is Ben's to answer, and "both" loops the host half per door (the multi-host claim pool makes that safe).
  • The repo half runs locally (detect, vendor, identity, the policy interview, labels/workflows/dockerfile/secrets checklist, enrichments + render) and ends in a push; each machine's workdir then pulls it.
  • The host half runs over ssh per chosen machine: host preflight, credential files, enrolment, runner registration if needed, claim-probe, and verify-creds — every probe executes on the machine, where the workers will actually run.
  • Secret pastes stay out-of-band, new shape — Ben runs these in his own terminal, so the bytes skip the session transcript AND the launch machine:
    ssh <door> 'install -m 0600 /dev/stdin <workdir>/.sandcastle/secrets/<name>'
    

The nine-step spine, the idempotence and prove-don't-assume rules, the one-way-door list and the SETUP_REPORT are unchanged. The contract test now also pins the launch flow (host-half invocations and paste recipes must be ssh-wrapped, no concrete door in the vendored doc, host-resident statement required) — mutation-proven, full offline suite green.

Ben launches this install himself, per this ticket.

**The launch flow for this acceptance run changed** (Ben's 2026-08-24 ruling, superseding his 2026-08-21 "on the target host" ruling — recorded in ADR 0006 point 2, amended in place; landed in `ce7d360`). The kickoff is now from Ben's **local dev-factory checkout**, not on a fleet machine: ```sh cd <local-dev-factory-checkout> claude "Follow onboarding/install-prompt.md and onboard Matou/matou-website onto the fleet. Its local checkout is at <local-matou-website-checkout>." ``` What the revised session does differently: - **It asks which enrolled machine(s)** (one or both) will carry the repo, by ssh door — the machine list stays host-resident (ADR 0005), so this is Ben's to answer, and "both" loops the host half per door (the multi-host claim pool makes that safe). - **The repo half runs locally** (detect, vendor, identity, the policy interview, labels/workflows/dockerfile/secrets checklist, enrichments + render) and ends in a push; each machine's workdir then pulls it. - **The host half runs over ssh per chosen machine**: host preflight, credential files, enrolment, runner registration if needed, claim-probe, and `verify-creds` — every probe executes on the machine, where the workers will actually run. - **Secret pastes stay out-of-band, new shape** — Ben runs these in his own terminal, so the bytes skip the session transcript AND the launch machine: ```sh ssh <door> 'install -m 0600 /dev/stdin <workdir>/.sandcastle/secrets/<name>' ``` The nine-step spine, the idempotence and prove-don't-assume rules, the one-way-door list and the SETUP_REPORT are unchanged. The contract test now also pins the launch flow (host-half invocations and paste recipes must be ssh-wrapped, no concrete door in the vendored doc, host-resident statement required) — mutation-proven, full offline suite green. Ben launches this install himself, per this ticket.
Author
Owner

Acceptance run complete — Matou/matou-website is a working consumer. The full nine-step install-prompt.md session ran 2026-08-24/25 from Ben's local checkout, host half over both doors (matou-workstation + elitebook-03).

Exit criteria, both observed: check-harness-drift: OK in the workdir on both machines at pin 90e1629; smoke ticket matou-website#5 claimed by matou-workstation (run 53) → commit 83a2ca3 → close-report gate refused the premature close then passed the retry → seam + build-deploy green → closed by the machinery. The healer also made a real unattended repair mid-acceptance (d00d2ae, pnpm-as-root in the sandbox image, provenance Matou Swarm (healer@elitebook-distributed-server-03)).

Full SETUP_REPORT: Matou/matou-website#2 (comment)

Finds → tickets: #82 (verify-creds demands GET /user 200 — fails functional tokens without read:user), #83 (backstop-tick order-repos runs from the first repo's vendored copy — mixed pins break stalest-first). #17's cost made concrete: the target repo needed pnpm-lock.yaml (pnpm import) + a Dockerfile pnpm layer despite being an npm repo.

Residue (on the report, all Ben's): dead fleet primary CLAUDE_CODE_OAUTH_TOKEN on both hosts (only _B authenticates); optional read:user grant (or wait for #82); prompt.md read-through. STATUS.md updated (a6596a6). Closing is Ben's call — the residue list is not empty, but none of it blocks the consumer.

**Acceptance run complete — Matou/matou-website is a working consumer.** The full nine-step install-prompt.md session ran 2026-08-24/25 from Ben's local checkout, host half over both doors (matou-workstation + elitebook-03). **Exit criteria, both observed:** `check-harness-drift: OK` in the workdir on both machines at pin `90e1629`; smoke ticket matou-website#5 claimed by matou-workstation (run 53) → commit 83a2ca3 → close-report gate refused the premature close then passed the retry → seam + build-deploy green → **closed by the machinery**. The healer also made a real unattended repair mid-acceptance (d00d2ae, pnpm-as-root in the sandbox image, provenance `Matou Swarm (healer@elitebook-distributed-server-03)`). Full SETUP_REPORT: https://git.matou.nz/Matou/matou-website/issues/2#issuecomment-16439 **Finds → tickets:** #82 (verify-creds demands GET /user 200 — fails functional tokens without read:user), #83 (backstop-tick order-repos runs from the first repo's vendored copy — mixed pins break stalest-first). #17's cost made concrete: the target repo needed pnpm-lock.yaml (`pnpm import`) + a Dockerfile pnpm layer despite being an npm repo. **Residue (on the report, all Ben's):** dead fleet primary CLAUDE_CODE_OAUTH_TOKEN on both hosts (only _B authenticates); optional read:user grant (or wait for #82); prompt.md read-through. STATUS.md updated (a6596a6). Closing is Ben's call — the residue list is not empty, but none of it blocks the consumer.
Author
Owner

Closing — acceptance criteria met (matou-website is a working consumer, drift OK on both hosts, smoke ticket closed by the machinery). Residue (dead primary OAuth token on both hosts, optional read:user grant, prompt.md read-through) is tracked on the SETUP_REPORT and #82; none blocks the consumer.

Closing — acceptance criteria met (matou-website is a working consumer, drift OK on both hosts, smoke ticket closed by the machinery). Residue (dead primary OAuth token on both hosts, optional read:user grant, prompt.md read-through) is tracked on the SETUP_REPORT and #82; none blocks the consumer.
ben closed this issue 2026-08-27 15:17:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/dev-factory#62
No description provided.