Live preview is for Agents only; CODY-023; simulator screenshots wait for the draw
Dan, after the Round 19 review: "I'd only invoke the live transcription
when in agent sub-app." The preview now runs only in Agents mode. In
hands free a recording, whether started by a name or by a tap, is never
previewed; the only audio sent for transcription there is the wake check
and the question itself. "Heard:" is unchanged in both modes. He also
ruled out sending the hands-free listener's audio to a paid service;
decision 0005 records both.
CODY-023: the README status table now states one SHA or version per
surface (server 44ea114, beta client 0.3.0, repository client 0.4.0
candidate), nine simulator scenarios and what the ninth does and does not
cover, and the evidence level of 0.3.0 and 0.4.0.
Simulator suite: the answer and page-turn screenshots poll until the
display shows the expected change instead of sleeping a fixed 800-900 ms.
One of five runs had failed there (the answer page was not yet drawn).
Not reviewed, not deployed, not uploaded, not device-tested.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -9,19 +9,21 @@ small bridge between the two.
|
|||||||
|
|
||||||
## Status: deployed to one server; run in the Even app on one physical G2, with bounded checks
|
## Status: deployed to one server; run in the Even app on one physical G2, with bounded checks
|
||||||
|
|
||||||
Physical testing so far is a handful of sessions on one pair of glasses on 2026-11-21. The full
|
Physical testing so far is a handful of sessions on one pair of glasses on 2026-11-21 and one
|
||||||
|
report on 2026-11-28. The full
|
||||||
device checklist (`docs/device-test-plan.md`) has **not** been completed. Three kinds of evidence
|
device checklist (`docs/device-test-plan.md`) has **not** been completed. Three kinds of evidence
|
||||||
are kept apart below and in the evidence files: what Dan observed on the device and reported, what
|
are kept apart below and in the evidence files: what Dan observed on the device and reported, what
|
||||||
the implementer read from the server's log, and what Cody reproduced independently in review.
|
the implementer read from the server's log, and what Cody reproduced independently in review.
|
||||||
|
|
||||||
| Path | State |
|
| Path | State |
|
||||||
|---|---|
|
|---|---|
|
||||||
|
| **What is where today** | Server (bridge and static page): `44ea1148c34a271f4fdc565ef71a145adf459b42`. Even account, beta channel: client 0.3.0, built from that commit. This repository's client is **0.4.0, a candidate: not deployed, not uploaded, not on the device.** |
|
||||||
| Client, bridge and contract | Implemented. |
|
| Client, bridge and contract | Implemented. |
|
||||||
| Automated tests with fakes (349) | Passing. |
|
| Automated tests with fakes (349) | Passing. |
|
||||||
| Client in Even's official simulator | Passing (7 scenarios). Simulator only. |
|
| Client in Even's official simulator | 9 scenarios, run by the implementer, simulator only. Eight run with the menu, hands free and live preview switched off (the tap path and idle exit); the ninth launches the app as shipped and covers the menu and the microphone opening and closing for hands free, with a silent microphone, so no name is ever heard. Live preview is not exercised in the simulator. One unexplained failure of the idle-exit scenario in the Round 19 runs; see `docs/test-evidence.md`. |
|
||||||
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
|
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
|
||||||
| Built-in speech-to-text (Whisper, in the bridge) | Passing (11 scenarios) on a real speech recording, including with no network. Not yet on audio from the glasses. |
|
| Built-in speech-to-text (Whisper, in the bridge) | Passing (11 scenarios) on a real speech recording, including with no network. Not yet on audio from the glasses. |
|
||||||
| Running on a droplet | Since 2026-11-22 00:37 UTC the server runs commit `dcb373639ef97d4c7f63abaddafadef7f6edf226` (bridge and static page), which holds Cody's SHIP (Round 16). Checks performed are in `docs/evidence/droplet/2026-11-21.md`. |
|
| Running on a droplet | Since 2026-11-28 19:06 UTC the server runs commit `44ea1148c34a271f4fdc565ef71a145adf459b42` (bridge and static page), which holds Cody's SHIP FOR TRIAL (Round 18). Checks performed: `docs/evidence/device/2026-11-28.md`; earlier deployments: `docs/evidence/droplet/2026-11-21.md`. |
|
||||||
| Phone page in an ordinary phone browser | Paired and answered one typed question (Chrome on Android, reported by Dan). This is **not** the Even app: a browser cannot reach the glasses. |
|
| Phone page in an ordinary phone browser | Paired and answered one typed question (Chrome on Android, reported by Dan). This is **not** the Even app: a browser cannot reach the glasses. |
|
||||||
| Phone page inside the Even app, physical G2 | First runs on 2026-11-21, QR-sideloaded, phone unlocked: paired, four spoken questions answered on the glasses. See `docs/evidence/device/2026-11-21.md` for exactly which builds and what was and was not observed. |
|
| Phone page inside the Even app, physical G2 | First runs on 2026-11-21, QR-sideloaded, phone unlocked: paired, four spoken questions answered on the glasses. See `docs/evidence/device/2026-11-21.md` for exactly which builds and what was and was not observed. |
|
||||||
| Installed as an Even Hub private build ("Pepper", `xylo.hermeven` 0.1.0) | Runs from the Even app with no QR code: paired, and four spoken questions answered on the glasses, including hold-to-talk and one that had the agent send a Telegram message (Dan's report plus the bridge log, 2026-11-21). Needs `HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*` on the bridge. |
|
| Installed as an Even Hub private build ("Pepper", `xylo.hermeven` 0.1.0) | Runs from the Even app with no QR code: paired, and four spoken questions answered on the glasses, including hold-to-talk and one that had the agent send a Telegram message (Dan's report plus the bridge log, 2026-11-21). Needs `HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*` on the bridge. |
|
||||||
@@ -29,8 +31,8 @@ the implementer read from the server's log, and what Cody reproduced independent
|
|||||||
| Locked phone | First success on 2026-11-21 with the beta build: launched by voice ("Hey Even, open Pepper") and a spoken question answered with the phone locked (Dan's report). The specification's ten-cycle acceptance run has **not** been done. |
|
| Locked phone | First success on 2026-11-21 with the beta build: launched by voice ("Hey Even, open Pepper") and a spoken question answered with the phone locked (Dan's report). The specification's ten-cycle acceptance run has **not** been done. |
|
||||||
| Leaving the glasses when idle | 0.1.1 on the device (2026-11-21, Dan's report): after one gesture the app left by itself and Telegram notifications returned to the lenses; after a voice launch with nothing touched it did **not** leave. 0.1.2 starts the countdown however the app was opened; tested with fakes and the simulator, **not installed on the device.** |
|
| Leaving the glasses when idle | 0.1.1 on the device (2026-11-21, Dan's report): after one gesture the app left by itself and Telegram notifications returned to the lenses; after a voice launch with nothing touched it did **not** leave. 0.1.2 starts the countdown however the app was opened; tested with fakes and the simulator, **not installed on the device.** |
|
||||||
| More than one agent (swipe at Ready to choose) | 0.2.0. Deployed on 2026-11-22 with three agents; a question sent through the bridge was answered by a second Hermes profile (`docs/evidence/droplet/2026-11-21.md`). Installed on the device and tried by Dan, who reported "All tests check out" without detail (`docs/evidence/device/2026-11-21.md`, sixth session). The agent screens have not been run in the simulator. |
|
| More than one agent (swipe at Ready to choose) | 0.2.0. Deployed on 2026-11-22 with three agents; a question sent through the bridge was answered by a second Hermes profile (`docs/evidence/droplet/2026-11-21.md`). Installed on the device and tried by Dan, who reported "All tests check out" without detail (`docs/evidence/device/2026-11-21.md`, sixth session). The agent screens have not been run in the simulator. |
|
||||||
| Opening menu (Hands free, Agents); hands-free mode: calling an agent by name ("Wendy, ...") | 0.3.0. Bridge deployed and build uploaded to beta on 2026-11-28 at `44ea114` (Cody: SHIP FOR TRIAL). Tried by Dan on the glasses the same day: "pretty cool"; calling a different agent by name switched to it. No item-by-item report. Not run in the simulator. `docs/decisions/0004-always-listening.md`, `docs/evidence/device/2026-11-28.md`. |
|
| Opening menu (Hands free, Agents); hands-free mode: calling an agent by name ("Wendy, ...") | 0.3.0, which is what is deployed and on beta (`44ea114`). Fakes: passing. Simulator: menu and microphone open/close only (scenario 9). Device: tried by Dan on 2026-11-28, "pretty cool"; a name reached an agent and a different name switched agent. No item-by-item report; section D of the device plan has not been run. `docs/decisions/0004-always-listening.md`, `docs/evidence/device/2026-11-28.md`. |
|
||||||
| Words shown while recording; "Heard: ..." while the agent works | 0.4.0. Automated tests with fakes only. **Not deployed, not on the device.** `docs/decisions/0005-live-preview.md`. |
|
| Words shown while recording (Agents only); "Heard: ..." while the agent works | 0.4.0 candidate. Fakes only. **Not in the simulator, not deployed, not uploaded, not on the device.** `docs/decisions/0005-live-preview.md`. |
|
||||||
| Real tools and approval flow | One tool use seen (a Telegram message, reported by Dan). The approval path has **not** been exercised against a real agent. |
|
| Real tools and approval flow | One tool use seen (a Telegram message, reported by Dan). The approval path has **not** been exercised against a real agent. |
|
||||||
| Sustained load, backups, monitoring, upgrades on the server | **Not verified.** |
|
| Sustained load, backups, monitoring, upgrades on the server | **Not verified.** |
|
||||||
| Clean-host install (`deploy/install.sh`) | Proven on a disposable Ubuntu 24.04 container with systemd (`tests/deploy/runbook-proof.sh`), not on a second real server. |
|
| Clean-host install (`deploy/install.sh`) | Proven on a disposable Ubuntu 24.04 container with systemd (`tests/deploy/runbook-proof.sh`), not on a second real server. |
|
||||||
@@ -77,7 +79,7 @@ instructions, including building for the glasses, are in `docs/setup.md`.
|
|||||||
|---|---|
|
|---|---|
|
||||||
| Open the app | From 0.3.0: a menu. Swipe to move, tap to open. **Hands free** is first, **Agents** (everything below, as before) second. |
|
| Open the app | From 0.3.0: a menu. Swipe to move, tap to open. **Hands free** is first, **Agents** (everything below, as before) second. |
|
||||||
| In Hands free: say an agent's name, then your question | The microphone is open while the app is at rest (the status line starts with `●`). "Wendy, what's on my calendar" goes to Wendy. A name alone starts a recording that is sent when you stop speaking. Tap and swipe still work. The app stays on the glasses. |
|
| In Hands free: say an agent's name, then your question | The microphone is open while the app is at rest (the status line starts with `●`). "Wendy, what's on my calendar" goes to Wendy. A name alone starts a recording that is sent when you stop speaking. Tap and swipe still work. The app stays on the glasses. |
|
||||||
| Tap | Start recording. The display shows `● REC` and a timer the whole time. From 0.4.0 the words appear as you speak, a second or two behind, and "Heard: ..." shows what was sent while the agent works. |
|
| Tap | Start recording. The display shows `● REC` and a timer the whole time. From 0.4.0, in Agents, the words appear as you speak, a second or two behind; "Heard: ..." shows what was sent while the agent works. |
|
||||||
| Tap again | Stop and send. Recording also stops by itself after 30 seconds. |
|
| Tap again | Stop and send. Recording also stops by itself after 30 seconds. |
|
||||||
| Hold, speak, release | Push-to-talk: recording starts when the glasses register the hold and is sent when you let go. A hold released in under 0.7 s behaves like a tap. |
|
| Hold, speak, release | Push-to-talk: recording starts when the glasses register the hold and is sent when you let go. A hold released in under 0.7 s behaves like a tap. |
|
||||||
| Swipe down / up | Next / previous page of the answer. |
|
| Swipe down / up | Next / previous page of the answer. |
|
||||||
|
|||||||
@@ -1038,6 +1038,9 @@ export class Controller {
|
|||||||
const client = this.client;
|
const client = this.client;
|
||||||
if (!timing || !client || this.previewUnsupported || this.previewBusy || this.now() < this.previewPausedUntil) return;
|
if (!timing || !client || this.previewUnsupported || this.previewBusy || this.now() < this.previewPausedUntil) return;
|
||||||
if (this.status?.stt_configured === false) return;
|
if (this.status?.stt_configured === false) return;
|
||||||
|
// Agents only (Dan, 2026-11-28). In hands free nothing but the wake check and the question
|
||||||
|
// itself is ever sent for transcription.
|
||||||
|
if (this.state.mode !== 'agents') return;
|
||||||
const ms = (bytes: number) => (bytes / AUDIO_FORMAT.bytesPerSecond) * 1000;
|
const ms = (bytes: number) => (bytes / AUDIO_FORMAT.bytesPerSecond) * 1000;
|
||||||
if (ms(capture.bytes) < timing.firstMs) return;
|
if (ms(capture.bytes) < timing.firstMs) return;
|
||||||
if (capture.previewedBytes > 0 && ms(capture.bytes - capture.previewedBytes) < timing.stepMs) return;
|
if (capture.previewedBytes > 0 && ms(capture.bytes - capture.previewedBytes) < timing.stepMs) return;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ this."
|
|||||||
|
|
||||||
## What it does (0.4.0)
|
## What it does (0.4.0)
|
||||||
|
|
||||||
While a recording is being made (by tap, by hold, or after a name in hands free) the screen shows
|
In **Agents** only, while a recording is being made (by tap or by hold) the screen shows
|
||||||
the words so far under "... is listening…", newest words kept in view. After the recording is
|
the words so far under "... is listening…", newest words kept in view. After the recording is
|
||||||
sent, the last preview stays under "Transcribing…" and is then replaced by "Heard: ..." with the
|
sent, the last preview stays under "Transcribing…" and is then replaced by "Heard: ..." with the
|
||||||
transcript the bridge actually gave the agent.
|
transcript the bridge actually gave the agent.
|
||||||
@@ -43,5 +43,12 @@ here: try this first.
|
|||||||
|
|
||||||
## Owner decisions pending
|
## Owner decisions pending
|
||||||
|
|
||||||
Whether the delay is acceptable; whether the preview should also be shown in hands free (it is);
|
Whether the delay is acceptable; whether the "Heard:" line during thinking is wanted in Agents
|
||||||
whether the "Heard:" line during thinking is wanted in Agents (new there in 0.4.0).
|
(new there in 0.4.0).
|
||||||
|
|
||||||
|
Decided by Dan on 2026-11-28, after the Round 19 review: the live preview is for the Agents
|
||||||
|
sub-app only ("I'd only invoke the live transcription when in agent sub-app"). The reviewed
|
||||||
|
0.4.0 candidate (`31ae4ef`) also previewed recordings in hands free; that was removed. He also
|
||||||
|
ruled out sending the hands-free listener's audio to a paid service. So if a paid recogniser is
|
||||||
|
adopted it serves the Agents preview (and possibly the final transcript there); hands free stays
|
||||||
|
on the bridge's own Whisper.
|
||||||
|
|||||||
@@ -654,19 +654,29 @@ describe('glasses: words shown while recording', () => {
|
|||||||
await until('answer', () => phase() === 'answer');
|
await until('answer', () => phase() === 'answer');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('works in hands free too, for the question that follows a name', async () => {
|
it('is for Agents only: in hands free no recording is previewed, by name or by tap', async () => {
|
||||||
// One preview only, so the scripted recogniser's replies line up.
|
extras = { livePreview: { firstMs: 300, stepMs: 300, pauseMs: 200 } };
|
||||||
extras = { livePreview: { firstMs: 300, stepMs: 60_000, pauseMs: 200 } };
|
|
||||||
await paired();
|
await paired();
|
||||||
await listening();
|
await listening();
|
||||||
h.stt.next({ text: 'Wendy' }, { text: 'are you' }, { text: 'are you there' });
|
h.stt.next({ text: 'Wendy' }, { text: 'are you there' }, { text: 'a tapped one' });
|
||||||
say(0.5);
|
say(0.5);
|
||||||
await until('recording for Wendy', () => phase() === 'listening');
|
await until('recording for Wendy', () => phase() === 'listening');
|
||||||
device.speak(0.6);
|
device.speak(1.2);
|
||||||
await until('words', () => device.frame.body === 'Wendy is listening…\n\nare you');
|
await pause(80);
|
||||||
|
expect(device.frame.body).toBe('Wendy is listening…\n\nAsk your question. It is sent when you stop speaking.');
|
||||||
device.silence(1.4);
|
device.silence(1.4);
|
||||||
await until('answer', () => phase() === 'answer');
|
await until('answer', () => phase() === 'answer');
|
||||||
expect(h.hermes.executedBy).toEqual(['wendy']);
|
|
||||||
expect(snapshot.lastTurn?.input_text).toBe('are you there');
|
expect(snapshot.lastTurn?.input_text).toBe('are you there');
|
||||||
|
await listening();
|
||||||
|
device.tap();
|
||||||
|
await until('recording', () => phase() === 'listening');
|
||||||
|
device.speak(1.2);
|
||||||
|
await pause(80);
|
||||||
|
device.tap();
|
||||||
|
await until('second answer', () => phase() === 'answer' && h.hermes.executions === 2);
|
||||||
|
expect(snapshot.lastTurn?.input_text).toBe('a tapped one');
|
||||||
|
expect(posts('/v1/transcribe')).toBe(0);
|
||||||
|
// What was sent is still shown while the agent works: that is the turn's own transcript.
|
||||||
|
expect(h.stt.calls).toBe(3);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -139,6 +139,20 @@ async function screenshot(name: string) {
|
|||||||
return { png, ...decodePng(png) };
|
return { png, ...decodePng(png) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Take screenshots until one satisfies `ready`, and return it (or the last one, for the
|
||||||
|
* assertion to fail on). The simulator draws some time after the app asks, and how long varies
|
||||||
|
* with how many updates are queued, so a fixed wait before a single screenshot is a guess.
|
||||||
|
*/
|
||||||
|
async function screenshotWhen(name: string, ready: (shot: Awaited<ReturnType<typeof screenshot>>) => boolean, timeoutMs = 8000) {
|
||||||
|
const deadline = Date.now() + timeoutMs;
|
||||||
|
for (;;) {
|
||||||
|
const shot = await screenshot(name);
|
||||||
|
if (ready(shot) || Date.now() > deadline) return shot;
|
||||||
|
await new Promise((r) => setTimeout(r, 250));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Lit pixels inside a horizontal band of the canvas. */
|
/** Lit pixels inside a horizontal band of the canvas. */
|
||||||
function litInBand(shot: { rows: Buffer[]; width: number }, fromY: number, toY: number): number {
|
function litInBand(shot: { rows: Buffer[]; width: number }, fromY: number, toY: number): number {
|
||||||
let lit = 0;
|
let lit = 0;
|
||||||
@@ -264,21 +278,21 @@ describe('Even Hub simulator 0.9.5', () => {
|
|||||||
expect(h.hermes.lastRun()!.input).toBe('simulated question');
|
expect(h.hermes.lastRun()!.input).toBe('simulated question');
|
||||||
expect(h.hermes.executions).toBe(1);
|
expect(h.hermes.executions).toBe(1);
|
||||||
|
|
||||||
await new Promise((r) => setTimeout(r, 800));
|
const page1 = await screenshotWhen('03-answer-page-1', (shot) => litInBand(shot, 0, 251) > 2000);
|
||||||
const page1 = await screenshot('03-answer-page-1');
|
|
||||||
expect(litInBand(page1, 0, 251)).toBeGreaterThan(2000);
|
expect(litInBand(page1, 0, 251)).toBeGreaterThan(2000);
|
||||||
|
// Let the drawing settle, so the next scenario compares against a finished page.
|
||||||
|
await new Promise((r) => setTimeout(r, 800));
|
||||||
expect(consoleLines.slice(mark).some((l) => /answer laid out on [2-9] page/.test(l))).toBe(true);
|
expect(consoleLines.slice(mark).some((l) => /answer laid out on [2-9] page/.test(l))).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('swipe down turns the page, swipe up returns, and the page fits without firmware scrolling', async () => {
|
it('swipe down turns the page, swipe up returns, and the page fits without firmware scrolling', async () => {
|
||||||
const page1 = await screenshot('04-before-swipe');
|
const page1 = await screenshot('04-before-swipe');
|
||||||
await input('down');
|
await input('down');
|
||||||
await new Promise((r) => setTimeout(r, 900));
|
const page2 = await screenshotWhen('05-answer-page-2', (shot) => !shot.png.equals(page1.png));
|
||||||
const page2 = await screenshot('05-answer-page-2');
|
|
||||||
expect(page2.png.equals(page1.png)).toBe(false);
|
expect(page2.png.equals(page1.png)).toBe(false);
|
||||||
|
await new Promise((r) => setTimeout(r, 600));
|
||||||
await input('up');
|
await input('up');
|
||||||
await new Promise((r) => setTimeout(r, 900));
|
const back = await screenshotWhen('06-answer-page-1-again', (shot) => shot.png.equals(page1.png));
|
||||||
const back = await screenshot('06-answer-page-1-again');
|
|
||||||
expect(back.png.equals(page1.png)).toBe(true);
|
expect(back.png.equals(page1.png)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user