Files
DuncanandWill Pfleger 2c555c4640 refactor(archive): drop M4 schema-shape validator for fail-closed guard
M4 runs its whole body under one BEGIN IMMEDIATE with the marker written
last, and SQLite DDL is transactional, so no shipped code path can leave
a wrong-shaped object without the marker — a crash rolls everything back.
The shape validator (table_shape_matches, scope_age_index_is_correct,
validate_retention_schema_shape, and their shape constants) only defended
against hand-mutated or foreign-tool DBs, an out-of-scope threat model.

Replace it with the reachability-honest minimum: refuse to certify a
pre-existing retention_policies/archive_meta table (fail closed, no
marker), plain CREATE TABLE otherwise, and an unconditional DROP INDEX IF
EXISTS + CREATE INDEX for the scope-age index (carries no data, so a fresh
build is always correct). The BEGIN IMMEDIATE + pre-lock guard + in-lock
recheck race machinery, seeding, and marker-last ordering are unchanged.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-14 10:38:07 -04:00
..
2026-08-03 21:51:17 -04:00
…

Buzz

Desktop chat shell with:

  • Tauri + React + TypeScript + Vite
  • Tailwind CSS
  • shadcn/ui-ready shared components
  • Biome (lint/format/check)
  • Feature-driven frontend structure

Scripts

  • pnpm dev - run the web frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm format - Biome format (write)
  • pnpm check - Biome check

Structure

  • src/shared - reusable app-wide code (ui, lib, styles)
  • src/features - feature modules (vertical slices)
  • src/app - top-level app composition