Skip to content

Architecture audit follow-ups — umbrella #81

Open

Description

@utof

Context

perima ran an architectural audit in April 2026 against the v0.6.x codebase to identify structural drift that would compound into real debt if unaddressed before the next major phase (Local HTTP API). The audit's ranked top-10 actions focus on: a repo-root conventions doc, extracting an application-service layer, fixing repository trait shape, killing IPC type-drift, adopting a write-actor + read-pool connection model, typing errors across the IPC boundary, replacing the sync event bus, and templating FTS5 triggers.

This umbrella tracks follow-up work from that audit. A dedicated design spec will be authored after the library/stack audit umbrella (#80) completes — this issue is the pre-anchor so the follow-up spec doesn't lose the thread across sessions.

Ranked items (A1-A10)

Existing issues absorbed as sub-items

Explicitly NOT covered here (scope boundary)

Library/stack picks (Tailwind v4, Vite 8, React Compiler, fast_image_resize, nom-exif, path crate consolidation, miette, official tauri-plugins) are owned by the library/stack audit follow-up umbrella (#80). Post-v1 concerns (CRDT integration, mobile, sync, plugins v2) are out of scope.

Open decisions to resolve during spec authoring

  • TanStack Query adoption timing (Phase 6 vs pre-Phase-6) — architecture audit says now; the library audit's own Q8 partially supports deferring until HTTP fetch layer exists.
  • miette::Diagnostic derive on CoreError — architecture spec must decide whether core gains the derive (feature-gated or unconditional).
  • Pre-v1 CRDT schema actions (HLC columns, shared_doc table) — cheap insurance per audit; spec must commit.

Source

Architectural audit response generated April 2026. Companion design spec authored after library-audit umbrella (#80) ships.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/chore

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions