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, themedia-engineOpenTofu module,store_conversiononregion-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.mdand...-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 temporarymanaged_fleets_inline_retired). - Weekly image refresh owner: who runs
make media-image-lockeach week (an amadan schedule or a Paseo schedule on docs-t1), decided in R1 from the spike's report.
🤖 Generated with Claude Code
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.
Discussions
- No discussions on this branch yet.
Tasks 26/26 done
Activity
- paul@keymail.dev pushed ca3e39d0b Merge origin/main at 23fd0124 into media-conversion
- paul@keymail.dev pushed 5bc3cd11a census: claim wording for the c0df6a51 merge, per Astra
- paul@keymail.dev pushed bdab353c9 Merge origin/main at c0df6a51 into media-conversion
- paul@keymail.dev pushed 429b41365 census: re-pin region-host variables for the pass 5 descriptions
- paul@keymail.dev pushed 461f35346 docs: media copy deck, Luna pass 5 approves the remaining rows
- paul@keymail.dev pushed 5dbedef9e spec: A5 a launch never seen to run is not charged; A6 retry refusal
- paul@keymail.dev pushed 754fda468 mediajobs: keep ambiguous launches to their bound; no charge if unseen
- paul@keymail.dev pushed 29c4f287d mediatest: model ECS eventual consistency in the fake engine
- paul@keymail.dev pushed e316d46a1 spec: A5 uncharged never-started launches, A6 boot wiring retry
- paul@keymail.dev pushed 994396307 census: re-pin the root envelope for the TLS roots module
- paul@keymail.dev pushed 6018d09c3 docs: media conversion follow-ups from the branch review, round 1
- paul@keymail.dev pushed d293f2b81 console: retry media wiring after a cloud failure at boot
- paul@keymail.dev pushed 83db8660c mediajobs: free a launch's place once no task is proved; detach release
- paul@keymail.dev pushed da8d4c307 carlos-media: embed TLS roots; image build and selftest prove them
- paul@keymail.dev pushed 64761e626 media: carry the probe's facts in error results; check them
- paul@keymail.dev pushed f8aedce38 mediaaws: show ECS failure reasons and stop codes as fixed words
- paul@keymail.dev pushed 0674b7e8f Merge origin/main at 976f6452 into media-conversion
- paul@keymail.dev pushed 2b6c829cd gitleaks: allow the media conversion tests' fake values
- paul@keymail.dev pushed c3a6077ae media: clear SA1019 findings now that main runs the check
- paul@keymail.dev pushed 252ca5847 Merge origin/main at ed6ae029 into media-conversion
- paul@keymail.dev pushed 5c6c435cd media: let medialocal fakes ignore SIGTERM before they report ready
- paul@keymail.dev pushed 3577bbed2 census: correct four media-engine claims after Astra's approval
- paul@keymail.dev pushed 676fe1b90 media: guard medialocal imports on every cross-compiled target
- paul@keymail.dev pushed 57f5e6c74 census: propose the media-engine and store_conversion infra units
- paul@keymail.dev pushed 95b58319e media: contain the local codec, keep the runner test-only
- paul@keymail.dev pushed 8f817127a media: local runner and the provider boundary guard
- paul@keymail.dev pushed 559ac3eab infra: keep oversize fleet grants inline until the inline copy retires
- paul@keymail.dev pushed 78945add5 infra: keep conversion off fleet buckets, move the fleet grant to managed
- paul@keymail.dev pushed 86093e1a9 infra: refuse broad store prefixes, fit the console role in IAM quotas
- paul@keymail.dev pushed d7956b10c infra: store_conversion switch for provenance and uploads