Skip to content

chore(ci): make stale tree guard a required check (#1318) - #1328

Merged
athvin merged 1 commit into
mainfrom
chore/1318-require-stale-tree-guard
Nov 27, 2026
Merged

athvin merged 1 commit into
mainfrom
chore/1318-require-stale-tree-guard

Conversation

@athvin

@athvin athvin commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Closes #1318

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

The ci-and-supply-chain skill's stale-tree-guard section and the stale-tree-guard.yml header now say the guard is required, and record the evidence for promoting it. Branch protection gains the stale tree guard context right after this merges. That is repository configuration, not a file, so it is recorded in the ledger.

Why

This is #1318's promotion order. The guard has reported on real pull requests and has been seen failing on a real return (#1327). No open pull request would be blocked: there were none at the time of writing.

Proof

  • Its first 14 PR runs: 11 success, 1 true finding (perf(web): keep the app's providers off the marketing site (#1122) #1327, all four files returned to fd8c72a3, exempted by revert-ok, which I created for it), and 2 failures on feat/995-journaled-apply and fix/1281-webkit-marketing-flakes. Those branches predate the guard's script (No such file), and both passed after a rebase.
  • gh pr list --state open: empty.
  • make skills-check: ok. make workflow-shell-check: ok.

Risk & rollback

A branch cut before 2026-11-27 ~06:30 UTC fails the now-required check until it is rebased. Rollback: remove the context from branch protection, then git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:871c2645-29b1-4996-bd69-8809abfc82fe on brians-MacBook-Pro · 2026-11-27T10:57:16Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: 7b69e7c: rust 45984959148, frontend 45984959170, infra 45984959180, devcontainer 45984959242, all success.
  • images built, or correctly never ran because nothing that goes into
    an image changed: n/a: only a skill doc and a workflow comment changed, which go into no image.
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: n/a: no image built, so nothing deployed.
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: nothing push-only is touched by a docs and workflow-comment change. drift is red on The er-alerts SNS email subscription has never been confirmed — 19 armed alarms reach nobody #1107, not this change.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: CI: promote stale tree guard to a required check once it has reported on real pull requests #1318 closed by the merge.
  • follow-ups are open for everything deferred here — numbers: none.
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: written into the ci-and-supply-chain skill's stale-tree-guard section: the evidence, the revert-ok label, and the pre-guard-branch rebase.

Specific to this change

  • Branch protection on main lists stale tree guard among the required contexts. Read first, because the PUT replaces the list. done: POST .../required_status_checks/contexts ["stale tree guard"] (the additive endpoint, not the replacing PUT). It now reads 16 contexts, stale tree guard among them, with strict still false.

🤖 Generated with Claude Code

The guard has reported on 14 pull-request runs: 11 passes with no false
positive, one true finding (#1327's deliberate re-land, exempted by
revert-ok), and two failures on branches cut before its script existed.
The skill section and the workflow header now say it is required; branch
protection gains the context once this merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 7b69e7c into main Nov 27, 2026
44 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 27, 2026 10:46 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — e357d18c Deployed Nov 27, 2026 by athvin via remove closed PR previews #110
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.

CI: promote stale tree guard to a required check once it has reported on real pull requests

2 participants