Enable the built-in `herdr` plugin by default in `clai2`
This pull request was posted by CLAI2 on behalf of David.
No linked issue; David requested and approved this follow-up to merged #11439.
Why we make these changes
Herdr reporting should work automatically in eligible managed terminal panes, without requiring users to enable the built-in plugin first.
[!WARNING]
Compatibility impact: Eligible Herdr panes that relied on the old disabled default begin reporting on upgrade.
Why this can ship in a minor release: This is a maintainer-approved default change in the 0.x CLAI2 CLI; its runtime guards and saved opt-outs are preserved.
Migration: Run /plugins disable herdr to keep reporting off. Notifications are unchanged.
New public surface
None.
User-visible behavior
Before: /plugins enable herdr is required. After: eligible Herdr panes report automatically; /plugins disable herdr opts out. Existing saved opt-outs stay disabled. Environment, socket, pane, terminal, and platform guards are unchanged. The separate notifications plugin is unchanged and is not automatically disabled.
Verification
- 44 targeted tests passed: automatic activation and disable, saved opt-out, runtime guards, and built-in defaults.
- Focused Pyright on four touched Python files; Ruff check/format; API compatibility against
v2.62.0: passed. - Fresh tmux CLI with a fake Unix socket: automatic report with
HERDR_ENV=1, no report withHERDR_ENV=0. - Isolated
Reviewspecialist on Luna: no findings on the pushed head.
What changes for existing users
Eligible Herdr panes report automatically unless explicitly disabled; saved opt-outs and notification behavior are preserved.
PR decisions
2026-10-27 · Await isolated review dispatch dependency · iter -
- Decision: Do not publish c326553e95d4009aa4dfad23fbe4c61cc61dc668 before a compliant fresh directory-isolated, explicit-light-model review; no review dispatch consumed.
- Why: PR 11569 remains open. The active delegate_task schema exposes neither working_directory nor model. Remote git push dry-run succeeds, but the actual pre-push review gate is unmet.
- Source: https://github.com/pydantic/pydantic-ai/pull/11569
2026-10-27 · Review dispatch hold released · iter -
- Decision: Proceed with isolated Review specialist on explicit light model after merging current upstream/main; prior hold superseded.
- Why: David explicitly released the hold after PR 11569 merged and upgraded all CLAI2 processes. No review dispatch had been consumed.
- Source: https://github.com/pydantic/pydantic-ai/pull/11569
2026-10-27 · pre-push review 1 of 3 at 5cb2676fbff111227b1d7719b7c1463df6836d83 · iter -
- Decision: Reserved: isolated Review specialist, explicit light menu key (Luna), full branch scope.
- Why: Candidate tree 5ea1765c674d0c8a76084a86e39a80234dcc451e; policy-base 8876e7d139e197fd86e0d9dd10addd56cd65e1f7; merge-base 8876e7d139e197fd86e0d9dd10addd56cd65e1f7. No prior review dispatch in this follow-up lane.
- Source: https://github.com/pydantic/pydantic-ai/tree/clai2-herdr-default-on
2026-10-27 · pre-push review 1 of 3 outcome at 5cb2676fbff111227b1d7719b7c1463df6836d83 · iter -
- Decision: No findings; current at 5cb2676fbff111227b1d7719b7c1463df6836d83.
- Why: Review specialist on explicit light (Luna), launched in isolated policy-base 8876e7d139e197fd86e0d9dd10addd56cd65e1f7; full branch diff at candidate tree 5ea1765c674d0c8a76084a86e39a80234dcc451e.
- Source: https://github.com/pydantic/pydantic-ai/tree/clai2-herdr-default-on
2026-10-27 · Acknowledge approved default compatibility impact · iter -
- Decision: Replace the stale DEFAULT_PLUGINS API fingerprint with the exact approved guarded Herdr-default change; add compatibility impact warning and label.
- Why: CI tests and coverage passed, but quality rejected the changed public tuple and flagged its prior hooks-only waiver as unused. No additional runtime change is needed.
- Source: https://github.com/pydantic/pydantic-ai/actions/runs/40584669531
2026-10-27 · pre-push review 2 of 3 at a7676652f5fa573cd954821c7f28c37266617c9b · iter -
- Decision: Reserved: isolated Review specialist on explicit light/Luna for exact compatibility waiver and upgrade docs.
- Why: Candidate tree 91a6b11f13e99b1eaeaedff3cf508f7bf94d215a; delta from reviewed 5cb2676fb/tree 5ea1765c674d0c8a76084a86e39a80234dcc451e; policy base 2c99448f3cccb4f94663bc369aad0eaffc4c68a1.
- Source: https://github.com/pydantic/pydantic-ai/pull/11661
2026-10-27 · pre-push review 2 of 3 outcome at a7676652f5fa573cd954821c7f28c37266617c9b · iter -
- Decision: No findings; current at a7676652f5fa573cd954821c7f28c37266617c9b.
- Why: Isolated Review on light/Luna from policy base 2c99448f3cccb4f94663bc369aad0eaffc4c68a1; candidate tree 91a6b11f13e99b1eaeaedff3cf508f7bf94d215a, delta 5cb2676fb..a7676652f.
- Source: https://github.com/pydantic/pydantic-ai/pull/11661
2026-10-27 · No optional second opinion · iter -
- Decision: David selected none after CI and clean douwebot approval on a7676652f5fa573cd954821c7f28c37266617c9b.
- Why: Size S, narrow guarded default plus docs/tests and exact waiver; two isolated Luna reviews and required hosted approval are complete.
- Source: https://github.com/pydantic/pydantic-ai/pull/11661
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.