Skip to content

Add deterministic cleanup contract tests #327

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

Add focused deterministic tests that lock down unresolved-reference cleanup semantics before any batching or SQL-shape optimization is attempted. The tests should prove that cleanup deletes exactly the rows it already intends to delete and preserves unrelated unresolved references.

This is a semantic guard slice. It should not optimize cleanup yet.

Acceptance criteria

  • Tests prove successfully resolved unresolved-reference rows are deleted after persistence.
  • Tests prove unresolved references that were not resolved remain present unless existing intentionally-unresolved cleanup behavior removes them.
  • Tests cover existing intentionally-unresolved cleanup behavior without changing it.
  • Tests cover a chunk or batch boundary large enough to catch SQL parameter/batching regressions.
  • No production optimization is required in this slice unless needed only to expose a test seam.

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