Skip to content

fix(submodel): allow 1.645 as an observation_code constant - #75

Merged
jeliason merged 1 commit into
mainfrom
fix/allow-1645-observation-constant
Jul 23, 2026
Merged

fix(submodel): allow 1.645 as an observation_code constant#75
jeliason merged 1 commit into
mainfrom
fix/allow-1645-observation-constant

Conversation

@jeliason

Copy link
Copy Markdown
Member

The 0.8.1 authoring prompt tells authors to use 1.645 (normal z for the 5th–95th percentile range) when reconstructing an SD from box-plot whiskers, but ALLOWED_CONSTANTS only whitelisted 1.96 (2.5th–97.5th) — so a literal 1.645 failed validate_no_hardcoded_values_in_observation_code. This adds 1.645 alongside 1.96, closing the prompt/validator inconsistency introduced in #74.

The authoring prompt instructs 1.645 (normal z for the 5th-95th percentile
range) for reconstructing an SD from box-plot whiskers, but the hardcoded-value
validator only whitelisted 1.96 (2.5th-97.5th), so a literal 1.645 was rejected
as a hardcoded value. Add 1.645 alongside 1.96 in ALLOWED_CONSTANTS.
@jeliason
jeliason merged commit 15d0e3e into main Jul 23, 2026
10 of 11 checks passed
@jeliason
jeliason deleted the fix/allow-1645-observation-constant branch July 23, 2026 22:26
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