GeezerVison is showing github.com — id: media.* — typed media artifacts by default, one bounded raw stream for realtime (#2027) · Issue #2342 · developing-today/code
id: media.* — typed media artifacts by default, one bounded raw stream for realtime (#2027) #2342DescriptionFollow-up from the capability taxonomy v0 investigation (#2027, record: doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/, PR #2337).
Goal
media.* with typed artifacts as the default and exactly one raw channel: media.image/media.audio/media.video returning artifact references, and media.stream for realtime only.
Scope
- Artifact reference
{artifact_id, mime, bytes, sha256, width/height or duration_ms, created_at}; read back by id, bounded, deduplicable, replayable from the journal.
- Decision needed (taxonomy §9.3): artifact storage beside
records — artifacts want dedupe and GC, records.read has neither. Propose the shape in the issue before implementing.
media.stream: subscription of frames each ≤ MAX_EVENT_BYTES, explicit end, backpressure signal; never the permanent record — it ends in an artifact or is discarded.
- Refusals:
unknown_cap+device_lacks_affordance (no storage/hardware), outside_ceiling (slow link), bad_args+oversize, cap_denied+consent_required for capture.
Acceptance
- Typed artifact produced and read back by id with digest verified; oversize refused.
- A stream test asserting the 64 KiB frame ceiling and clean termination into an artifact.
Media surface renders artifact refs only — bytes never travel in a surface.
Out of scope
Transcoding, thumbnails, CDN delivery, inline playback.
Acceptance criteria
- The artifact-storage decision (taxonomy §9.3 — beside
records, which has neither dedupe nor GC) is proposed on this issue before implementation
- A typed artifact (media.image/audio/video) is produced and read back by id ({artifact_id, mime, bytes, sha256, dimensions/duration, created_at}) with digest verified; oversize refused (bad_args + oversize)
- A stream test asserts the MAX_EVENT_BYTES (64 KiB) frame ceiling, backpressure/end signalling, and clean termination into an artifact (or discard) — the stream is never the permanent record
- The Media surface renders artifact refs only; bytes never travel in a surface; capture refusals use the documented vocabulary (unknown_cap/device_lacks_affordance, outside_ceiling, cap_denied/consent_required)
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Intake review
Related: parent investigation #2027 (record: PR #2337); siblings #2338-#2345 are the other taxonomy follow-ups
Notes: Filed 2026-10-29T14:04Z from #2027. Still live: no open or merged PR implements it. #2344 (speech.capture) reuses this issue's stream ceiling and consent rules.
Risks: Building storage before the §9.3 decision lands risks a second media store to migrate; the decision is an explicit acceptance gate here.
Suggested approach: Post the storage-shape proposal on the issue first; implement artifacts, then the single raw stream.
🤖 Agent note · filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-29T14:30Z (09:30 CDT)
- Found via: monitor reconciliation
- Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized,
meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
- Expectation: see the effort label; done = the appended acceptance criteria are met.
- Links: this issue
dezren39 commented on Nov 16, 2026 agent-note:v1
state: in-progress
task: 8776
lane: code-c (Muse, repo-worker-code)
stage: claimed -> verified
GATE CLEARED THIS SHIFT: the §9.3 decision is answered. Pending-decisions ledger item artifact-storage-2342 is status "answered" (2026-11-16T02:00:33-06:00, orchestrator-audit-2026-11-16): "Accept the proposal's defaults on all four §9.3 questions." Defaults adopted: (1) BLAKE3-only digest in the ref, no stored sha256; (2) MAX_MEDIA_BYTES = 256 MiB code constant; (3) 30-day GC grace for zero-ref blobs; (4) media.put lives in the world event journal, not the artifact.rs author chain. Audit note: FLEET-DECIDABLE, engineering defaults within design authority (2026-10-24), revisitable once real usage data exists.
Implementing task 8776 / issue #2342 in this shift on branch queue/8776-2342-media-artifacts, following proposal comment 6614191454 as accepted. dezren39 commented on Nov 16, 2026 agent-note:v1
state: done
task: 8776
lane: code-c (Muse, repo-worker-code)
stage: claimed -> done (fixed_merged)
Issue #2342 is implemented and CLOSED. The §9.3 gate cleared this shift: pending-decisions ledger item artifact-storage-2342 was answered 2026-11-16T02:00:33-06:00 — accept the proposal's defaults on all four questions (BLAKE3-only ref; MAX_MEDIA_BYTES 256 MiB constant; 30-day GC grace; media.put in the world event journal).
PR #10653 merged (merge sha 2b6ada6): new pkgs/id/crates/id-store/src/media.rs — MediaRef typed artifacts (media.image/audio/video) produced and read back by id with digest verified, oversize refused at the header (bad_args + oversize), derived refcount + media.remove + 30-day GC eligibility, and the MediaStream contract (frames <= 64 KiB, credit-window backpressure, exactly one end{artifact}|end{discarded}, disconnect = implicit discard). Tests: cargo test -p id-store — 212 lib + 12 integration passed, including 8 new media tests; cargo fmt clean. Codex review failed to run (usage limits, no findings produced) and CodeRabbit was rate-limited (no findings) — disposition recorded on PR #10653.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|