Add model-output chaos end-to-end example - #3827
Open
venkatkrish543re wants to merge 1 commit into
Open
Conversation
venkatkrish543re
had a problem deploying
to
manual-approval
August 14, 2026 20:49 — with
GitHub Actions
Error
venkatkrish543re
marked this pull request as draft
August 14, 2026 20:54
Contributor
|
Can we rename the script chaos_model_testing.py, and the existing chaos_testing.py -> chaos_tool_testing.py? |
venkatkrish543re
had a problem deploying
to
manual-approval
August 17, 2026 20:15 — with
GitHub Actions
Error
Adds chaos_model_testing.py, an end-to-end example for the model-output chaos plugin (strands-agents/evals#284): pre-model-call effects (FullRefusal, EmptyResponse) cancel the model call via BeforeModelCallEvent; post-model-call effects (MalformedJson, Confabulation, SuccessFraming) corrupt output via MessageAddedEvent. Uses assertion-mode judging for stable evaluation. Renames chaos_testing.py to chaos_tool_testing.py and extends the chaos-testing docs page with a Model Output Effects section.
venkatkrish543re
force-pushed
the
feat/model-chaos-example
branch
from
August 17, 2026 22:56
89b1983 to
83675d4
Compare
venkatkrish543re
requested a deployment
to
manual-approval
August 17, 2026 23:03 — with
GitHub Actions
Waiting
venkatkrish543re
marked this pull request as ready for review
August 17, 2026 23:20
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds an end-to-end example for the model output chaos plugin (strands-agents/evals#284), mirroring chaos_testing.py: pre hook effects (FullRefusal, EmptyResponse) cancel the model call via BeforeModelCallEvent; post hook effects (MalformedJson, Confabulation, SuccessFraming) corrupt output via MessageAddedEvent. Includes an EventProbe plugin asserting both hook events fire in the real agent loop
Also extends the chaos testing docs page with a Model Output Effects section (kept on the existing page since the ChaosPlugin/ChaosCase machinery sections are shared )
Verification
Real Agent(plugins=[chaos_plugin]), Bedrock default model, 5 cases (baseline + 4 effect maps):
Related Issues
strands-agents/evals#284
Documentation PR
Type of Change
Documentation update
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce new warnings.
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.