Skip to content

Implement bounded resolved cleanup batching optimization #328

Description

@jununfly

This was generated by AI during triage.

Parent

Plan: docs/plans/2026-06-20-rust-hybrid-finalization-cleanup-diagnostics-and-batching.md

What to build

Attempt one bounded TypeScript-side optimization of the resolved-reference cleanup path. The optimization may change batching or SQL shape for deleting unresolved-reference rows that were successfully resolved, but it must not change which references are deleted.

Do not introduce Rust core execution, do not change schema, do not change edge insert ownership, and do not touch reference disambiguation.

Acceptance criteria

  • Only the resolved-reference cleanup path is optimized.
  • Intentionally unresolved cleanup behavior remains unchanged.
  • Cleanup contract tests from Add deterministic cleanup contract tests #327 pass.
  • Graph output is stable on the deterministic fixture.
  • Fallback taxonomy is stable on the deterministic fixture or any targeted smoke used for this issue.
  • No SQLite schema changes.
  • No changes to disambiguation, import/framework resolution, dynamic-dispatch synthesis, confidence, ranking, or resolvedBy.
  • If the optimization is ineffective or unsafe, record a no-go note instead of broadening scope.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions