Skip to content

fix(review): catch findings.json validation errors - #3841

Merged
dan-petty merged 2 commits into
mainfrom
fix/2644-catch-findings-validation
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2644-catch-findings-validation

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A findings.json that fails validation now ends a review command with one error line. The line names the file and each field that failed. Before, the command ended with a raw pydantic traceback. One shared loader, load_session_payload, serves the four readers: review findings, the verdict commands, review corpus score and review intake.

Closes #2644

Change: openspec/changes/archive/2026-11-06-2644-a-findings-json-that-does-not/

A findings.json that fails ReviewSessionPayload validation ended the command
with a pydantic traceback. The four readers now share load_session_payload.
It raises the project ValidationError with the file path and the dotted path
of each failed field, which the exit seam prints as one error line.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass run: uv run devops ci fail-to-pass --base origin/main (origin/main at c57328f).

  • tests/review/test_session_loader.py: errored on base (collection failure, load_session_payload does not exist).
  • tests/commands/test_review_invalid_session_file.py: 4 of 4 failed on base (findings, corpus-score, intake, verify).
  • On this branch: 6 tests in both files pass (uv run pytest tests/commands/test_review_invalid_session_file.py tests/review/test_session_loader.py).
  • Branch is based on the latest origin/main. No rebase was needed. Pre-push fast static checks passed.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 19:51
@dan-petty
dan-petty merged commit bc5f241 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/2644-catch-findings-validation branch November 6, 2026 19:52
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.73.0](v0.72.1...v0.73.0)
(2026-11-06)


### Features

* **pr:** check-readiness blocks a body that breaks the form
([#3849](#3849))
([6c973a5](6c973a5)),
closes [#3259](#3259)
* **roadmap:** Allow read pipes to a table of allowed programs
([#3838](#3838))
([89daf41](89daf41)),
closes [#3520](#3520)
* **roadmap:** size the runner Job resources from the plan
([#3848](#3848))
([32328b1](32328b1))


### Bug Fixes

* **ai:** fix MCP ai_benchmark models description
([#3840](#3840))
([26a0ef4](26a0ef4))
* **review:** catch findings.json validation errors
([#3841](#3841))
([bc5f241](bc5f241))
* **security:** Refuse Go, Yarn and uv env keys
([#3845](#3845))
([235a807](235a807))


### Performance Improvements

* **k8s:** use tag_digest HEAD for image pins
([#3843](#3843))
([a61d671](a61d671))


### Code Refactoring

* **roadmap:** the in-memory store leaves src
([#3839](#3839))
([558c5e0](558c5e0))

---
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/review Multi-persona code review engine, verification, and findings 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(review): catch findings.json validation errors

1 participant