Skip to content

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

Merged
dan-petty merged 2 commits into
mainfrom
docs/3106-the-pydantic-ai-harness-knowledge-page
Nov 2, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/3106-the-pydantic-ai-harness-knowledge-page

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Plans #3106

The knowledge base manual for pydantic-ai-harness names the archived repository pydantic/pydantic-ai-harness as the public source. That repository is frozen at v0.36.0, while the project pins version 0.59.0, so an agent that reads the manual reads a stale source. This change points the front matter sources entry and the 'Public Git Repository' row at https://github.com/pydantic/pydantic-ai and names src/pydantic_ai_harness as the path of the code inside it. It adds tests that the manual lists the maintained repository, and that no manual under the knowledge base names the archived repository. The PyPI package keeps its name, so the pin pydantic-ai-harness[coder]==0.59.0 stays as it is.

Change: openspec/changes/3106-the-pydantic-ai-harness-knowledge-page/

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 2, 2026 15:22

Copy link
Copy Markdown
Owner

Review of the plan for #3106.

Status: all 18 check runs at 342d88a are success or skipped (Dependency Freshness and Test Job Duration skipped); Semantic PR title is success. Premise: partly verified. On origin/main the string pydantic/pydantic-ai-harness is at src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md:5 and :22 and nowhere else (git grep). That the upstream repository is archived and that src/pydantic_ai_harness exists in pydantic/pydantic-ai is not verified (see 4).

  1. The Renovate claim is false, and two criteria rest on it. .github/renovate.json:35 sets "enabled": false for the managers pep621, pip_requirements, pip-compile and setup-cfg. pyproject.toml:39 is read by pep621, so no Renovate rule matches pydantic-ai-harness. .github/ holds no Dependabot file. Yet design.md says "the existing rule already matches it", proposal.md says "the Renovate rule that matches it stay unchanged", and the last two criteria in tasks.md ("dependency update configuration SHALL still match", "lockfile SHALL still install") assume a rule. The stage run read .github only through list_files; it never read renovate.json. Fix: read renovate.json, state in Feasibility that no rule exists and that freshness comes from devops ci outdated (.github/workflows/ci.yml:526, job "Dependency Freshness"). Drop the false sentences and the Renovate criterion. If the issue's criterion 5 stays as written, it cannot be met, so per AGENTS.md rule 2 return the item with this evidence (devops roadmap return 3106 --comment ... --confirm).
  2. Document and test change carries a spec delta. openspec/config.yaml (proposal rule 3): a change that alters no consumer-observed behavior (tests, documentation) has no spec delta and sets skip_specs: true. This change edits one manual and adds tests. But .openspec.yaml holds only schema and created, and specs/knowledge-base-manual/spec.md is a new capability that specifies the text of a manual. What Changes does not say why a delta is needed. Fix: delete specs/, set skip_specs: true, and add a What Changes bullet that gives the reason. The Capabilities section then lists none. Spec form is otherwise fine: no capability of that name in openspec/specs/, Purpose is over 50 characters, the longest requirement is 271 characters. Not verified: whether check_proposal accepts this, since its path prefixes do not include src/.
  3. "The repository contains no reference" is narrowed without saying so. The criterion and the issue's verify command (git grep -n over the whole tree printing nothing) can never hold: proposal.md, the spec and the criteria in tasks.md all contain the string, and so will the archived copy. The Feasibility line "First check ... prints nothing" is true only for the scoped path in task 1.1. Scope is also inconsistent: the PR body and proposal say "no manual under the knowledge base", but the spec and task 2.1 scan only .../knowledge_base/devops_cli/libraries/. The stage model review already raised this. Fix: scan kb_dir.rglob("*.md") in the test (as tests/ai/test_kb.py does near line 215), and write the criterion as "the knowledge base" with the evidence that main holds the string only in this one page.
  4. Feasibility has no upstream evidence. It lists only local search_code and file_symbols output. Nothing confirms that pydantic/pydantic-ai-harness is archived and frozen at v0.36.0, or that pydantic/pydantic-ai holds src/pydantic_ai_harness; the plan takes both from the issue text. uv.lock:2858-2867 shows pydantic-ai-harness 0.59.0 uploaded 2026-10-21, after the archive date the issue gives (2026-10-15). That fits a release from the other repository, but it is no proof. Not verified by me either (no GitHub access to the upstream repository). Fix: record devops gh api repos/pydantic/pydantic-ai-harness (the archived field) and the contents of src/pydantic_ai_harness in pydantic/pydantic-ai, with the date.
  5. Title is cut mid-phrase. "docs(openspec): plan docs(ai): point the harness manual at pydantic-ai #3106 Point the harness manual at the maintained..." ends in "..."; the group title is "Point the harness manual at the maintained repository". The summary is 45 characters, so the limit is not the cause. Fix: use the full group title, or a short one such as "point the harness manual at pydantic-ai".
  6. Minor. The issue's step 2 also asks to check that the knowledge base ingest does not index the archived repository; no group or criterion covers it. Say in the proposal why the check is not needed, or add a repeatable check. "Near zero to keep and to fix" in Existing Tool Considered gives no number; the rule asks for tokens.

