Skip to content

Every catalog workflow pin predates the prose gate's non-UTF-8 fix, so a new repo starts with a gate that crashes on a binary diff #1666

Closed

Description

@ptr727

Every workflow pin in catalog/snippets/workflows/ predates 3d13223 ("Pin What the Prose Gate's Diff Parse Depends On, and Stop Losing a File From Scope", #1588), which fixed the prose gate crashing on any diff carrying a non-UTF-8 byte.

snippet pin
test-pull-request.yml 537b183 (2.0.376)
publish-release.yml 6c88850 (2.0.587)
run-periodic-codegen-pull-request.yml 0b07a59 (2.0.352)
merge-bot-pull-request.yml 20616e0 (2.0.338)

test-pull-request.yml is the one that matters here, since it calls validate-task.yml, which runs the prose gate. A repository stood up from the current snippet therefore gets a gate that raises UnicodeDecodeError out of changed_lines the first time a pull request's diff touches a PDF, an image, or a latin-1 text file, before linting anything.

This is live, not hypothetical. It is what ptr727/Financial-Modeling#378 hit, on a pull request archiving 402 .eml records of which 40 carry cp1252 0x97 and 0xa9 bytes. That repository pins f3b4cc9, the #1111 promotion, which predates the fix the same way. Its session reported the defect here, and the answer was to bump rather than to fix, since the hub was already correct.

Two things worth deciding rather than one.

The narrow one is whether the snippets get bumped now. Dependabot maintains these pins in a repository once it exists, so the staleness self-heals after a repository's first dependency run, and the exposure is the window before that: a new repository's earliest pull requests, which are exactly the ones standing up its content.

The wider one is whether a snippet pin should be a pin at all. The standing fleet call is that a downstream mechanism fetches the hub's latest rather than pinning, which is why the doc gates are fetched unpinned through hub-fetch-run.py, and these uses: lines are the opposite convention for a defensible reason, being how GitHub Actions expects a reusable workflow to be referenced. That tension is worth stating deliberately somewhere rather than leaving each snippet to drift until Dependabot notices.

Found while answering the Financial-Modeling session's report. No change made.

Activity

  1. added
    chore
    gate
    on Sep 17, 2026
  2. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision triage split the undecided item out of this issue into #3745, which carries the decision label. Everything else here stays as ordinary work an agent can do without the maintainer.

  3. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer to the split decision #3745 (decision triage, 2026-11-01): Option 1: keep SHA pins, and add one sentence to GOVERNANCE.md 'Hub-Hosted Tooling' saying the uses: pin is the one Dependabot maintains, so 'never pinned' does not reach it. Bumping the four stale snippet pins stays ordinary work.

  4. ptr727 commented on Nov 2, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-02): PR #3829 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 3, group R3G4). Branch: burndown/1666-hub-tooling-pins. Issues: #1666, #3700.

    Predicted file set:

    • GOVERNANCE.md, the "Hub-Hosted Tooling" section only
    • catalog/snippets/workflows/merge-bot-pull-request.yml, catalog/snippets/workflows/run-periodic-codegen-pull-request.yml
    • catalog/snippets/husky/README.md, catalog/snippets/pre-commit/README.md
    • tests/test_release_guards.py, only if a snippet pin assertion there moves with the bump

    Adjudication update (2026-11-02): the GOVERNANCE.md claim grows by one sentence in the hub-only section "Running the Linters Locally (Known-Working Invocations)", at about line 300. That sentence describes the unresolved-commit fallback. No other live group holds GOVERNANCE.md.

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

    choregate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions