Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

M5 · Surface contracts — the invariant ledger closes - #102

Merged
ozerozdas merged 22 commits into
masterfrom
plan/m5-surface-contracts
Sep 1, 2026
Merged

ozerozdas merged 22 commits into
masterfrom
plan/m5-surface-contracts

Conversation

@ozerozdas

Copy link
Copy Markdown
Contributor

The milestone

M5 makes each of the three surfaces that feed the loop keep the promise its spec section makes. It is the last milestone that can: M6 is accessibility, and an accessibility pass over a surface whose states are undefined has nothing to hold on to.

Twelve plans, each a single reviewed commit on this branch, closing the six issues the milestone owns:

Plan What it brought
PLAN-015 one formatter, no raw model output — the invariant ledger's #22 (fixes #61a)
PLAN-016 four states, one place per fact — invariants 23, 24, 25, 27 (fixes #61)
PLAN-017 the Talk catalogue, a persona, and live goals (fixes #55)
PLAN-018 voice is the main road — the editable draft Talk was missing (fixes #56)
PLAN-019 confidence is measured, not seeded — invariant 26 (fixes #57a)
PLAN-020 a reflection that reports, and a history that folds and resumes (fixes #57)
PLAN-021 subtitles you can hide — asking for them costs nothing (fixes #79)
PLAN-022 the passage generation contract and its three quality gates — invariants 20, 21 (fixes #58)
PLAN-023 the note contract — invariants 17, 18, 19 (fixes #59a)
PLAN-024 close reading, and a teleprompter that measures the read (fixes #59)
PLAN-025 a real timeline — clips, seeking, speed and back-10s (fixes #60a)
PLAN-026 a transcript you choose, ranges you can replay, and answers that teach (fixes #60)

The invariant ledger closes

src/lib/invariants.check.ts carries spec §5's 27 claims. M4 left eleven pending: "M1+ (…)". Every M5 plan flips its rows to assertedIn; after PLAN-026 the ledger prints 27 asserted, 0 pending, 0 out of scope (M1+) — the ledger is closed, and the milestone's scoreboard reads what the check actually reports.

Out of scope for M5

  • Accessibility — deferred to M6. Keyboard reachability is included here only where an invariant already demands it (23, 24, and Talk: hide subtitles during free conversation and role-play #79's reveal control); screen readers, contrast and focus rings are not.
  • New dependencies — every plan is stdlib, the existing Tauri plugins, or React.
  • Table rewrites — no M5 migration does more than ALTER TABLE … ADD COLUMN … DEFAULT.
  • Replacing the TTS tiers — PLAN-025 adds clip() to the three byte tiers that already return bytes and gives the fourth (native webSpeech) an honest reduced state; it does not bundle a new engine.

Note on the branch history

This branch carries interim versions (before each plan was amended into one commit) and four merge commits, so it is intended to be squash-merged: only the reviewed end-state lands on master.

ozerozdas and others added 22 commits August 31, 2026 10:25
Talk, Read and Listen each get the contract their spec section already
states, and the invariant ledger's last eleven pending rows get an owner.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… into plan/m5-surface-contracts

# Conflicts:
#	src/lib/surfaces.check.ts
#	src/views/Talk.tsx
#	src/views/Today.tsx
… into plan/m5-surface-contracts

# Conflicts:
#	src/lib/signals.check.ts
#	src/lib/signals.ts
#	src/lib/speech.check.ts
#	src/lib/speech.ts
#	src/lib/useTalk.ts
#	src/views/Talk.tsx
# Conflicts:
#	src/lib/confidence.check.ts
#	src/lib/confidence.ts
#	src/views/Talk.tsx
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying verba with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7bd18ba
Status: ✅  Deploy successful!
Preview URL: https://00f617d3.verba-bu8.pages.dev
Branch Preview URL: https://plan-m5-surface-contracts.verba-bu8.pages.dev

View logs

@ozerozdas
ozerozdas merged commit 6eb7807 into master Sep 1, 2026
3 checks passed
@ozerozdas
ozerozdas deleted the plan/m5-surface-contracts branch September 1, 2026 11:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.