Skip to content

Add fix_generation_enabled to the public contract - #11

Merged
mohsen1 merged 1 commit into
mainfrom
claude/public-contract-sync-k3vcta
Oct 25, 2026
Merged

mohsen1 merged 1 commit into
mainfrom
claude/public-contract-sync-k3vcta

Conversation

@mohsen1

@mohsen1 mohsen1 commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Syncs the bundled openapi.public.json with the server's committed generated public document. That document now has an optional CustomerReviewDetail.fix_generation_enabled boolean (proofline PR 5195). This unblocks audit AF04/PR 5156. Claimed in proofline issue 3331.

  • Contract: applies the exact upstream artifact delta to the known preimage. It adds one optional boolean with its description. The required list is unchanged, and so are info.version and the SDK version.
  • Generated models: regenerated with the repo's pinned openapi-python-client==0.29.1 through scripts/generate.py. The only generated change is proofline/_generated/models/customer_review_detail.py: the field, its docstring, and its to_dict/from_dict handling. Nothing was hand-edited.
  • No runtime, API-behaviour, token-redaction, version, workflow or packaging changes. Held PR Add named-file review and stop operations #3 is untouched.

Artifact identity

Git blob SHA-256
Preimage (main 78ce4d8) 8b97511767b1faed790967246fdacb3d276b4bf8 —
Postimage (this PR) 17205ad172142b574f598a4540d16e93d8041782 65785abda787dac8c2426cfca27ba050dbe3c22fbce7cfa20a2b0fe7cd3c6cf9

Both postimage values match the target for proofline c1f1e14c63de21d240a6b22c1e068c60eac46df2. I did not read the upstream file directly: this session's GitHub access covers only this repository. The match comes from applying the coordinator-supplied delta with git apply and checking git hash-object and sha256sum on the result.

Verification (head 2a48b7e4645a2248dcdf263582cbab01cf70b3e7)

  • git apply --check -v delta.patch && git apply delta.patch: applied cleanly to blob 8b97511.
  • git hash-object openapi.public.json returned 17205ad1…, and sha256sum returned 65785abd….
  • python scripts/generate.py with the pinned tools: only customer_review_detail.py changed.
  • python3 scripts/check.py --artifacts <fresh dir> exited 0 (Python 3.13). It ran:
    • generate.py --check, which reported no drift
    • contracts.py, which passed
    • ruff check and ruff format --check, both clean
    • mypy: no issues in 211 files
    • pytest: 75 passed
    • build: one wheel and one sdist
    • the sync/async HTTP smoke test, run against both the installed wheel and the installed sdist: passed
  • A throwaway round-trip check (not committed, since it would only mirror generated code): an absent field stays UNSET and is not serialized, and true round-trips through from_dict/to_dict.
  • GitHub Actions on head 2a48b7e:
    • Checks / check (python scripts/check.py --artifacts artifacts, Python 3.13.12): success (job)
    • Analyze (python): success
    • Analyze (actions): success
    • CodeQL: success
    • Merge state: clean. No review threads.

Do not merge until the coordinator has reviewed the current head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G8YzhJ7iLeZF8kY4HTma3u

Synchronize openapi.public.json with the committed generated server
document (blob 17205ad, SHA-256
65785abda787dac8c2426cfca27ba050dbe3c22fbce7cfa20a2b0fe7cd3c6cf9).
CustomerReviewDetail gains one optional boolean, fix_generation_enabled;
the required list is unchanged. Regenerate the models with the pinned
openapi-python-client 0.29.1 via scripts/generate.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8YzhJ7iLeZF8kY4HTma3u
@mohsen1

mohsen1 commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Coordinator review: accepted head 2a48b7e4645a2248dcdf263582cbab01cf70b3e7. I read the complete patch and independently fetched this commit. The bundled document is Git blob 17205ad172142b574f598a4540d16e93d8041782, SHA-256 65785abda787dac8c2426cfca27ba050dbe3c22fbce7cfa20a2b0fe7cd3c6cf9, exactly matching the committed server artifact. The only generated change is the optional boolean and its generated representation; the required list, runtime, lockfiles and versions are unchanged.

I verified the Checks run 40145805184 succeeded on this exact head and inspected its test and generation evidence. The coordinator review hold is satisfied. The author may mark ready and merge under the repository checks, then report the actual main commit and follow its main CI. This does not authorize package publication or releases.

@mohsen1
mohsen1 marked this pull request as ready for review October 25, 2026 00:19
@mohsen1
mohsen1 merged commit 821c68d into main Oct 25, 2026
4 checks passed

mohsen1 commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Merge receipt: merged as 821c68d0958dd93781d2e6b1817861b0ed704dce (merge commit of reviewed head 2a48b7e). Main Checks run 40146269773 on that commit: completed, success. No packages, tags or releases were published.

New assignment acknowledged (proofline issue 3331, comment 6391410830): the test_retry_after_is_bounded_by_wait_deadline[async] failure (503 unreadable_problem instead of TIMED_OUT once the wait deadline expires during response.aread()). I'll reproduce it on current main 821c68d and fix it in a separate PR. That work goes on branch claude/public-contract-sync-k3vcta, restarted fresh from 821c68d, since this PR is merged and no new commits will go onto it. Session: https://claude.ai/code/session_01G8YzhJ7iLeZF8kY4HTma3u. Scope is limited to proofline/client.py, proofline/_transport.py and tests/test_http.py, plus the README only if needed. I won't touch the schema, models, generator, version, held PR #3 or publishing, and I won't merge before the coordinator reviews the actual head.


Generated by Claude Code

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.

2 participants