Skip to content

follow-up: durable occurrence history, restart-safe L2, and V1 migration #6

Description

@AllenMuu

Parent: #3

This child tracks the work intentionally deferred from Issue #3 after its P0 deterministic identity layer is complete.

Preconditions

Scope

  • Add durable, retention-controlled ErrorOccurrence records for trace/drill-down and environment trends.
  • Make vector-cluster similarity survive process restarts via a queryable durable index or a tested startup reconstruction; do not rely only on a process-local clusterIndex.
  • Define and implement the V1-to-V2 transition: V2-primary dual read, V1 read-only behavior, observability, retirement criteria, and any backfill needed for persisted legacy groups.

Out of scope

Acceptance criteria

  • Duplicate (appName, eventId) submissions are idempotent; accepted distinct events preserve first/last-seen and accurate group counts.
  • Occurrence retention or sampling never changes group-level totals.
  • After restart, a qualifying historical vector match still returns the existing cluster without an LLM call.
  • V1 groups remain readable during the declared dual-read period; new groups use V2; retirement is measurable and reversible.
  • Integration tests cover restart behavior and migration/dual-read behavior.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions