Skip to content

stale workflows README misleads AI agents #769

Description

@ktdreyer

Problem

AI agents (Claude, Amber) read .github/workflows/README.md to understand our CI/CD setup before making workflow changes. The README is wrong:

An agent reading this README will not know about our lint, test, deploy, or agent workflows, and will draft new workflows without considering the upcoming preprod runner. An agent may trust the README and move on without checking with ls.

Moreover, I want to add more high-level guidance here (eg for self-hosted runners ([self-hosted, preprod])), and this will just get lost in the noise.

Proposed fix (edit: rejected, see below)

Auto-generate the workflow inventory from the YAML files so it cannot drift.

Add a pre-commit hook (scripts/pre-commit/gen-workflow-docs.py) that:

  1. Parses name:, on:, and runs-on: from each .yml/.yaml file
  2. Writes a Markdown table between <!-- BEGIN WORKFLOW TABLE --> /
    <!-- END WORKFLOW TABLE --> markers in the README
  3. Runs whenever any file in .github/workflows/ changes

Hand-written sections (Security, Best Practices, Troubleshooting) stay as-is. Only the inventory table is generated.

Reference pattern:
gen_distro_docs.py
in opendatahub-io/llama-stack-distribution's pre-commit hook.

Activity

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

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions