Repository navigation
Closed
Labels
Description
This issue was posted by Claude Code using claude-fable-5-1 on behalf of David.
Split out of #50971 as requested there.
Goal
Resolve the pydantic-ai catalog entry to the definition its maintainers host and release, pydantic/pydantic-ai-harness/gh-aw/pydantic.md (landed in pydantic/pydantic-ai-harness#708), and retire gh-aw's copy at .github/workflows/shared/pydantic.md, which pins harness 0.21.0 while the hosted definition pins 0.26.0.
Plan
.github/aw/engines.json: set thepydantic-aiimport topydantic/pydantic-ai-harness/gh-aw/pydantic.md.pkg/workflow/engine_definition.go,knownEngineImportWithCompilerRef: it appends the CLI version as@<ref>to any catalog import that has none. That ref exists ingithub/gh-awbut not in a foreign repository (the harness tags arev0.26.0and so on), so the tip in the compile error would name a 404. Append the compiler ref only for imports undergithub/gh-aw/; for other owners use@main, or add an optionalreffield to the catalog entry and use that.pkg/workflow/engine_definition_test.go,TestKnownEngineImportsFile_MatchesSharedEngineFiles: keep the no-@rule for the catalog file; the check that every shared engine is listed still holds once the shared copy is gone. Add a case for the foreign-owner ref from step 2.- Delete
.github/workflows/shared/pydantic.md. Point.github/workflows/smoke-pydantic.mdat the external import (imports: [pydantic/pydantic-ai-harness/gh-aw/pydantic.md@main]) and recompile its lock, so the smoke test exercises what users get. - Docs: the table row in
docs/src/content/docs/reference/engines.mdand the line in.github/aw/syntax-engine.mdthat nameshared/pydantic.mdshould name the external import instead. The hosted definition's own docs are https://github.com/pydantic/pydantic-ai-harness/blob/main/gh-aw/README.md and https://pydantic.dev/docs/ai/harness/gh-aw/. - Changeset.
Verification
go test ./pkg/workflow/ -run KnownEngineImports.- Compile a workflow with
engine: id: pydantic-aiand noimports:line: the error's tip must namepydantic/pydantic-ai-harness/gh-aw/pydantic.md@main(or the catalog ref), and that path must resolve. - One
smoke-pydanticrun after the recompile.
Note
The hosted definition compiles on v0.88.2 today. We will add engine.detection-engine: copilot from #59636 on our side once v0.89.0 is what users run, because v0.88.x validates the engine object with additionalProperties: false and would reject the key.
Reacted by Copilot
Activity