Add `CODEOWNERS` entries for the durable runtime and its harness integrations, and give `.github/` a single owner
This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.
Why we make these changes
Changes to the durable runtime and the harness code that integrates deeply with it should get a review from DouweM or adtyavrdhn. .github/CODEOWNERS makes GitHub request that review, so this adds those paths with only those two as owners. Whether to merge this PR is their call.
It also gives all of .github/ to dsfaccini alone, replacing the four-owner workflows/, actions/ and scripts/ entries, so .github/ changes no longer request review from the other three owners. .github/CODEOWNERS itself stays owned by DouweM and adtyavrdhn too, so they see every ownership change. pyproject.toml, uv.lock, .pre-commit-config.yaml and Makefile keep their four owners.
Code ownership requests a review; it does not gate a merge. The main ruleset has no pull_request rule and is meant to stay that way, so the CODEOWNERS header and the "Code owners" section of .github/workflows/AGENTS.md now say so.
Owned paths (DouweM, adtyavrdhn)
| Path | What it holds |
|---|---|
pydantic_ai_slim/pydantic_ai/durable_exec/ | BaseDurabilityCapability, DurableOperationBackend, durable_operation, and the Temporal, DBOS and Prefect engines |
harness absurd/, aws_lambda/, azure_durable_task/, pgtask/, render/ | the harness durable engines, each subclassing BaseDurabilityCapability |
harness _durable.py | RetryRequest and in_durable_context, shared by harness capabilities that run durable operations |
harness subagents/_capability.py, subagents/_toolset.py | SubAgents._delegate (@durable_operation('delegate')) and RecordDelegation, which run a delegated agent run inside a durable unit |
src/pydantic_ai_harness/AGENTS.md now tells a PR that adds a Harness durable engine to add its directory to CODEOWNERS, through a maintainer when its author lacks write access.
Unsure: trim or extend
- Included: the two
subagentsfiles hold most ofSubAgents, not only its durable wiring, so mostSubAgentschanges request owner review. - Left out:
pydantic_ai_slim/pydantic_ai/capabilities/durable_operation.py, a one-line re-export ofdurable_operation. - Left out:
scripts/durable_exec_contract.pyand.json, which drive theneeds-durable-exec-reviewlabel. The manifest lists 59 core files the engines depend on; owning those would put most of core behind two reviewers. - Left out:
tests/durable_exec/test_durable_exec_compat.py, which pins persisted operation names. 14 of its 29 edits since August came from PRs touching none of the owned paths. - Left out: harness modules that use
@durable_operationor detect durable execution:_monty_exec.py,_events.py,planning/_toolset.py,code_mode/_toolset.py,playwright/_capability.py, and capabilities such asmemory,guardrailsandstep_persistence.
New public surface
None.
Verification
gh api 'repos/pydantic/pydantic-ai/codeowners/errors?ref=codeowners-durable-review'returns no errors.gh api repos/pydantic/pydantic-ai/rules/branches/mainlists nopull_requestrule.
What changes for existing users
Nothing. PRs touching the durable paths request review from DouweM and adtyavrdhn; PRs touching .github/ request review from dsfaccini only.
PR decisions
2026-11-07 · durable code-owner path list · iter -
- Decision: Own durable_exec/, the five harness durable engines, harness _durable.py, and subagents/_capability.py + _toolset.py; leave out tests, docs, the contract manifest, and capabilities that only declare
@durable_operation - Why: These are the modules that implement or cross durable boundaries; the compat-pin test and contract manifest also change with ordinary core feature PRs, so owning them would widen the scope beyond the runtime
- Source: https://github.com/pydantic/pydantic-ai/blob/main/pydantic_ai_slim/pydantic_ai/durable_exec/AGENTS.md
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · state enforcement truthfully · iter -
- Decision: Keep the corrected wording in .github/workflows/AGENTS.md and the CODEOWNERS header: an owner approval blocks a merge only while the main ruleset requires code-owner review; the PR comment names enabling that rule as the second step
- Why: The main ruleset has no pull_request rule; #10968 left enabling code-owner review as a post-merge admin step, and PRs touching owned paths merge with bot-only approvals (e.g. #12739)
- Source: https://github.com/pydantic/pydantic-ai/pull/10968
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 1 of 3 at 3f2e93c0704234861ff9d38a70ed1ecb12973d60 · iter -
- Decision: dispatched (light tier); outcome pending
- Why: tree 2da9c8cdb7d36cfb20be54eaeb5b9ede91d9a4a7; scope 2c942f77d9..3f2e93c070 full branch; first review
- Source: https://github.com/pydantic/pydantic-ai/tree/main
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 1 of 3 at 3f2e93c0704234861ff9d38a70ed1ecb12973d60 · iter -
- Decision: remediated: AGENTS.md names the four dependency/CI owners, states the subagents criterion without the
@durable_operationcontradiction, and names both pull_request-rule settings; manifest core files, contract script/json and capabilities/durable_operation.py go to the PR body's unsure list instead of CODEOWNERS - Why: reviewed tree 2da9c8cdb7d36cfb20be54eaeb5b9ede91d9a4a7; scope 2c942f77d9..3f2e93c070; first launch failed on a CLI arg-parsing error before any review, relaunched as the same call
- Source: https://github.com/pydantic/pydantic-ai/tree/main
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 2 of 3 at 535f651ed86456f08fcca11fdc7debcf5da2c2b5 · iter -
- Decision: dispatched (light tier); outcome pending
- Why: tree bf1814fff0888e2416e04a5283395a0e52348a25; scope 3f2e93c070..535f651ed8 follow-up; remediation of review 1 wording findings
- Source: https://github.com/pydantic/pydantic-ai/tree/main
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 2 of 3 at 535f651ed8 · iter -
- Decision: remediated: CODEOWNERS header names the pull_request rule as the condition; delta 2950a2c70b7bc2c2607ec59cf7ee9a762d628e9c is comment-only (exempt), chained from reviewed 535f651ed8
- Why: reviewed tree bf1814fff0888e2416e04a5283395a0e52348a25; scope 3f2e93c070..535f651ed8; review 1 findings verified fixed; git diff 535f651ed8..HEAD has only # lines
- Source: https://github.com/pydantic/pydantic-ai/tree/main
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 3 of 3 at 7463053dd0647f8bf48cbfc4d630a7d540ca637a · iter -
- Decision: dispatched (light tier); outcome pending
- Why: tree 9fc4fc1563316d2bc1ad512b01219b8f7ac87f6f; scope 535f651ed8..HEAD follow-up; applies douwebot Optional comment 4502478792
- Source: https://github.com/pydantic/pydantic-ai/pull/12798#discussion_r4502478792
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · pre-push review 3 of 3 at 7463053dd0647f8bf48cbfc4d630a7d540ca637a · iter -
- Decision: no findings; budget exhausted
- Why: reviewed tree 9fc4fc1563316d2bc1ad512b01219b8f7ac87f6f; scope 535f651ed8..7463053dd0
- Source: https://github.com/pydantic/pydantic-ai/pull/12798#discussion_r4502478792
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · douwebot optional at 7463053dd0: engine reminder · iter -
- Decision: Add one sentence to src/pydantic_ai_harness/AGENTS.md (the paragraph that already names the five engines) telling a PR that adds a Harness durable engine to add its directory to CODEOWNERS; pushed at 8aa861268c228fb307d83b4742394418a2ca0ce2 without a fourth pre-push review (budget exhausted after review 3)
- Why: The rule-based scope in .github/workflows/AGENTS.md would silently miss a sixth engine; the harness guide is where engine authors read
- Source: https://github.com/pydantic/pydantic-ai/pull/12798#discussion_r4502567455
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-07 · stop the douwebot optional-comment loop · iter -
- Decision: From head 8aa8612 on, answer douwebot Optional comments with a one-line-reason reply and resolve; "Push no change unless the comment is a correctness defect in this diff."
- Why: Each push resets the clean-approval gate, and every douwebot round so far approved with one new Optional comment
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 7c751ecc-7650-441d-9c8b-d6667ce5fbd7
2026-11-09 · David: .github/ belongs to dsfaccini alone · iter -
- Decision: David's decision, verbatim: ".github folder can belong to me, the others dont want github notifications for that." One /.github/ entry owned by
@dsfaccinireplaces the /.github/workflows/, /.github/actions/ and /.github/scripts/ lines - Why: The other owners do not want GitHub notifications for .github/ changes
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · David: /.github/CODEOWNERS keeps the durable owners · iter -
- Decision: David's decision: /.github/CODEOWNERS is owned by
@dsfaccini,@DouweMand@adtyavrdhn, placed after /.github/ because the last matching pattern wins - Why: The durable owners still see ownership changes
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · David: dependency and build config keep four owners · iter -
- Decision: David's decision: pyproject.toml, uv.lock, /.pre-commit-config.yaml and /Makefile keep all four owners; the durable lines stay as they are
- Why: Only .github/ moves to a single owner
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · David: carry the .github/ change in #12798 · iter -
- Decision: David's decision: the .github/ ownership change ships in this PR, not a new one
- Why: Same file, same review
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at 47c0805b0f4f9a9690dacf5cd9191c8e838691c4 · iter -
- Decision: dispatched (strong tier); outcome pending; budget counted per task, this manager dispatch is a new task
- Why: tree 27475a4d98e52b6dab622df977fad81105070dc1; scope 7463053dd0..HEAD minus the clean upstream merge; follow-up to the last reviewed tree 9fc4fc1563
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at 47c0805b0f4f9a9690dacf5cd9191c8e838691c4 · iter -
- Decision: not dispatched; the manager held the push before launch, so this slot is not consumed
- Why: the .github/ ownership lines may change, so a review of 47c0805b0f would cover content that will not ship
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · OPEN: .github/ sole owner vs. enforcement · iter -
- Decision: Open, David to decide: keep /.github/ owned by
@dsfaccinialone with no code-owner enforcement, or leave /.github/ unowned and enforce code-owner review on the other paths. Push held; local commit 47c0805b0f stays unpushed until the final ownership lines arrive - Why: Once code-owner review is enforced, a sole-owner /.github/ entry leaves no eligible approver for
@dsfaccini's own .github/ PRs, because an author cannot approve their own PR - Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · David: .github/ stays his alone, code-owner review stays unenforced · iter -
- Decision: David's decision, option (a): /.github/
@dsfaccinialone; /.github/CODEOWNERS@dsfaccini@DouweM@adtyavrdhnafter it; dependency/build files keep four owners; durable lines unchanged. CODEOWNERS ownership is a review request, not a gate: the main ruleset has no pull_request rule and David decided not to add one - Why: A sole-owner /.github/ entry would leave no eligible approver for David's own .github/ PRs under enforcement; .github/ protection is to come from making Protect .github a required status in a separate PR
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
- Supersedes: OPEN: .github/ sole owner vs. enforcement
2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at adb9d7b7d15d881d97b8b4c2ceba80c804fc389e · iter -
- Decision: dispatched (strong tier); outcome pending
- Why: tree 5adf8cda5e37bceff43f28a0efcaed99fd5ff65b; scope 7463053dd0..HEAD minus the conflict-free upstream merge; follow-up to the last reviewed tree 9fc4fc1563
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at adb9d7b7d15d881d97b8b4c2ceba80c804fc389e · iter -
- Decision: remediated: src/pydantic_ai_harness/AGENTS.md engine sentence now says Protect .github accepts the CODEOWNERS edit only from an author with write access, and any other author asks a maintainer
- Why: reviewed tree 5adf8cda5e37bceff43f28a0efcaed99fd5ff65b; scope 7463053dd0..adb9d7b7d1 minus the clean upstream merge; finding verified against protect-github-dir.yml (write/admin only)
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · pre-push review 2 of 3 (task: .github/ ownership) at 96aada44d08763d4b740db45620545550f632f44 · iter -
- Decision: dispatched (strong tier); outcome pending
- Why: tree cdb052f3d0b68fea4b23d9dc6caa51cbb9556e32; scope adb9d7b7d1..96aada44d08763d4b740db45620545550f632f44 follow-up; remediation of review 1 finding
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · pre-push review 2 of 3 (task: .github/ ownership) at 96aada44d08763d4b740db45620545550f632f44 · iter -
- Decision: no findings
- Why: reviewed tree cdb052f3d0b68fea4b23d9dc6caa51cbb9556e32; scope adb9d7b7d1..96aada44d0; review 1 finding verified fixed
- Source: https://github.com/pydantic/pydantic-ai/pull/12798
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
2026-11-09 · David: align the owners comment with no enforcement · iter -
- Decision: David's decision, option (a): edit PR comment 6708503806 to say CODEOWNERS requests review and does not gate merges, names in plain text with no mentions
- Why: The comment asked the owners to enable Require review from Code Owners, which contradicts the decision to keep code-owner review unenforced
- Source: https://github.com/pydantic/pydantic-ai/pull/12798#issuecomment-6708503806
- Session: 12519cab-ef3e-40c5-806e-d1d7ed230ea8
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.
Summary by cubic
Adds CODEOWNERS entries so changes to the durable runtime and its deep harness integrations request review from DouweM or adtyavrdhn.
- Owned paths are
pydantic_ai_slim/pydantic_ai/durable_exec/, the five harness durable engines (absurd,aws_lambda,azure_durable_task,pgtask,render), the shared_durable.pyhelper, and the twosubagentsmodules that run a delegated agent run inside a durable unit. - Everything under
.github/now belongs to@dsfaccinionly, replacing the previous per-directory CI config owners. - Capabilities that only use
@durable_operationor check for durable execution stay outside this scope. - The
mainruleset has nopull_requestrule, so these entries block merges only once an admin enables Require review from Code Owners; the docs describe code-owner review as a request, not a merge gate. - The harness
AGENTS.mdasks engine authors to add new engine directories toCODEOWNERSand notes that only a write-access author can push that edit.