EVERY Coa submission is refused on logo: the client labels the logo part application/octet-stream (mw.CreateFormFile) and Coa validates the part's Content-Type, not the bytes — a PNG kit fails exactly like the JPEG one; fix the part header, then … #1806
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1806
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?
Proven (cold manual founding #2 of
whakatohea-demo, 2026-09-23/24, buildff4a5263)The community-app record on the gateway after two Try-again clicks (
/srv/idss/config/idss/community-app.json):The gateway's brand kit (
/srv/idss/config/idss/brand-kit.json):"Logo": {"Source": "brand/whakatohea-logo.jpeg", "Bytes": "/9j/4AAQSkZJRg…"}— a JPEG (that base64 prefix is the JFIF magic). Ben uploaded a.jpegat the founding brand-kit step and the app took it.Coa:
packages/schema/src/submission.ts:7LOGO_MIME = ['image/svg+xml', 'image/png'];server/src/multipart.ts:21→ issue{path:'logo', message:'logo must be SVG or PNG'}→POST /api/submitanswers 400 validation. The IDSS client forwards the logo as-is (internal/coaclient/client.go:131-137,CreateFormFile("logo", "logo."+logoExt(sub.Logo.ImageType))) and maps the 400 to aCoaRefusalwhose reason the card shows verbatim: "Coa could not validate the submission: logo".Ordering matters:
submit.tsparses the form (line 26) before the slug check (line 36), so this 400 fires regardless of anything else — it is what the founding-time tail hit at ~17:40 too, not theslug-taken409 I first attributed it to in #1805 (that residue was real and is corrected there; it was simply never reached).Control-plane log, both clicks:
msg="community-app re-submitted" slug="" state=failed resumed_design=true— the re-design act re-read the same JPEG from the brand kit and was refused the same way. From the operator's chair Try again "does nothing": the card re-renders the identical failed state.Nothing in
app/srcconstrains the logo file type at the brand-kit step (grep -rn 'accept=' app/src/components/foundingfinds no logo accept list), and no ticket covers it (tracker searched: logo png / logo jpeg / logo coa).Fix
image/png, image/svg+xmlonly, OR accept anything raster and convert to PNG in the app (the kit already decodes the image to derive the palette; re-encoding a square PNG is a few lines with the same canvas). Converting is the kinder answer — an operator with a JPEG logo should not be turned away for a format they have never heard of. Keep the SVG as-is when given.coaSubmissionFor(founding tail) and the gateway's design act both convert a non-PNG/SVG kit logo to PNG before building the multipart, so a kit written by an older app still submits.logo, the card's reason should name the rule ("Coa needs a PNG or SVG logo — change it in Settings → Brand kit") and point at the brand-kit page, not just echo "logo".\x89PNG), and a founding-journey leg with a JPEG fixture.Related weakness surfaced by the same click (separate ticket if you want it split)
WithCommunityAppResubmitpicks the branch byrec.SubmittedAt == "". The founding tail's refusal path saves the record withoutSubmittedAt(communityapptail.go—Record{Chosen, State: failed, Slug, Reason}), so after ANY Coa refusal at founding, Try again takes the re-design branch (designer.Designwithrec.Design), never the re-submit branch. Here that happened to be harmless (both read the same kit), but it means the resubmit branch is unreachable for founding-time refusals — the seam theApplyResubmitslug-taken handling was written for.Relates to: #1805 (corrected), #1774, #1677, #1742, #1506, #1495, DDR 0228.
Founding accepts a JPEG brand logo but Coa takes only SVG/PNG — every submission from such a community is refused 400to EVERY Coa submission is refused onlogo, at founding and on every Try again; the app must convert (or refuse) at the brand-kit steplogo: the client labels the logo partapplication/octet-stream(mw.CreateFormFile) and Coa validates the part's Content-Type, not the bytes — a PNG kit fails exactly like the JPEG one; fix the part header, then …Root cause corrected — proven live 2026-09-24 02:39 UTC
Ben replaced the kit logo with a 512×512 PNG from Settings → Brand kit (applied to all 12 surfaces at 02:36:23, Nextcloud oneshot re-ran 02:36:56 success,
/brand/logoservesimage/png). Try again at 02:39:34 →community-app re-submitted slug="" state=failed resumed_design=true, record reason unchanged: "Coa could not validate the submission: logo".internal/coaclient/client.go:132builds the part withmw.CreateFormFile("logo", "logo."+logoExt(...)). Go'smultipart.Writer.CreateFormFilehard-codesContent-Type: application/octet-streamon the part. Coa'smultipart.ts:21checkslogo.type(the part's Content-Type header) againstLOGO_MIME = [image/svg+xml, image/png]— never the bytes.Direct probe against the live Coa with the SAME PNG file (a
submission-less form, so a harmless 400 either way):So no IDSS-originated submission has ever passed Coa's parser, PNG kits included. The drives are green because
cmd/rehearsal-coadoes not check the part's content type — the very gap #1522/#1531 flag ("real Coa" never exercised end to end). The JPEG (original body of this ticket) is real but secondary: with the header fixed a JPEG would still be refused, so the brand-kit conversion/refusal stays in scope.Fix, in order
coaclient.Submit: build the logo part withmw.CreatePart(textproto.MIMEHeader{"Content-Disposition": {form-data; name="logo"; filename="logo.png"}, "Content-Type": {"image/png"}})(orimage/svg+xmlfor SVG). Same for any other file part.cmd/rehearsal-coa: refuse a logo part whose Content-Type is not inLOGO_MIME, exactly as Coa does — the fake must fail the way the real thing fails, or the journey stays green on a broken wire. Add a seam test that asserts the part header.The Try-again branch note (SubmittedAt empty → re-design only) in the original body still stands.
swarm-claim host=bens-mac-04 run=31471
(automated multi-host claim — lowest live claim id works this ticket)
anysyncblock omitsid(the any-sync network-configuration id) — Coa's ClientConfigSchema refuses the backend probe, every IDSS-originated build is withheld at page-ready, and matou-app's client would start with an empty id #1807swarm-claim host=elitebook-distributed-server-03 run=31489
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1806 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope