Skip to content

Re-vendor pr-draft-gate: this copy was two template revisions behind - #7

Merged
MichalAFerber merged 1 commit into
mainfrom
devops/refresh-pr-draft-gate
Sep 7, 2026
Merged

MichalAFerber merged 1 commit into
mainfrom
devops/refresh-pr-draft-gate

Conversation

@ghost

@ghost ghost commented Sep 7, 2026

Copy link
Copy Markdown

This repo's vendored gate was stale, and it was stale because of me.

templates/pr-draft-gate.yml (main)   11,474 bytes   sha c688947b4904
this repo, before                    10,743 bytes   sha 4417aae24ca6
this repo, after                     11,474 bytes   sha c688947b4904

How it happened

This repo was the pilot for the estate-wide vendoring sweep on 2026-09-07 — the first repo the workflow was placed in, to prove the mechanism worked before running it against 130 others. It was vendored by hand from the template as it stood at that moment: 221 lines.

The template then moved twice while the sweep was still running — tgwab-standards#149 and #150 took it to 229 and then 231 lines. The scripted sweep fetched the template fresh on every invocation, so all 130 subsequent repos received the current version. Only the hand-vendored pilot kept the old one.

That is the ordinary shape of a pilot: the thing you did first, by hand, before the process existed to keep it current.

Why it went unnoticed for hours

scripts/gate-repos.txt — the input to the drift checker that compares deployed copies against the template — lists 12 repos. The estate has 130 active.

So the checker guarding a 131-repo rollout can see 9% of it, and this repo is not among the twelve. The stale copy was invisible to the only control that exists to find stale copies.

A follow-up PR expands that list to the full estate. This one lands first deliberately: expanding the checker's coverage while a known-stale copy is still out there would turn it red on a defect already identified, which teaches people to ignore a new control on its first run.

What changed in the two revisions

Nothing behavioural for this repo — the job name is still pr-draft-gate, which is what a ruleset's required status check matches, and the decision logic is unchanged. The additions are documentation and the pointer to check-draft-gate.test.sh added by #149.

The file is now byte-identical to origin/main's template, verified by sha rather than by line count.


🤖 Generated with Claude Code

https://claude.ai/code/session_016beCydw4C9VrgL9eHzGUG2

Fleet: unattributed

@MichalAFerber
MichalAFerber marked this pull request as ready for review September 7, 2026 05:12
@MichalAFerber
MichalAFerber merged commit c790f1b into main Sep 7, 2026
3 checks passed
@MichalAFerber
MichalAFerber deleted the devops/refresh-pr-draft-gate branch September 7, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant