Repository navigation
[AAASM-6439] 📝 (python-sdk-docs): Resync quick-start snippets with the examples' enforcement_mode - #388
Open
Chisanan232 wants to merge 1 commit into
Open
[AAASM-6439] 📝 (python-sdk-docs): Resync quick-start snippets with the examples' enforcement_mode#388Chisanan232 wants to merge 1 commit into
Chisanan232 wants to merge 1 commit into
Conversation
…ples' enforcement_mode The examples now pass enforcement_mode="observe" in each offline quick start because the default posture fails closed when registration cannot reach a gateway. The vendored snippets and the generated tabs still showed the old call, so copying them verbatim into an offline script failed closed. The local import headers and the completed with-bodies are kept. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TLpw696KjUDUg4QjH83En4
This branch has not been deployed
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.
What changes for a reader
Every per-framework quick start now passes
enforcement_mode="observe", as the runnable examples already do. Without it the defaultenforceposture fails closed when registration cannot reach a gateway, so the offline quick start the docs show did not run verbatim. Found by the J08 candidate harness (16 of 16 snippets differed from the examples' quick-start region).Scope
quickstart_snippets/*.py: only theenforcement_modeargument and its comment are added (+6 lines each, 96 insertions, 0 deletions). The local import headers and completed with-bodies stay, because four upstream regions end mid-withand are not valid Python on their own.docs/quick-start.md: regenerated byscripts/generate_quickstart_tabs.py;--checkreports it up to date.Evidence
Not covered
The four upstream examples' regions are syntactically incomplete (google-adk, microsoft-agent-framework, pydantic-ai, smolagents); that is an examples-repo defect and is not changed here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01TLpw696KjUDUg4QjH83En4