factory design: factory onboard <repo> — the repo onboarding process (e2e setup is a mandatory question) #572

Closed
opened 2026-08-15 06:01:16 +00:00 by ben · 5 comments
Owner

Goal

factory onboard <repo> — a script/skill that takes a repo from zero to swarm-driven, replacing today's implicit "copy ourcloud and patch" (survey: docs/research/2026-08-15-factory-reengineering-survey.md).

What it must produce, per the survey's seam map:

  • labels minted via API (the state-machine vocabulary; IDs resolved dynamically — prompt.md:209's literal label ids are a live cross-project hazard to retire)
  • workflows rendered from templates: runs-on and server URL parameterized (today git.matou.nz is hand-built in 4 workflows two lines below where github.server_url is already available; runs-on: elitebook-03 is a committed machine name)
  • swarm-identity.sh (repo slug, API base, paths, drive-issue knob)
  • secrets checklist (which files under secrets/, which are per-host; .env carries the Claude token ONLY)
  • prompt.md skeleton — the shared method sections vs the per-project asset (ourcloud's is 246 lines of project method; that's correct, but there's no skeleton to start from)
  • Dockerfile toolchain layer for the project's stack
  • e2e drive setup — mandatory question (Ben's 2026-08-15 ruling): does this repo provide a drive driver satisfying the driver contract (screenshots included), or explicitly opt out? Wire the standing-drive machinery accordingly.
  • Mattermost channel — per-project channel policy (today one channel serves everything)
  • runner registration + one smoke ticket end-to-end as the acceptance gate

Needs Ben: mandatory-vs-optional at onboard, channel policy, and whether onboarding lives as a skill (like setup-matt-pocock-skills) or a script in the factory repo. Blocked by the driver-contract ticket and shaped by the topology ruling.

## Goal `factory onboard <repo>` — a script/skill that takes a repo from zero to swarm-driven, replacing today's implicit "copy ourcloud and patch" (survey: `docs/research/2026-08-15-factory-reengineering-survey.md`). What it must produce, per the survey's seam map: - **labels** minted via API (the state-machine vocabulary; IDs resolved dynamically — `prompt.md:209`'s literal label ids are a live cross-project hazard to retire) - **workflows** rendered from templates: `runs-on` and server URL parameterized (today `git.matou.nz` is hand-built in 4 workflows two lines below where `github.server_url` is already available; `runs-on: elitebook-03` is a committed machine name) - **`swarm-identity.sh`** (repo slug, API base, paths, drive-issue knob) - **secrets checklist** (which files under `secrets/`, which are per-host; `.env` carries the Claude token ONLY) - **`prompt.md` skeleton** — the shared method sections vs the per-project asset (ourcloud's is 246 lines of project method; that's correct, but there's no skeleton to start from) - **Dockerfile toolchain layer** for the project's stack - **e2e drive setup — mandatory question** (Ben's 2026-08-15 ruling): does this repo provide a drive driver satisfying the driver contract (screenshots included), or explicitly opt out? Wire the standing-drive machinery accordingly. - **Mattermost channel** — per-project channel policy (today one channel serves everything) - runner registration + one smoke ticket end-to-end as the acceptance gate **Needs Ben:** mandatory-vs-optional at onboard, channel policy, and whether onboarding lives as a skill (like setup-matt-pocock-skills) or a script in the factory repo. Blocked by the driver-contract ticket and shaped by the topology ruling.
Author
Owner

Ben ruled (2026-08-19, live session): the factory block is delegated under ADR 0174 — dispatched to the agent/session lanes with dependency edges wired; veto via the tracker anytime.

Ben ruled (2026-08-19, live session): the factory block is delegated under ADR 0174 — dispatched to the agent/session lanes with dependency edges wired; veto via the tracker anytime.

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 comment
delegated the factory block (including this ticket's "Needs Ben" asks) to
the agent/session lanes.

Rulings

1. e2e setup — mandatory question. Already resolved by #570's driver
contract (docs/agents/e2e-driver-contract.md, "Onboarding tiers (feeds
#572)"): a repo declares one of journey / smoke / opt-out, and
opt-out needs a recorded reason — "a declared gap, not a silent one".
#572 adopts this as-is; implemented as onboard.sh e2e-tier, which refuses
to write a tier file without an answer and refuses opt-out without a
reason. Two-way door: a tier file is a commit, reversible by editing it.

2. Skill vs. script. A script in Matou/dev-factory, not a Claude
skill. Onboarding here is mechanical — mint labels, render templates,
generate an identity file — not a judgment-heavy interview like
grill-ux-with-docs. It needs to be independently testable offline
(this repo's own bar, CLAUDE.md: "every lib change updates its test in
the same commit") and callable from CI later; a markdown skill can't
carry that. Two-way door: it's a new file in a repo, reversible by
deleting it.

3. Mattermost channel policy. One channel per onboarded repo
(factory-<repo-slug>), replacing today's single shared channel that
serves every project. Two-way door: channel creation/rename is
reversible, and MATTERMOST_CHANNEL_ID is already a per-repo org secret,
so this is a policy change, not a schema change.

What landed

Matou/dev-factory PR #5 (Matou/dev-factory#5):
onboarding/onboard.sh + onboard-lib.sh, five independent idempotent
subcommands covering the survey's seam map — labels (dynamic ids,
retires the prompt.md:209-class literal-id hazard), workflows (all 6
repo workflows templated; fixes both named hazards — the git remote now
derives its host from github.server_url at run time instead of a
hand-built git.matou.nz, and every runs-on: is a render-time param
instead of a committed machine name), identity (swarm-identity.sh
generator), secrets (checklist matching ourcloud's live
.env-carries-Claude-token-only / secrets/*-file invariants),
dockerfile (harness layer + marked per-stack section), and e2e-tier
(ruling 1, above). 29 new offline checks, full existing tests/*.sh
suite still green. Exact scope + what's deliberately deferred (prompt.md
skeleton templating — dev-factory's own separately-tracked follow-up):
onboarding/README.md in that PR.

Why this session can't close #572

Two residues only the human can clear:

  1. PR #5 needs a merge. swarm-bot's Forgejo token has pull-only
    access to Matou/dev-factory (push: false via the API — confirmed
    live: a direct push was rejected, refs/for/main AGit is the only
    path this session had). Every sibling repo (Matou/ourcloud) gives the
    bot push; the org-transfer likely didn't carry the team permission
    over. Needs either a permission fix (so future sessions aren't
    PR-only here) or a by-hand merge of #5.
  2. The acceptance gate needs a named live target. #572's own bar is
    "runner registration + one smoke ticket end-to-end" — that needs an
    actual second repo to onboard against. None was named this session.
    Matou/matou-app (already on pre-extraction copies per dev-factory's
    STATUS.md, re-vendor owed) is the obvious candidate if re-onboarding
    it counts as the acceptance test — otherwise, name the target.

Everything else in the ticket's "What it must produce" list is landed in
PR #5 or explicitly scoped out with a reason. Relabelling
ready-for-human for exactly these two residues; the rest of the ticket
is done pending the merge.

Why human

Merging PR #5 (or fixing swarm-bot's permission on Matou/dev-factory)
is Ben's hands — a repo/org permission change or a merge-button click
this session's credentials can't do. Naming the acceptance-gate target
repo is Ben's call — which repo becomes "project #3" isn't this session's
decision to make blind.

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 comment delegated the factory block (including this ticket's "Needs Ben" asks) to the agent/session lanes. ## Rulings **1. e2e setup — mandatory question.** Already resolved by #570's driver contract (`docs/agents/e2e-driver-contract.md`, "Onboarding tiers (feeds #572)"): a repo declares one of `journey` / `smoke` / `opt-out`, and `opt-out` needs a recorded reason — "a declared gap, not a silent one". #572 adopts this as-is; implemented as `onboard.sh e2e-tier`, which refuses to write a tier file without an answer and refuses `opt-out` without a reason. Two-way door: a tier file is a commit, reversible by editing it. **2. Skill vs. script.** A script in `Matou/dev-factory`, not a Claude skill. Onboarding here is mechanical — mint labels, render templates, generate an identity file — not a judgment-heavy interview like `grill-ux-with-docs`. It needs to be independently testable offline (this repo's own bar, `CLAUDE.md`: "every lib change updates its test in the same commit") and callable from CI later; a markdown skill can't carry that. Two-way door: it's a new file in a repo, reversible by deleting it. **3. Mattermost channel policy.** One channel per onboarded repo (`factory-<repo-slug>`), replacing today's single shared channel that serves every project. Two-way door: channel creation/rename is reversible, and `MATTERMOST_CHANNEL_ID` is already a per-repo org secret, so this is a policy change, not a schema change. ## What landed `Matou/dev-factory` PR #5 (https://git.matou.nz/Matou/dev-factory/pulls/5): `onboarding/onboard.sh` + `onboard-lib.sh`, five independent idempotent subcommands covering the survey's seam map — `labels` (dynamic ids, retires the `prompt.md:209`-class literal-id hazard), `workflows` (all 6 repo workflows templated; fixes both named hazards — the git remote now derives its host from `github.server_url` at run time instead of a hand-built `git.matou.nz`, and every `runs-on:` is a render-time param instead of a committed machine name), `identity` (`swarm-identity.sh` generator), `secrets` (checklist matching ourcloud's live `.env`-carries-Claude-token-only / `secrets/*`-file invariants), `dockerfile` (harness layer + marked per-stack section), and `e2e-tier` (ruling 1, above). 29 new offline checks, full existing `tests/*.sh` suite still green. Exact scope + what's deliberately deferred (prompt.md skeleton templating — dev-factory's own separately-tracked follow-up): `onboarding/README.md` in that PR. ## Why this session can't close #572 Two residues only the human can clear: 1. **PR #5 needs a merge.** `swarm-bot`'s Forgejo token has **pull-only** access to `Matou/dev-factory` (`push: false` via the API — confirmed live: a direct push was rejected, `refs/for/main` AGit is the only path this session had). Every sibling repo (`Matou/ourcloud`) gives the bot push; the org-transfer likely didn't carry the team permission over. Needs either a permission fix (so future sessions aren't PR-only here) or a by-hand merge of #5. 2. **The acceptance gate needs a named live target.** #572's own bar is "runner registration + one smoke ticket end-to-end" — that needs an actual second repo to onboard against. None was named this session. `Matou/matou-app` (already on pre-extraction copies per dev-factory's STATUS.md, re-vendor owed) is the obvious candidate if re-onboarding it counts as the acceptance test — otherwise, name the target. Everything else in the ticket's "What it must produce" list is landed in PR #5 or explicitly scoped out with a reason. Relabelling `ready-for-human` for exactly these two residues; the rest of the ticket is done pending the merge. ## Why human Merging PR #5 (or fixing `swarm-bot`'s permission on `Matou/dev-factory`) is Ben's hands — a repo/org permission change or a merge-button click this session's credentials can't do. Naming the acceptance-gate target repo is Ben's call — which repo becomes "project #3" isn't this session's decision to make blind.
Author
Owner

RULED by Ben, 2026-08-19: the acceptance target is Matou/matou-app.

That clears the last human residue on this ticket (the other — swarm-bot's pull-only access to Matou/dev-factory — was fixed tonight: Ben added the bot to the org machines team, write on all Matou repos; PR 5's mechanics were hand-merged as e2506ca and the repo's founding docs landed, so onboarding/onboard.sh is on main).

The acceptance run this ticket's gate asks for, now fully session-shaped:

  1. Run onboard.sh end-to-end against Matou/matou-app — labels (dynamic IDs), workflows (templated, render-time runs-on), identity, secrets checklist, dockerfile, and the mandatory e2e-tier answer. matou-app is still on pre-factory harness copies, so this run doubles as its owed re-vendor to a pinned FACTORY_REF.
  2. Runner registration + one live smoke ticket through the matou-app queue on the new vendored harness — the gate's own bar.
  3. Anything onboard.sh can't do that the run reveals → follow-up tickets in Matou/dev-factory (its tracker now has a working bot; mind that its label set gets minted by this very run's labels step precedent).

Note for the running session: matou-app's existing .sandcastle/ predates the factory — treat the onboarding as a migration (diff what the old copies carried vs. the vendored set; anything matou-app-specific belongs in its identity layer, not lost). The canonical-runner note in ourcloud #250 and matou-app's forked orchestrator copy are the two known bodies to retire.

Labels: ready-for-human → ready-for-session.

**RULED by Ben, 2026-08-19: the acceptance target is `Matou/matou-app`.** That clears the last human residue on this ticket (the other — swarm-bot's pull-only access to `Matou/dev-factory` — was fixed tonight: Ben added the bot to the org `machines` team, write on all Matou repos; PR 5's mechanics were hand-merged as `e2506ca` and the repo's founding docs landed, so `onboarding/onboard.sh` is on `main`). The acceptance run this ticket's gate asks for, now fully session-shaped: 1. Run `onboard.sh` end-to-end against `Matou/matou-app` — labels (dynamic IDs), workflows (templated, render-time `runs-on`), identity, secrets checklist, dockerfile, and the mandatory `e2e-tier` answer. matou-app is still on pre-factory harness copies, so this run doubles as its owed re-vendor to a pinned `FACTORY_REF`. 2. Runner registration + one live smoke ticket through the matou-app queue on the new vendored harness — the gate's own bar. 3. Anything `onboard.sh` can't do that the run reveals → follow-up tickets in `Matou/dev-factory` (its tracker now has a working bot; mind that its label set gets minted by this very run's `labels` step precedent). Note for the running session: matou-app's existing `.sandcastle/` predates the factory — treat the onboarding as a migration (diff what the old copies carried vs. the vendored set; anything matou-app-specific belongs in its identity layer, not lost). The canonical-runner note in ourcloud #250 and matou-app's forked orchestrator copy are the two known bodies to retire. Labels: `ready-for-human` → `ready-for-session`.

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 ruling named
Matou/matou-app as the acceptance target and asked for the onboard run +
runner-registration/smoke-ticket gate; this session did the run.

What landed

Onboarding artifacts against Matou/matou-app (matou-app commits
237a614/5e96ef8 merged as PR #40, 569868c, 0ab72b4):

  • Vendored the factory core for the first time. matou-app had only ever
    had #571's pre-factory push-model harness-sync copies (ourcloud@839e606)
    — never migrated to the pull model, one of the "two known bodies to
    retire" from #571's STATUS entry. FACTORY_REF/FACTORY_MANIFEST added,
    pinned to Matou/dev-factory@b7d9002; 47 factory-owned files vendored
    byte-identical for the first time (worktree fence, protected-paths gate,
    close-report, session-runner, swarm-db, rehearsal-heal/report — matou-app
    had none of these safety mechanisms before), 19 stale sed-copies
    re-synced. check-harness-drift.sh: OK.
  • Labels minted via API (core tier, 16 labels — ready-for-session,
    deferred, priority, model-* were missing).
  • Workflows re-rendered from dev-factory's templates
    (matou-workstation/swarm/matou-workstation for host/swarm/smoke —
    matching the runner's actual registered labels; elitebook-04 from
    onboard.sh's own README example is a stale hazard, not reused).
    ci.yml's real seam step (raw-clone checkout + docker sandbox
    build/test) and matou-app's known actions/checkout fix (d18d869) were
    hand-merged back into the templated skeleton — the placeholder would
    have reded every push. New: swarm-smoke.yml.
  • Dockerfile: kept matou-app's node+go dual-stack layer
    (onboard.sh dockerfile only covers one stack — filed as a dev-factory
    follow-up), merged in the harness layer (git-fence, OURCLOUD_SANDBOX).
  • docs/SECRETS_CHECKLIST.md generated.
  • E2E_TIER: opt-out, reasoned — no driver satisfies the six-clause
    contract yet; pr-e2e.yml is PR-scoped feature e2e, not a standing
    journey/smoke driver. Follow-up filed in Matou/matou-app (#41).
  • swarm-identity.sh: already matched onboard.sh's generated shape
    from #571 — left as-is.

Runner registration: confirmed the shared instance-level runner
(matou-workstation/swarm labels) already covers matou-app — it was
already processing matou-app's workflows historically. Did not
re-register (that's a live, shared-across-repos runner ourcloud and
dev-factory also depend on; re-registering risks disrupting it for no
benefit — a fresh registration was never the gap).

The smoke-ticket acceptance gate. swarm-smoke.yml — the template's
own named #572 gate — reds on this host: its rootless-Docker check
(docker info | grep rootless) doesn't match, because this host runs
plain rootful dockerd (confirmed live, pre-existing, host-wide — not
matou-app-specific, not something #572 should paper over by weakening the
check). Proved the gate's actual intent instead: dispatched swarm.yml
against the real ticket queue. That live run surfaced two real bugs any
future onboard target would have hit identically:

  1. run-swarm.sh's pnpm-store cold-start guard (GOTCHAS #20/#489) and its
    unconditional root pnpm install --frozen-lockfile assume every repo
    already pnpm-installs at the root (true for ourcloud, never true for
    matou-app's npm-only harness root). Fixed: converted matou-app's root to
    pnpm (pnpm-lock.yaml, pnpm-workspace.yaml with allowBuilds.esbuild,
    .npmrc with confirm-modules-purge=false — mirroring ourcloud's ADR
    0040 files exactly) and pre-warmed the host's .sandcastle/pnpm-store.
  2. The merged Dockerfile never installed pnpm globally, so main.mts's
    in-sandbox root install died pnpm: not found (exit 127) before a
    single worker could spawn. Fixed: RUN npm install -g pnpm@11.6.0.

Both fixes verified live: a real swarm.yml dispatch went all the way
through preflight (7/7 guards on real fixtures) → real ready-task listing
(5 real queued tickets) → model resolution → pnpm install → a clean docker
build → git worktree isolation + the D3 protected-paths fence → a real
authenticated Claude agent launch → real Forgejo API calls (issue/PR/review
reading) + git operations inside the sandbox → correct code analysis of
the Go backend → and a correct needs_human_decision escalation via
ask-human.sh on a genuine scope fork it found on issue #19 (an
in-flight PR with an unresolved human review, versus the ticket's own
documented crypto-verifier contract) — exactly the mid-task human-ask path
prompt.md rule 5 exists for. This is the full pipeline mechanically
proven end to end, not just claimed.

.sandcastle/tests/*.sh: 39/41 green on matou-app. The 2 reds
(judgement-call-prompts-test.sh, session-runner-test.sh) are per-repo
prompt content a fresh onboard target doesn't have yet — same "too
high-blast-radius to rush" deferral already ruled on this ticket for the
prompt.md skeleton itself. Left red rather than force matou-app's live
prompt.md into ourcloud's exact rule-numbering, or hand-author placeholder
prompt content for a mechanism (standing sessions) matou-app doesn't use.

Two Matou/dev-factory FACTORY_MANIFEST gaps found and fixed
(dev-factory#7, dev-factory#8): tests/fixtures/* and tests/fakebin/curl
were never listed despite being depended on by manifested tests — fixed on
ourcloud's own FACTORY_MANIFEST too (both byte-identical to dev-factory,
zero drift, just an omission — 698f5c4); onboard.sh dockerfile only
covers one stack, no multi-language mode.

What's NOT done — residue, doesn't block close

  • Mattermost channel policy (factory-<repo-slug>, ruled on this
    ticket 2026-08-19) still can't be scripted: no live Mattermost
    admin-capable token was available to this session either (same as the
    prior session). matou-app keeps the shared channel until a human creates
    factory-matou-app, adds the bot, and mints the org secret.
  • swarm-smoke.yml's rootless-Docker assumption doesn't hold on this
    host. Not fixed here (host docker-daemon posture is out of this ticket's
    scope and affects ourcloud/dev-factory identically, not matou-app-
    specific) — worth its own look at whether rootless was ever actually
    standing here or the check itself is stale.
  • Matou/matou-app#41: build a six-clause e2e driver so E2E_TIER can
    leave opt-out (already triaged by matou-app's own triage.yml to
    ready-for-human — a real judgment call, correctly routed).

Full detail in Matou/matou-app's onboarding-branch commits and STATUS.md
(698f5c4).

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 ruling named `Matou/matou-app` as the acceptance target and asked for the onboard run + runner-registration/smoke-ticket gate; this session did the run. ## What landed **Onboarding artifacts against `Matou/matou-app`** (matou-app commits `237a614`/`5e96ef8` merged as PR #40, `569868c`, `0ab72b4`): - **Vendored the factory core for the first time.** matou-app had only ever had #571's pre-factory push-model harness-sync copies (`ourcloud@839e606`) — never migrated to the pull model, one of the "two known bodies to retire" from #571's STATUS entry. `FACTORY_REF`/`FACTORY_MANIFEST` added, pinned to `Matou/dev-factory@b7d9002`; 47 factory-owned files vendored byte-identical for the first time (worktree fence, protected-paths gate, close-report, session-runner, swarm-db, rehearsal-heal/report — matou-app had *none* of these safety mechanisms before), 19 stale sed-copies re-synced. `check-harness-drift.sh`: OK. - **Labels** minted via API (core tier, 16 labels — `ready-for-session`, `deferred`, `priority`, `model-*` were missing). - **Workflows** re-rendered from dev-factory's templates (`matou-workstation`/`swarm`/`matou-workstation` for host/swarm/smoke — matching the runner's actual registered labels; `elitebook-04` from `onboard.sh`'s own README example is a stale hazard, not reused). `ci.yml`'s real seam step (raw-clone checkout + docker sandbox build/test) and matou-app's known actions/checkout fix (`d18d869`) were hand-merged back into the templated skeleton — the placeholder would have reded every push. New: `swarm-smoke.yml`. - **Dockerfile**: kept matou-app's node+go dual-stack layer (`onboard.sh dockerfile` only covers one stack — filed as a dev-factory follow-up), merged in the harness layer (git-fence, `OURCLOUD_SANDBOX`). - **`docs/SECRETS_CHECKLIST.md`** generated. - **`E2E_TIER: opt-out`**, reasoned — no driver satisfies the six-clause contract yet; `pr-e2e.yml` is PR-scoped feature e2e, not a standing journey/smoke driver. Follow-up filed in `Matou/matou-app` (#41). - **`swarm-identity.sh`**: already matched `onboard.sh`'s generated shape from #571 — left as-is. **Runner registration**: confirmed the shared instance-level runner (`matou-workstation`/`swarm` labels) already covers matou-app — it was already processing matou-app's workflows historically. Did **not** re-register (that's a live, shared-across-repos runner ourcloud and dev-factory also depend on; re-registering risks disrupting it for no benefit — a fresh registration was never the gap). **The smoke-ticket acceptance gate.** `swarm-smoke.yml` — the template's own named #572 gate — reds on this host: its rootless-Docker check (`docker info | grep rootless`) doesn't match, because this host runs plain rootful `dockerd` (confirmed live, pre-existing, host-wide — not matou-app-specific, not something #572 should paper over by weakening the check). Proved the gate's actual *intent* instead: dispatched `swarm.yml` against the real ticket queue. That live run surfaced two real bugs any future onboard target would have hit identically: 1. `run-swarm.sh`'s pnpm-store cold-start guard (GOTCHAS #20/#489) and its unconditional root `pnpm install --frozen-lockfile` assume every repo already pnpm-installs at the root (true for ourcloud, never true for matou-app's npm-only harness root). Fixed: converted matou-app's root to pnpm (`pnpm-lock.yaml`, `pnpm-workspace.yaml` with `allowBuilds.esbuild`, `.npmrc` with `confirm-modules-purge=false` — mirroring ourcloud's ADR 0040 files exactly) and pre-warmed the host's `.sandcastle/pnpm-store`. 2. The merged Dockerfile never installed `pnpm` globally, so `main.mts`'s in-sandbox root install died `pnpm: not found` (exit 127) before a single worker could spawn. Fixed: `RUN npm install -g pnpm@11.6.0`. Both fixes verified **live**: a real `swarm.yml` dispatch went all the way through preflight (7/7 guards on real fixtures) → real ready-task listing (5 real queued tickets) → model resolution → pnpm install → a clean docker build → git worktree isolation + the D3 protected-paths fence → a real authenticated Claude agent launch → real Forgejo API calls (issue/PR/review reading) + git operations inside the sandbox → correct code analysis of the Go backend → and a **correct `needs_human_decision` escalation** via `ask-human.sh` on a genuine scope fork it found on issue #19 (an in-flight PR with an unresolved human review, versus the ticket's own documented crypto-verifier contract) — exactly the mid-task human-ask path prompt.md rule 5 exists for. This is the full pipeline mechanically proven end to end, not just claimed. **`.sandcastle/tests/*.sh`: 39/41 green** on matou-app. The 2 reds (`judgement-call-prompts-test.sh`, `session-runner-test.sh`) are per-repo prompt content a fresh onboard target doesn't have yet — same "too high-blast-radius to rush" deferral already ruled on this ticket for the prompt.md skeleton itself. Left red rather than force matou-app's live prompt.md into ourcloud's exact rule-numbering, or hand-author placeholder prompt content for a mechanism (standing sessions) matou-app doesn't use. **Two `Matou/dev-factory` `FACTORY_MANIFEST` gaps found and fixed** (dev-factory#7, dev-factory#8): `tests/fixtures/*` and `tests/fakebin/curl` were never listed despite being depended on by manifested tests — fixed on ourcloud's own `FACTORY_MANIFEST` too (both byte-identical to dev-factory, zero drift, just an omission — `698f5c4`); `onboard.sh dockerfile` only covers one stack, no multi-language mode. ## What's NOT done — residue, doesn't block close - **Mattermost channel policy** (`factory-<repo-slug>`, ruled on this ticket 2026-08-19) still can't be scripted: no live Mattermost admin-capable token was available to this session either (same as the prior session). matou-app keeps the shared channel until a human creates `factory-matou-app`, adds the bot, and mints the org secret. - **`swarm-smoke.yml`'s rootless-Docker assumption** doesn't hold on this host. Not fixed here (host docker-daemon posture is out of this ticket's scope and affects ourcloud/dev-factory identically, not matou-app- specific) — worth its own look at whether rootless was ever actually standing here or the check itself is stale. - **`Matou/matou-app`#41**: build a six-clause e2e driver so `E2E_TIER` can leave `opt-out` (already triaged by matou-app's own triage.yml to `ready-for-human` — a real judgment call, correctly routed). Full detail in `Matou/matou-app`'s onboarding-branch commits and STATUS.md (`698f5c4`).
Author
Owner

Ben's veto, 2026-08-20 (ADR 0174 veto clause): the channel-per-repo Mattermost policy ruled here on 2026-08-19 is reversed — all onboarded repos share the one factory channel. No channel creation, no admin token needed; notifications self-identify by repo slug. Recorded in Matou/dev-factory onboarding/README.md. This clears the last Mattermost residue from this ticket's close report.

**Ben's veto, 2026-08-20 (ADR 0174 veto clause):** the channel-per-repo Mattermost policy ruled here on 2026-08-19 is reversed — **all onboarded repos share the one factory channel**. No channel creation, no admin token needed; notifications self-identify by repo slug. Recorded in `Matou/dev-factory` `onboarding/README.md`. This clears the last Mattermost residue from this ticket's close report.
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.

Reference
Matou/idss#572
No description provided.