Review every PR head with the `PR Review Checks` workflow, one OpenCode job per check
This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.
- Closes #11233
Why we make these changes
PR Review Checks is a new required check that reviews every pull request head with a read-only model, one job per check. It replaces the gh-aw Pydantic AI UI Security Review, which covered only the UI boundary, skipped forks with a green status, was not required, and audited every file of a PR when one UI path matched (#12735). This PR removes that workflow, its prompt and its tests.
New public surface: none. The PR changes CI, THREAT_MODEL.md and contributor instructions only.
User-visible behavior
Before, a PR got a review only when it touched a UI path, the review could not block a merge, and a fork PR passed with a green skip. After, PR Review Checks reviews every head:
pr-review-checks.ymlruns default-branch code onpull_request_target. The head is checked out as data underpr-head/, with its agent instruction files deleted..github/scripts/pr_review_checks.pyselects the checks from the head'sgit diff, so no API file cap can hide a file. Each check is one config entry plus one prompt fragment under.github/pr-review-checks/prompts/:general: every changed source, workflow (generated*.lock.ymlincluded) and configuration file no other check owns, plusTHREAT_MODEL.md, everyAGENTS.mdandCLAUDE.md, every file under anagent_docs/,.agents/,.claude/or.opencode/directory, and a file renamed from oneurl-fetch: URL fetching, downloads, provider file references, browser egressui: the UI adapter boundary and CLAI 2's local web UI, scoped to the files that selected ittelemetry: instrumentation and its content controlssandboxes: sandboxes, workspaces, shells and Code Mode (review only)tests-and-dependencies: tests, cassettes, dependency manifests and lockfiles, held to the repository's testing and dependency rules
- Each check runs OpenCode (
opencode-go/deepseek-v4.1-flash) with read, grep and glob only, reusing douwebot's setup, lockdown and symlink checks. Its prompt lists and diffs only its own files; the read tools reach both checkouts to trace callers. .github/CODEOWNERS'/.github/entry covers.github/pr-review-checks/, so a prompt change requests its owner's review.- A trusted default-branch publisher validates each finding against its check's files, posts one
COMMENTreview when there are findings, and sets thePR Review Checkscommit status on the head.
Verdict
- Inline findings go only on lines the PR adds or removes. Each review job drops any other finding, and any finding on a file outside its check, before it uploads its result, keeping only a count by severity. The publisher also drops a finding on a file whose patch GitHub omitted, and the job log counts every dropped finding. A dropped
criticalorhighfinding marks its checkINCOMPLETEand fails the status without being published. A droppedmediumfinding leaves the verdict unchanged. - A finding an earlier run already posted on the same line text, with the same check, severity and body, is not posted again. The status still counts it. A repeat the model rewords posts again, and findings that fall back into the review body after GitHub rejects the inline comments (HTTP 422) are not deduplicated.
- Fails on a
criticalorhighfinding, anINCOMPLETEcheck, or a check that did not report.mediumfindings are inline only. - A user with write access applies
pr-review-checks:acceptedto pass the current head anyway. A push, or any other event that reviews the head again, removes it. - The merge group gets success without a review; every head was reviewed before admission.
- Drafts are reviewed too.
- An author without write access, or an app, gets a failing "Awaiting maintainer" status until a user with write access applies
pr-review-checks:run. The label then holds across pushes. Nothing is skipped with a green status.
Residual risk: findings and the coverage summary are public. Placing findings only on changed lines limits where they point, but only the prompt keeps a vulnerability that already exists on the default branch out of their text and in the private triage report. Each check's result artifact holds only the findings on changed lines, kept for 7 days; a finding off them leaves the review job only as a count by severity. A blocking finding the model places off the changed lines fails the status as INCOMPLETE with nothing posted or uploaded, and a maintainer who finds the head sound applies pr-review-checks:accepted. The private triage report is model output the head's author can steer, so it reaches Slack escaped, capped at 3,000 characters and quoted in a code block.
Budgets: each check stops at 100 steps or 25 minutes and then reports INCOMPLETE. These are permissive starting values, set above the largest run of the review this replaces (108 model calls, about 26 minutes of agent time), so first runs do not fail early. They are set per check in pr_review_checks.py. There is no token cap. Each review records its steps, tokens and duration in the job summary, in the review it posts, and in Logfire, so the budgets can be tuned down.
Telemetry: with LOGFIRE_TOKEN set, OpenCode 2.2.5 exports its own spans and logs over OTLP/HTTP JSON, and the runner exports one span per review with its outcome, steps, tokens and duration. OpenCode's spans carry no prompt or completion text and no token counts.
Verification: test_pr_review_checks.py covers selection, test_run_pr_review_check.py the review job, and test_publish_pr_review_checks.py the publisher; ci.yml runs all three. Each check also ran against a real PR:
Proof runs
A temporary pr-review-checks-proof.yml, removed in a later commit, dry-ran each check against one open PR that touches its paths (run). It posted nothing to those PRs. Detection selected the check in every job, and every review completed:
| Check | PR | Outcome | Findings | Steps | Tokens | Seconds |
|---|---|---|---|---|---|---|
general | #11877 | COMPLETE | 0 | 6 | 111,501 | 30 |
url-fetch | #12440 | COMPLETE | 0 | 17 | 624,516 | 129 |
ui | #11956 | COMPLETE | 0 | 19 | 1,151,990 | 161 |
telemetry | #12756 | COMPLETE | 0 | 29 | 1,477,321 | 376 |
sandboxes | #12642 | COMPLETE | 0 | 18 | 906,331 | 231 |
tests-and-dependencies | #11777 | COMPLETE | 0 | 27 | 2,088,369 | 152 |
What changes for existing users: nothing for library users; once PR Review Checks is required (step 2 below), every PR needs it to pass, and an outside author's PR waits for pr-review-checks:run.
THREAT_MODEL.md: adds secrets in configuration, history round-trip type promotion, and a "Repository CI and agentic workflows" boundary, with failure-pattern rows for the first two. "Keeping this model current" now points new input paths at this workflow's checks.
tests/AGENTS.md: states the two rules the tests-and-dependencies check fails as high: every cassette is recorded by its own test, and a raised dependency floor carries its reason in a comment next to the requirement. The add-new-model skill's SDK-bump step now asks for that comment.
For a maintainer
- Before merge: create the
pr-review-checks:runandpr-review-checks:acceptedlabels. Done. - Once
PR Review Checkshas posted on a PR after merge: Settings → Rules → Rulesets →main→ "Require status checks to pass" → Add checks →PR Review Checks. Adding it before then blocks every PR. - Delete the settings the old review used: the
UI_SECURITY_REVIEW_SKIP_BRANCHESrepository variable, the Logfire managed variablegh_aw_pydantic_ai_ui_security_review_prompt, and theui-security-review-failedlabel.
PR decisions
2026-11-08 · pre-push review 1 of 3 at a88df7a9863713cc1c52db429d8bfebc3f047205 · iter -
- Decision: reserved; outcome follows
- Why: tree c4ea70d40da1b34b2adb06393273981fa9902a93; full branch 0f7648a1b0..a88df7a986; first review
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · pre-push review 1 of 3 at a88df7a9863713cc1c52db429d8bfebc3f047205 · iter -
- Decision: remediated in e57b44705f7e493828ceff0f5fe04e3c0e909efe: model text kept out of job logs; review job runs default-branch code; publisher failure fails the status; quoted patch paths parsed; AGENTS.md read-scope wording. Skipped: url-fetch prompt wording (true for provider files; approved text), Naming-table row (that table is the standards-review role)
- Why: reviewed tree c4ea70d40da1b34b2adb06393273981fa9902a93
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · pre-push review 2 of 3 at e57b44705f7e493828ceff0f5fe04e3c0e909efe · iter -
- Decision: reserved; outcome follows
- Why: tree 6d73ff03a6e5881ed26b532999dc516d23169664; delta a88df7a986..e57b44705f plus review-1 findings
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · pre-push review 2 of 3 at e57b44705f7e493828ceff0f5fe04e3c0e909efe · iter -
- Decision: remediated in 02e12260d82659e55e2560713699002278392202: all step_tokens validation wrapped; out-of-scope findings logged as a count; tab stripped from spaced patch paths; AGENTS.md content-only and read-scope wording. Not changed: shared.md says the root is the base branch while the runner checks out the default branch (equal for PRs into main; approved text, raised with the manager)
- Why: reviewed tree 6d73ff03a6e5881ed26b532999dc516d23169664
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · pre-push review 3 of 3 at 02e12260d82659e55e2560713699002278392202 · iter -
- Decision: reserved; outcome follows
- Why: tree 3c10486b2458432fabf28f29d4175de8dfa8f5fb; delta e57b44705f..02e12260d8 plus review-2 findings
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · pre-push review 3 of 3 at 02e12260d82659e55e2560713699002278392202 · iter -
- Decision: remediated in e3fa92bc170ee127f74d6af915a514a841825fd4 (budget spent; no fourth review): CODEOWNERS owns .github/pr-review-checks/; review job fetches BASE_SHA; publisher logs a count of out-of-scope paths; AGENTS.md lock.yml exception; quoted+spaced path and out-of-scope message tests. Skipped: rewording wip: subjects (squash merge). Raised with David: root instruction files select no check; findings and coverage text are public by design
- Why: reviewed tree 3c10486b2458432fabf28f29d4175de8dfa8f5fb; remediation checked locally (5 script test files pass, ruff, pyright, actionlint, zizmor)
- Source: https://github.com/pydantic/pydantic-ai/tree/feat/security-review-checks
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Fork and outside-author PRs wait for a maintainer · iter -
- Decision: An author without write access, or an app, gets the status failing 'Awaiting maintainer' until a write user applies pr-review-checks:run; "Never skip forks with a green status."
- Why: David's design answer
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Step and wall-clock caps only · iter -
- Decision: 100 steps and 25 minutes per check, configurable per check; "no token cap"; tokens are telemetry
- Why: David delegated the numbers; permissive starting values, set above the largest run of the review this replaces
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Retire the gh-aw UI review in this PR · iter -
- Decision: Apply the retirement only after the new ui check's proof run passes
- Why: David's design answer
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Verdict, override and telemetry · iter -
- Decision: Fail on critical/high/INCOMPLETE/missing result; medium inline only; pr-review-checks:accepted per head; OTEL export to Logfire with LOGFIRE_TOKEN
- Why: David's design answer
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Add a tests-and-dependencies check; review drafts · iter -
- Decision: High = hard repo-rule violation; medium = everything else; drafts are reviewed
- Why: David's second answers
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Instruction text approved as written · iter -
- Decision: David approved the prompt set, the reworded lines and the THREAT_MODEL.md additions as written
- Why: Sign-off before the PR opened
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · One status context named PR Review Checks · iter -
- Decision: Renamed from Security Review; one context covers every check, so a tests-and-dependencies high fails it
- Why: David's choice at sign-off
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · shared.md names the default branch · iter -
- Decision: Change "base branch" to "default branch" in the three shared.md lines; "Change nothing else in the approved text."
- Why: The runner checks out the default branch; David chose "Yes, correct it"
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Instruction files run the general check · iter -
- Decision: A change to THREAT_MODEL.md, the root AGENTS.md/CLAUDE.md, or any */AGENTS.md runs general, "even when it's the only change"; general reviews them even when another check owns the path, and */CLAUDE.md too
- Why: David chose "Yes, run general"
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Inline findings only on changed lines · iter -
- Decision: Accept the residual disclosure risk; the publisher posts inline findings only on lines the PR adds or removes, drops the rest from the review and the verdict, and counts them in the job log; the free-text summary stays
- Why: David chose "Accept + changed lines only"; dropping rather than rejecting keeps a misplaced line from failing the whole check
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at 6484054919d068508e1dbc1c352a8692d03b63ac · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta e3fa92bc17..6484054919: UI review retirement (manager-approved after proof run 42489123172), proof workflow removal, David's three answers; targeted tests pass apart from the known local Python 3.14 ResourceWarning in test_agent_spend_report.py
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Drop, not reject, confirmed · iter -
- Decision: A finding outside the changed lines "must not fail the status"; the job log counts the dropped ones
- Why: Manager's call, relayed for David
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at 6b33158416 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 6484054919..6b33158416 remediates five bot findings (lock files reviewed, renamed instruction files, no-patch blocking finding -> INCOMPLETE, omitted diff names, symlinked instruction dirs) and catalogs the two new labels; targeted script tests, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Generated workflow locks run the general check · iter -
- Decision: Removed the lock.yml exemption; general reviews a changed *.lock.yml
- Why: Actions runs the lock and nothing checks it matches its .md source; approved scope is every PR except docs-only; two bot reviewers converged
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506551777
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · No patch is not outside the changed lines · iter -
- Decision: A critical/high finding on a file whose patch GitHub omitted, or that the files listing left out, marks its check INCOMPLETE; medium ones are dropped
- Why: Unknown changed lines must not pass a blocking finding; blocking-only keeps large uv.lock patches from failing on medium findings
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506740231
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · A dropped blocking finding fails closed · iter -
- Decision: A dropped critical or high finding marks its check INCOMPLETE, so the status fails; nothing extra is published and pr-review-checks:accepted still overrides; dropped medium findings stay dropped and counted. shared.md line replaced with David's approved text
- Why: David chose A: fail closed; supersedes 'a finding outside the changed lines must not fail the status' for critical and high findings
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506770690
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at 4acd7a95fb · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 6b33158416..4acd7a95fb applies David's choice A (dropped blocking finding -> INCOMPLETE, approved shared.md line); targeted script tests, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at 24e1a5e384 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 4acd7a95fb..24e1a5e384 splits diffs only at LF in detect, runner and publisher (two bot findings on the publisher; the same fault in detect and the runner is this PR's own new code); targeted script tests, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506970663
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · Runner regenerates colliding shared diffs · iter -
- Decision: When two changed files map to one shared diff name, run_pr_review_check.py regenerates each from git under a reversible name; the root cause in gather-review-context.sh stays out of this PR and the manager raises its fix separately
- Why: Manager's call (option A): a crafted root-level file must not replace another file's diff in a check's context
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506981236
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at bade927cf9 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 24e1a5e384..bade927cf9 adds the manager-approved collision guard in write_context and its test; targeted script tests, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4506981236
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-08 · push past the spent review budget at d18a773339 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: merge of upstream/main (#10347 conflicts: kept the UI review deletion, took detection in the CI Review failure-label needs, merged the completion-validator sentence) plus the compiled-limits test no longer reading the deleted workflow; guard check and targeted tests pass apart from the known local Python 3.14 HTTPError leaks in test_agent_provider_health.py
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Remove the retired UI review's concurrency branch · iter -
- Decision: Removed the Pydantic AI UI Security Review per-PR concurrency branch from shared/engine-zai.md and its AGENTS.md sentence; recompiled the 13 importing locks with gh aw compile --action-mode action --action-tag v1.2.1 (each lock changes only the group line and its metadata hash)
- Why: David chose option A and approved upgrading the global gh-aw extension to v1.2.1; leaving AGENTS.md describing a deleted workflow ships docs that disagree with the code
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at 8121596c16 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta d18a773339..8121596c16: manager-approved option A, engine-zai.md group simplified, AGENTS.md sentence removed, 13 locks recompiled with v1.2.1 (group line and metadata hash only); guard and compiled-lock tests pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Reword the pr-review marker comment · iter -
- Decision: The CI Review marker comment names douwebot and PR Review Checks instead of the retired UI review; recompiled pydantic-ai-pr-review with gh-aw v1.2.1 (comment and metadata hash only). #12894 also recompiles pydantic-ai-pr-review.lock.yml, so whichever PR merges second recompiles
- Why: Manager's call: an example naming a deleted workflow is stale text, and this PR deletes the workflow
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at bc752e3a64 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 8121596c16..bc752e3a64: comment-only rewording in pydantic-ai-pr-review.md and its recompiled lock; guard passes
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Decode @tsv paths after #12894 · iter -
- Decision: Whichever of #12859 and #12894 merges second makes run_pr_review_check.py decode the @tsv-escaped column 1 of changed-files.txt before comparing it to the API filenames, with a test for an escaped path
- Why: #12894 builds changed-files.txt with jq @tsv, which escapes backslash, tab, newline and CR in paths; the runner compares column 1 verbatim
- Source: https://github.com/pydantic/pydantic-ai/pull/12894
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at ec42631a0b · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta bc752e3a64..ec42631a0b: three douwebot findings (shim coverage rule names only CI Review, findings labelled by check, stale lock-exemption comment removed); shim, publisher and selection tests pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4508573106
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Instruction trees run the general check · iter -
- Decision: is_instructions also covers any path under an agent_docs/, .agents/, .claude/ or .opencode/ directory (the INSTRUCTION_DIRECTORIES the runner strips, now one shared constant), so a change there runs general even when it is the only change; packaged skills under pydantic_ai_slim/.../.agents/ included
- Why: David chose option A: this PR already treats those trees as the instruction layer (the runner strips them; shared.md names agent_docs/ as policy); .opencode/ rides along with the shared constant and was already reviewed as non-content
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4508573099
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Instruction trees run the general check (attribution corrected) · iter -
- Decision: is_instructions also covers any path under an agent_docs/, .agents/, .claude/ or .opencode/ directory (the INSTRUCTION_DIRECTORIES the runner strips, now one shared constant), so a change there runs general even when it is the only change; packaged skills under pydantic_ai_slim/.../.agents/ included
- Why: Manager's call (option A), following the PR's own instruction-layer policy (the runner strips those trees; shared.md names agent_docs/ as policy) and David's earlier decision to run general on root instruction files; .opencode/ rides along with the shared constant and was already reviewed as non-content
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4508573099
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
- Supersedes: Instruction trees run the general check
2026-11-09 · push past the spent review budget at f7f71083a4 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta ec42631a0b..f7f71083a4: merge of upstream/main (#12930 deleted attention-triage; took the deletion of its recompiled lock) and the manager's option A for instruction trees; guard and five script test files pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at ec97bc3974 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta f7f71083a4..ec97bc3974: ownership from the destination path only (veria finding, reproduced: a tests/ helper renamed into the library selected only tests-and-dependencies); three script test files pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4508652898
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Runner decodes the @tsv path column · iter -
- Decision: write_context decodes jq @tsv escapes (backslash, tab, newline, CR) in column 1 of changed-files.txt before matching it against the check's paths, splits rows only at LF, and keeps the escaped form in the check's own list; the collision guard stays as a check on the list's contents
- Why: #12894 merged first (9860083cea), so this PR merges second and owes the decode
- Source: https://github.com/pydantic/pydantic-ai/pull/12894
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at d67d71ad20 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta ec97bc3974..d67d71ad20: merge of upstream/main with #12894 (kept the UI review deletions, recompiled all locks with v1.2.1; each differs from main only in the group line, metadata hash and the pr-review comment) and the @tsv decode; guard and six test files pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12894
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · Every new review removes the acceptance · iter -
- Decision: gate removes pr-review-checks:accepted whenever it goes on to write a new status for the head (push, base change, reopen, run label), not only on synchronize
- Why: douwebot optional finding: a re-review of the same head overwrote the accepted status but left the label on, so the PR showed 'accepted' next to a failing status and the label could not be re-applied
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513313214
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · push past the spent review budget at 6b399661e7 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta d67d71ad20..6b399661e7: gate removes the acceptance on every new status for the head (douwebot optional finding); three script test files pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513313214
- Session: 19aef37e-a93c-4342-a14c-2e4aaede92d0
2026-11-09 · tests-and-dependencies high list follows repo rules · iter -
- Decision: Keep 'a cassette its own test did not record' and 'a dependency floor raised with no reason' as high and write both into tests/AGENTS.md as repo rules; move the copied or hand-edited cassette signs and the model-mismatch item to medium
- Why: David chose option A on douwebot's finding that three high items rested on no repo rule
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513313205
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · tests/AGENTS.md cassette and floor rules approved · iter -
- Decision: David approved both rules with one edit, 'no "or in the pull request body"': a raised floor gives its reason in a comment next to the requirement; the tests-and-dependencies high item now says the same
- Why: Option A needs the two high items stated as repo rules; David signs off on CE text
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513313205
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · push past the spent review budget at 3eeb56ee3f · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 6b399661e7..3eeb56ee3f: David's option A (copied-cassette signs and model mismatch to medium) and his approved tests/AGENTS.md rules; instruction text only; guard passes
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513313205
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · push past the spent review budget at 7ea509183d · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 3eeb56ee3f..7ea509183d: merge of upstream/main with #12893 (douwebot_opencode_run.py: upstream run_read_only builds its config through this PR's read_only_config, which now takes the agent name; kept the UI review deletions; ci.yml lists both test sets; 12 locks recompiled with v1.2.1, each differing from main only in the group line, metadata hash and the pr-review comment); guard, pyright and seven script test targets pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12893
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · Off-line findings never reach the public artifact · iter -
- Decision: The review job drops a finding off the changed lines before it uploads its result, keeping only a count by severity in CheckResult.dropped; the publisher marks the check INCOMPLETE when a critical or high one was dropped and still drops a finding outside GitHub's patch
- Why: David: 'yes, if veria pointed out a valid gap, we should fix it'; result artifacts are public and held every finding, dropped ones included
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513402599
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · push past the spent review budget at c2b55dc469 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 7ea509183d..c2b55dc469: David's fix for the Veria artifact finding (review job drops off-line findings and counts them by severity; publisher fails a dropped blocking one); five script test files, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4513402599
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · push past the spent review budget at 978010109d · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); test-only delta; hosted douwebot review covers this head
- Why: delta c2b55dc469..978010109d: test_pr_gates.py builds CheckResult with the new required dropped field (CI quality checks failed on c2b55dc469); test_pr_gates.py and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/actions/runs/42656880825
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · A finding outside the check's files is dropped, not rejected · iter -
- Decision: The runner counts a finding on a file outside its check in dropped by severity instead of raising; a dropped critical or high still marks the check INCOMPLETE; the publisher's load_results check stays
- Why: douwebot blocking finding: a misplaced medium finding failed the whole status as 'No result'; David's 'dropping rather than rejecting keeps a misplaced line from failing the whole check' covers a misplaced file
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4516182044
- Session: 1d7a9af1-a937-4013-800e-35ed862a06a8
2026-11-09 · Sandboxes check covers every backend · iter -
- Decision: Widen the sandboxes trigger to ([^/]_sandbox|code_mode|ipython_code_mode|ssh_workspace|shell)/., so each of the 11 *_sandbox backends gets the sandbox check; selection test with non-bubblewrap backends
- Why: David's answer to douwebot's finding that 10 *_sandbox backends fell to general; supersedes 'sandbox paths as listed'
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4516182035
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · add-new-model floor-reason wording approved · iter -
- Decision: The add-new-model SDK-bump step asks for the floor's reason comment, as drafted in ddc8f86298
- Why: David approved it as written; it keeps the skill consistent with the tests/AGENTS.md dependency-floor rule
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4516182054
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · push past the spent review budget at 7b36cc137e · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 978010109d..7b36cc137e: out-of-check findings dropped not raised (douwebot finding), David-approved add-new-model floor-reason step, David's widened sandboxes trigger with a selection test; four script test files, ruff, pyright and the workflow guard pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · messages.py selects ui without ui owning it · iter -
- Decision: ui gets joint_paths: a match selects the check and is reviewed by it, but the general check still reviews the file; messages.py moved there from ui's paths
- Why: douwebot finding, reproduced: select([messages.py]) returned only ui, so a core message-type change lost the general review; the ui prompt reports only its own scope
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4517366150
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · PR attributes cannot hide a shared diff in CI · iter -
- Decision: Refuted Veria's -diff finding (douwebot repeated it in review 5831930369); no runner change
- Why: the default-branch gatherer writes '* !diff' to pr-head's info/attributes under GitHub Actions, which outranks the PR's .gitattributes; scratch repro with the gatherer's command shows a text hunk
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4517406289
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · Drop the stale runner-lock clause from add-new-model · iter -
- Decision: Deleted exactly ' (no CI step checks it, so a stale one stays green while silently dropping its pinned hashes)' from the SDK-bump step
- Why: David approved the deletion; ci.yml runs 'uv lock --script .github/scripts/pydantic-ai-runner --check', and tests-and-dependencies.md says CI fails a stale runner lock
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4517366170
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · realtime/_utils.py selects url-fetch without url-fetch owning it · iter -
- Decision: Moved realtime/_utils.py from url-fetch's paths to its joint_paths; selection test covers it with messages.py
- Why: Manager's call to fold: same root cause as messages.py; select([realtime/_utils.py]) returned only url-fetch for a module whose one download call is a small part
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4517366150
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · Hidden finding key skips reposting a repeat · iter -
- Decision: Each inline finding carries a sha256 key of check, path, side, the changed line's text, severity and body; the publisher skips a finding whose key a github-actions[bot] review comment already holds and says how many; the status still counts every current finding
- Why: Manager's option A on douwebot's repeated-findings finding; body is in the key so a different finding on the same line still posts (manager's test requirement); line text keeps the key across pushes that shift the line
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4517366162
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · push past the spent review budget at 259f3aa36b · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 7b36cc137e..259f3aa36b: messages.py and realtime/_utils.py move to joint_paths (douwebot finding, manager's fold), David-approved add-new-model clause deletion, manager-approved hidden finding key; four script test files, ruff, pyright and the workflow guard pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · Private triage report reaches Slack escaped · iter -
- Decision: report_privately escapes &, < and >, caps the report at 3,000 characters, turns a code fence inside it into ''' and sends it inside a code block; test covers a masked link, a channel ping and a fence
- Why: douwebot finding: the PR head's author can steer the model's private_report, which went to the private triage channel verbatim, so it could carry a masked link or a channel ping; same escape set as feature_digest._slack_escape, which flattens newlines a report needs
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4519181743
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · THREAT_MODEL.md names the escaped private report · iter -
- Decision: Added after the untrusted-model-output sentence: "A private report sent to a maintainer channel is model output too: it is escaped before sending, so it cannot add links or mentions."
- Why: David approved the sentence as written; douwebot asked the Repository CI section to say the private report is model output and is sent escaped
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4519181743
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-09 · push past the spent review budget at 628f1fa4b2 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 259f3aa36b..628f1fa4b2: private triage report escaped, capped and quoted before Slack (douwebot finding) and David's approved THREAT_MODEL.md sentence; four script test files, ruff and pyright pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859#discussion_r4519181743
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-10 · Merge upstream/main with #12798 and #12971 · iter -
- Decision: Took main's CODEOWNERS (its /.github/ entry covers .github/pr-review-checks/, so this PR's own line for it is dropped); kept this PR's PR Review Checks section in .github/workflows/AGENTS.md and replaced its old code-owners section with main's rewrite (code-owner review is not a merge gate); PR body line updated to match
- Why: #12798 gave .github/ a single owner and rewrote the code-owners section; both sides' intent survives; no uv.lock, pyproject or workflow source changed, so no reinstall or recompile
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-10 · push past the spent review budget at 112101e427 · iter -
- Decision: Pushed without a pre-push review: budget spent (3 of 3); hosted douwebot review covers this head
- Why: delta 628f1fa4b2..112101e427: merge of upstream/main; conflicts only in CODEOWNERS and .github/workflows/AGENTS.md, resolved as recorded; guard, pyright and six script test files pass
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
2026-11-10 · final metadata check at 112101e427 · iter -
- Decision: Kept: add test-suite and logfire, put the body in the five-part feature order (why, public surface, behavior, verification, existing users). Added OpenTelemetry under the same topic-label rule. Rejected: dropping 'Closes #11233'; the retired detector read the capped PR-files API that #11233 names, and selection now comes from git diff
- Why: Light-tier metadata subagent over 16b754f94a..112101e427; each correction checked against pushing-commits-to-the-repo 'Write the title and body' and 'Keep labels current'; label precedent #10605, #10379; body order precedent #12971, #12894
- Source: https://github.com/pydantic/pydantic-ai/pull/12859
- Session: f3a9d2a7-5240-4d8b-843f-14c6e6e890c9
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.