Skip to content

fix(roadmap): name schema violations in the log - #4276

Merged
dan-petty merged 5 commits into
mainfrom
fix/4269-schema-violation-text
Nov 9, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/4269-schema-violation-text

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A stage plan that breaks its schema past its retries showed only a count of violations in the failure line and the log, so the cause stayed hidden. The failure line and a new log line now name the count, the stop reason (validation or no tool call) and up to 3 violations, each with its location, error type and message. Each text is masked for secrets and cut at 200 characters, and the input value is dropped. The same fields go in the field schema_failure of the refused file .refused.json, which the staging of the item deletes as before.

Closes #4269

Change: openspec/changes/archive/2026-11-09-4269-schema-violation-text/

@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 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4269.

  • fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 17 tests fail on base (17 failed and 65 passed in the two changed test files, 0 errored). The failures are AttributeError or ImportError for the new fields and class.
  • Full uv run devops ci (one run, under the shared lock): 23 of 25 checks pass. The test check had 1 failure: tests/roadmap/test_roadmap_limit_classes.py needed an entry for each of the two new constants. This was my cause. I added the entries, and the file passes (17 passed). I did not run the full CI a second time, so the coverage check did not run (it needs a passing test check); the CI of this pull request covers it.
  • The test row took 14m 57s, over the 5-minute budget. The slowest test was tests/commands/test_ai_local_dry_run.py::test_local_ai_commands_run_cleanly at 63 s. The known issue fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593 covers this.
  • Criterion 2 of the issue (the length reason) already holds on main since fix(roadmap): a Claude stage reply stops at 4096 tokens #4220 and fix(roadmap): Sonnet tool calls reach the run with joined args #4228. Its tests are in tests/roadmap/stage/test_roadmap_stage_toolbox.py.
  • The plain chat_structured client fills no violation text, because its error message holds no model text by design. The stage job uses the toolbox client.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 20:40
@dan-petty
dan-petty merged commit c816e8f into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4269-schema-violation-text branch November 9, 2026 20:47
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.103.0](v0.102.0...v0.103.0)
(2026-11-09)


### Features

* **ai:** a setting holds the price of a reference model
([#4258](#4258))
([d31717d](d31717d))
* **ai:** add --since, --until, and --by to cost report and roi
([#4264](#4264))
([fe59c14](fe59c14))
* **ai:** integrate Jev 1.14 and agent configurations
([#4275](#4275))
([28356ed](28356ed))


### Bug Fixes

* **openspec:** check the archive result on disk, plan the dry run
([#4273](#4273))
([cefc184](cefc184))
* **roadmap:** build the trace facts from every plan run
([#4267](#4267))
([b46506d](b46506d))
* **roadmap:** keep refused stage replies, stop placeholder replies
([#4260](#4260))
([aea5adc](aea5adc))
* **roadmap:** match a security trigger word as a word
([#4261](#4261))
([ec96082](ec96082))
* **roadmap:** name schema violations in the log
([#4276](#4276))
([c816e8f](c816e8f))
* **roadmap:** read a quoted tuple as an MCP key in context
([#4265](#4265))
([2cef137](2cef137))


### Code Refactoring

* **ui:** delete kubernetes and logs dashboard tabs
([#4263](#4263))
([2d8b693](2d8b693))

---
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): the log omits the text of schema violations

1 participant