mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
Three code-review rounds on #220 published a verdict and then failed the run: the document never reached the branch, so the #171 guard refused before the label step and neither the merge nor S8-merged happened. The cause was structural. The document lived as an untracked file inside the very checkout the reviewer edits while proving that a test can fail, and restoring that tree — git checkout, git clean — deletes an untracked file. Spec rounds survived only because they never mutate anything. The reviewer now writes to REVIEW_DOC under RUNNER_TEMP, outside the repository, and the publish step copies it into docs/reviews before committing. Tree cleanup can no longer destroy the artefact, and the reviewer no longer needs to touch docs/reviews at all. Verified against a local git fixture on five paths: document outside the repo with a mutated tree, nothing anywhere (loud failure), document only in the working copy, document already committed by the reviewer, and a branch that moved during the review. Same file as main, byte for byte. Issue: #220 User-Visible: no