-
Notifications
You must be signed in to change notification settings - Fork 46k
fix(copilot): P0 guardrails, transient retry, and security hardening #12636
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
Merged
Changes from 35 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
5ca49a8
fix(copilot): P0 guardrails — SDK limits, security env vars, transien…
majdyz 2e8e115
fix(copilot): review round 1 — fix transient retry count, strip fallb…
majdyz 4ebe294
fix(copilot): review round 2 — fix transient retry consuming context-…
majdyz dced534
fix(copilot): review round 3 — fix transient error code check, add SD…
majdyz 98c2765
fix(copilot): snapshot/restore TranscriptBuilder on transient retry
majdyz d317360
test(copilot): add unit tests for P0 guardrails
majdyz a369fbe
fix(copilot): replace tautological env-var tests with source assertions
majdyz 3f24a00
fix(copilot): add None guard to fix pyright reportOperatorIssue
majdyz e753aee
fix(copilot): prevent infinite transient retry loop
majdyz 61513b9
fix(copilot): mock build_sdk_env to return {} instead of None in retr…
majdyz b220fe4
test(copilot): add build_sdk_env tests for all 3 auth modes
majdyz 32bfe1b
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz b3d9e9e
fix(backend): add 429/5xx patterns to is_transient_api_error and add …
majdyz 22e8c5c
fix(copilot): update response_adapter test for expanded transient pat…
majdyz 3e6faf2
fix(copilot): address remaining should-fix items from reviewer
majdyz a55653f
fix(backend): tighten fallback model detection and reset flag on retry
majdyz 8de935c
dx(backend/copilot): add round 3 E2E test screenshots for PR #12636
majdyz e3d589b
fix(backend/copilot): exclude StreamError/StreamStatus from events_yi…
majdyz c2f421c
dx(backend/copilot): add live execution guardrail verification for PR…
majdyz e57e482
security: remove test artifacts containing leaked API keys and OAuth …
majdyz 289a19d
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz 2bf5a37
fix(backend): add ge/le bounds to claude_agent_max_transient_retries …
majdyz a68f48e
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz 2a969e5
fix(backend/copilot): yield final StreamError after transient retry e…
majdyz eda02f9
fix(backend/copilot): remove duplicate StreamError in _HandledStreamE…
majdyz eeb2f08
merge: resolve conflict with dev (use build_sdk_env(sdk_cwd=) from #1…
majdyz 49bef40
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz 2411cc3
fix(backend/copilot): update p0 guardrail tests to check env.py after…
majdyz bddc633
fix(copilot): increase guardrail defaults — max_turns=1000, max_budge…
majdyz de094ee
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz b101069
Merge remote-tracking branch 'origin/dev' into work/pr-12636
majdyz 1a52b0d
fix(copilot): address review comments — security env vars for all aut…
majdyz e2add1b
Merge remote-tracking branch 'origin/dev' into fix/copilot-p0-cli-int…
majdyz 644d39d
Merge branch 'fix/copilot-p0-cli-internals' of github.com:Significant…
majdyz 8a4bc0b
fix(copilot): persist retryable marker when transient retries exhausted
majdyz 79b8ad8
fix(copilot): tighten fallback detection pattern and harden header sa…
majdyz f95772f
fix(copilot): fix StreamError ordering and cap exponential backoff
majdyz fff9faf
fix(copilot): use transient_api_error code for exhausted transient re…
majdyz 3a6418f
refactor(copilot): extract _compute_transient_backoff to module level
majdyz eadc946
refactor(copilot): compile header-safe regex at module level and clar…
majdyz ba591e7
test(copilot): add _safe() edge-case tests and events_yielded exclusi…
majdyz 84327fe
refactor(copilot): extract _next_transient_backoff and _do_transient_…
majdyz 5db531a
Merge remote-tracking branch 'origin/dev' into fix/copilot-p0-cli-int…
majdyz a5560bc
fix(copilot): address review blockers and should-fix items
majdyz 266e25c
fix(copilot): preserve fallback_model_activated across transient retries
majdyz 9d6623c
Merge branch 'dev' of github.com:Significant-Gravitas/AutoGPT into fi…
majdyz 47a869a
fix(copilot): use production _EPHEMERAL_EVENT_TYPES in TestEventsYiel…
majdyz afe7380
test(copilot): add integration tests for transient retry paths and fi…
majdyz 84b996c
fix(copilot): reconstruct JSONL transcript from session messages when…
majdyz 025ff4d
fix(backend/copilot): clear OAuth tokens in SDK env for non-subscript…
majdyz f0f56d3
fix(backend/copilot): remove unverified CLAUDE_CODE_SKIP_PROMPT_HISTO…
majdyz 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.