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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P1] Consume the actual Castiron local-reference contract. The Castiron producer checks in
.castiron/api-definition.yamland.castiron/generation-inputs.json; the descriptor'sapi_referencerecords the canonical repo-relative path and a SHA-256 hash. See https://github.com/openai/openai/blob/23bc2f67b559457998cb0facddccb8b9763ed9f4/api/sdk-worker/sdk_worker/api_ref_artifacts/castiron_repo_inputs.py#L16-L20 and https://github.com/openai/openai/blob/23bc2f67b559457998cb0facddccb8b9763ed9f4/api/sdk-worker/sdk_worker/api_ref_artifacts/castiron_repo_inputs.py#L175-L206..castiron.stats.ymlhas onlyschema_version,generation_id,openapi_spec_hash,config_hash, andcodegen_sha; its parser explicitly rejects additional fields, soopenapi_transformed_spec_hashcannot be added to make this work: https://github.com/openai/openai/blob/23bc2f67b559457998cb0facddccb8b9763ed9f4/api/sdk-worker/sdk_worker/api_ref_artifacts/castiron_candidate_flow.py#L106-L133. Consequently, a real generated checkout never enters this branch and instead downloads the stale/network spec, breaking offline hermetic runs; ifapi_reference/openapi.transformed.ymlis present alongside valid Castiron stats,EXPECTED_HASHis always empty andscripts/mock/scripts/testexit before starting Steady. I reproduced both behaviors against this exact script. Please discover the API reference from.castiron/generation-inputs.json, require its canonical.castiron/api-definition.yamlpath, verify the descriptor's SHA-256 against the file, and preserve the existing.stats.ymlURL fallback only when no checked-in Castiron reference is present.