onboarding: factory onboard <repo> mechanics (#572) #5

Closed
matou-build-agent wants to merge 0 commits from swarm-bot/factory-onboard-572 into main AGit

What this does

onboarding/onboard.sh + onboard-lib.sh: five independent, idempotent
subcommands — identity, labels, workflows, dockerfile, secrets,
e2e-tier — automating the "copy ourcloud and patch" ritual the
2026-08-15 factory-reengineering survey flagged. Full scope + what's
deliberately deferred: onboarding/README.md.

Ruled under ADR 0174 on Matou/ourcloud's #572 (2026-08-19 session):
script here (not a Claude skill), one Mattermost channel per onboarded
repo as channel policy. See that ticket for the ruling comment.

29 new offline checks (onboarding/tests/onboard-lib-test.sh), full
existing tests/*.sh suite still green.

What's NOT in this PR

  • prompt.md skeleton templating (this repo's own separately-tracked,
    higher-blast-radius follow-up)
  • live Mattermost channel creation / runner registration (need
    credentials this session didn't have)
  • the runner-registration + smoke-ticket acceptance gate #572 names as
    its own bar — needs a real second repo named as a target

Why a PR, not a direct push

swarm-bot's token has pull-only access to this repo (push: false via
the API) — confirmed live this session; AGit refs/for/main is the only
path available. Noted in STATUS.md's "Blocked on Ben" — this likely
wants a team-permission fix so future sessions aren't PR-only here the
way Matou/ourcloud isn't.

## What this does `onboarding/onboard.sh` + `onboard-lib.sh`: five independent, idempotent subcommands — `identity`, `labels`, `workflows`, `dockerfile`, `secrets`, `e2e-tier` — automating the "copy ourcloud and patch" ritual the 2026-08-15 factory-reengineering survey flagged. Full scope + what's deliberately deferred: `onboarding/README.md`. Ruled under ADR 0174 on `Matou/ourcloud`'s #572 (2026-08-19 session): script here (not a Claude skill), one Mattermost channel per onboarded repo as channel policy. See that ticket for the ruling comment. 29 new offline checks (`onboarding/tests/onboard-lib-test.sh`), full existing `tests/*.sh` suite still green. ## What's NOT in this PR - prompt.md skeleton templating (this repo's own separately-tracked, higher-blast-radius follow-up) - live Mattermost channel creation / runner registration (need credentials this session didn't have) - the runner-registration + smoke-ticket acceptance gate #572 names as its own bar — needs a real second repo named as a target ## Why a PR, not a direct push `swarm-bot`'s token has pull-only access to this repo (`push: false` via the API) — confirmed live this session; AGit `refs/for/main` is the only path available. Noted in `STATUS.md`'s "Blocked on Ben" — this likely wants a team-permission fix so future sessions aren't PR-only here the way `Matou/ourcloud` isn't.
onboarding: factory onboard <repo> mechanics (#572)
All checks were successful
ci / test (pull_request) Successful in 54s
6faed76901
Ruled under ADR 0174 on Matou/ourcloud's #572 (2026-08-19): script here,
not a skill — onboarding is mechanical (mint labels, render templates,
generate a repo's identity file), not a judgment-heavy interview, and
needs to be offline-testable like everything else in this repo.

onboarding/onboard.sh dispatches to onboard-lib.sh's five independent,
idempotent steps: mint the label vocabulary (dynamic ids, retiring the
prompt.md:209-class literal-id hazard), render the 6-workflow set from
templates (fixes the hand-built git.matou.nz and the elitebook-03
committed-machine-name hazards the survey named), generate
swarm-identity.sh, emit a secrets checklist, scaffold a Dockerfile, and
record the repo's e2e drive tier as a mandatory question (refuses
opt-out without a reason).

Deliberately out of scope, documented in onboarding/README.md: prompt.md
skeleton templating (this repo's own higher-blast-radius follow-up),
live Mattermost channel creation and runner registration (need
credentials/access this session didn't have), and the runner-
registration + smoke-ticket acceptance gate (needs a named live target
repo). 29 new offline checks, full existing suite still green.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Owner

Merged by hand into main as e2506ca (merge commit of 6faed76) — conflicts with the founding-docs/identity commits resolved keep-both (README heading + STATUS header/blocked-list; onboarding content intact, 29 onboarding checks + full suite green post-merge). Closing since the by-hand merge means Forgejo can't flag it merged itself. The swarm-bot pull-only permission that forced the manual path is recorded in STATUS.md → Blocked on Ben.

Merged by hand into `main` as `e2506ca` (merge commit of `6faed76`) — conflicts with the founding-docs/identity commits resolved keep-both (README heading + STATUS header/blocked-list; onboarding content intact, 29 onboarding checks + full suite green post-merge). Closing since the by-hand merge means Forgejo can't flag it merged itself. The swarm-bot pull-only permission that forced the manual path is recorded in STATUS.md → Blocked on Ben.
ben closed this pull request 2026-08-19 23:26:07 +00:00
All checks were successful
ci / test (pull_request) Successful in 54s

Pull request closed

Sign in to join this conversation.
No reviewers
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/dev-factory!5
No description provided.