Repository navigation
refactor(broadcast): remove the speaker tick and spoken updates - #6773
Merged
Merged
Conversation
Removes the Broadcast speaker loop and everything that only it used: the per-tick reader that picked moments, queued lines and spoke them through the native text-to-speech bridge, the voice attention policy, the on-demand `say` route with its `o8_broadcast_say` MCP tool and `o8 broadcast say` CLI command, and the nine settings only the speaker read (lull minutes, quiet hours with their start and end, and the attention, approval, review, failure and completion subscriptions). Their fields leave the native Settings page, the TOML mapping, the operator defaults route, the o8d declarations and its evidence corpus. Values already saved in a settings file stay on disk and are ignored. The commentary director, the spectator page, events, snapshot, post, tokens, Calendar and automation check-ins and the why receipt stay. The classic shell still posts Calendar events and reads why, and automations still post check-ins. The remaining voice settings now say what they gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hurttlocker
enabled auto-merge
November 24, 2026 23:49
🔍 PR Review Bot
|
📝 o8.run docs may need updatingThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):
Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited. |
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.
Removes the Broadcast speaker tick and spoken updates. The owner cut them on 2026-11-24 ("the speaker tick and spoken updates only").
Removed
src/lib/broadcast/speaker.ts. Thebroadcast-speakerloop ran every 1 s from server start. Each tick read new Broadcast events and the settings files, picked moments, queued and coalesced lines, and spoke them through the native text-to-speech bridge (native-tts.ts).The voice attention policy (
attention-policy.ts) and the narration helpers only the speaker used.On-demand speech: the
/api/broadcast/sayroute, theo8_broadcast_sayMCP tool ando8 broadcast say.Nine settings only the speaker read:
They leave the native Settings page, the TOML mapping, the operator defaults route, the MCP status schema, the o8d settings declarations and its evidence corpus. Values already saved in a settings file stay on disk; the loader ignores keys it doesn't declare. The native
Kind::Timeeditor, used only by the quiet-hours fields, goes with them.TS: −2,344 lines net. Rust: −101 lines net.
speaker.ts,native-tts.tsandattention-policy.ts, all imported bysrc/ws-server.ts.broadcast-speaker, a 1 s timer.Kept, and why
/api/broadcast/calendar) and thewhyreceipt (/api/broadcast/why). The classic desktop shell still calls both, and that shell is out of scope.whynow reports the last line that was actually spoken./api/broadcast/automation-say,o8 broadcast automation-say). Automations stay.broadcastVoice,broadcastVoiceCalendar,broadcastVoiceCalendarLeadMinutesandbroadcastVoiceTimeCheckins. They still gate the Calendar and automation posts; the classic shell reads the first three. Their native and MCP descriptions now say what they gate instead of "speak"./api/mobileroute or mobile code imports anything removed.Tests
broadcast-speaker-real-pathandbroadcast-voice-repetition-real-path(every case exercised speech),attention-policy.test.ts, the say cases inprincipal-authz,middleware-gateand the CLI test, and theo8_broadcast_sayprofile assertions.o8d-pr-context-say-native-real-pathbecomeso8d-pr-context-native-real-pathwithout its speech half. It is quarantined under Real-path suites drifted on main because they only run when their own files change #6761: on unchangedmainthe device and worker fixture bearers get 401 instead of 403 from the native gate, and I could not find why within the one-hour limit.Verification
Rebased on
2398dfa49.npm run typecheck:fast,tsc -p cli/tsconfig.jsonand ESLint on the touched files pass.cargo check --testsfornative/o8-next. The o8d build with session reads and MCP also passes.o8d-broadcast-writes-native,broadcast-commentary-settings,broadcast-directorandbroadcast-followup, against an o8d built from this branch: 13 of 13 files pass, 5 skipped.principal-authz,middleware-gate,src/lib/{mcp,operator,broadcast,settings}and the operator-defaults route pass: 352 of 352. The CLI broadcast test passes: 6 of 6.o8d-rust-settings-real-pathfails identically on unchangedmain("Native read changed durable files: /api/setup/config"), so I edited the corpus directly: the nine keys are removed from each record and the rest is byte-identical.npm run verify:ci: Lint, Type Check, Test Classification, Server Bundle Size, Security Audit and Governance Smoke pass./api/broadcast/saypattern left in theroute-coveragemanifest. It is fixed, and the stale-manifest check passes. The otherroute-coveragefailures are the local-only Host-gate cases.api-front-doorrequires 15 GiB free disk, and this machine has less. That suite passed in the run above with the gate lowered.🤖 Generated with Claude Code