Propose image attachments as an openspec change
Plan grade 3 of lab 4 as one change: a third domain zone for attachments that takes the raw bytes of one PNG or JPEG, applies the size limit before reading the whole body and the pixel limit before decoding, checks the type by content, writes a pending row, the object and then the ready row and only then answers 201, and serves metadata and the original only to chat members through the API. Messages gain attachment_ids, linked by a foreign key to attachments of the same chat so the messaging zone never reads the attachments table, and the zone asks messaging about membership through a port wired in main.py. The stand gains RustFS with a private bucket, a one-off bootstrap with a separate API key, and a restart hook that waits for S3. The specs add lab4-attachments and lab4-object-storage and modify message sending, history, idempotent replay, the restart hook and stand persistence. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bf8e4e3cd1
commit
d7fb96bb70
@@ -0,0 +1,2 @@
|
||||
schema: spec-driven
|
||||
created: 2026-10-28
|
||||
Reference in New Issue
Block a user