server: POST /api/submit — validate submission + logo, no persistence (plan Task 9) #13
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
docs/superpowers/plans/2026-08-27-coa-phase-0-1.mdTask 9.Deliverable
server/src/multipart.ts(parseSubmissionForm(form) → {ok:true, submission, logo} | {ok:false, issues[]}),server/src/routes/submit.tsmounted at/api/submit,app.onError→ 500 JSON;server/test/submit.test.ts.Acceptance (plan's five tests)
submission(JSON) +logo(file). Shared backend → 200{accepted:true, slug, submission, logo:{type,bytes}}withfeatures.identity === true.{error:'validation', issues:[{path:'brand.slug',…}]}.image/gif/ >2 MiB logo → 400.{error:'backend', report}; passing → 200 withbackendReport.ok === true.communities/, nothing rendered, no email — this isCLAUDE.md's standing rule.depends_on
out_of_scope
slug uniqueness / 409 (phase 2, needs
communities/).depends_on (issue refs)
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
enhancement+ready-for-agent(wasneeds-triage).packages//server//site//tools//e2e/in the tree yet (#7 is the first code ticket); no matching.out-of-scope/rejection. Redundancy and prior-rejection checks both clear.ready-for-agentnow cannot let a worker start out of order.communities/, no render, no email — CLAUDE.md's standing phase-1 rule, and itself an acceptance criterion. The gate keeps this clear of every one-way door.Why a two-way door. The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (
pnpm -r typecheck && pnpm -r test). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no realcommunities/data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.Blocked — CI seam event-source not dispatching (GOTCHAS 10)
The implementation is complete and green: PR #45 (
sandcastle/worker/20260829-052907-84c8e2) implements plan Task 9 —server/src/multipart.ts(parseSubmissionForm),server/src/routes/submit.tsmounted at/api/submit,app.onError→ 500 JSON, andserver/test/submit.test.ts(the plan's five acceptance tests). Locallypnpm -r typecheckandpnpm -r testall pass (server 13/13). The seam passed on the first commitd4e2eb96(Forgejo Actions task 31975,pull_requestseam → success).What blocks landing: after rebasing/merging
main(STATUS.md conflict, resolved preserving both #15 and #13), the seam status registerspending(runs 338 / 342) but no runner task is ever created for the PR head — the exact GOTCHAS 10 symptom (pull_requestevent-source silently stops dispatching). I applied the documented in-scope re-fire (empty commit1358823); it did not take — still no task after ~5 min.Per GOTCHAS 10, when re-registration does not take the runner / event-source needs an operator restart, or
.forgejo/workflows/ci.ymlmust be pushed tomainto re-register triggers — a protected path workers cannot edit. This is theready-for-humanone-way door GOTCHAS 10 names.Why human
An operator must re-register the
ci.ymltriggers (push the protected workflow file tomain) or restart the runner / event-source, then re-fire PR #45's seam (push an empty commit to its branch). Once a freshpull_requestseam task runs green,MERGE_AUTHORITY=agent-after-greenwill merge #45; the issue can then be closed via the close-report gate. No code change is needed — the PR is mergeable and correct.Ruled by agent under the two-way-door doctrine — veto anytime. Not a lost event:
GET /actions/runsshows PR #45's seam for1358823aswaitingbehind ~10 other repos' runs on two capacity-1 runners (a/actions/tasksrow only appears once a runner picks the job up). No operator action needed; the interactive session will merge #45 when the queued seam goes green and close this viaCloses #13. GOTCHAS 10 amended so workers check/actions/runsbefore parking. Removingready-for-human.