#71 server: BuildDispatcher — coa-builds workflow_dispatch (phase-3 plan Task 4) #101

Closed
matou-build-agent wants to merge 0 commits from agent/issue-71 into main

Implements phase-3 plan Task 4: server/src/build-dispatcher.ts — githubDispatcher/noopDispatcher, AppDeps.dispatcher env-gated in defaultDeps().

closes #71

Implements phase-3 plan Task 4: `server/src/build-dispatcher.ts` — `githubDispatcher`/`noopDispatcher`, `AppDeps.dispatcher` env-gated in `defaultDeps()`. closes #71
sandcastle: #71 — BuildDispatcher (coa-builds workflow_dispatch, phase-3 plan Task 4)
All checks were successful
ci / seam (pull_request) Successful in 1m2s
4319da5305
- server/src/build-dispatcher.ts: DispatchRequest/DispatchResult/BuildDispatcher;
  githubDispatcher POSTs workflow_dispatch (inputs slug/kit_url/build:String/config_url/
  callback_url; Bearer + accept + x-github-api-version; 204->ok, else '<status> <body<=200>',
  network error caught); noopDispatcher() records calls.
- server/src/app.ts: AppDeps.dispatcher; defaultDeps() env-gates github vs noop
  (GITHUB_DISPATCH_TOKEN, COA_BUILDS_REPO/_WORKFLOW/_REF defaults) — inert until #79/#80/#81.
- Test verbatim from plan except stub returns null body for null-body statuses
  (204/205/304): undici rejects a non-null 204 body, so the plan stub threw before the
  dispatcher ran. Assertions unchanged. Ruled two-way-door on the issue.
- STATUS.md milestone log entry. No route calls dispatch yet.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner

Closing: fully-merged shell — this head is already an ancestor of main (verified with git merge-base --is-ancestor); the work landed via another merge. Branch deleted. (Session babysitting, GOTCHAS 7 family.)

Closing: fully-merged shell — this head is already an ancestor of `main` (verified with `git merge-base --is-ancestor`); the work landed via another merge. Branch deleted. (Session babysitting, GOTCHAS 7 family.)
ben closed this pull request 2026-08-31 21:42:00 +00:00
All checks were successful
ci / seam (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/coa!101
No description provided.