feature: branded highlight outro (orchestration)#315
Open
Flegma wants to merge 7 commits into
Open
Conversation
Contributor
Author
Code + security review (multi-agent), addressedIndependent code review (Sonnet) and security review (Opus). Security review: Ship (no Critical/High)The trust boundary holds: no path injection ( Code review, fixed
Non-blocking follow-ups
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 of 2:
api(merge AFTER the game-streamer PR). Renderer: thefeature/branded-outroPR in5stackgg/game-streamer. Full design, both PRs, and merge order: 5stackgg/5stack-panel#514.What
The orchestration half of the branded highlight outro: the api decides the outro cache hit/miss per render and passes branding env to the game-streamer render pod. The renderer PR consumes that env.
Changes
src/matches/game-streamer/outro-branding.ts(new): pure helpers.computeOutroVersion=sha1(brandName|accent|logoEtag).slice(0,12),outroCacheKey=branding/outro_<version>_<dims>_<fps>.mp4,buildOutroEnv.outro-branding.spec.tshas 6 unit tests.game-streamer.service.ts: injectsS3Service;resolveOutroBranding(dims, fps):public.logo_url) is set;public.color_dark_tactical_amber, thenpublic.color_tactical_amber, then default33 94% 58%;{}(which means baked stock outro) when no logo is set or on any error, so it never breaks a render.Wired into the batch-highlights pod env (pod-level) and the
dispatchClipRenderToPodpayload.src/matches/clips/clips.service.ts: passesoutro_envin the on-demand dispatch payload.No DB migration, no
webchange (reuses the existing branding settings).Env contract (shared with the renderer PR)
Same six keys:
CLIP_OUTRO_URL(hit), orCLIP_OUTRO_RENDER=1+CLIP_OUTRO_PUT_URL+CLIP_BRAND_LOGO_URL+CLIP_BRAND_NAME+CLIP_BRAND_ACCENT(miss).Merge order
Merge AFTER the
game-streamerPR (which must ship:latestfirst). Safe either way thanks to the stock fallback, but the renderer must be updated before the api turns the feature on.Verification
jest6/6 on the pure helpers; changed filestsc --noEmitclean (pre-existing project tsc errors, e.g.sharp, are unrelated).S3Servicesignatures, DI wiring, failure isolation, the exact env-name contract, and dims/fps consistency between the batch and on-demand paths. Ready to merge, no Critical/Important findings.Non-blocking follow-ups
Promise.all) on the cold path.{}, hit/miss env, stat-throws degrades). The pure helpers are tested; the orchestration was verified by review.