Repository navigation
feat(api): add delegation controls and prompt cache lifetimes #1272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+15,062
−10,680
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| schema_version: 1 | ||
| generation_id: 13866b42-3537-41d4-9c12-f53214868c28 | ||
| openapi_spec_hash: 4a02922518092801c43f2526a9ced0f5 | ||
| openapi_transformed_spec_hash: b577364c156fa7f501df6fef87ae11ed | ||
| config_hash: 07f8531f9ff20bc9f5156b5a258c76ff | ||
| codegen_sha: e92d3226b583127c9519d4b89e52c20d6c596d0b | ||
| codegen_hash: 7afac60a97214c8b2cd5a6684367ee3e19efa7bd30856d197a78779278534669 | ||
| public_codegen_sha: cf08e5bb49e8c3d1f4eadee5d4b517dd2a06cabc | ||
| generation_id: ecf0c665-7b5c-432c-8ca0-d26784190472 | ||
| openapi_spec_hash: 23f0bfa58ad53fef090bea6a72a05dda | ||
| openapi_transformed_spec_hash: c631189d638b72705db583893fa22bb2 | ||
| config_hash: 249b5f41fe1b916955299cea75cddfbf | ||
| codegen_sha: a42b98f1e77a430e69488201ad31243f9a938996 | ||
| codegen_hash: 36d13008ea00041d76a078918a4b3cac9d4206d4f79cbdd222e65912a347ef33 | ||
| public_codegen_sha: 4720178859e015fec0cbd3af1e1a7a4244a11434 |
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
Oops, something went wrong.
Oops, something went wrong.
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.
If
mainadvances after the Python helper fetches the old main ref but before it returnsrequires_human: true, this catch block never runs and the only subsequent main-freshness check is inside the!requiresReviewbranch. The handler therefore invalidates successful PR and queue statuses using the stale policy decision and may leave them pending if the requested rerun fails. Recheckheads/mainafter every successful evaluation and retry when it differs frommainSha, regardless of the decision.Useful? React with 👍 / 👎.
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.
I checked this against
requires_human_policy_reviewand local Git-history probes. With fixed PR/base commits, advancing main preserves atruedecision: budget and ratchet edits are unchanged; existing pins compare immutable policies; bootstrap pins become older than main and still require review. Afalsedecision can becometrue, but that branch already rechecks main. I don't see a stale-decision defect here under normal main advancement.