#119 server: no auto-dispatch on submit — manual build after the whakawhanaungatanga session #123

Merged
matou-build-agent merged 3 commits from agent/issue-119 into main 2026-09-04 13:13:49 +00:00

Implements #119. /api/submit no longer provisions/dispatches — a submission parks at page-ready; the build is triggered manually with make build-app SLUG=<slug> after the whakawhanaungatanga session (DDR 0006).

Seam green (pnpm -r typecheck && pnpm -r test). e2e specs extended (browser tier not runnable in-sandbox — missing system libs). Deploy: docker restart coa after landing (GOTCHAS 17).

🤖 Generated with Claude Code

Implements #119. `/api/submit` no longer provisions/dispatches — a submission parks at `page-ready`; the build is triggered manually with `make build-app SLUG=<slug>` after the whakawhanaungatanga session (DDR 0006). Seam green (`pnpm -r typecheck && pnpm -r test`). e2e specs extended (browser tier not runnable in-sandbox — missing system libs). Deploy: `docker restart coa` after landing (GOTCHAS 17). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Relationship-first flow (DDR 0006): a submission is the start of a conversation,
not a build order. `/api/submit` now stops at validate → store → render → publish →
email and parks at `page-ready`; it no longer provisions a tenant or dispatches
`coa-builds`. Matou triggers the build manually after the whakawhanaungatanga session.

- server/src/routes/submit.ts: drop the startBuild tail; return page-ready.
- server/src/cli/build.ts: new `build(slug, deps)` operator command — runs the
  phase-3 tail via startBuild, re-renders the page to `building`, publishes the
  community dir. Wired as `make build-app SLUG=<slug>` (server `build-app` script;
  `build` was already the workspace-build target). Prints the community page URL.
- templates/src/community-page.ts: page-ready is now the parked state — "We build
  your app after we've met — book/attend your whakawhanaungatanga session"; building
  keeps "Installers are being built…". mailer + site /done copy match.
- docs/adr/0006-design-manual-build-trigger.md (DDR): records the reversal of the
  ADR 0004/0005 submit tail to a manual trigger.
- Tests: submit asserts provisioner/dispatcher stubs NOT called + no kit.json;
  new build.test.ts; templates/mailer/Done tests updated; both e2e specs extended
  (submit → parked → make build-app → building → signed callback → ready).

Seam green (pnpm -r typecheck && pnpm -r test). The e2e browser tier could not run
in-sandbox (missing system libs, no root). Deploy: live server needs
`docker restart coa` after landing (GOTCHAS 17).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	STATUS.md
Merge remote-tracking branch 'origin/main' into sandcastle/worker/20260904-105459-14b6db
All checks were successful
ci / seam (pull_request) Successful in 56s
717937de6e
# Conflicts:
#	STATUS.md
#	docs/adr/README.md
matou-build-agent deleted branch agent/issue-119 2026-09-04 13:13:52 +00:00
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/coa!123
No description provided.