Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ent per pathogen [skip ci] The best-case arrangement of combined failure events longer than a day is chosen separately for each reference pathogen; failure days stay shared. Recorded in the C2 Spec and in CONTEXT.md (Combined failure). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each treatment step of an assessment gets a failure frequency (failure days per year, 0-365, default 0) and a failure duration (whole minutes, 1-1440, default 30). The configurator shows both fields with their units below the LRVs, rejects values outside the ranges with a message, and keeps the values with their step through save, reopen and edit. Existing steps get the defaults via the migration. The calculation is unchanged, so results and export packages stay the same (C2 adds the effect). Tidy-up: the min <= max LRV check duplicated in the configurator and the personal treatment step form is now one shared rule, which also holds the failure ranges. The two existing treatment form tests pass the two new required fields in their input data; their assertions are unchanged. Adds the first HTTP-level tests (Django test client, logged-in user). Refs #21 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…sts (#22) A treatment step can have a failure frequency above 0 only if at least one of its six LRVs is positive (an empty LRV counts as 0), since a failure removes only positive LRVs (D4). The shared treatment step rule rejects it with a message on the failure frequency field. Guests: an invalid guest result now answers 422 with the error messages keyed by input name instead of an empty body. The configurator marks the affected inputs and treatment step and explains in the result pane why nothing ran; the marks clear on the next run. Registered users keep their path (the saved configurator re-renders with the errors). This also makes existing LRV errors visible to guests. Also fixes the treatments section from #21: its fixed height hid the failure fields and their messages under the footer; it now grows with its content. Refs #22 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…tor copies them in (#23) A personal treatment step gets a failure frequency (failure days per year) and a failure duration (minutes), with the same shared rule as the configurator: ranges, whole minutes, a positive LRV for a frequency above 0 (D4), and minimum <= maximum LRV. Existing personal steps get 0 and 30 via the migration. Invalid input now shows the messages in the form (422 with the rendered form), like the duplicate-name error already did. The owner's list of personal treatment steps includes both values, and adding a personal step in the configurator copies them into the new step card together with its LRVs. Bundled steps carry no failure inputs, so their card keeps 0 and 30. The copy can be changed in the assessment without touching the personal step. Refs #23 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
8 of 12 tasks
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Sep 25, 2026
This branch was successfully deployed
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.
What changes
Users can enter a failure frequency (failure days per year, 0–365, default 0) and a failure duration (whole minutes, 1–1440, default 30) for each treatment step, and the values are stored with the scenario. Nothing in the calculation changes yet: results and export packages are identical with and without failure inputs (C2 adds the effect).
The branch also carries the docs commits for the C1 and C2 tickets. These include the per-pathogen rule for arranging combined failures in the C2 Spec and in
CONTEXT.md(Combined failure).Spec and Tickets
docs/specs/c1-failure-inputs.md(Change C1 indocs/failure_roadmap.md)docs/tickets/04–06)Checks
Manual check on dev
Known behaviour that isn't from C1:
Once this is on dev, the migrations can't be reversed there. Only C1 and branches built on it should go to dev until the release. A merge into
mainwould put dev back on code without these columns, until this branch is pushed again.Definition of Done
code-reviewfindings are handled (fixed, or answered in this PR)CONTEXT.md)🤖 Generated with Claude Code