1.3 KiB
Agentic workflows (gh-aw)
The pydantic-ai-* workflows in this directory are agentic workflows authored as human-editable <name>.md sources (frontmatter + prompt) that compile to a generated <name>.lock.yml. GitHub Actions runs the .lock.yml, never the .md.
-
Never hand-edit a
*.lock.yml. It is generated — the header says so. Manual edits are silently overwritten on the next recompile, and until then the running workflow diverges from its source. -
After editing a workflow
*.mdsource, recompile and commit the regenerated*.lock.ymlin the same change — a*.mdedit without its recompiled lock is incomplete, and source and lock drift apart:gh aw compile -
Recompilation is required for anything the lock bakes in: a source's frontmatter (
on:triggers,permissions,tools,safe-outputs, jobs, path/detectfilters) and itsimports:shared fragments (shared/*.md) are inlined into the lock at compile time. -
Exception — runtime-resolved prompts need no recompile. Agent prompts under
shared/prompts/are fetched at run time (via thefetch-dynamic-promptaction / a Logfire-managed variable), not baked into the lock, so editing one takes effect on the next run without recompiling.