Skip to content

feat(jobs): route streams to sidecars as profile data - #184

Merged
bhemsen merged 1 commit into
mainfrom
feat/jobs-sidecar-routing
Oct 2, 2026
Merged

bhemsen merged 1 commit into
mainfrom
feat/jobs-sidecar-routing

Conversation

@bhemsen

@bhemsen bhemsen commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Change

  • profiles.Sidecar (frozen) and StreamRule.sidecar: Sidecar | None = None.
  • jobs._decide_stream: on the ENC "no" edge a sidecar-accepted stream gets no map, codec, note or output position. One helper (_sidecar_of) is shared with _predict_unmapped (so verify_success/confirm_drops do not treat it as dropped or kept) and plan_sidecars.
  • jobs.PlannedSidecar, plan_sidecars, sidecar_suffix, SIDECAR_NAME_PLACEHOLDER; decisions recorded in the spec's Decision log.
  • No shipped profile declares a sidecar (WEB unchanged; lands in feat(profiles): write web's text subtitles as WebVTT sidecars #181).

Verification

  • scripts\verify.py: lint, format, 1435 tests green; all existing argv pins untouched.
  • New engine tests with a test-local probe-first profile (ROOM, PIC, copy/fallback precedence, styling notes, verify_success/confirm_drops/describe_unsupported); registry invariants with negative tests on constructed profiles.

Closes #178

🤖 Generated with Claude Code

A stream a rule can neither copy nor re-encode but a file of its own can
hold (a text subtitle for a browser) is now planned as a sidecar instead of
dropped: Sidecar/StreamRule.sidecar declare it, _decide_stream routes it on
the ENC "no" edge with no map, no note and no output position, and
jobs.plan_sidecars/sidecar_suffix expose the plan to batch. The prediction
and confirm_drops count such a stream as neither kept nor dropped. No
shipped profile declares a sidecar yet, so --to web is unchanged until the
batch step can write one (spec-subtitle-sidecars.md).

Closes #178

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bhemsen
bhemsen merged commit 7493bcb into main Oct 2, 2026
7 checks passed
@bhemsen
bhemsen deleted the feat/jobs-sidecar-routing branch October 2, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(jobs): route streams to sidecars as profile data

1 participant