Add `CODEOWNERS` entries for the durable runtime and its harness integrations, and give `.github/` a single owner

Merged
DS
25d ago
+49-20

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)

PathWhat 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.pyRetryRequest and in_durable_context, shared by harness capabilities that run durable operations
harness subagents/_capability.py, subagents/_toolset.pySubAgents._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 subagents files hold most of SubAgents, not only its durable wiring, so most SubAgents changes request owner review.
  • Left out: pydantic_ai_slim/pydantic_ai/capabilities/durable_operation.py, a one-line re-export of durable_operation.
  • Left out: scripts/durable_exec_contract.py and .json, which drive the needs-durable-exec-review label. 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_operation or detect durable execution: _monty_exec.py, _events.py, planning/_toolset.py, code_mode/_toolset.py, playwright/_capability.py, and capabilities such as memory, guardrails and step_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/main lists no pull_request rule.

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 -

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_operation contradiction, 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 -

2026-11-07 · pre-push review 2 of 3 at 535f651ed8 · iter -

2026-11-07 · pre-push review 3 of 3 at 7463053dd0647f8bf48cbfc4d630a7d540ca637a · iter -

2026-11-07 · pre-push review 3 of 3 at 7463053dd0647f8bf48cbfc4d630a7d540ca637a · iter -

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 @dsfaccini replaces 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, @DouweM and @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 -

2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at 47c0805b0f4f9a9690dacf5cd9191c8e838691c4 · iter -

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 @dsfaccini alone 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/ @dsfaccini alone; /.github/CODEOWNERS @dsfaccini @DouweM @adtyavrdhn after 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 -

2026-11-09 · pre-push review 1 of 3 (task: .github/ ownership) at adb9d7b7d15d881d97b8b4c2ceba80c804fc389e · iter -

2026-11-09 · pre-push review 2 of 3 (task: .github/ ownership) at 96aada44d08763d4b740db45620545550f632f44 · iter -

2026-11-09 · pre-push review 2 of 3 (task: .github/ ownership) at 96aada44d08763d4b740db45620545550f632f44 · iter -

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.py helper, and the two subagents modules that run a delegated agent run inside a durable unit.
  • Everything under .github/ now belongs to @dsfaccini only, replacing the previous per-directory CI config owners.
  • Capabilities that only use @durable_operation or check for durable execution stay outside this scope.
  • The main ruleset has no pull_request rule, 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.md asks engine authors to add new engine directories to CODEOWNERS and notes that only a write-access author can push that edit.