Commit Graph
19 Commits
Author SHA1 Message Date
DanandClaude Fable 5.2 e4c102a539 Round 20 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:07:12 -08:00
DanandClaude Fable 5.2 31ae4efb13 Round 19 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 11:44:59 -08:00
DanandClaude Fable 5.2 44ea1148c3 Round 17 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 10:52:06 -08:00
DanandClaude Fable 5.2 dcb373639e Round 16 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:27:51 -08:00
DanandClaude Fable 5.2 c8b4fb0310 Round 15 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:12:31 -08:00
DanandClaude Fable 5.2 15714bd848 Round 14 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 15:38:15 -08:00
DanandClaude Fable 5.2 3e0468802f Round 13 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 14:55:56 -08:00
DanandClaude Fable 5.2 3d0edebd13 Round 12 handoff, evidence, section F status (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 14:43:19 -08:00
DanandClaude Fable 5.2 19a9d5e22e Round 11 handoff and evidence section (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 14:17:31 -08:00
DanandClaude Fable 5.2 38883b38f8 Record exact-build device evidence and the bridge update (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 13:57:33 -08:00
DanandClaude Fable 5.2 d90cd8972a Round 9 handoff and evidence section (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 13:38:35 -08:00
DanandClaude Fable 5.2 09e21f6368 Record round 6 proofs and the Round 7 handoff (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:31:15 -08:00
DanandClaude Fable 5.2 f02715fb64 Address Cody review round 4: CODY-006 state-directory ownership
The state directory must now be owned by the bridge's effective uid. A
directory owned by anyone else is refused with StateDirectoryError before
any file is created or opened, and is left exactly as found, even when its
mode is already 0700. Mode enforcement (exactly 0700) is unchanged and runs
after the ownership check.

Tests: the real /root as an unprivileged user; a deterministic injected-uid
case proving no database/WAL/SHM is created and the directory is not
mutated; a foreign-owned loose-mode directory left unmodified; a user-
namespace fixture using the unmodified production path.

Checks: typecheck clean; npm test 198 passed; client build ok;
test:real-stt 11 passed; test:real-hermes 9 passed; test:simulator 6
passed; git diff --check clean.

Not reviewed. No physical-device, droplet or production evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 20:40:06 -08:00
DanandClaude Fable 5.2 1507cea077 Address Cody review round 3: CODY-003 and CODY-006
CODY-003 Request identity is durable before submission. Storage results are
         explicit at the DevicePort boundary (storageSet resolves true only
         on the host's own timely confirmation; storageGet distinguishes
         unknown from empty). A request is not sent until the phone has
         confirmed storing its id; a timeout or refusal holds it back,
         unsent and retryable under the same id. Unreadable storage at
         start is not treated as unpaired; an unsaveable pairing is revoked.
CODY-006 The state directory is set to 0700 on every open, including when
         it already existed, and the bridge refuses to start with an
         operator-facing error if it cannot be. Deployment guide creates
         it with install -d -m 0700.

Checks: typecheck clean; npm test 194 passed; client build ok;
test:real-stt 11 passed; test:real-hermes 9 passed; test:simulator 6
passed; git diff --check clean.

Not reviewed. No physical-device, droplet or production evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 20:29:05 -08:00
DanandClaude Fable 5.2 e1c02d5266 Address Cody review round 2: all ten findings (CODY-001 to CODY-010)
CODY-001 Bridge URL must be HTTPS (HTTP only to loopback), in the client and
         in manifest generation.
CODY-002 Even host calls stay serialised until the SDK call really settles;
         a microphone start that completes after its timeout is followed by
         a stop.
CODY-003 Request id is stored before the first submit and cleared only on a
         definitive answer; lost replies are treated as ambiguous and
         reconciled under the same id; HUD no longer claims "not sent".
CODY-004 Revoking a device cancels its in-flight turns, aborts
         transcription and asks Hermes to stop, from HTTP and CLI paths.
CODY-005 Speech model pinned to a commit with per-file SHA-256; fetched and
         verified ahead of time; verified on every load; never downloaded
         at run time; no unpinned configuration.
CODY-006 State directory 0700, database/WAL/SHM 0600 regardless of umask.
CODY-007 credential_expired handled like unauthorized on every path.
CODY-008 Approval wait start and paused agent deadline persisted and
         restored across restarts (schema v2).
CODY-009 Exactly one conversation create per epoch, sent in sequence, with
         stale results dropped before persistence.
CODY-010 Wrong pairing guesses no longer consume the outstanding code;
         failures are indistinguishable.

Checks: typecheck clean; npm test 182 passed; client build ok;
test:real-stt 11 passed (including with no network); test:real-hermes 9
passed; test:simulator 6 passed; git diff --check clean.

Not reviewed. No physical-device, droplet or production evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 19:49:14 -08:00
DanandClaude Fable 5.2 3d5691dfa3 Test push to trigger the Cody review workflow (no functional change)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 19:17:32 -08:00
DanandClaude Fable 5.2 0c9dcd864f Run Whisper in a worker thread; shorten polling
The speech model now lives in a worker thread (whisperWorker.mjs), so
loading and transcribing no longer block the bridge's HTTP server or its
Hermes polling. Measured longest event-loop pause during transcription:
387 ms before, 3 ms after. A dead worker is replaced on the next request;
closing the bridge terminates it.

Polling: bridge to Hermes every 150 ms (was 500). The app polls the bridge
every 200 ms for the first 8 s of a turn, 400 ms until 30 s, then 1 s
(was a fixed 700 ms).

Tests: 131 unit/integration, 7 real-speech, 9 real-Hermes, 6 simulator,
all passing. Effect on a phone or a droplet is not measured.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:39:28 -08:00
DanandClaude Fable 5.2 6d74f9e121 Build speech-to-text into the bridge; add droplet deployment examples
STT_PROVIDER now defaults to "builtin": Whisper (onnx-community/whisper-base,
q8) runs in the bridge process on the CPU via @huggingface/transformers, so
no provider account is needed and recordings stay on the bridge host. Silent
captures are detected by level before the model runs. The external
OpenAI-compatible adapter remains available.

Tests: 130 unit/integration; 4 scenarios with the real model on a real
speech recording (npm run test:real-stt). Not tested on audio from the
glasses or on a droplet.

deploy/ and docs/deploy-droplet.md are examples that have not been run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:31:30 -08:00
DanandClaude Fable 5.2 3c9e094977 Add test evidence record and review handoff for slice 1
Documentation only. Head under review remains 4687cc0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:23:06 -08:00