Skip to content

docs(ai): point the harness manual at pydantic-ai #3106

Closed

Description

@dan-petty

Problem or Motivation

The repository pydantic/pydantic-ai-harness was archived on 2026-10-15. Development moved to pydantic/pydantic-ai, in src/pydantic_ai_harness. The package on PyPI keeps its name, so our pin pydantic-ai-harness[coder]==0.59.0 still installs. But the knowledge base page names the archived repository as the public source. An agent that reads it reads a repository that is frozen at v0.36.0.

Proposed Solution & Architectural Design

  1. Change the source link and the front matter URL in src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md to the pydantic/pydantic-ai repository and the path src/pydantic_ai_harness.
  2. Check that the Renovate or Dependabot setting still finds the package, and that the knowledge base ingest does not index the archived repository.

Verify by git grep -n "pydantic/pydantic-ai-harness" printing nothing, and by the pinned version still installing with uv sync --locked.

Target Subsystem

src/devops_cli/ai/knowledge_base, dependency update configuration.

Existing Tool Considered

None needed. This is a link and a configuration check. Cost: about 5k tokens.

Proposed design

Problem statement

The knowledge base page for pydantic-ai-harness names the archived repository pydantic/pydantic-ai-harness as the public source. That repository is frozen at v0.36.0. The project pins version 0.59.0. An agent that reads the page reads a stale source. The change points the page to pydantic/pydantic-ai and the path src/pydantic_ai_harness. It also confirms that the dependency update configuration and the knowledge base ingest still work.

Acceptance criteria

Requirement: Front matter source URL

The knowledge page's front matter sources SHALL list https://github.com/pydantic/pydantic-ai and SHALL NOT list https://github.com/pydantic/pydantic-ai-harness.

Scenario: Front matter names the maintained repository

  • WHEN A reader opens src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md.
  • THEN The sources list holds https://github.com/pydantic/pydantic-ai and no pydantic-ai-harness repository URL.

Requirement: Repository row link

The 'Public Git Repository' row SHALL link to https://github.com/pydantic/pydantic-ai and name the path src/pydantic_ai_harness.

Scenario: Repository row points to the maintained repository

  • WHEN A reader reads the 'Project References' table.
  • THEN The row links to https://github.com/pydantic/pydantic-ai and its text names src/pydantic_ai_harness.

Requirement: No archived repository reference

The repository SHALL contain no reference to pydantic/pydantic-ai-harness.

Scenario: Grep finds no archived repository

  • WHEN A developer runs git grep -n "pydantic/pydantic-ai-harness".
  • THEN The command prints nothing and exits with status 1.

Requirement: Pinned version installs

The lockfile SHALL still install pydantic-ai-harness[coder]==0.59.0.

Scenario: Locked sync succeeds

  • WHEN A developer runs uv sync --locked.
  • THEN The command exits with status 0 and installs pydantic-ai-harness 0.59.0.

Requirement: Dependency update rule

The dependency update configuration SHALL still match the PyPI package pydantic-ai-harness.

Scenario: Configuration still matches the package

  • WHEN A developer reads the dependency update configuration.
  • THEN The configuration holds a rule that matches pydantic-ai-harness, and the change adds no rule.

Existing Tool Considered

No alternatives check has run. The change edits one knowledge page and checks configuration, so no open tool covers it. The body estimates about 5k tokens for the work.

