Repository navigation
fix(clean): preserve trailing section newline stability - #16
Merged
Merged
Conversation
omniscoder
marked this pull request as ready for review
October 12, 2026 17:24
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Illumina sheets ending with a newline after a trailing section previously gained an extra blank line on every cleanup. Reviewing an already cleaned export therefore continued to report needsChanges and changed its output/review hashes. Treat the final split sentinel as a line terminator, preserving intentional blank suffix lines and quoted multiline data.
The four-file change adds eight stability cases covering complete LF/CRLF files with zero through three final terminators, an accepted-preview CLI regression checking exact exported bytes and hashes, and operating-guide documentation.
Validation on final code/tests:
Upgrade behavior verified against a detached v0.0.3 checkout: affected old preview hashes are rejected before creating state. A v0.0.3 archived run still passes stored hash/audit integrity checks with replay disabled; replay with the corrected parser reports an output mismatch for tidy.sample-sheet-v1.clean.csv. Retain the original package for historical replay and regenerate affected previews. A comparison sheet without a final terminator has an unchanged preview. Review hashes bind content; they do not authenticate a person's approval.
No release, merge or deployment is requested by this draft. No workflow, credentials, permissions or policy changes.