Skip to content

fix(clean): preserve trailing section newline stability - #16

Merged
omniscoder merged 1 commit into
mainfrom
fix/local-review-reliability
Oct 12, 2026
Merged

omniscoder merged 1 commit into
mainfrom
fix/local-review-reliability

Conversation

@omniscoder

@omniscoder omniscoder commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

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:

  • Before fix: all five original stability regressions failed on v0.0.3.
  • Windows Node 24.15.0: npm run check:ci passes: 181 tests passed, one skipped in the ordinary suite. The skip is the packaged CLI test gated by BIOFLOW_RUN_PACKAGED_CLI_TEST; check:ci separately enables and runs it successfully (one passed).
  • Includes typecheck, build, package installation/execution, and golden verification.
  • Deterministic workflow demo and git diff --check pass.
  • Hosted exact-head PR Tests passed on Linux Node 20/22/24 and Windows Node 22/24: https://github.com/OmnisGenomics/BioFlow/actions/runs/38282868672. Observed Linux Node 22 and Windows Node 22 logs confirm 181 passed / 1 gated skip plus the separate packaged test passed; golden verification and deterministic demo passed.
  • Hosted Nix package/native checks and installed-command checks passed: https://github.com/OmnisGenomics/BioFlow/actions/runs/38282868573. All declared systems were evaluated; native execution was x86_64 Linux. Nix and Linux were not run on the local Windows PC.
  • Conventional Commit validation passed. Published head: f4fb854.

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.

@omniscoder
omniscoder marked this pull request as ready for review October 12, 2026 17:24
@omniscoder
omniscoder merged commit 9d25899 into main Oct 12, 2026
7 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T17:25:51.940387Z f4fb854 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant