When an issue is deleted, issues that depend on it were not being marked dirty. This caused stale dependency references to persist in JSONL after the target issue was deleted, because the dependent issues were never re-exported. This manifests as FK validation failures during multi-repo hydration: "foreign key violation: issue X depends on non-existent issue Y" The fix queries for dependent issues before deleting and marks them dirty so they get re-exported without the stale dependency reference. Adds test: TestDeleteIssueMarksDependentsDirty Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 KiB
14 KiB