Skip to content

Clean up orphaned project records when index rollback fails #141

Description

@imnasnainaec

projectStorage.ts writes project:{id} before updating the projectIds index; if the index write fails it rolls the record back, but if the rollback also fails the orphan persists — never listed, never deleted, pure storage bloat. Add a lazy sweep: when listProjects() runs, optionally reconcile keys against the index (or record failed rollbacks under a pendingCleanup key and retry on next activation). Keep it simple; this is a rare double-failure path.

Size: XS–S

Priority: P3 (opportunistic)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions