Skip to content

Epic: make CodeBurn's local interactive surfaces fast, truthful, and resilient #1160

Description

@avs-io

Outcome

Make CodeBurn's local interactive surfaces feel fast, truthful, and resilient on both normal and heavy corpora.

A user should see useful, correctly labelled data quickly; changing period or provider must never leak stale totals; terminal and Desktop surfaces must remain responsive; packaged resident failures must recover without breaking the app.

Why these belong together

Each change remains an independently reviewable PR, but all slices came from the same 0.9.22 dogfood acceptance audit and share one user-facing quality bar. This issue is the acceptance ledger, not a request to merge them as one change.

CodeBurn Teams, plugin architecture, pricing semantics, sync policy, and feature-roadmap work are explicitly out of scope.

Merged slices

Review-ready draft slices

Shared acceptance gates

  • cached values are explicitly labelled until reconciled with source
  • no stale totals cross period or provider boundaries
  • already-indexed standard period navigation settles within 1 second on the frozen heavy corpus
  • exact-SHA heavy-corpus first-useful timings are recorded for affected surfaces
  • settled terminal resize leaves no ghost panels or redraw artifacts
  • packaged resident failure falls back cleanly without EPIPE or a dead surface
  • packaged app quit leaves no owned CLI/provider process or cache lock
  • focused automated suites, full regression suite, and build/type checks pass
  • installed-artifact manual visual, navigation, exit, and recovery gates are recorded before closing this epic

Deliberately held, not hidden

The universal provider/period cache prototype is not in a PR. On the frozen heavy-corpus fixture its largest shard reached 109.6 MiB, JSON decoding took 231–312 ms, the measured event-loop stall reached 327.9 ms (over the 250 ms responsiveness gate), and filter/duplicate correctness was not yet proven. It stays a design input until the immutable provider-snapshot contract, compact manifest, bounded detail cache, and exact parity tests are implemented.

Follow-ups discovered

  • provider-switch index reuse and heavy-corpus timing
  • freshness policy while the user remains on heavy detail tabs
  • per-phase cold discovery/fingerprint timing artifacts
  • shared provider authentication/quota state across Desktop and Menu Bar
  • any further optimization justified by the acceptance ledger rather than inferred from source alone

Close condition

Close only when each included PR is either merged or explicitly rejected with its evidence preserved, and the installed-product gates above have been run against the exact resulting candidate.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions