-
Notifications
You must be signed in to change notification settings - Fork 0
fix(strix): fail closed on incomplete provider scans #1153
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 all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
4e61b6a
fix(strix): treat ModelBehaviorError with zero findings as backend flake
seonghobae 51c3815
fix(strix): qualify model behavior backend signal
seonghobae 5512077
test(strix): require provider failures to stay non-passing
seonghobae 85523e1
test(strix): enforce typed provider non-pass
seonghobae 6e20dc1
fix(strix): fail closed on incomplete provider scans
seonghobae e6529aa
docs(strix): record typed provider non-pass
seonghobae a06e6e7
docs(changelog): record Strix fail-closed provider result
seonghobae 86c262c
test(strix): bind typed provider error wording
seonghobae 119d563
fix(strix): keep PR scoped to provider scan contract
seonghobae c6bcef0
Merge remote-tracking branch 'origin/main' into HEAD
seonghobae b3ce110
fix(strix): authenticate GitHub Models HTTP 410 fallback
seonghobae e21951d
fix(strix): classify Caido bootstrap outages
seonghobae 2e8e782
fix(strix): isolate scanner output from scan target
seonghobae 562c923
Merge branch 'main' into codex/pr1138-current-main-successor
seonghobae 2d2037c
docs: complete coordinator docstring coverage
seonghobae a0fe050
test: complete workflow contract docstrings
seonghobae 956ae2b
fix: keep baseline-only Strix outages non-blocking (#1169)
seonghobae 9a4d1e1
fix(strix): fail closed after provider exhaustion
seonghobae 9ddda5b
Merge branch 'main' into codex/pr1138-current-main-successor
opencode-agent[bot] a82b801
fix(ci): redact untrusted github method diagnostics
seonghobae 945d5d5
fix(strix): include backend app dependency context
seonghobae ab0f179
fix(strix): include contextual orchestrator sibling context
seonghobae 035343c
fix(strix): include Rust workspace context
seonghobae 2cd1d34
fix(strix): classify ModelBehaviorError as retryable protocol evidence
seonghobae d8d0546
fix(strix): require module-qualified ModelBehaviorError context
seonghobae affc130
fix(strix): retry report-only provider failures
782d0fc
docs(strix): record report-log fallback boundary
4889b19
Merge remote-tracking branch 'origin/main' into HEAD
56588e1
fix(strix): preserve sanitized report artifacts
48e5b61
fix(strix): preserve behavior error case sensitivity
seonghobae 8d69548
Merge remote-tracking branch 'origin/main' into HEAD
seonghobae f46eb9a
Merge branch 'main' into fix/strix-github-models-retirement-fallback
seonghobae 8541905
Merge PR #1195 ModelBehaviorError contract into Strix owner lane
seonghobae 144df9f
docs(strix): remove duplicate ModelBehaviorError doctoring record
seonghobae 52a62a0
fix(security): raise pip-audit runner pip floor
seonghobae 6087b52
chore(strix): restore causal owner scope
seonghobae ebda81f
Merge branch 'main' into codex/pr1138-current-main-successor
opencode-agent[bot] 3b279ef
fix(security): raise pip audit lock past PYSEC-2026-3721
seonghobae 9002f4d
Merge remote-tracking branch 'origin/main' into fix/pip-audit-2026-3721
seonghobae c9a0592
fix(strix): converge protected-main scheduler contracts
seonghobae 04a0b98
fix(ci): refresh pip audit lock
seonghobae a88f017
chore(strix): restore pip lock to security owner
seonghobae 1f8878d
Merge branch 'main' into codex/pr1138-current-main-successor
seonghobae c1bac0a
ci: refresh pip audit runtime
seonghobae 0bf6874
chore(strix): restore canonical pip lock ownership
seonghobae 4de4929
ci: refresh dependency and scheduler contracts
seonghobae ab1b5de
Merge current main and refresh scheduler contracts
seonghobae 8db8aa8
Merge branch 'main' into codex/pr1138-current-main-successor
opencode-agent[bot] 09c3439
merge: synchronize Strix fail-closed repair with protected main
seonghobae 412370e
test(strix): execute complete fail-closed branch
seonghobae 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
|
seonghobae marked this conversation as resolved.
|
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 |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Strix ModelBehaviorError classifier | ||
|
|
||
| 기준일: **2026-08-21** | ||
|
|
||
| ## Incident | ||
|
|
||
| Required Strix scans can fail closed after the agent runtime raises | ||
| `ModelBehaviorError` even when the log reports `Vulnerabilities 0`. The | ||
| exception means the selected model did not follow Strix's tool-calling | ||
| protocol. Treating that protocol failure as a security finding blocked | ||
| current-head progress on otherwise empty scans. | ||
|
|
||
| ## Decision | ||
|
|
||
| `scripts/ci/strix_quick_gate.sh` recognizes a **module-qualified** | ||
| `ModelBehaviorError` from `agents`, `pydantic_ai`, or `strix` as retryable | ||
| model evidence. A bare source-file mention is not enough. The gate moves to | ||
| the configured fallback sequence and does not retry the same model. The outer | ||
| `.github/workflows/strix.yml` classifies the failure as typed provider evidence | ||
| only when that signal is present **and** the log contains no vulnerability | ||
| evidence, while preserving the nonzero result because the scan is incomplete. | ||
|
|
||
| `Vulnerabilities[[:space:]]+[1-9]` and `severity:` markers remain blocking. | ||
| Generic warnings, timeouts, provider failures, and MEDIUM-or-higher findings | ||
| are unchanged. | ||
|
|
||
| ## Verification contract | ||
|
|
||
| `tests/test_strix_model_behavior_error.py` executes the production classifier | ||
| and the outer workflow neutralization condition against bounded synthetic | ||
| logs. It proves: | ||
|
|
||
| 1. a module-qualified `agents`/`pydantic_ai`/`strix` `ModelBehaviorError` | ||
| plus `Vulnerabilities 0` is retryable and typed non-passing; | ||
| 2. the same exception plus `Vulnerabilities 1` stays fail-closed; | ||
| 3. lowercase application prose or a bare `ModelBehaviorError` token is not | ||
| classified as the runtime exception; | ||
| 4. the identifier is wired into infrastructure detection and cross-model | ||
| fallback, never same-model retry. | ||
|
|
||
| ## Rollback | ||
|
|
||
| If a future Strix release renames the exception, add the exact new identifier | ||
| and a matching regression. Do not remove the vulnerability fail-closed guard. | ||
|
|
||
| ## References (APA 7th) | ||
|
|
||
| GitHub. (n.d.). *Workflow syntax for GitHub Actions*. GitHub Docs. Retrieved | ||
| August 21, 2026, from | ||
| https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax | ||
|
|
||
| GitHub. (n.d.). *Using workflow run logs*. GitHub Docs. Retrieved August 21, | ||
| 2026, from https://docs.github.com/en/actions/how-tos/monitor-workflows/use-workflow-run-logs |
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.