Repository navigation
feat(laboratory): results held when a lot they used is rejected; signed rejection of a used lot - #94
Merged
Merged
Conversation
…ed rejection of a used lot Every lot a result rests on (current replicates, the plates a count was read from, the current QC of its batch) is checked again for the day it was used when the test is reviewed and wherever the result counts toward a decision: lot disposition, pull acceptance, reassessment conclusion. A lot or source lot rejected since holds the result until the latest concluded impact assessment of that lot decides it. A used lot is rejected only with a quality signature, which offers the impact assessment from the lot's first use. A review refused for its lots is audited (test.review_refused). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ings - A count read from plates repeats the plates' lots in its own evidence; they are now checked only for the moment the plates went in (a medium used up between plating and reading no longer holds the count). - Stability study pages check the lots of all pulls at once. - A withdrawn assessment does not count as the lot's assessment. - The test page names a lot not fit that day apart from one rejected since. - Tests: current QC of the batch, plates, an unsigned rejection racing a use; e2e journey traced; product and roadmap wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lots are checked through review_state_refusal as before and once more under lock in the signed review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot locks The signed review locks the lots first, then asks review_state_refusal; a refusal for the lots is audited after the rollback. Tests look signatures up by object type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Verification of the final candidate (
|
Collaborator
Author
|
Merged as The synthetic demo switched its running release from
The smoke test left one rejected synthetic lot and one prepared solution, and started no assessment. There is no migration in this change. |
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.
Summary
Second increment of the roadmap area Reagent and standard lots in use (requirement OQ-011): lots are checked again at approval, and a lot found defective after use is handled.
test.review_refused, with the lots), after the rollback.rejected(reject_used_reagent). The unsigned rejection refuses a used lot, and every use and preparation locks the lot, so the check holds until either side commits.recheck_lots(uses, lock=False)and composeslaboratory.eligibility.reagent_fitnesswithimpact.services.reagent_decisions.These are product choices recorded in
docs/product.mdand the regulatory matrix note of 2026-12-01. No source read sets a check at approval or what happens to results when a lot is found defective.No migration. Results recorded with a lot rejected before this release are held the same way until an assessment of that lot decides them (changelog technical note).
Documentation
docs/product.md(status tables and a new paragraph), architecture (the recheck contract and its locks) and the regulations note.Verification
ruff check,ruff format --check, Djangocheck,makemigrations --check --dry-run(PostgreSQL),collectstatic,changelog --check.tests/test_reagent_rejected_since.py(13 tests) covers:tests/test_plate_count_journey.py: a medium used up between plating and reading does not hold the count.e2e/test_reagent_rejected_journey.py: signed rejection in the dialog, the prefilled assessment, the held test, the review after the conclusion.recorded_at;Notes for reviewers
docs/product.md.🤖 Generated with Claude Code