Skip to content

Library/stack audit follow-ups — umbrella #80

Closed

Description

@utof

Context

perima ran a 40-question library and stack audit in April 2026 looking for slots where the project was using a dated approach when a modern, still-stable alternative would make the codebase leaner, faster, or easier to maintain. The audit's ranked conclusion identified 8 concrete changes worth making now, plus a cross-cutting training-data-staleness theme: AI-coding agents regularly regenerate patterns from 2023-2024 training data (stale axum route syntax, useCallback wrapping, Zod v3 APIs, unmaintained crates) unless the project pins its decisions in a vendor-neutral AGENTS.md doc.

This umbrella tracks follow-up work from that audit. Each item lands as its own plan + PR.

Ranked items (L1-L8)

  • L1. RUSTSEC-2025-0141 bincode transitive audit + remediation — verified 2026-04-20; cargo tree -i bincode returns no matches; zero transitive usage. AGENTS.md pin landed.
  • L2. Frontend modernization bundle: Tailwind v4 + Vite 8 + React Compiler 1.0 + eslint-plugin-react-hooks v7 (see 57c3752, bcb06dc, ceb508a, e4f24ef, 59eb35a).
  • L3. Metadata crate: swap kamadak-exif → nom-exif 2.7 (see 5757411, f344037, a4a1c7e).
  • L4. Image pipeline: add fast_image_resize 6.0 (see c2b45e4, 1b6c2cb).
  • L5. Path handling: consolidate — dropped unicode-normalization from path code, dropped path-slash, kept Windows-only dunce via perima_fs::platform_path (see 044e156, d9acf63, e170c04, 53848d6, dc20a0f, 87db513, 2dd810a). camino + normpath deferred to concrete-consumer PR.
  • L6. Tauri: adopt official tauri-plugins-workspace — wired tauri-plugin-dialog; tightened tauri / tauri-build / tauri-plugin-dialog to tilde-minor pins (see 3bcd0bf). Four other in-scope plugins (fs / notification / os / store) deferred per scope-discovery (no TODAY call-sites) — tracked in Adopt remaining tauri-plugins-workspace plugins (fs / notification / os / store) when TODAY call-sites emerge #117.
  • L7. Error UX: swap anyhow → miette in crates/cli + crates/desktop binaries (see 938eccc). thiserror kept in libs.
  • L8. AGENTS.md: repository-level staleness-pinning doc (cross-cutting). All 25 mandatory entries populated.

Existing + related issues

Explicitly NOT covered here (scope boundary)

Architectural refactors (app-layer extraction, write-actor + read-pool connection model, typed CoreError discriminated union, async-broadcast event bus, FTS5 trigger templating, split search_repo.rs, App.tsx state decomposition, delete types.ts) are owned by a separate architecture-audit follow-up umbrella — see that issue when it's filed.

Timing + durability

Items land one batch at a time per the sequencing graph in the design spec. Each plan is reviewed independently before execution. Items deferred beyond this umbrella (post-v1, phase-specific, blocked on external procurement) are filed as separate issues with routing labels (phase-6-blocker, phase-9-hardening, post-v1) so they surface via gh issue list --label <label> when the relevant spec is written.

Source

40-question audit response generated April 2026; design spec authored 2026-04-20; L1-L8 execution wrapped 2026-04-21.

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