Skip to content

fix(roadmap): intake's reply schema limits each fixed field to its values, so the model cannot leave type empty - #2380

Merged
dan-petty merged 2 commits into
mainfrom
fix/2370-intake-type-enum
Oct 27, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2370-intake-type-enum

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap intake refused a new candidate because the model left type empty two times, and the run filed nothing. The reply schema of ModelProposal let type, priority, value and effort be any string, and type had the default "".

  • GatewayIntakeModel.propose sends a schema made for the request with pydantic.create_model. type is required and one of the request's types, priority one of P1-High, P2-Medium and P3-Low, and value and effort one of High, Medium and Low, each as an enum. A request with no types keeps type as free text.
  • The structured output of the gateway keeps the reply to the enums, and chat_structured asks again with the validation errors when a reply breaks them.
  • Intake asks the model once for each candidate. The second request of fix(roadmap): intake asks the model again when its proposal names a value off the list, and a --title candidate it still cannot place exits non-zero #1677 and the problem field of ProposalRequest are deleted, because no gateway reply can reach them. A proposal off its list still skips its candidate with the problems in the report.

Closes #2370

…lues, so the model cannot leave type empty

`devops roadmap intake` refused a new candidate because the model left `type` empty two times, and the run filed nothing. The reply schema of `ModelProposal` let `type`, `priority`, `value` and `effort` be any string, and `type` had the default "".

- `GatewayIntakeModel.propose` sends a schema made for the request with `pydantic.create_model`. `type` is required and one of the request's types, `priority` one of P1-High, P2-Medium and P3-Low, and `value` and `effort` one of High, Medium and Low, each as an `enum`. A request with no types keeps `type` as free text.
- The structured output of the gateway keeps the reply to the enums, and `chat_structured` asks again with the validation errors when a reply breaks them.
- Intake asks the model once for each candidate. The second request of #1677 and the `problem` field of `ProposalRequest` are deleted, because no gateway reply can reach them. A proposal off its list still skips its candidate with the problems in the report.

Closes #2370
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks run on the branch before the push (2026-10-27):

  • Fail-to-pass, uv run devops ci fail-to-pass --base origin/main: 4 failed on base and pass on the branch: test_the_reply_schema_lists_the_values_of_each_fixed_field, test_the_reply_schema_refuses_an_empty_type, test_an_off_list_proposal_skips_its_candidate_after_one_model_call and the prompt snapshot test_the_intake_prompt_defines_a_duplicate_as_the_same_change.
  • Full suite, uv run devops ci test: 11,299 passed.
  • devops ci typecheck, lint, format, docs and devops openspec check: passed.

The deleted second request of #1677 had no path left from the gateway model: chat_structured validates each reply against the schema of its request and asks again with the validation errors, so an off-list value never reaches intake's own check.

@dan-petty
dan-petty marked this pull request as ready for review October 27, 2026 19:52
@dan-petty
dan-petty merged commit b9220b1 into main Oct 27, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/2370-intake-type-enum branch October 27, 2026 19:58
@dan-petty

Copy link
Copy Markdown
Owner Author

Live check, 2026-10-27, against the gateway: devops roadmap intake --title "fix(k8s): the ollama-64gib tier is OOMKilled …" --body-file … --confirm from main skipped the candidate with "type '' is not one of …" two times in one run. The same command from this branch placed it on the first run as type/bug (#2382).

dan-petty pushed a commit that referenced this pull request Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.7.4](v0.7.3...v0.7.4)
(2026-10-27)


### Bug Fixes

* **ai:** chat calls stream their reply, and the gateway keeps the
stream open past the 125 s edge timeout
([#2379](#2379))
([0abf552](0abf552)),
closes [#2365](#2365)
* **ai:** the devops ai failover help says that the gateway failover
records a route, not that it reroutes requests
([#2376](#2376))
([6560b93](6560b93)),
closes [#2079](#2079)
* **docs:** add home page, remove raw markdown publishing, and check
links ([#2070](#2070))
([#2372](#2372))
([7f9321c](7f9321c))
* **llm:** pass num_ctx with direct ollama embedding requests
([#2378](#2378))
([ff47504](ff47504)),
closes [#2089](#2089)
* **roadmap:** intake's reply schema limits each fixed field to its
values, so the model cannot leave type empty
([#2380](#2380))
([b9220b1](b9220b1)),
closes [#2370](#2370)
* **telemetry:** a gateway inference span names the deployment model
that served the call as gen_ai.response.model
([#2381](#2381))
([78dbd1d](78dbd1d))


### Performance Improvements

* **ci:** lower the coverage floor to 85% and fail a pull request below
90% on its changed lines
([#2375](#2375))
([9f97c14](9f97c14))

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): intake's reply schema limits type to the repository's type labels, so the model cannot leave it empty

1 participant