Skip to content

Adopter docs and catalog snippets hardcode a pin, so every one of them is stale #1472

Closed

Description

@ptr727

Found while adopting the merge-bot task in ptr727/aiopurpleair (ptr727/aiopurpleair#103). Filing rather than changing anything, since the remedy is a fleet-level call.

The finding

Five adopter-facing locations hardcode a ptr727/ProjectTemplate workflow pin. Read on main at 8195c43:

docs/reusable-workflows.md:248                                  merge-bot-task.yml@20616e0a # 2.0.338
docs/reusable-workflows.md:661                   run-codegen-pull-request-task.yml@0b07a59d # 2.0.352
catalog/snippets/workflows/merge-bot-pull-request.yml:22         merge-bot-task.yml@20616e0a # 2.0.338
catalog/snippets/workflows/test-pull-request.yml:23                validate-task.yml@537b1837 # 2.0.376
catalog/snippets/workflows/run-periodic-codegen-pull-request.yml:20
                                                 run-codegen-pull-request-task.yml@0b07a59d # 2.0.352

Three distinct releases, 2.0.338, 2.0.352 and 2.0.376, against a current latest of 2.0.587.

Why this is structural rather than a missed bump

Dependabot bumps a pin in a repository's own .github/workflows/. It does not bump a pin quoted inside a Markdown document or a catalog snippet, so these only ever move when someone edits them by hand, and nothing fails when they do not. The staleness is therefore guaranteed and unbounded rather than occasional. docs/reusable-workflows.md "Adopting the Merge-Bot" tells an adopter to take the snippet "byte for byte", which makes the stale pin the instruction rather than a default.

Concrete harm, observed

merge-bot-task.yml changed after 2.0.338 in #1257, which reserved the no-auto-merge- marker in the matcher. An adopter following the instruction literally adopts a task that predates that fix and gets no signal about it.

aiopurpleair's adoption pinned 2.0.587 instead and had to state in its pull request why it was deliberately diverging from the documented byte-for-byte snippet, which is the wrong thing for an adoption to have to argue about.

PhotoCleaner shows the self-correcting half and its limit: it adopted at 2.0.338 and Dependabot has since carried its workflow to 2.0.577, so the pin fixes itself in the adopting repository while the doc that seeded it stays at 2.0.338 for the next adopter.

What the maintainer may want to decide

The rule this was measured against is that a document should not carry a concrete pin at all, because it will always be stale, and that a pin on main should be the latest release with Dependabot moving it from there. Options, in rough order of effort:

  1. Have the docs and snippets carry a symbolic reference plus one sentence saying to pin the current latest release and let Dependabot bump it, so no literal SHA appears in prose.
  2. Generate the catalog snippets at release time with the release being cut, so the snippet is correct by construction on the day it ships.
  3. Keep the literals and add a check that fails when a doc or snippet pin is older than the newest release, converting silent staleness into a build finding.

Option 1 alone fixes the prose but leaves an adopter to resolve "the latest release" by hand, which is a step that can be got wrong. Options 1 and 2 together give a correct copyable snippet and no stale literal in prose.

Not filed here

No audit report or registry change is being written back as part of this. aiopurpleair's own adoption is ptr727/aiopurpleair#103 and needs nothing from this issue to land.

Activity

  1. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision needed (decision triage, 2026-11-01)

    Question: How should the hub's own adopter-facing literal pins in docs/reusable-workflows.md and catalog/snippets/workflows/ be kept from going stale, since the hub's Dependabot config never scans either path?

    Options, recommended first:

    1. Placeholders in docs, a floor pin in snippets, resolve at adoption (recommended): Docs use @<hub-main-commit-sha> # <release-tag> for every stub (7 of 14 already do) and point to the snippet, which keeps a literal minimum known-good pin bumped on interface changes (Pin the Catalog Caller Snippets to Release 2.0.1122 #3313, Audit a Caller's workflow-model Input Against the Registry #3466). Adoption resolves the pin to the latest release and Dependabot moves it from there: fetch-latest applied at adoption, no new tooling. "byte for byte" stops covering the pin line. No work in flight.
    2. Option 1 plus a bot PR after each release: No hand step, but a release commit cannot name its own SHA, so the snippet is at best one release behind, and it adds a reviewed bot PR per frequent release. No work in flight.
    3. A CI check failing on a stale doc or snippet pin: Makes staleness visible, but a PR fails because a release shipped rather than for its own diff, the failure GOVERNANCE.md:151 pins exist to prevent, and would fire almost every time. No work in flight.
    4. Keep literals, bump by hand (status quo): Nothing to build, but the docs keep telling adopters to copy pins as old as 2.0.338, the merge-bot one predating the Reserve the No-Auto-Merge Marker in the Merge-Bot Matcher #1257 matcher fix. No work in flight.

    Evidence: Literal pins at docs/reusable-workflows.md:276, 360, 369, 562, 573, 585, 771, placeholders at :430, 466, 499, 508, 719, 735, 759. :253 (#748) and :299 (#826) describe bootstrap pins Dependabot bumps from. .github/dependabot.yml scans only "/" and "/.github/actions/*". STANDUP.md:191 already says to satisfy snippets "by outcome rather than byte for byte". Newest tag 2.0.1304.

    Blocks: none

  2. added
    decision
    on Nov 1, 2026
  3. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: placeholders (@<hub-main-commit-sha> # <release-tag>) for every stub in docs/reusable-workflows.md, a literal minimum known-good floor pin in each catalog snippet bumped on interface changes, and adoption steps that resolve the pin to the latest release before Dependabot takes over. This is now work for the next burndown round.

  4. removed
    decision
    on Nov 1, 2026
  5. ptr727 commented on Nov 2, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-02): PR #3836 merged to develop and its branch is deleted, so this claim holds no files. The issue closes on promotion.

    Backlog burndown claim (away run 2026-11-02, round 4, group R4G4). Branch: burndown/1472-snippet-pins. Issues: #1472, #3813.

    Predicted file set:

    • docs/reusable-workflows.md
    • catalog/snippets/workflows/** (the caller stubs and README.md)
    • STANDUP.md
    • tests/test_release_guards.py (only if a test asserts the doc or snippet pin shape)
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions