Skip to content

fix(roadmap): bound the shadow mark probability to 0 to 1 - #4655

Merged
dan-petty merged 3 commits into
mainfrom
fix/4469-shadow-probability-bound
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4469-shadow-probability-bound

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

ShadowAnswer.probability had no bound, so a mark with a probability above 1 or below 0 was valid. The report then found no band for it, and _band raised StopIteration. One bad mark in an issue body stopped the whole devops roadmap eval jev --from-shadow report.

The field now has the bound Field(ge=0, le=1). ShadowObservation.from_mark raises ValidationError for such a mark, and observed_issues counts it as unreadable and goes on. A probability of 1.0 stays valid and stays in the last band. _band does not change: a fallback there would hide a bad mark in a band. The Jev decision model already refuses a confidence out of range, so intake needs no new catch.

Closes #4469

Change: openspec/changes/archive/2026-11-11-4469-a-shadow-mark-out-of-range/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass run (uv run devops ci fail-to-pass --base origin/main): 2 tests fail on base and pass on the change: test_a_mark_with_a_probability_out_of_range_is_counted_and_skipped[1.5] and [-0.1] in tests/roadmap/test_roadmap_jev_shadow_report.py. On base, observed_issues read both marks as valid and gave ([1, 2], 0); on the change it gives one unreadable mark. No live step is needed.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 16:59
@dan-petty
dan-petty merged commit abf1166 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4469-shadow-probability-bound branch November 11, 2026 17:01
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.2](v0.112.1...v0.112.2)
(2026-11-11)


### Bug Fixes

* **github:** bound the GitHub session read at 60 seconds
([#4636](#4636))
([a87442a](a87442a))
* **roadmap:** bound the shadow mark probability to 0 to 1
([#4655](#4655))
([abf1166](abf1166))
* **roadmap:** halt implement step on consecutive refusals
([#4659](#4659))
([9bcf0f5](9bcf0f5))
* **security:** file an issue for each Trivy-config alert group
([#4640](#4640))
([a7668fe](a7668fe))
* **service:** route issues webhooks past scoped intake
([#4631](#4631))
([caf4c7e](caf4c7e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a shadow mark out of range stops the shadow report

1 participant