Repository navigation
SEL-316: AMW main: Trust release gate fails because gateway/docs/openapi.json is stale - #152
Merged
Merged
Conversation
…json is stale (SEL-316) Linear: SEL-316 Engine: codex (fleet coding engine, Grok Bot dispatch)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear: SEL-316
Coding engine: codex, dispatched by Grok Bot for C.Lee.
What changed
Regenerated
gateway/docs/openapi.jsonwith the repository export script. The only schema change removes the advertised default object forPOST /v1/launch/preflight, matching the merged route change toBody(default_factory=PreflightRequest). The request body remains optional; no unintended route or schema drift was found.How verified
gateway/:UV_CACHE_DIR=/private/tmp/sel-316-uv-cache UV_PYTHON=3.12 ~/metacode/fleet/heavy uv run --with-requirements requirements.txt python scripts/export_openapi.py --check, failed with the reported stale-schema message.gateway/:UV_CACHE_DIR=/private/tmp/sel-316-uv-cache UV_PYTHON=3.12 uv run --with-requirements requirements.txt python scripts/export_openapi.py, wrotedocs/openapi.json.gateway/:UV_CACHE_DIR=/private/tmp/sel-316-uv-cache UV_PYTHON=3.12 uv run --with-requirements requirements.txt python scripts/export_openapi.py --check, passed:docs/openapi.json matches app.openapi().gateway/:UV_CACHE_DIR=/private/tmp/sel-316-uv-cache UV_PYTHON=3.12 ~/metacode/fleet/heavy uv run --with-requirements requirements.txt python -m pytest -q tests/test_preflight.py, 18 passed.git diff --check, passed; the tracked diff contains onlygateway/docs/openapi.json(1 insertion, 6 deletions).Not done / follow-ups
The full Trust release gate and hosted CI were not run; the wrapper can confirm the PR gate. No other tracked files were changed.
Note
Low Risk
Documentation-only OpenAPI regeneration with no runtime or API behavior change beyond removing stale schema metadata.
Overview
Regenerates
gateway/docs/openapi.jsonso the Trust release gate’s OpenAPI check passes again.For
POST /v1/launch/preflight, the request body schema no longer advertises an inlinedefaultobject on top ofPreflightRequest—only the$refremains. That matches the live FastAPI route (Body(default_factory=PreflightRequest)): the body stays optional, with defaults coming from the Pydantic model rather than a duplicated default block in the exported spec.Reviewed by Cursor Bugbot for commit 7d227fe. Bugbot is set up for automated code reviews on this repo. Configure here.