implementation-strategy
Skill30k starsChanged 3 months agoMITView on GitHub
Choose supported scope and compatibility boundaries for SDK behavior changes; revisit when feedback changes the design.
4 other projects use a version of this, 2 of them edited; 2 of 2 edited versions we compared changed its rules.
How people change it
2 of 2 edited versions changed its rules.
Of the 2 edited versions we compared: 2 made changes of their own.
Rules people drop
- Treat released
RunState, session persistence, and other explicitly durable serialized state as compatibility-sensitive across commits, processes, and machines.dropped by 2 of 2 - When a change creates new public SDK behavior, do not expose it only through hard-coded module globals. …dropped by 2 of 2
- Keep model-specific settings inside the existing
model_settingsparameter. Preserve released constructor arguments, typed-object behavior, and provider request payloads when adding dictionary support.dropped by 2 of 2 - Treat threshold and quota values as part of the API design when they affect runtime behavior. Distinguish OpenAI platform quota-derived values from defensive SDK defaults; …dropped by 2 of 2
- Do not equate a broad Python or third-party protocol with support for every representable shape.dropped by 1 of 2
- When released compatibility is relevant, determine the latest release tag from
originfirst, falling back to local tags only when remote tags are unavailable. …dropped by 1 of 2 - Use this checkpoint only when feedback changes the scope contract or implementation shape. Reuse unchanged evidence instead of reconstructing it:dropped by 1 of 2
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- openai/openai-guardrails-jstheir own version, first seen Sep 10, 2026
- openai/openai-guardrails-pythonedited, first seen Aug 25, 2026
- pproenca/unifi-mcptheir own version, first seen Apr 7, 2026
- openai/openai-agents-jsedited, first seen Feb 3, 2026
Who's talking about openai/openai-agents-python
- langgenius/dify“Proposal: Package manager migration from `poetry` to `uv`”GitHub · Mar 20, 2025 · 10 reactions
- @stevenheidel.com“2025 is the year of agents. we're excited to bring you a new SDK and new tools to the API to help you build …”Bluesky · Mar 11, 2025 · 9 likes
- OpenHands/OpenHands“Proposal: Minimal Python SDK”GitHub · Aug 22, 2025 · 7 reactions
- A Hacker News story“OpenAI rejects 1,200-line community PR for Google's A2A agent protocol”Hacker News · Oct 30, 2025 · 6 points
- A Hacker News story“OpenAI Agents SDK”Hacker News · Mar 11, 2025 · 6 points
The biggest 5 of 65 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 65
Talked about on GitHub, Bluesky and Hacker News (65 times).
On GitHub · 50
- Mar 20, 2025Proposal: Package manager migration from `poetry` to `uv` — langgenius/dify10 reactions · 4 comments
- Aug 22, 2025Proposal: Minimal Python SDK — OpenHands/OpenHands7 reactions · 16 comments
- Jan 23, 2026feat(provider): support responses api for `@ai-sdk/openai-compatible` providers — anomalyco/opencode5 reactions · 3 comments
- Sep 2, 2025feat: fix #272 add memory feature — openai/openai-agents-js3 reactions · 13 comments
- May 20, 2026feat: add opt-in recovery for missing function tools — openai/openai-agents-js2 reactions · 1 comment
45 more on GitHub
- Jan 14, 2026Pydantic 2.12+ Serialization Warnings with Claude Models in openai-agents when using LiteLLM — BerriAI/litellm2 reactions · 17 comments
- Mar 11, 2025OpenAI Agents Framework instrumentation — pydantic/logfire2 reactions · 5 comments
- Oct 24, 2026chore(deps): bump openai-agents from 0.23.1 to 0.24.0 in /.github/requirements — bmdhodl/agent471 reaction · 2 comments
- Oct 10, 2026chore(deps): bump openai-agents from 0.22.3 to 0.23.1 in /.github/requirements — bmdhodl/agent471 reaction · 1 comment
- Sep 20, 2026docs: clarify Unix-local execution limits — openai/openai-agents-js1 reaction · 2 comments
- Aug 15, 2026Fail closed on provider redirects — arnavsri993/kestrel-agent1 reaction
- Aug 15, 2026feat: add trusted process environment values — openai/openai-agents-js1 reaction · 2 comments
- Aug 15, 2026fix(realtime): handle non-finite audio rates — openai/openai-agents-js1 reaction · 1 comment
- Aug 7, 2026feat(models): preserve raw usage payloads — openai/openai-agents-js1 reaction · 1 comment
- Aug 5, 2026feat(core): pass run context to custom sessions — openai/openai-agents-js1 reaction · 1 comment
- Aug 4, 2026fix(openai-agents): Patch correct `run_single_turn_streamed` reference — getsentry/sentry-python1 reaction · 1 comment
- Aug 2, 2026fix(realtime): apply output guardrails to text deltas — openai/openai-agents-js1 reaction · 1 comment
- Aug 2, 2026feat: support MCP SDK v2 negotiation — openai/openai-agents-js1 reaction · 1 comment
- Aug 2, 2026fix: include all paginated MCP tools — openai/openai-agents-js1 reaction · 1 comment
- Jul 31, 2026feat: preserve sandbox environment secret references — openai/openai-agents-js1 reaction · 1 comment
- Jul 29, 2026feat(runtime): Establish authoritative agent lifecycle — MLGBJDLW/Nexa1 reaction
- Jul 22, 2026fix(extensions): pin and verify rclone sandbox installs — openai/openai-agents-js1 reaction · 1 comment
- Jul 21, 2026fix(core): parse SELinux permission markers — openai/openai-agents-js1 reaction · 1 comment
- Jul 20, 2026feat(extensions): add Vercel cloud bucket mounts — openai/openai-agents-js1 reaction · 1 comment
- Jul 6, 2026feat: add invalid final output recovery handler — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): distinguish remote mount edit guidance — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): parse special permission bits by position — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): await sibling guardrails after failures — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): preserve empty array tool outputs — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): avoid reevaluating resolved tool approvals — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(realtime): prevent ambiguous tool dispatch — openai/openai-agents-js1 reaction · 1 comment
- Jun 12, 2026fix: expose sandbox error retryability metadata — openai/openai-agents-js1 reaction · 1 comment
- May 22, 2026feat: add SDK-only custom data for tool outputs — openai/openai-agents-js1 reaction · 1 comment
- May 10, 2026fix: align Chat Completions strict validation — openai/openai-agents-js1 reaction · 1 comment
- May 9, 2026fix(core): validate sandbox GitRepo subpaths — openai/openai-agents-js1 reaction · 1 comment
- Feb 19, 2026feat: support ImageContent in tool return value — livekit/agents1 reaction · 9 comments
- Feb 8, 2026OpenAI Agents integration crashes on startup with openai-agents >= 0.7.0 (AttributeError: AgentRunner._get_all_tools) — getsentry/sentry-python1 reaction · 2 comments
- Jan 22, 2026Missing extra_content.google.thought_signature — openai/openai-openapi1 reaction
- Dec 3, 2025Gemini 3 Pro: Multi-turn tool calls fail because thought_signature is not preserved via OpenAI compatibility layer — openai/codex1 reaction · 2 comments
- Nov 10, 2025Rely on OpenAI SDK for retry mechanism — Choice-of-Law-Dataverse/cold-case-analysis1 reaction
- Oct 31, 2025Subagent ideas — tidyverse/ellmer1 reaction · 4 comments
- Oct 29, 2025Please ship cloudflare/sandbox with stable Python ≥3.12 — cloudflare/sandbox-sdk1 reaction · 4 comments
- Oct 5, 2025Agentic workflow — Choice-of-Law-Dataverse/cold-case-analysis1 reaction
- Aug 11, 2025FunctionTool - Error Handling — nlpodyssey/openai-agents-go1 reaction
- Jul 9, 2025Allow agent to return logprobs — openai/openai-agents-js1 reaction · 3 comments
- Jun 20, 2025Plan for implementing OpenAI Agents SDK — InfinitIQ-Tech/GPT-Bridge1 reaction
- May 6, 2025Update pyproject.toml openai-agents minimal version to 0.0.14 — ed-donner/agents1 reaction · 1 comment
- Apr 6, 2025422 Validation failed when viewing most frequent contributor — github/github-mcp-server1 reaction · 2 comments
- Nov 23, 2026Request for unified action logging, replay, and audit across agent frameworks — JaredKlopstein/lacre0 reactions
- Nov 23, 2026Weekly spot-check 2026-11-23 — StefanKasamakov/ai-compass0 reactions
On Bluesky · 13
- Mar 11, 20252025 is the year of agents. we're excited to bring you a new SDK and new tools to the API to help you build your own agents.… — @stevenheidel.com9 likes and reposts
- Jun 28, 2025openai-agents-python A lightweight, powerful framework for multi-agent workflows. https://github.com/openai/openai-agents-python — @pythonhub.dev3 likes and reposts
- Apr 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 openai / openai-agents-python ⭐ 20,953 (+110) 🗒 Python A lightweight, powerful framework for… — @github-trending.bsky.social2 likes and reposts
- May 14, 2026🚀 GitHub Intelligence Drop gitleaks (Go • 🟢) ⭐ 26.9K → https://github.com/gitleaks/gitleaks openai-agents-python (Python • 🟢) ⭐ 26.3K →… — @githubfeed.bsky.social1 likes and repost
- May 12, 2026OpenAI just launched their Agents SDK with 25.6K stars at github.com/openai/open.... As someone who's built production harnesses for… — @therobertta.bsky.social1 likes and repost · 1 reply
8 more on Bluesky
- Mar 3, 2026https://github.com/openai/openai-agents-python — @tom-doerr.bsky.social1 likes and repost
- Jun 3, 2025They also released the Python version github.com/openai/opena... "It's a production-ready upgrade of our previous experimentation for… — @qianli.dev1 likes and repost · 1 reply
- May 14, 2025OpenAIのAgentSDK、早く試さないと… GitHub - openai/openai-agents-python: A lightweight, powerful framework for multi-agent workflows… — @mikoshibaq.bsky.social1 likes and repost
- Oct 20, 2026Stage 5: Patterns to production GenAI_Agents, 50+ agent tutorials (24k+ stars) github.com/NirDiamant/... OpenAI Agents SDK, open source… — @astrodevil1.bsky.social0 likes and reposts · 1 reply
- May 10, 2026Repo → https://github.com/openai/openai-agents-python 3. google/adk-python Google's Agent Development Kit. The official toolkit for… — @adityamitra.bsky.social0 likes and reposts · 1 reply
- Apr 30, 2026Source: github.com/openai/open.... The SDK is provider-agnostic — works with any LLM. That's a strategic choice. — @therobertta.bsky.social0 likes and reposts · 1 reply
- Apr 20, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 openai / openai-agents-python ⭐ 23,674 (+752) 🗒 Python A lightweight, powerful framework for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jun 11, 2025GitHub repo → github.com/openai/open... — @arindam-1729.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Oct 30, 2025OpenAI rejects 1,200-line community PR for Google's A2A agent protocol6 points · 3 comments
- Mar 11, 2025OpenAI Agents SDK6 points · 1 comment
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- openai/openai-agents-js★ 3.9k79% same
- openai/openai-guardrails-python★ 25783% same
Wrote their own version · 2
- openai/openai-guardrails-js★ 104same name
- pproenca/unifi-mcp★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- docs/ja/agents.mdAGENTS.md
- docs/ko/agents.mdAGENTS.md
- docs/zh/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- code-change-verificationSkill
- docs-syncSkill
- examples-run-analysisSkill
- final-release-reviewSkill
- implementation-final-reviewSkill
- implementation-kickoffSkill
- maintainer-reviewSkill
- openai-knowledgeSkill
- pr-draft-summarySkill
- release-candidate-prepSkill
- runtime-behavior-probeSkill
- sensitive-logging-auditSkill
- test-coverage-improverSkill
- credit-note-fixerSkill
- prior-auth-packet-builderSkill
- playwrightSkill
- csv-workbenchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. 0 are common, 29 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
29
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When released compatibility is relevant, determine the latest release tag from origin first, falling back to local tags only when remote …
- Distinctive: line 21
Before handoff, run the effectiveness check.
- Distinctive: line 32
If the intentionally unsupported cases cannot be stated clearly, do not start by adding a general resolver.
- Distinctive: line 38
Use this checkpoint only when feedback changes the scope contract or implementation shape.
- Distinctive: line 51
If a second related finding would add another condition, protocol hop, compatibility case, or test permutation to the same abstraction, …
- Distinctive: line 53
After a reset spec is frozen, classify each later finding as a violation of that spec, an evidence-backed reason to revise it, an …
- Distinctive: line 62
Do not equate a broad Python or third-party protocol with support for every representable shape.
- Distinctive: line 63
Prefer the nearest existing pipeline and one source of truth for schema, documentation, validation, identity, and invocation.
- Distinctive: line 64
Treat an interface as everything a caller must know to use the behavior correctly, including ordering, errors, lifecycle, configuration, …
- Distinctive: line 66
Add a replaceable boundary only for demonstrated variation, ownership, or testability.
- Distinctive: line 67
Add abstractions, state, classifications, branches, configuration, dependencies, or parallel paths only for a stated requirement, supported …
- Distinctive: line 68
Prefer deletion or direct replacement for unreleased code.
- Distinctive: line 69
Prefer an actionable construction- or validation-time error plus an existing alternative over partial protocol emulation.
- Distinctive: line 70
Keep unrelated refactors and pre-existing failures out of the patch.
- Distinctive: line 71
Test the required behavior, the nearest supported path, and one representative case per unsupported category rather than every …
- Distinctive: line 72
Call out changes to supported released behavior or durable formats in the plan and handoff.
- Distinctive: line 76
Stop extending the current design when:
- Distinctive: line 83
When a trigger fires:
- Distinctive: line 85
Stop editing and freeze the current revision for analysis instead of addressing comments one by one.
- Distinctive: line 87
Write a candidate finding-derived reset spec using those inputs.
- Distinctive: line 90
Delete machinery with no mapping, narrow the contract, and reject unsupported cases before side effects.
- Distinctive: line 94
Use this compact reset spec in the plan or working notes:
- Distinctive: line 114
Do not wait for the user or reviewer to request this reset when the signals are already present.
- Distinctive: line 118
Before declaring the design complete, answer all of these with concrete evidence:
- Distinctive: line 125
Do tests exercise the highest stable caller boundary that reproduces the required behavior, with expected values independent of the …
- Distinctive: line 126
Do the complete diff and tests cover the contract without making every constructible permutation supported?
- Distinctive: line 128
When a complexity reset occurred, does every retained abstraction, branch, and test map to the frozen reset spec, with later findings …
- Very specific: line 132
Treat released RunState, session persistence, and other explicitly durable serialized state as compatibility-sensitive across commits, …
- Distinctive: line 135
When a change creates new public SDK behavior, do not expose it only through hard-coded module globals.
- Very specific: line 137
Keep model-specific settings inside the existing model_settings parameter.
- Distinctive: line 139
Treat threshold and quota values as part of the API design when they affect runtime behavior.
- Distinctive: line 154
When this skill materially affects the implementation approach, state the decision briefly in your reasoning or handoff, for example:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Implementation Strategy
Workflow
- Identify the surface you are changing or reviewing: released public API, unreleased branch-local API, internal helper, persisted schema, wire protocol, CLI/config/env surface, or docs/examples only.
- When released compatibility is relevant, determine the latest release tag from
originfirst, falling back to local tags only when remote tags are unavailable. Reuse an already verified baseline within the task unless new release evidence or changed scope makes it stale:
Report a local-tag fallback as potentially stale.BASE_TAG="$(.agents/skills/final-release-review/scripts/find_latest_release_tag.sh origin 'v*' 2>/dev/null || git tag -l 'v*' --sort=-v:refname | head -n1)" echo "$BASE_TAG" - Record the implementation scope contract below before coding.
- Identify the nearest existing implementation pipeline and the functions, types, or modules that are the source of truth for each affected concern. Prefer adapting the required input into that pipeline over creating parallel schema, metadata, validation, naming, or execution machinery.
- Choose the smallest coherent change using the core decision rules. Add compatibility machinery only for a required supported boundary.
- Revisit the review gate when feedback changes supported behavior, compatibility, ownership, protocol paths, implementation shape, or test permutations, or triggers a complexity reset. Otherwise retain the scope contract and proceed with the focused fix.
- Before handoff, run the effectiveness check. If any answer is no, revise the design.
Implementation scope contract
Record these four items in the existing plan or working notes, and update them before widening or narrowing the implementation. A local fix can use one concise paragraph; mark unaffected dimensions as not applicable rather than inventing unsupported cases or creating another document:
- Required behavior: The smallest user-visible scenario that must work.
- Compatibility requirements: Supported released behavior or a durable boundary that must remain usable.
- Intentionally unsupported cases: Nearby inputs or shapes to reject, including when and how rejection occurs.
- Supported alternative: An existing wrapper, override, adapter, configuration, or lower-level API; state
nonewhen absent.
If the intentionally unsupported cases cannot be stated clearly, do not start by adding a general resolver. First define a narrower behavior contract. If no adequate supported alternative exists, add one only when the task requires it; do not invent one speculatively.
A released-version reproducer proves reachability, not support. Treat the exact shape as a compatibility requirement only when intentionally covered by public documentation, examples, tests, or typing; required by a durable boundary; or backed by concrete user reliance or maintainer intent. Otherwise record the risk and prefer early rejection with an existing supported alternative.
Review-feedback gate
Use this checkpoint only when feedback changes the scope contract or implementation shape. Reuse unchanged evidence instead of reconstructing it:
Review checkpoint:
- Root cause and required behavior:
- Compatibility evidence and unsupported cases:
- Source of truth:
- Behavior-space change: narrows / unchanged / widens
- Action: focused patch / complexity reset / reject as unsupportedClassify each finding as a required-behavior defect, supported compatibility requirement, another combination of the same implementation dimensions, or unrelated issue. Widening the behavior space requires new contract evidence.
If a second related finding would add another condition, protocol hop, compatibility case, or test permutation to the same abstraction, stop patching and run the complexity reset. Continue only when concrete evidence puts the exact case in the required or supported contract.
After a reset spec is frozen, classify each later finding as a violation of that spec, an evidence-backed reason to revise it, an intentionally unsupported case, or an unrelated issue. Do not resume incremental patching merely because the new finding is locally fixable.
Example: if successive findings require traversing a direct wrapper, partial, nested wrapper, descriptor, and bound method, do not add another hop. Unless arbitrary wrapper graphs are supported, retain the required plain callable behavior and reject ambiguous wrappers before invocation.
Core decision rules
- Preserve released public APIs, documented behavior, and supported durable boundaries, or provide an explicit migration path.
- Rewrite branch-local interfaces, internal helpers, same-branch tests, and post-release additions on
maindirectly unless they already define a supported durable boundary. - Unreleased persisted schema versions may be renumbered or squashed when intermediate snapshots are intentionally unsupported; update the support set and tests together.
- Do not equate a broad Python or third-party protocol with support for every representable shape.
- Prefer the nearest existing pipeline and one source of truth for schema, documentation, validation, identity, and invocation.
- Treat an interface as everything a caller must know to use the behavior correctly, including ordering, errors, lifecycle, configuration, and performance constraints when relevant; do not judge its size from the signature alone.
- Apply the deletion test before retaining a new abstraction: keep it when removing it would distribute required complexity across callers, but remove it when the complexity itself would disappear.
- Add a replaceable boundary only for demonstrated variation, ownership, or testability. One hypothetical adapter or a test-only indirection is not enough when the existing pipeline already provides a stable boundary.
- Add abstractions, state, classifications, branches, configuration, dependencies, or parallel paths only for a stated requirement, supported contract, or verified risk.
- Prefer deletion or direct replacement for unreleased code. Treat branch-local implementation and tests as disposable.
- Prefer an actionable construction- or validation-time error plus an existing alternative over partial protocol emulation.
- Keep unrelated refactors and pre-existing failures out of the patch.
- Test the required behavior, the nearest supported path, and one representative case per unsupported category rather than every constructible permutation.
- Call out changes to supported released behavior or durable formats in the plan and handoff.
Complexity reset
Stop extending the current design when:
- Related findings keep combining the same dimensions, such as wrappers, descriptors, generics, binding, context injection, sync/async classification, or provider variants.
- The patch interprets a host-language or third-party protocol, or separately infers representations that can drift.
- A narrow requirement needs recursive resolution, cached modes, new state, or unrelated subsystem changes.
- Tests enumerate mechanics or the full diff keeps growing while the required scenario remains small.
When a trigger fires:
- Stop editing and freeze the current revision for analysis instead of addressing comments one by one.
- Group findings by root cause and re-read the original requirement, scope contract, and supported release or durable boundaries.
- Write a candidate finding-derived reset spec using those inputs. Do not treat accumulated review explanations, branch-local machinery, or same-branch tests as requirements.
- Audit the candidate spec against every affected entry point and the nearest existing supported paths. Revise it as needed, then freeze it before resuming edits.
- Compare the complete diff with the intended merge base or latest release tag, and map each abstraction, branch, and test to the frozen spec as
retain,replace, ordelete. - Delete machinery with no mapping, narrow the contract, and reject unsupported cases before side effects.
- Rebuild tests around required behavior, supported compatibility, cross-entry-point consistency, and representative unsupported categories.
- Evaluate later findings against the frozen spec. Stop and record new contract evidence before changing the spec or widening the behavior space.
Use this compact reset spec in the plan or working notes:
Finding-derived reset spec:
- Original required outcome:
- Supported release or durable boundaries:
- Grouped findings and common root cause:
- Invariants across affected entry points:
- Allowed states and behavior:
- Rejected states, failure timing, and side-effect boundary:
- Trusted and untrusted boundaries:
- Single sources of truth:
- Persistence, resume, cleanup, or other lifecycle semantics:
- Non-goals and supported alternatives:
- Representative test categories:
- Diff reset: retain / replace / delete:The candidate spec is a falsifiable design hypothesis, not a record of the current implementation. The audit may correct it before it is frozen. Once frozen, require explicit evidence to revise it and re-run the complete diff mapping after any revision.
Do not wait for the user or reviewer to request this reset when the signals are already present.
Effectiveness check
Before declaring the design complete, answer all of these with concrete evidence:
- Can the required behavior be described without naming internal helper types or reflection mechanics?
- Does the implementation reuse the nearest existing pipeline rather than maintain a parallel interpretation?
- Does every new abstraction and branch map to the scope contract or a verified risk?
- Would deleting each new abstraction merely push required complexity into multiple callers, and does each new boundary correspond to demonstrated variation, ownership, or testability?
- Are unsupported neighboring cases rejected before side effects with an existing alternative identified?
- Do tests exercise the highest stable caller boundary that reproduces the required behavior, with expected values independent of the implementation logic?
- Do the complete diff and tests cover the contract without making every constructible permutation supported?
- Does the latest review revision shrink or preserve the behavior space rather than widen it without evidence?
- When a complexity reset occurred, does every retained abstraction, branch, and test map to the frozen reset spec, with later findings classified against it?
SDK-specific decision rules
- Treat released
RunState, session persistence, and other explicitly durable serialized state as compatibility-sensitive across commits, processes, and machines. - When unsupported OpenAI API or provider-adapter behavior already has a released default path, avoid turning it into a default hard error unless the latest release boundary justifies that break. Prefer an opt-in strict mode such as
strict_feature_validation=True, while keeping the default path compatible through warning, ignoring unsupported data, or a clearly non-empty placeholder. - For OpenAI API feature gaps, evaluate streaming and non-streaming paths together. Custom tool calls, multi-choice Chat Completions chunks, non-text tool outputs, and similar provider payload differences must not be strict in one path and permissive or malformed in the other.
- When a change creates new public SDK behavior, do not expose it only through hard-coded module globals. Prefer an explicit public configuration object or parameter, preserve the existing default behavior when compatibility-sensitive, and make opt-in SDK defaults explicit.
- For SDK-owned public configuration, accept existing typed objects and equivalent dictionaries at the public input boundary while preserving the internal typed representation. Respect the owning model's validation and extra-field policy instead of recreating arbitrary third-party schema semantics.
- Keep model-specific settings inside the existing
model_settingsparameter. Preserve released constructor arguments, typed-object behavior, and provider request payloads when adding dictionary support. - Append new optional fields or constructor parameters to public dataclasses and constructors. Do not insert them before existing public fields unless you also provide a compatibility layer and regression coverage for the old positional call shape.
- Treat threshold and quota values as part of the API design when they affect runtime behavior. Distinguish OpenAI platform quota-derived values from defensive SDK defaults; if the value is not anchored in a documented platform limit, avoid making it an unconditional default-on behavior.
- Define
Nonesemantics deliberately for public configuration. For example, use separate meanings for "feature disabled or no SDK limit", "use SDK default limits", and "disable only this specific limit" rather than relying on implicit truthiness checks.
When to stop and confirm
Confirm a consequential choice below only when it is not already resolved by the user's request or an approved scope contract. Ordinary remediation within that contract continues through review and verification.
- The change would alter supported behavior shipped in the latest release tag, or concrete evidence shows material reliance on behavior that the release incidentally accepted.
- The change would modify durable external data, protocol formats, or serialized state.
- The correct solution would materially expand beyond the requested outcome or require unrelated architectural work.
- A complexity reset trigger fires and the narrower replacement would change an already released supported contract rather than branch-local code.
- The user explicitly asked for backward compatibility, deprecation, or migration support.
Output expectations
When this skill materially affects the implementation approach, state the decision briefly in your reasoning or handoff, for example:
Compatibility boundary: latest release tag v0.x.y; branch-local interface rewrite, no shim needed.Implementation scope contract: support X; preserve Y; reject Z before side effects; use supported alternative W, or none exists.Complexity reset: repeated edge-case combinations show the approach is too broad; redesign from the original requirement instead of adding another branch.Finding-derived reset spec: findings F1-F3 expose invariant X across entry points A-C; freeze that contract, delete unmapped machinery, and review later findings against it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

