Files
buzz/desktop
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger e6aa269814 feat(desktop): scope initialization state machine with canonical claim ledger
Implements the Phase 2 scope initialization pipeline:

- scope_init.rs: staged directory install with durable manifest
  (AdoptedLegacy | LegacyClaimedByOther | FreshNoLegacy), atomic
  rename, separate _ready marker, crash-safe restart semantics
- Canonical family claim ledger: reads retention.db's
  retention_migrations table first (pre-existing claims win);
  falls back to agents/legacy-claim.json when no retention.db exists
- Legacy adoption: copies managed-agents.json, teams.json,
  global-agent-config.json, and personas.json (when present) into
  a sibling ._staging directory, then renames atomically
- apply_workspace: Prepare stage now calls ensure_scope_ready before
  the Layer-2 commit epoch; a failed prepare leaves the old scope
  active and untouched
- 6 new unit tests cover FreshNoLegacy, AdoptedLegacy, second-scope
  LegacyClaimedByOther, idempotent re-init, staging cleanup on retry,
  and retention.db claim taking precedence over first-activation order

All 2118 tests pass.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-02 23:30:50 -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