Key questions

  • Which repository and path hold the harness source now?: The source lives in pydantic/pydantic-ai, in src/pydantic_ai_harness. The archived pydantic/pydantic-ai-harness is frozen at v0.36.0. [sources: src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md]
  • Which URL form should the page use for the source link?: Use https://github.com/pydantic/pydantic-ai in the front matter and in the repository row. Name src/pydantic_ai_harness in the row text. Do not assume a default branch name. (best practice) [sources: src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md]
    • Chosen: Repository root URL. The root URL is stable and does not assume a default branch name.
    • Rejected: Tree URL with the path. It assumes the default branch name, which the page does not state.
  • Should the change add or change a dependency update rule?: No. The PyPI package keeps the name pydantic-ai-harness, so the existing Renovate or Dependabot rule still finds it. The implementer confirms the rule and changes nothing. (best practice) [sources: src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md]
    • Chosen: Keep the existing rule. The PyPI package name is unchanged, so the rule still matches.
    • Rejected: Add a rule for the new repository. The package name did not change, so a new rule adds nothing.
  • Does the knowledge base ingest index the archived repository?: No. The ingest reads the knowledge base files, and the page no longer names the archived repository. ADR 0005 rebuilds the index when the installed knowledge base differs from the index. [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/docs
    scope/ai
    status/new
    value/medium
    effort/low
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/docs. The docs prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. Agents retrieve a frozen repository, but the pinned package still installs, so the impact is misleading rather than blocking.
    • Value: Medium. Correcting the source link prevents agents from reading stale v0.36.0 code instead of the active repository.
    • Effort: Low. The change is a link edit in one file plus a configuration verification; the body estimates about 5k tokens.
    • Related: fix(ai): the knowledge base names only commands, options and components that exist #920, which asks for a different change. Both fix incorrect references in the knowledge base, but #920 fixes wrong command names while the candidate fixes a wrong repository URL.
  3. added
    priority/p2-medium
    on Nov 1, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 2, 2026
  5. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at ac16675 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Staged: branch docs/3106-the-pydantic-ai-harness-knowledge-page, draft pull request #3211. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. Point the harness manual at the maintained repository: 12981 tokens
    2. Assert the source of the harness manual in the knowledge base tests: 16252 tokens

    The plan run made 5 model request(s), and used 239069 input tokens and 10317 output tokens. The tool calls, in order:

    1. search_code({"text":"pydantic-ai-harness"})
    2. list_files({"directory":"src/devops_cli/ai/knowledge_base/devops_cli/libraries"})
    3. read_file({"path":"tests/review/test_kb_manuals_metadata.py"})
    4. list_files({"directory":".github"})
    5. search_code({"text":"pydantic/pydantic-ai-harness"})
    6. file_symbols({"path":"tests/ai/test_kb.py"})
    7. file_symbols({"path":"src/devops_cli/ai/kb.py"})
    8. search_code({"text":"pydantic-ai-harness"})

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • other at group 2 and specs: The criterion says the whole repository holds no reference to the archived repository. The spec, the second test and the group 1 verify check only the knowledge base manuals, so the criterion is covered in a narrower scope than the issue sets. Evidence: "The repository SHALL contain no reference to pydantic/pydantic-ai-harness."
  7. added 2 commits that reference this issue on Nov 2, 2026
  8. removed
    status/ready
    on Nov 2, 2026
  9. 29 remaining items

  10. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261104-205956-e6be ended: succeeded.
    Image digest: sha256:eb2c32f9c27c350eafb35b7f08c274621a0a05b95904b2185c667b9805b0d499

    The last lines of its log:

    Tool call: shell, program other, refused.
    Tool call: shell, started: git grep -n pydantic/pydantic-ai-harness src/devops_cli/ai/knowledge_base/
    Tool call: shell, program git, ok.
    Tool call: shell, started: find src/devops_cli/ai/knowledge_base/ -name *.md -exec grep ...
    Tool call: shell, program find, refused.
    Tool call: shell, started: grep -r pydantic/pydantic-ai-harness src/devops_cli/ai/knowledge_base/
    Tool call: shell, program grep, ok.
    Tool call: shell, started: uv run pytest tests/ai/test_kb.py::test_kb_pydantic_ai_harness_manual_sources -v
    Tool call: shell, program uv, ok.
    Tool call: shell, started: uv run pytest tests/ai/test_kb.py::test_kb_no_manual_references_archived_repo -v
    Tool call: shell, program uv, ok.
    Tool call: shell, started: uv run pytest tests/ai/test_kb.py -v
    Tool call: shell, program uv, ok.
    Tool call: shell, started: cat src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md | head -30
    Tool call: shell, program cat, refused.
    Tool call: shell, started: head -30 src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md
    Tool call: shell, program head, ok.
    Tool call: shell, started: find . -name *.md -type f ...
    Tool call: shell, program find, refused.
    Tool call: list_files, ok.
    Tool call: shell, started: uv run pytest tests/ai/test_kb.py::test_kb_pydantic_ai_harness_manual_sources tests/ai/test_kb.py::test_kb_no_manual_references_archived_repo -v
    Tool call: shell, program uv, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, ok.
    Tool call: shell, started: uv run pytest tests/ai/test_kb.py::test_kb_pydantic_ai_harness_manual_sources tests/ai/test_kb.py::test_kb_no_manual_references_archived_repo -v ...
    Tool call: shell, program uv, ok.
    Tool call: shell, started: cd /home/devops/.data/agent/worktrees/w-3106 && git status
    Tool call: shell, program cd, refused.
    Tool call: edit_file, ok.
    Tool call: shell, started: cd /home/devops/.data/agent/worktrees/w-3106 && git diff --name-only
    Tool call: shell, program cd, refused.
    Tool call: shell, started: git diff --name-only
    Tool call: shell, program git, ok.
    Tool call: shell, started: other
    Tool call: shell, program other, refused.
    Tool call: shell, started: git grep -n pydantic/pydantic-ai-harness src/devops_cli/ai/knowledge_base/
    Tool call: shell, program git, ok.
    Failure class ci_infra. Action left: retry.
    ✓ Took 0 item(s) to a ready pull request, stopped 1.
    Elapsed: 17m 3s
    
  11. added
    status/planned
    and removed
    owner/service
    status/blocked
    on Nov 4, 2026
  12. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Cleared the stop at push by the rule digest: the runner image changed since the stop, from sha256:eb2c32f9c27c350eafb35b7f08c274621a0a05b95904b2185c667b9805b0d499 to sha256:ff7f81f8f5902c5ae4e48ed334bc83f842b51afb639ab71be65cb4240daadf01. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a comment implement: retry.

  13. changed the title [-]docs(ai): the pydantic-ai-harness knowledge page names the archived repository[/-] [+]docs(ai): point the harness manual at pydantic-ai[/+] on Nov 6, 2026
  14. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 68 characters, and the limit is 60. The type and the scope stay.

  15. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 6, 2026
  16. removed
    status/in-review
    owner/agent
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/aisource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions