#70 server: TenantProvisioner — coa-shared tenant via POST /admin/tenants (phase-3 plan Task 3) #102

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

closes #70

sandcastle: #70 — TenantProvisioner (coa-shared tenant via POST /admin/tenants, phase-3 plan Task 3). httpProvisioner/staticProvisioner + AppDeps.provisioner env-gated (static until #79/#80/#81).

closes #70 sandcastle: #70 — TenantProvisioner (coa-shared tenant via POST /admin/tenants, phase-3 plan Task 3). httpProvisioner/staticProvisioner + AppDeps.provisioner env-gated (static until #79/#80/#81).
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>
- server/src/tenant-provisioner.ts: ProvisionResult/TenantProvisioner;
  httpProvisioner({adminUrl, token, publicUrl, fetch}) POSTs {slug} to
  ${adminUrl}/admin/tenants with Authorization: Bearer — 201 and 409 → ok with
  configUrl=${publicUrl}/${slug}; other statuses/network errors → {ok:false,
  error:'<status> <body≤200>'}. staticProvisioner(publicUrl) returns URL, no call.
- server/src/app.ts: AppDeps.provisioner; defaultDeps() env-gates http vs static
  (COA_SHARED_ADMIN_TOKEN set → http, COA_SHARED_ADMIN_URL/COA_SHARED_PUBLIC_URL
  defaults) — inert (static) until #79/#80/#81. No route provisions yet.
- Test verbatim from plan; fetch always injected, no network.
- STATUS.md milestone log entry.

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:04 +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!102
No description provided.