Skip to content

feat: surface exact SCRATCH protocol details in DREAM plans - #9

Merged
monchee merged 2 commits into
mainfrom
sync-scratch-final-protocols
Aug 21, 2026
Merged

feat: surface exact SCRATCH protocol details in DREAM plans#9
monchee merged 2 commits into
mainfrom
sync-scratch-final-protocols

Conversation

@monchee

@monchee monchee commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • sync the pinned DREAM protocol snapshot with the verified SCRATCH tranche
  • render exact protocol presentation, SPT/IDT dilutions, preparations, review notes, pharmacy warnings, and SCRATCH links in the builder, print view, and copy/email text
  • fail closed on malformed saved protocol indices and protect the frozen positional baseline with independent hash and append-only guards

Clinical safety

  • no source dose, concentration, dilution, ratio, volume, or preparation values were interpreted or changed
  • under-review records remain marked for review
  • invalid or empty restored protocol selections block Preview/Print until a valid option is chosen

Verification

  • node scripts/verify-order.mjs
  • npx tsc --noEmit
  • npm run lint
  • npm run test:unit -- --run (98 files, 852 tests)
  • npm run test:coverage
  • npm run build
  • CI=1 npx playwright test --project=chromium --grep-invert @visual (59 passed)

@monchee
monchee marked this pull request as ready for review August 21, 2026 00:36
@monchee
monchee merged commit 1b0ce0b into main Aug 21, 2026
3 checks passed
@monchee
monchee deleted the sync-scratch-final-protocols branch August 21, 2026 00:37
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