Checked and fine: line citations (pyproject.toml:39, kb.py:45, kb.py:242, test_kb.py:225); tests/review/test_kb_manuals_metadata.py needs applies_to and reviewed, so keeping them is right; the manual is in the hand-written class of CONST_DOCS_INVENTORY (constants.py:501); docs/KNOWLEDGE_BASE.md:31 lists only the file name and title, so no regeneration is needed and no generated file is edited; uv run devops ci test <paths> exists (docs/commands/ci.md:23); the verify commands start with uv run devops or the ! git grep form; the new test folder mirrors src/devops_cli/ai; "Plans #3106" is present; no overlap with #3177 to #3210 and no open dependency. Not run: devops docs check, openspec validate --strict.

Related issues: none open that touch the same code. A search for pydantic-ai-harness, Renovate and knowledge-base terms returned only #3106 itself, plus #1330 and #3104, which name "harness" in another sense. #920, named by intake, is closed.

Verdict: hold until 1 (false Renovate premise), 2 (spec delta on a document and test change) and 3 (criterion and scope) are fixed; 4 and 5 should be fixed in the same push.


Generated by Claude Code

@dan-petty dan-petty changed the title docs(openspec): plan #3106 Point the harness manual at the maintained... docs(openspec): plan #3106 Point the harness manual at the maintained repository Nov 2, 2026
@dan-petty dan-petty changed the title docs(openspec): plan #3106 Point the harness manual at the maintained repository docs(openspec): plan #3106 point the harness manual at pydantic-ai Nov 2, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Plan update for #3106 to address review findings:

  1. Renovate premise corrected: Noted in Feasibility that .github/renovate.json disables Python package managers, and freshness runs via devops ci outdated in scheduled CI. Removed false Renovate statements and criterion.
  2. Spec delta removed: Deleted specs/, set skip_specs: true in .openspec.yaml, and updated What Changes per openspec/config.yaml rule 3.
  3. Criterion and test scope aligned: Task 2.1 now scans all *.md files under get_knowledge_base_dir(). The criterion specifies the knowledge base rather than the whole repository.
  4. Upstream evidence recorded: Feasibility records confirmed GitHub API facts for the archived status of pydantic/pydantic-ai-harness and the presence of src/pydantic_ai_harness in pydantic/pydantic-ai.
  5. Title shortened: Updated pull request title to 'docs(openspec): plan docs(ai): point the harness manual at pydantic-ai #3106 point the harness manual at pydantic-ai'. Semantic PR title check passes.
  6. Cost and ingest addressed: Existing Tool Considered records the token cost. Feasibility describes how updating the manual ensures future knowledge base ingests skip the archived URL.

All 16 required CI checks pass on commit e4fb2d5.

@dan-petty
dan-petty merged commit dc26693 into main Nov 2, 2026
21 of 22 checks passed
@dan-petty
dan-petty deleted the docs/3106-the-pydantic-ai-harness-knowledge-page branch November 2, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant