Skip to content

ReleaseAdmin: sync public OpenAPI contract - #6

Merged
mohsen1 merged 2 commits into
mainfrom
codex/release-admin-public-contract-c88fb8b
Oct 18, 2026
Merged

mohsen1 merged 2 commits into
mainfrom
codex/release-admin-public-contract-c88fb8b

Conversation

@mohsen1

@mohsen1 mohsen1 commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

ReleaseAdmin synchronizes the bundled public OpenAPI contract with the control plane's canonical public contract at c88fb8bebb7b0cd309f23146a1bb27e1af945424 and keeps the patch request model compatible.

The contract adds local finding re-verification schemas and fields. PatchReviewRequest accepts the optional verify_finding_ids array with an empty default. Existing callers supply an empty array, which serialization omits, preserving their request bodies. The separate --verify command feature remains in #5. Dependencies and the package version stay unchanged.

The existing contract test reproduces the strict-model decoding failure on the initial PR head and passes with the field. Existing local-patch request assertions verify unchanged request bodies. No duplicate tests are added.

Verification on 183e3ec30200517f089fa3d704bc6b5b413cb4d4:

  • cargo fmt --check and git diff --check pass.
  • cargo clippy --locked --all-targets -- -D warnings passes.
  • cargo test --locked -- --include-ignored passes: 79 tests, zero failures, zero ignored. The hooks suite uses temporary official pre-commit 4.7.0.
  • cargo deny check passes. It reports existing duplicate-dependency and unmatched ignored-advisory warnings.
  • /opt/homebrew/bin/python3.14 -m unittest discover -s scripts -p 'test_*.py' passes all eight tests. The initial system-Python run fails because that interpreter lacks tomllib; the supported interpreter rerun passes.
  • JSON parsing, local schema-reference resolution, and preserved path checks pass.
  • Exact canonical contract bytes match; SHA256 is c15f74c5518f562dbe38a6f56444e873a7af5d47f64f8d9b1d9ce25cf35c528e.

Rust checks use an isolated target with CARGO_BUILD_JOBS=1, CARGO_PROFILE_DEV_DEBUG=0, and CARGO_PROFILE_TEST_DEBUG=0. The dependency audit, Python, and contract-source checks run on the unchanged tree committed at this head. This PR does not publish a package.

@mohsen1

mohsen1 commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

ReleaseAdmin

Independent review complete on final183e3ec30200517f089fa3d704bc6b5b413cb4d4. The observed strict-request decoding failure is fixed by the canonical default-empty UUID list; both existing constructors supply empty and serialization omits it, preserving plain-review payloads. No CLI verification feature or write authorization is added. Exact canonical contract bytes remainc15f74c5518f562dbe38a6f56444e873a7af5d47f64f8d9b1d9ce25cf35c528e. All79 Rust tests including pre-commit integration, strict all-target Clippy, formatting, dependency audit and8Python tests pass on the committed head. Original failed CI remains failed; new-head local verification supplies the repair evidence. Proceeding with native expected-head merge.

@mohsen1
mohsen1 merged commit 7111e70 into main Oct 18, 2026
5 checks passed
@mohsen1
mohsen1 deleted the codex/release-admin-public-contract-c88fb8b branch November 3, 2026 06:54
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.

1 participant