Skip to content

Add a shared CPU puppet broadcast pilot - #599

Open
maithilijoshi20 wants to merge 4 commits into
ThinkFlowLab:mainfrom
maithilijoshi20:rfc11195-broadcast-pilot
Open

maithilijoshi20 wants to merge 4 commits into
ThinkFlowLab:mainfrom
maithilijoshi20:rfc11195-broadcast-pilot

Conversation

@maithilijoshi20

@maithilijoshi20 maithilijoshi20 commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

Add a local broadcast pilot under tools/broadcast_pilot. One process owns the CPU puppet’s WebSocket connection and the show’s rundown. The producer can cue the next segment or end the show. Viewers join the segment already on air.

The producer console and viewer page use the same origin. Each browser needs a short-lived, single-use ticket. Only the producer can change the rundown.

Linked issue

Refs #505. This covers the shared broadcast pilot in task 11 of vLLM-Omni RFC 11195.

Test plan

Tested 491fd01 on WSL after syncing with upstream main. All six protocol tests, both Chromium checks and the diff-scoped pre-commit checks passed. In the final-chunk regression, the viewer joined at 1 second and enabled sound during playback. Chromium measured non-silent audio starting at 2.35 seconds without receiving another chunk.

python -m unittest discover -s tools/broadcast_pilot -p test_pilot.py -v
python tools/broadcast_pilot/check_browsers.py
python tools/broadcast_pilot/check_audio.py
pre-commit run --from-ref upstream/main --to-ref HEAD

Evidence that it works

A second viewer joined during the first reading. Both viewers saw the same segment. The producer refreshed, the first viewer left, and the second viewer kept playing until the producer ended the show. The puppet log recorded one upstream connection in the current-tip browser run. The recording was captured at f9d8e1f. I checked the linked MP4 again: the frames show both viewers on the same segment, then viewer B still on air after viewer A leaves. Its 48 kHz audio track decodes with a nonzero signal. Watch the pilot recording

Provider verification

The run used the live-agent CPU puppet at 5da3472, with a scripted responder and offline synthetic audio. The rundown cues were “Open the book discussion”, “Introduce the first reading” and “Close the show”.

Bilingual UI

The producer controls, viewer status and connection messages ship in English and Simplified Chinese. The browser check used both locales.

…ewers

## summary
Keep the upstream connection and rundown in the broadcast process. Give each browser a short lived ticket and resume playback from the current chunk when it joins.

Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
@maithilijoshi20
maithilijoshi20 marked this pull request as ready for review November 30, 2026 06:47
@github-actions github-actions Bot added the area:docs Documentation / 文档 label Nov 30, 2026
@github-actions
github-actions Bot requested a review from wuzhf9 November 30, 2026 06:47

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REQUEST CHANGES 27336b1 Refs #505

Dot,代表 @david6666666。

当前证据暂定 45/100(非批准分)。 范围 3/3,正确性 2/3,验证 2/3,主张证据 0/3,简洁性 0/3。

共享节目单和单上游连接符合试点范围。建议先补上观众半途开启声音的路径,具体问题留在代码里。作者报告 6 项协议测试和 Chromium 联调通过,也附了固定链接的录像,但我没独立确认录音与画面,当前证据项保守记零;新增解释性代码注释按量表也记零。同一提交的 Release checks 仍需维护者放行,我没重跑。

English summary: 45/100 provisional. Start audio at the live offset when enabled mid-segment; add browser coverage and finish current-tip Release checks.

Comment thread tools/broadcast_pilot/client.js Resolved
## summary
Retain the current PCM until the viewer enables sound and use the video clock to start the remaining audio. Exercise the final chunk in Chromium.

Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD f9d8e1f Refs #505

Dot,代表 @david6666666。

当前证据暂定 53/100(上轮 45/100,非批准分)。 范围 3/3,正确性 3/3,验证 2/3,主张证据 0/3,简洁性 0/3。

上轮「半途开启声音」的问题已修:现在从当前画面的时间点接上音频,不用等下一段。新回归只送一个最终音频块,旧版会超时,新版按作者的 Chromium 回执在该块内测到了非静音样本。这个用例覆盖了我之前担心的边界。

当前提交的 Release checks 仍需维护者操作,分支落后主线 1 个提交。新版已附录像,我还没有独立核验播放与声音,证据项暂不加分;原 PR 中的解释性代码注释仍在,简洁性按量表为零。我读了修订和回归,没有重跑 Chromium。

English summary: 53/100 provisional. Late audio enable is addressed with a final-chunk regression. Current-tip Release checks and independent media verification are outstanding.

Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD 491fd01 Refs #505

Dot,代表 @david6666666。

当前证据暂定 83/100(非批准)。 范围、正确性、验证、证据、简洁性依次为 3/3、3/3、2/3、2/3、3/3。

这版已经跟上主线,也移除了之前扣分的解释性注释。我解码了试播录像,画面能看到两名观众对齐到同一段、其中一人离开后另一人继续,音轨也有非静音信号。录像录在上一提交;当前提交的最后一段中途开声由作者的 Chromium 回归覆盖,我没有重跑。Release checks 仍需维护者操作,所以分数虽过 80,暂不批准。

English summary: 83/100. Decoded the prior-tip pilot recording and verified non-silent audio; exact-tip Chromium result is author-reported. Release checks still require maintainer action.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentation / 文档

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants