factory onboarding — Matou/coa #1

Open
opened 2026-08-28 14:15:19 +00:00 by ben · 6 comments
Owner

Audit trail for the dev-factory install session (onboarding/install-prompt.md), 2026-08-27/28, driven by Claude with Ben present. Every ruling made in the session lands here as a comment; the SETUP_REPORT closes it.

Pin: dev-factory cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f. Machines: matou-workstation (dev@matou-dev-server-01) + elitebook.

Audit trail for the dev-factory install session (onboarding/install-prompt.md), 2026-08-27/28, driven by Claude with Ben present. Every ruling made in the session lands here as a comment; the SETUP_REPORT closes it. Pin: dev-factory cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f. Machines: matou-workstation (dev@matou-dev-server-01) + elitebook.
Author
Owner

Rulings made this session — Ruled by agent under the two-way-door doctrine — veto anytime

  • Pin FACTORY_REF=cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f (factory origin/main at session start). Proof: check-harness-drift: OK locally and in /home/dev/swarm/Matou/coa on matou-workstation.
  • Identity RUNNER_HOST=matou-workstation, HEAL_WORKDIR=/home/dev/swarm/Matou/coa. Proof: bash -n clean; matches the registry lines on that host.
  • Policy LANDING=pr, MERGE_AUTHORITY=agent-after-green, SESSION_RUNNER=on, TWO_WAY_DOOR_DOC=docs/adr/0002-two-way-door-doctrine.md; hand-off labels ready-for-human:one-way-door agent-blocked:cannot-proceed needs-info:missing-context product-decision:product-decision (Ben confirmed all four in chat). Proof: .sandcastle/swarm-policy.sh at d6e2cc2; product-decision minted (#label 201 response).
  • E2E tier opt-out — "no product surface until phase 1 lands; the phase-1 e2e ticket flips this to smoke". swarm-smoke.yml not rendered.
  • Workflows rendered for pool swarm, e2e host matou-workstation (read from the host registry). ci.yml seam = pnpm install --frozen-lockfile && pnpm -r typecheck && pnpm -r test (runner has pnpm 11.6.0; exits 0 on the empty workspace). Playwright is deliberately NOT in the seam.
  • Dockerfile stack layer pins pnpm@11.6.0 (installed as root, then back to agent uid); doctl block dropped (no droplet infra here).
  • Labels core (16 minted) + product-decision.
  • Credentials on matou-workstation copied server-side from Matou/matou-app's .sandcastle/ (same swarm account; bytes never in the transcript); CLAUDE_CODE_OAUTH_TOKEN copied from host-env.sh. Proof: verify-creds → 3× PASS, no FAIL (with host env sourced).
  • Registry (matou-workstation) repo/coverage pool/backstop healer:70 triage:40 swarm:40 resume-asks:40/session /home/dev/session-runner/coa appended (backup cron-backups/crontab-20260828T141922Z.txt). enrol + verify green.
  • Store warmed with CI=true pnpm install --store-dir .sandcastle/pnpm-store (50M).

Left for a human

  • elitebook: ian@elitebook-distributed-server-01.netbird.selfhosted:2222 refuses this laptop's key (id_ed25519, ben@tairea.io) — authorise it, then the host half is re-run there.
  • Smoke ticket #2 filed needs-triage to prove triage → claim → PR → gate → merge → close.
**Rulings made this session — Ruled by agent under the two-way-door doctrine — veto anytime** - **Pin** `FACTORY_REF=cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f` (factory `origin/main` at session start). Proof: `check-harness-drift: OK` locally and in `/home/dev/swarm/Matou/coa` on matou-workstation. - **Identity** `RUNNER_HOST=matou-workstation`, `HEAL_WORKDIR=/home/dev/swarm/Matou/coa`. Proof: `bash -n` clean; matches the registry lines on that host. - **Policy** `LANDING=pr`, `MERGE_AUTHORITY=agent-after-green`, `SESSION_RUNNER=on`, `TWO_WAY_DOOR_DOC=docs/adr/0002-two-way-door-doctrine.md`; hand-off labels `ready-for-human:one-way-door agent-blocked:cannot-proceed needs-info:missing-context product-decision:product-decision` (Ben confirmed all four in chat). Proof: `.sandcastle/swarm-policy.sh` at `d6e2cc2`; `product-decision` minted (#label 201 response). - **E2E tier** `opt-out` — "no product surface until phase 1 lands; the phase-1 e2e ticket flips this to smoke". `swarm-smoke.yml` not rendered. - **Workflows** rendered for pool `swarm`, e2e host `matou-workstation` (read from the host registry). `ci.yml` seam = `pnpm install --frozen-lockfile && pnpm -r typecheck && pnpm -r test` (runner has pnpm 11.6.0; exits 0 on the empty workspace). Playwright is deliberately NOT in the seam. - **Dockerfile** stack layer pins `pnpm@11.6.0` (installed as root, then back to agent uid); doctl block dropped (no droplet infra here). - **Labels** `core` (16 minted) + `product-decision`. - **Credentials on matou-workstation** copied server-side from `Matou/matou-app`'s `.sandcastle/` (same swarm account; bytes never in the transcript); `CLAUDE_CODE_OAUTH_TOKEN` copied from `host-env.sh`. Proof: `verify-creds` → 3× PASS, no FAIL (with host env sourced). - **Registry (matou-workstation)** `repo`/`coverage pool`/`backstop healer:70 triage:40 swarm:40 resume-asks:40`/`session /home/dev/session-runner/coa` appended (backup `cron-backups/crontab-20260828T141922Z.txt`). `enrol` + `verify` green. - **Store** warmed with `CI=true pnpm install --store-dir .sandcastle/pnpm-store` (50M). **Left for a human** - elitebook: `ian@elitebook-distributed-server-01.netbird.selfhosted:2222` refuses this laptop's key (`id_ed25519`, `ben@tairea.io`) — authorise it, then the host half is re-run there. - Smoke ticket #2 filed `needs-triage` to prove triage → claim → PR → gate → merge → close.

This was generated by AI during triage.

Triage

Category: enhancement (factory/onboarding setup — enabling new capability, not a defect).
State: ready-for-human.

This is the onboarding audit-trail issue for the dev-factory install session. The bulk of the session landed and is recorded in the ruling comment above; what remains is a genuinely human-only step, so this can't be delegated to the swarm.

Why human

The single outstanding item — elitebook: ian@elitebook-distributed-server-01.netbird.selfhosted:2222 refuses this laptop's key (id_ed25519, ben@tairea.io) — requires a human to authorise an SSH key on a second host the agent has no access to. That is external-host access plus a credential/access grant, which sits squarely on the one-way-door list in docs/adr/0002-two-way-door-doctrine.md (credential bytes / widening access) — not an agent's call to make, and not something an AFK agent could perform even if it were. Once the key is authorised, the host half of onboarding is re-run on the elitebook and the SETUP_REPORT closes this issue.

Human residue naming (for the gate digest):

  • Authorise id_ed25519 (ben@tairea.io) on ian@elitebook-distributed-server-01.netbird.selfhosted:2222.
  • Re-run the onboarding host half on the elitebook once access lands.
  • Post the SETUP_REPORT and close.

No new work is being requested here beyond the above; the smoke ticket that exercises triage → claim → PR → gate → merge → close end-to-end is tracked separately as #3.

> *This was generated by AI during triage.* ## Triage **Category:** enhancement (factory/onboarding setup — enabling new capability, not a defect). **State:** **ready-for-human**. This is the onboarding audit-trail issue for the dev-factory install session. The bulk of the session landed and is recorded in the ruling comment above; what remains is a genuinely human-only step, so this can't be delegated to the swarm. ## Why human The single outstanding item — `elitebook: ian@elitebook-distributed-server-01.netbird.selfhosted:2222` refuses this laptop's key (`id_ed25519`, `ben@tairea.io`) — requires a human to **authorise an SSH key on a second host the agent has no access to**. That is external-host access plus a credential/access grant, which sits squarely on the one-way-door list in `docs/adr/0002-two-way-door-doctrine.md` (credential bytes / widening access) — not an agent's call to make, and not something an AFK agent could perform even if it were. Once the key is authorised, the host half of onboarding is re-run on the elitebook and the `SETUP_REPORT` closes this issue. **Human residue naming (for the gate digest):** - Authorise `id_ed25519` (`ben@tairea.io`) on `ian@elitebook-distributed-server-01.netbird.selfhosted:2222`. - Re-run the onboarding host half on the elitebook once access lands. - Post the `SETUP_REPORT` and close. No new work is being requested here beyond the above; the smoke ticket that exercises triage → claim → PR → gate → merge → close end-to-end is tracked separately as #3.
Author
Owner

Ruling (two-way door — veto anytime): ci.yml seam pinned to runs-on: matou-workstation until the elitebook host half is done. Evidence: seam runs 1 and 2 failed, and neither task (29976/29977) appears in matou-workstation's forgejo-runner journal while the triage task (29978) does — so they were scheduled onto the pool's other runner, which has no coa checkout/warm store yet. Revert to swarm in the same commit that finishes the elitebook enrolment.

Correction to the rulings comment above: the claim probe consumed #2; the smoke ticket is #3.

**Ruling (two-way door — veto anytime):** `ci.yml` seam pinned to `runs-on: matou-workstation` until the elitebook host half is done. Evidence: seam runs 1 and 2 failed, and neither task (29976/29977) appears in matou-workstation's `forgejo-runner` journal while the triage task (29978) does — so they were scheduled onto the pool's other runner, which has no coa checkout/warm store yet. Revert to `swarm` in the same commit that finishes the elitebook enrolment. Correction to the rulings comment above: the claim probe consumed **#2**; the smoke ticket is **#3**.
Author
Owner

Machinery observations, 14:17–14:31Z

  • Seam runs 1, 2 and 6 all failed on pnpm install --frozen-lockfile: pnpm-workspace.yaml carried pnpm's own allowBuilds: esbuild: set this to true or false stub, written by the very first pnpm install in 1cafaa0 and committed unnoticed. My earlier pin-the-runner ruling above was therefore chasing the wrong cause for the seam — the healer (ci.yml failure step) found the real one and pushed 78f4e68 (allowBuilds: esbuild: true). Run 6 was cancelled by that push superseding it. Healer: proven.
  • The pin to matou-workstation stays for now anyway: the scheduled healer.yml watchdog (run 8, runs-on: swarm) failed and never appears in matou-workstation's runner journal, so it landed on the pool's other runner — the elitebook — which is not onboarded for this repo yet. Revert both when the elitebook host half lands.
  • Triage on #3: proven (needs-triage → enhancement + ready-for-agent, ruling comment posted).
**Machinery observations, 14:17–14:31Z** - Seam runs 1, 2 and 6 all failed on `pnpm install --frozen-lockfile`: `pnpm-workspace.yaml` carried pnpm's own `allowBuilds: esbuild: set this to true or false` stub, written by the very first `pnpm install` in 1cafaa0 and committed unnoticed. My earlier pin-the-runner ruling above was therefore chasing the wrong cause for the *seam* — the healer (`ci.yml` failure step) found the real one and pushed `78f4e68` (`allowBuilds: esbuild: true`). Run 6 was cancelled by that push superseding it. **Healer: proven.** - The pin to `matou-workstation` stays for now anyway: the scheduled `healer.yml` watchdog (run 8, `runs-on: swarm`) failed and never appears in matou-workstation's runner journal, so it landed on the pool's other runner — the elitebook — which is not onboarded for this repo yet. Revert both when the elitebook host half lands. - Triage on #3: proven (needs-triage → enhancement + ready-for-agent, ruling comment posted).
Author
Owner

Second machine: elitebook-03 (Ben corrected -01 → -03; door ian@elitebook-distributed-server-03.netbird.selfhosted:22, factory state under user swarm, registry /home/swarm/swarm/host-registry.conf, factory checkout at 1fc29e0 = its origin/main).

  • preflight PASSED (rootful-reachable daemon, AGENT_UID/GID 1500)
  • workdir /home/swarm/swarm/Matou/coa at 78f4e68; drift check OK (NOTE: pin 3 behind factory main — advisory)
  • credentials copied server-side from Matou/matou-app's .sandcastle/ + host-env; verify-creds 3× PASS, no FAIL
  • pnpm store warmed (50M)
  • registry: repo / coverage pool / backstop healer:70 triage:40 swarm:40 resume-asks:40 (no session line — RUNNER_HOST is matou-workstation)
  • enrol + verify green; claim-probe green (probe ticket #4 claimed by elitebook-03)

ci.yml seam reverted to runs-on: swarm — the earlier failures there were the allowBuilds stub, not the host. Both machines are now coa workers.

**Second machine: elitebook-03** (Ben corrected -01 → -03; door `ian@elitebook-distributed-server-03.netbird.selfhosted:22`, factory state under user `swarm`, registry `/home/swarm/swarm/host-registry.conf`, factory checkout at `1fc29e0` = its `origin/main`). - preflight PASSED (rootful-reachable daemon, AGENT_UID/GID 1500) - workdir `/home/swarm/swarm/Matou/coa` at `78f4e68`; drift check OK (NOTE: pin 3 behind factory main — advisory) - credentials copied server-side from `Matou/matou-app`'s `.sandcastle/` + host-env; `verify-creds` 3× PASS, no FAIL - pnpm store warmed (50M) - registry: `repo` / `coverage pool` / `backstop healer:70 triage:40 swarm:40 resume-asks:40` (no `session` line — `RUNNER_HOST` is matou-workstation) - `enrol` + `verify` green; **claim-probe green** (probe ticket #4 claimed by elitebook-03) `ci.yml` seam reverted to `runs-on: swarm` — the earlier failures there were the `allowBuilds` stub, not the host. Both machines are now coa workers.
Author
Owner
SETUP_REPORT — Matou/coa

pin              FACTORY_REF cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f  (drift check: OK on matou-workstation and elitebook-03; NOTE 3 behind factory main, advisory)
machines         dev@matou-dev-server-01 (matou-workstation) — registry /home/dev/swarm/host-registry.conf; enrol + verify green;
                 claim-probe green (#2); runner already present (swarm, matou-workstation); session-runner checkout /home/dev/session-runner/coa
                 ian@elitebook-distributed-server-03.netbird.selfhosted:22 → user swarm (elitebook-03) — registry /home/swarm/swarm/host-registry.conf;
                 enrol + verify green; claim-probe green (#4); runner already present (swarm, elitebook-03); pool coverage only
identity         REPO_SLUG=Matou/coa  HEAL_WORKDIR=/home/dev/swarm/Matou/coa  RUNNER_HOST=matou-workstation
policy           LANDING=pr MERGE_AUTHORITY=agent-after-green SESSION_RUNNER=on
                 hand-off labels: ready-for-human:one-way-door agent-blocked:cannot-proceed needs-info:missing-context product-decision:product-decision
                 TWO_WAY_DOOR_DOC=docs/adr/0002-two-way-door-doctrine.md
e2e              tier opt-out ("no product surface until phase 1 lands; the phase-1 e2e ticket flips this to smoke") — flip is #18
labels           16 core minted + product-decision minted
workflows        ci.yml healer.yml resume-asks.yml swarm.yml triage.yml (swarm-smoke.yml not rendered: opt-out); ci seam = pnpm install --frozen-lockfile && pnpm -r typecheck && pnpm -r test, runs-on swarm
repo-owned files .sandcastle/.gitignore, .env.example, secrets/README.md written; root package.json (pnpm@11.6.0, sandcastle runner) already present
credentials      verify-creds: 3 PASS (forgejo_token, CLAUDE_CODE_OAUTH_TOKEN, mattermost_bot_token), 0 SKIP, no FAIL, on both machines
prompts          five rendered; enrichment slots authored: 10
acceptance       smoke ticket Matou/coa#3: triaged needs-triage→ready-for-agent by the triage agent (run 3);
                 claimed by elitebook-03 (swarm run 12); committed 2ed6d5c; gate green (seam runs 15, 19);
                 PR #6 merged by the machinery (d10103b); issue closed by the machinery 15:05:02Z
                 healer proven en route: ci failure step diagnosed the pnpm allowBuilds stub and pushed 78f4e68 unprompted

rulings made this session (each: what, and what proves it)
  - pin cec8b3c — drift OK both hosts
  - RUNNER_HOST=matou-workstation, HEAL_WORKDIR=/home/dev/swarm/Matou/coa — registry lines match
  - policy as above — swarm-policy.sh d6e2cc2; render-prompts clean; the worker's hand-off section carries all four labels
  - e2e opt-out with reason — E2E_TIER file
  - ci seam command; Playwright kept out of the seam — seam runs 7/14/15/19 green
  - Dockerfile: pnpm 11.6.0 as root then agent uid; doctl dropped — file
  - creds copied server-side from Matou/matou-app's .sandcastle on each host — verify-creds 3× PASS each
  - temporary ci pin to matou-workstation (9a4ba77) reverted (0942d07) once elitebook-03 was onboarded — seam 14 green on the pool
  - watchdog run 8 failure attributed to the not-yet-onboarded elitebook — watchdog run 20 green after onboarding

left for a human (one-way doors, with the exact residue)
  - none. Two follow-ups filed, neither a door:
    * Matou/dev-factory: close-report gate REFUSED after the merge had already closed #3 (pr-mode ordering); labels agent-working/ready-for-agent left on the closed issue
    * Matou/coa #18 flips E2E_TIER to smoke and re-authors the rehearsal enrichments (protected paths → ready-for-session at that point)

Phase 1 tickets filed (needs-triage, depends_on chained by issue ref): #7 schema brand/features/onboarding → #8 schema backend/ClientConfig/submission → #9 stub config server, #10 server scaffold → #11 prober → #12 validate-backend → #13 submit; #14 site scaffold → #15 form state/brand/features → #16 onboarding step → #17 backend/review/submit (also needs #13) → #18 e2e + Caddyfile + tier flip.

``` SETUP_REPORT — Matou/coa pin FACTORY_REF cec8b3c290e0c5413a541f2def7e6a71a0eb9f5f (drift check: OK on matou-workstation and elitebook-03; NOTE 3 behind factory main, advisory) machines dev@matou-dev-server-01 (matou-workstation) — registry /home/dev/swarm/host-registry.conf; enrol + verify green; claim-probe green (#2); runner already present (swarm, matou-workstation); session-runner checkout /home/dev/session-runner/coa ian@elitebook-distributed-server-03.netbird.selfhosted:22 → user swarm (elitebook-03) — registry /home/swarm/swarm/host-registry.conf; enrol + verify green; claim-probe green (#4); runner already present (swarm, elitebook-03); pool coverage only identity REPO_SLUG=Matou/coa HEAL_WORKDIR=/home/dev/swarm/Matou/coa RUNNER_HOST=matou-workstation policy LANDING=pr MERGE_AUTHORITY=agent-after-green SESSION_RUNNER=on hand-off labels: ready-for-human:one-way-door agent-blocked:cannot-proceed needs-info:missing-context product-decision:product-decision TWO_WAY_DOOR_DOC=docs/adr/0002-two-way-door-doctrine.md e2e tier opt-out ("no product surface until phase 1 lands; the phase-1 e2e ticket flips this to smoke") — flip is #18 labels 16 core minted + product-decision minted workflows ci.yml healer.yml resume-asks.yml swarm.yml triage.yml (swarm-smoke.yml not rendered: opt-out); ci seam = pnpm install --frozen-lockfile && pnpm -r typecheck && pnpm -r test, runs-on swarm repo-owned files .sandcastle/.gitignore, .env.example, secrets/README.md written; root package.json (pnpm@11.6.0, sandcastle runner) already present credentials verify-creds: 3 PASS (forgejo_token, CLAUDE_CODE_OAUTH_TOKEN, mattermost_bot_token), 0 SKIP, no FAIL, on both machines prompts five rendered; enrichment slots authored: 10 acceptance smoke ticket Matou/coa#3: triaged needs-triage→ready-for-agent by the triage agent (run 3); claimed by elitebook-03 (swarm run 12); committed 2ed6d5c; gate green (seam runs 15, 19); PR #6 merged by the machinery (d10103b); issue closed by the machinery 15:05:02Z healer proven en route: ci failure step diagnosed the pnpm allowBuilds stub and pushed 78f4e68 unprompted rulings made this session (each: what, and what proves it) - pin cec8b3c — drift OK both hosts - RUNNER_HOST=matou-workstation, HEAL_WORKDIR=/home/dev/swarm/Matou/coa — registry lines match - policy as above — swarm-policy.sh d6e2cc2; render-prompts clean; the worker's hand-off section carries all four labels - e2e opt-out with reason — E2E_TIER file - ci seam command; Playwright kept out of the seam — seam runs 7/14/15/19 green - Dockerfile: pnpm 11.6.0 as root then agent uid; doctl dropped — file - creds copied server-side from Matou/matou-app's .sandcastle on each host — verify-creds 3× PASS each - temporary ci pin to matou-workstation (9a4ba77) reverted (0942d07) once elitebook-03 was onboarded — seam 14 green on the pool - watchdog run 8 failure attributed to the not-yet-onboarded elitebook — watchdog run 20 green after onboarding left for a human (one-way doors, with the exact residue) - none. Two follow-ups filed, neither a door: * Matou/dev-factory: close-report gate REFUSED after the merge had already closed #3 (pr-mode ordering); labels agent-working/ready-for-agent left on the closed issue * Matou/coa #18 flips E2E_TIER to smoke and re-authors the rehearsal enrichments (protected paths → ready-for-session at that point) ``` **Phase 1 tickets filed** (`needs-triage`, depends_on chained by issue ref): #7 schema brand/features/onboarding → #8 schema backend/ClientConfig/submission → #9 stub config server, #10 server scaffold → #11 prober → #12 validate-backend → #13 submit; #14 site scaffold → #15 form state/brand/features → #16 onboarding step → #17 backend/review/submit (also needs #13) → #18 e2e + Caddyfile + tier flip.
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/coa#1
No description provided.