Skip to content

[AAASM-6439] 📝 (python-sdk-docs): Resync quick-start snippets with the examples' enforcement_mode - #388

Open
Chisanan232 wants to merge 1 commit into
mainfrom
v0.0.1/AAASM-6439/docs/refresh_quickstart_snippets
Open

Chisanan232 wants to merge 1 commit into
mainfrom
v0.0.1/AAASM-6439/docs/refresh_quickstart_snippets

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

What changes for a reader

Every per-framework quick start now passes enforcement_mode="observe", as the runnable examples already do. Without it the default enforce posture 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 the enforcement_mode argument 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-with and are not valid Python on their own.
  • docs/quick-start.md: regenerated by scripts/generate_quickstart_tabs.py; --check reports it up to date.

Evidence

  • 146 tests pass (quick-start configuration, claim-binding, negative-control, planned-referent suites).
  • The J08 harness check that each slice contains the example's quick-start region verbatim is rerun after this merges; not verified on this head.

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

…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant