GeezerVison is showing github.com — S7: attachments & multimedia · Issue #10036 · developing-today/code
S7: attachments & multimedia #10036DescriptionSub-issue of #9539. Slice S7 from design doc §6.
Upload handling, multipart, storage refs. Streaming audio is a future enhancement (out of scope).
Design: #9539 · PR #10030 Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 17, 2026
Agent note — triage of record (task 19087, lane any-l)
State: triaged; implementation gated on Drew's design §8.3 answer (escalated, ledger item below). Issue #10036 OPEN, label kind/feature only, no hard-stop labels (fresh check 2026-11-17).
Verdict:
- Work kind: small-fix (implementation, when ungated). Priority: normal. Effort: l. Kind: feature (already on the issue).
- Context: sub-issue of program PM-stack prompt & chat surface: scoped prompt widgets + session interface (program) #9539 (PM-stack prompt & chat surface); design merged in PR doc(pm-stack): design pass for prompt & chat surface (#9539) #10030 (doc/2026-11-13T11-54-00Z_design_pm_stack_prompt_surface/design.md). S7 = design §6 slice: upload handling, multipart, storage refs. Streaming audio is explicitly a future enhancement, out of scope. All sibling slices S1–S6 (S1: generic prompt widget + section/page widgets on main PM-stack pages #10032–S6: chat/session surface (threaded view, reply, cross-reference, archive) #10035, S5: specialized task variants (reprioritize, detail-gather, compare-options, integrate-insights, report) #10037, S2: target selector expansion + async completion notification #10038) are OPEN; none gates S7.
- Confirmed unimplemented: no upload/multipart/attachment handling exists in pm-stack/aggregator on main (only a request-body size guard in request-body.ts).
- The gate, verified: design §8 question 3 — "Attachments storage: reuse the existing upload mechanism (if any) or new? Confirm before S7." Fleet fact for that question: there is no existing upload mechanism in the pm-stack to reuse, so the live choice is where new storage lives. This is Drew's decision by his own design doc, so it is escalated properly, not assumed: pending-decisions ledger item
pm-stack-s7-attachments-storage-10036 (status pending), options: (a) new storage on the pm-stack host data dir with storage refs in records, (b) Backblaze B2 (exploration explore(saas): Backblaze B2 — adoption investigation for fleet storage (from #1059) #9414) with signed refs, (c) a mechanism outside pm-stack that Drew names.
- No follow-on task enqueued: enqueueing an implementation packet before the storage answer would bake in an unconfirmed architecture. On Drew's answer, the next lane enqueues the S7 small_fix packet against the chosen storage and this issue proceeds.
Acceptance check for the eventual fix: prompt/chat submissions accept attachments via multipart, persist them to the storage Drew chose, and carry storage refs (design §3 record shape: "attachments": [multipart refs]); streaming audio excluded. dezren39 commented on Nov 18, 2026 agent-note:v1
state: triaged
task: 20476
lane: code-h
stage: terminal
Duplicate intake of completed triage task 19087. Fresh state confirms #10036 remains OPEN, is assigned to Drew, and carries user/escalated. Existing triage records the explicit pending storage decision; no implementation follow-on is safe until that decision arrives. Design PR #10030 is referenced by the issue. Queue task completed as triaged; bookkeeping deferred to fleet reconciliation.
dezren39 commented on Nov 22, 2026
Hands item — one action (from the #12234 owner-parks batch, 2026-11-22):
Drew: answer design §8 question 3 — where does new attachment storage live? The fleet verified there is no existing upload mechanism in the pm-stack to reuse, so the live choice is:
(a) new storage on the pm-stack host data dir with storage refs in records,
(b) Backblaze B2 (exploration #9414) with signed refs, or
(c) a mechanism outside pm-stack that you name.
Pending-decisions ledger item: pm-stack-s7-attachments-storage-10036 (status pending). On your answer, the next lane enqueues the S7 small_fix packet against the chosen storage and this issue proceeds — no implementation is safe before then, because it would bake in an unconfirmed architecture. user/escalated stays until the answer lands. dezren39 commented on Nov 22, 2026
Decided: Attachment storage lives in the pm-stack host data dir, with storage refs in the records (option (a) of design §8 question 3). This supersedes the hands framing posted earlier today: an architecture choice between documented options is a decision under FDR-0013, not a hands item. Storage refs keep the location abstract, so moving to Backblaze B2 (option (b), exploration #9414) later is a migration, not a redesign.
Why: There is no existing upload mechanism to reuse (verified by the earlier batch note); (a) needs no new external dependency, credential, or spend, matches how pm-stack already keeps its data, and is the only option that unblocks S7 implementation now.
Undo: One design-note PR switching the ref resolver to B2 if (b) is ever wanted; stored refs do not change.
By: felix (Muse seat, #12234 owner-parks batch, 2026-11-22) dezren39 commented on Nov 23, 2026 Lane felix picking up #10036 (S7: attachments & multimedia). The §8.3 storage gate is resolved by the decision of record (2026-11-22): option (a) — attachment storage in the pm-stack host data dir, storage refs in records. Starting with a done check against current main, then implementing the bounded slice: multipart upload handling on prompt/chat submissions, persistence to the host data dir, storage refs in the submission records. Streaming audio stays out of scope. dezren39 commented on Nov 23, 2026 Lane felix — S7 implemented: PR #13328 (unmerged, for Felix's review).
Done check: S7 was not on main — no multipart/upload handling existed, and promptAnswerBody still carried the placeholder "attachments: []" naming S7. The §8.3 gate was already resolved by the 2026-11-22 decision of record (option (a): host data dir + storage refs), so the slice proceeded.
What landed: POST /api/prompt accepts multipart/form-data (text fields shaped into the one validator; files under "attachments"), blobs persist to the host data dir (PM_AGG_PROMPT_ATTACHMENTS_DIR, default prompt-attachments/ beside prompts.json) under abstract attachment: refs with sidecar metadata, records carry the refs (design §3.2 shape), the §3.7 answer body echoes them, and GET /api/prompt/:id/attachments/:ref serves a blob back record-bound, download-only. Limits (5 files / 5 MiB each / 25 MiB total) are enforced before any write; a failed submission removes its blobs. The widget form gained the file input. Streaming audio remains out of scope.
Evidence: remote run 45185224298 at head 4edee85 — success: bun test over prompts/prompt-attachments/prompt-ws suites (41 tests, 0 fail) + bunx tsc --noEmit clean. No new dependencies; no schedule touched. dezren39 commented on Nov 23, 2026 Merged note — Felix, 2026-11-23: PR #13328 merged after my review. S7 attachments are landed per the 2026-11-22 decision of record (option (a): host data dir, abstract attachment: refs in records; refs are shape-validated before any filesystem touch, blobs serve only when the prompt record carries the ref, limits enforced before any write). Remote suite 41/0 + tsc clean (run 45185224298). dezren39 commented on Nov 24, 2026
Second-pass verify-and-route (queue task 21996, lane any-o, 2026-11-24).
developing-today-fleet commented on Nov 26, 2026
state: triaged — already resolved, closing with evidence
lane: oc-code-02, task 24695
Fresh verification 2026-11-26: S7 is delivered on main.
- PR feat(pm-stack): prompt attachments — multipart upload, host-dir storage, storage refs (#10036 S7) #13328 MERGED 2026-11-23 (merge 1ccb4a1, ancestor of origin/main). PR body intentionally said Refs S7: attachments & multimedia #10036 stays open until review/merge; that condition is now satisfied (merged note 2026-11-23).
- Scope check: multipart upload handling, host-dir storage (PM_AGG_PROMPT_ATTACHMENTS_DIR, default prompt-attachments/), abstract attachment: refs in records, download-only read side, limits enforced before write. Streaming audio remains out of scope per issue body. Code present: pm-stack/aggregator/src/prompt-attachments.ts + test on main.
- Focused oracle: bun test src/prompt-attachments.test.ts — 14 pass, 0 fail (this lane, 2026-11-26).
No follow-on packet: the storage gate (design §8 Q3) was decided 2026-11-22 option (a), implementation landed, second-pass task 21996 already verified delivered. Closing as complete.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|