carlos / platform Public

media-conversion

Media conversion for any app

A platform service that turns what phones and browsers hand an app into files that play everywhere. The app uploads the original to its own store bucket, asks the console to convert it (carlos media convert, or the API), and polls.

  • Video becomes one 720p H.264/AAC fragmented MP4, a byte-range HLS playlist over that same file, and a poster.
  • Audio becomes AAC with loudness normalisation (one linear gain), its playlist and a peaks file for a waveform.
  • One ECS Fargate task per job, in a private VPC with no internet route, a DNS firewall and scoped endpoints. Nothing runs between jobs: it scales to zero.
  • Charged in media minutes against the plan's media_minutes_month, with a media pack.
  • Also here: carlos store uploads enable|status|disable (the platform owns a verified store's browser-upload CORS and multipart cleanup), carlos system media status, the media-engine OpenTofu module, store_conversion on region-host, and the engine image (make media-image).

Off until a console is configured. Nothing changes on merge. The door is live only where the operator applies the module, sets store_conversion = true, and sets CARLOS_STORE_CONVERSION=1 and CARLOS_MEDIA_ENGINE on the console.

Spec and plans

  • Spec: docs/superpowers/specs/2026-11-16-video-conversion-design.md, revision 8, approved by Paul 2026-11-16 (rulings on #1120). Amendments in §11: A1 host-claim consoles; A2 done-job charges stay by duration; A3 no "minted" shortcut, the incarnation lives on the bucket; A4 the platform owns a verified store's browser-upload settings; A5 a launch never seen to run is not charged; A6 a cloud failure at boot is retried.
  • Plans: docs/superpowers/plans/2026-11-16-media-conversion-plan-1-spike.md (reviewed, not yet run), ...-plan-2-console.md and ...-plan-3-engine.md (both built here). Plan reviews: three Astra rounds, closed with no P1.

Reviews

  • Every task: Astra and Fable reviews with fix rounds, per the SDD ledgers.
  • Whole branch: round 1 Astra and Fable NOT READY, fixed (ECS reasons allowlisted, TLS roots embedded in the engine image, detached release, boot retries; spec A5 and A6). Round 2 Fable READY; Astra's P1 on empty ECS lookups settled by Paul's option A. Round 3, scoped to the changed termination and charging path: Astra READY, no findings. Review closed READY.
  • Census: verdicts on #280, all APPROVE. Plan 3 Tasks 11 and 12 (17 infra units, 10 envelopes); the x509roots . re-pin; the copy pass 5 re-pin; and each merge of main's . re-pin, the last at c0df6a51.
  • Copy: Luna passes 1 to 5 over the copy deck (docs/superpowers/notes/media-conversion-copy-deck.md), the CLI, console and README text. Pass 5 approved every row but the weekly image refresh paragraph, whose owner is not yet chosen.

Still owed

  • Plan 1, the spike: run in dev. Its report may amend the spec where the numbers disagree (encode times, A/V offset, true-peak margin, session-token size). Tasks 4 and 6 are provisional on it.
  • Rollout R1 to R6 (plan 3; each step needs Paul's go, dev first): R0 a read-only role check; R1 release and engine image; R2 dev infrastructure with the door off; R3 dev activation gates and drills; R4 dev drills with the door on; R5 dev playback; R6 flagship.
  • Follow-ups: docs/superpowers/notes/media-conversion-followups.md (P3s from the whole-branch review, including removing the temporary managed_fleets_inline_retired).
  • Weekly image refresh owner: who runs make media-image-lock each week (an amadan schedule or a Paseo schedule on docs-t1), decided in R1 from the spike's report.

🤖 Generated with Claude Code

Human

Build of media conversion (spec docs/superpowers/specs/2026-11-16-video-conversion-design.md, approved). Plan 2 (console side) then plan 3 (engine, AWS adapters, infra); plan 1 (dev spike) runs when Paul supplies clips. Opus implements per task; Astra reviews marked tasks.

Commits 100
Discussions 0 0 open
Tasks 26/26 done

Activity