Images: drag, drop, paste and insert pictures in the web editor (slices 1–2) open
On branch feat/images
Paul, 2026-12-03: "I need to be able to drag and drop an image into a document."
Spec: docs/superpowers/specs/2026-12-03-docs-images-design.md (rev 3; Fable approved). Build notes and departures are in §11.
Paul's rulings (recorded in the spec):
- Web first, Mac next.
- Short spec, then build.
- "Go ahead, all as recommended" (§10): pictures kept until their document is purged; 8 MB / 40 MP per picture, 1 GB per person, 100 MB per guest; PDF shows "[Image: alt]" until slice 3; remote pasted images are left out with a notice; Mapa's rulings carry over.
- Object storage, not embedded (store carlos-store-bds-docs, eu-west-1).
- Copy review approved unchanged (38 strings), 2026-12-03.
- "Land and deploy then continue."
What lands
- Core ABI 8: the read view draws images; there is a missing box for anything else.
internal/imagefile: decoding and limit checks.- Server: sealed image upload, copy and serve (
/d/{sqid}/images/{id},/p/{token}/images/{id}), quotas, and the export placeholders. - Web editor: drop, paste and Insert → Image… with placeholders anchored by Yjs relative positions; alt-text badge, bubble and field; status-strip notices.
Review: Claude Fable 5.2 on 1338e1e found no high-severity findings. All seven medium and low findings are fixed in a3bba8c (§11 lists them).
Tried by hand against a sealed development server: drop of one file and of three (they land in order); PDF refusal; alt text; reload; Markdown export; /d/ headers; paste of a data: image (uploaded) and a remote one (left out, with the notice); and a collaborator typing during a held upload.
CI: green on 279035d. One earlier run failed on TestPushIsFasterThanTheFetchPath, a timing test, on a loaded runner. It passed 3/3 locally and on the re-run.
Owed, as follow-up work after this lands: the §7 -tags browser suite, plus team lease, WAL/blob canary, 64 KiB stored size, swapped object, semaphore 503, schema load and §3.6 agent refusal tests.