Preserve document draft review state across further edits

Merged
BI
7d ago
+69-2

The draft helper now keeps the review explanation when the source or draft changes after both inputs required review. Reviewed candidate edits and recoverable generations remain preserved, and export stays blocked until explicit resolution.

Also includes the portable test fixture correction for platforms whose system temporary directory resolves through an alias. The production symlink protections remain enforced.

Validation: canonical helper and tests match the project copies; all 27 focused tests passed on Windows and Linux. Existing project checks run on this PR.


Summary by cubic

Preserves the document draft review explanation when only one input changes after both inputs already required review. Previously a later source-only or draft-only edit kept the conflict but dropped the review reason; now the reason, candidate edits, and snapshots survive until explicit resolution, and export stays blocked until the conflict is resolved.

  • Adds regression tests for later source-only and draft-only changes.
  • Updates the documented helper hash in docs/agents/document-drafts.md and documents that hosts follow the owning project's guards for absent logs.