feat(orchestrator): 003 W6 speech bubbles at the agents in every view

A toolbar toggle, a hub setting off by default, shows a speech bubble per agent anchored at its face in every view and at its projected node in 3D; an agent without an anchor speaks from a caption bar. The speaking agent's bubble is the largest and reveals its line word by word over the audio duration, or at 180 words a minute without TTS, a failed TTS request included; queued agents wait as smaller ellipsis bubbles sized by order, and a finished bubble fades out while the next one grows. Comic Neue 400 latin is vendored under SIL OFL 1.1 and loaded through the FontFace API, so the CSP stays unchanged.

Residuals: the caption says speaking while bubbles run silently; the word reveal follows the wall clock, not the audio clock; the e2e suite runs once in the unify gate (operator order 2026-11-11 21:15), score gate exit 1 accepted under that order.

🎯 Fix: 82 %
💥 Break: 5 %
💸 Cost: 100 %
⏱️ Time: 100 %
🛡️ Security: 100 %
🏆 Score: 78
🚦 Gate: ⛔ fix 82 % < 90

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-11 23:39:17 +00:00
1 parent 1bcc8c135f
commit 770667ced9
19 files changed
+788 -20

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
const Bubbles = (() => {
"use strict";
const SCALES = [1, 0.8, 0.65];
const SMALLEST = 0.5;
const PACE = 180;
const SHORTEST = 1.5;
function scale(position) {
return SCALES[position] ?? SMALLEST;
}
function words(text) {
return String(text || "").split(/\s+/).filter(Boolean);
}
function reading(count) {
return Math.max(SHORTEST, (count * 60) / PACE);
}
function reveals(count, duration) {
return Array.from({length: count}, (_, index) => (index / count) * duration);
}
function shown(count, duration, elapsed) {
return reveals(count, duration).filter((at) => at <= elapsed).length;
}
function picked(row, speech) {
return row.class === "mayday" || speech.classes.includes(row.class);
}
function plan(head, pending) {
const queue = head ? [head, ...pending] : pending;
const shift = head ? 0 : 1;
const seen = new Set();
return queue.flatMap((item, index) => {
if (seen.has(item.who)) {
return [];
}
seen.add(item.who);
return [{who: item.who, item, scale: scale(index + shift)}];
});
}
return {SCALES, SMALLEST, PACE, SHORTEST, scale, words, reading, reveals, shown, picked, plan};
})();
if (typeof module === "object" && module.exports) {
module.exports = Bubbles;
}