Remove the size-based human approval gate
This pull request was posted by Codex Desktop using gpt-6-astra on behalf of David.
Why we make these changes
Remove the extra size-based human approval gate introduced in #11727. Keep the existing clean current-head douwebot requirement and size-label validation.
New public surface
None. Retires the Gate: human approval status context and its permission lookup.
User-visible behavior
Before: L/XL required clean douwebot approval plus another human approval. After: M/L/XL require clean douwebot approval alone. Size validation, reviewer authorization, and CODEOWNERS protections retain their existing behavior.
Verification
89 targeted tests in .github/scripts/test_pr_gates.py pass, including L/XL with bot approval alone and rejection of stale, unqualified, or untrusted bot reviews. Touched-file Pyright, Ruff, and all commit hooks pass. Fresh independent pre-push review returned no findings.
What changes for existing users
No library API changes. PR size no longer adds a human approval requirement. The live main ruleset requires only check, so removing this status needs no repository-setting change. The workflow executes default-branch code; the removal takes effect after merge.
PR decisions
2026-10-30 · pre-push review 1 of 3 at 53873ab36 · iter -
- Decision: Reserved fresh light-tier review; outcome pending.
- Why: Full branch scope ac506e7d98b7c5dd87ba4cadfdcea6ffa4c519f7 to candidate; policy base f395eeacc076eb88021d4e6fb85a2ffadceffee1.
- Source: https://github.com/dsfaccini/pydantic-ai/tree/codex/remove-size-human-approval
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 1 of 3 at 53873ab36 — blocked before verdict · iter -
- Decision: No verdict: approved model API retry failed with 401 Unauthorized, missing bearer or basic authentication. Stop before push per dispatch.
- Why: Reviewed tree anchor cb6a313f28112596c79c24b1e4a0728e43f0fc51; no review result produced; no push attempted.
- Source: https://github.com/dsfaccini/pydantic-ai/tree/codex/remove-size-human-approval
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 1 of 3 at 53873ab3696bb9f89eb8b33bc9ebc9d69c7afecf — clean · iter -
- Decision: No findings: current at 53873ab3696bb9f89eb8b33bc9ebc9d69c7afecf. Fresh ephemeral Luna/high reviewer from stable policy checkout, read-only.
- Why: Reviewed tree cb6a313f28112596c79c24b1e4a0728e43f0fc51; full scope ac506e7d98b7c5dd87ba4cadfdcea6ffa4c519f7..53873ab3696bb9f89eb8b33bc9ebc9d69c7afecf; policy f395eeacc076eb88021d4e6fb85a2ffadceffee1.
- Source: https://github.com/dsfaccini/pydantic-ai/tree/codex/remove-size-human-approval
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 2 of 3 at 207a37a2c1a5dc378438d17dbb2c3e7c18646fb5 · iter -
- Decision: Reserved scoped review of hosted-review remediation; outcome pending.
- Why: Candidate tree f138fc38b96c5c044cd7b4c5cd370aaf2bc6a0d9; delta from reviewed 53873ab3696bb9f89eb8b33bc9ebc9d69c7afecf; policy base 2c8d1951979597b3f265b2586a1854178d801469.
- Source: https://github.com/pydantic/pydantic-ai/pull/11933
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 2 of 3 at 207a37a2c1a5dc378438d17dbb2c3e7c18646fb5 — clean · iter -
- Decision: No findings: current at 207a37a2c1a5dc378438d17dbb2c3e7c18646fb5. Fresh ephemeral Luna/high reviewer, read-only in stable policy base.
- Why: Tree f138fc38b96c5c044cd7b4c5cd370aaf2bc6a0d9; reviewed delta 53873ab3696bb9f89eb8b33bc9ebc9d69c7afecf..207a37a2c1a5dc378438d17dbb2c3e7c18646fb5 plus affected callers; policy 2c8d1951979597b3f265b2586a1854178d801469.
- Source: https://github.com/pydantic/pydantic-ai/pull/11933
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 3 of 3 at 57957debc3010cfc69683e3dab8bf9752fbe8f64 · iter -
- Decision: Reserved fresh review after requested main merge and scoped policy conflict resolution; outcome pending.
- Why: Tree 1a4a4939b54f121713fd9628e322e8a293133c5c; previous reviewed 207a37a2c1a5dc378438d17dbb2c3e7c18646fb5; policy/merge base 2c8d1951979597b3f265b2586a1854178d801469. Preserve named-maintainer guidance from #11916.
- Source: https://github.com/pydantic/pydantic-ai/pull/11933
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · pre-push review 3 of 3 at 57957debc3010cfc69683e3dab8bf9752fbe8f64 — clean · iter -
- Decision: No findings: current at 57957debc3010cfc69683e3dab8bf9752fbe8f64. Fresh ephemeral Luna/high reviewer from stable policy base, read-only.
- Why: Reviewed tree 1a4a4939b54f121713fd9628e322e8a293133c5c; delta 207a37a2c1a5dc378438d17dbb2c3e7c18646fb5..57957debc3010cfc69683e3dab8bf9752fbe8f64 with inherited upstream diff supplied; main/merge base 2c8d1951979597b3f265b2586a1854178d801469. Three-review budget consumed.
- Source: https://github.com/pydantic/pydantic-ai/pull/11933
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
2026-10-30 · No additional review · iter -
- Decision: David selected no additional review after CI and clean current-head douwebot approval.
- Why: Required reviews and final metadata check are complete on 57957debc3010cfc69683e3dab8bf9752fbe8f64.
- Source: https://github.com/pydantic/pydantic-ai/pull/11933
- Session: 01a18a11-6347-7a70-bcf5-0623296161a9
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.