Repository navigation
Description
Problem
.github/workflows/context-cadence.yml is behind its template. It was generated once, by #126 (595ae1b, 2026-11-08), and never re-rendered. After PR #164 merged (a230791, skills 85768b9d), bash .claude/skills/curating-context/scripts/install-cadence.sh --check reads:
re-render: behind — a re-render rewrites 114 line(s) of the
installed workflow. Run install-cadence.sh
and review the diff before committing it.
Every other guarantee it checks reads yes: the schedule 14 16 * * 2, the drivers, the drift report, the delta check, the checkout pin v7.0.1 (3d3c42e5aac5), merge_mode pr, and the three merge drivers.
What the re-render changes
Measured in a throwaway worktree on a230791 (removed after): 1 file changed, 114 insertions(+), 16 deletions(-), context-cadence.yml only. .gitattributes and both git-config drivers are unchanged. Its two fixes come from gregoryfoster/skills#683, both committed 2026-11-20, so the drift predates PR #164:
- A
pr-mode run off the default branch is refused (finding 1,2e1ec565). A new first step, Hold the run to the default branch, reads origin'sHEADand fails with::error::(nothing measured) when the run is on any other ref. Today aworkflow_dispatchon another branch would merge the measurement branch into that branch. - A measurement PR that ends during the run (finding 3,
48dcea3c, plusKEEP). The step that takes in the open PR's rows records what it took (TAKEN,TAKEN_PR). If that PR merged intomainbefore the push, the row restarts onmain's new tip. If it was closed or deleted, the run fails with::error::instead of pushing a row onto a branch no PR carries. The error texts share a$LOSTvariable.
The rest of the diff is comments.
Fix
In a worktree (never this checkout: scripts/deploy.sh and the skills hook run from it):
bash .claude/skills/curating-context/scripts/install-cadence.shwith no flags. A re-run keeps the schedule and the checkout SHA pin (docs/SKILLS.md:100,docs/DEPENDENCIES.md:26).- Review the diff against the two fixes above: only
context-cadence.ymlshould change, and theactions/checkoutpin must stay3d3c42e5aac5…. No test guards this file's pin:tests/test_ci.py's floor test covers onlyci.ymlandaudit.yml, so read it in the diff. install-cadence.sh --checkreadsre-render: none (a re-render writes the installed file back), with every other line unchanged.- PR, CI green, FF merge. No deploy: a workflow file is not a runtime path.
- After the merge:
gh workflow run context-cadence.ymlonmainonce, and read the run: the new first step logson main, the default branch, and the row lands on PR chore: weekly context measurement #157's branch (context/weekly-measurement). The first scheduled run is Tue 2026-12-08 16:14Z.
Don't hand-edit the workflow (docs/SKILLS.md § Context budget: it is generated).
Done when
install-cadence.sh --checkonmainreadsre-render: none.- One dispatched run on
mainis green, with its row on the open measurement PR.
Known context
- PR chore: weekly context measurement #157 (the open measurement PR) needs a close and reopen before its checks run (opened with
GITHUB_TOKEN). Merging it during the re-rendered run is exactly fix 2's case. - Agent tooling, so out of epic Epic: backlog burn-down 2 — #143 open; #54 and #140 parked on triggers #84 by its boundary decision 1. Found by the coordinator at PR chore: update skills submodules and refresh .skills/doctor.sh #164's post-merge check, 2026-12-03.
🤖 Generated with Claude Code
Activity
gregoryfoster commentedon Dec 3, 2026
Pre-build review against
origin/main(a230791, skills85768b9d)Reproduced:
install-cadence.sh --checkreadsbehind — … 114 line(s); a no-flag re-render in a worktree gives1 file changed, 114 insertions(+), 16 deletions(-),context-cadence.ymlonly,.gitattributesand both driversunchanged, checkout pin3d3c42e5aac5…kept. PR #157 is open (context/weekly-measurement→main, 1 commit, 0 checks). Corrections:MERGE_MODE, so adirectrun passes it. Still "nothing measured, before the key is spent".feature/x,gh pr list --base feature/xfinds no PR, so the measurement branch is kept and merged into thefeature/xcheckout. The row is pushed tocontext/weekly-measurement, so PR chore: weekly context measurement #157 (intomain) picks upfeature/x's commits unreviewed. Thengh pr create --base feature/xopens a second PR from the same head.48dcea3c(finding 3) only factors the PR lookup into one shared block (# >>> which measurement PR), withKEEPand$LOST. The handling for a PR that ends mid-run is finding 2,0e56503d, plus CRs 2564, 2567, 2571, 2574 and 2575 (0cc4236a,80b8e5a1,18ba01bd,ae4ce464,36ab63eb).main's new tip (the row merged into it) when the taken-in tip is an ancestor oforigin/main. That happens after a merge commit, or after our FF push, so an FF merge of chore: weekly context measurement #157 during a run takes the restart path. A squash or rebase merge, a close, a branch deletion or a failed fetch all get::error::.[ -n "$KEEP" ] || OPEN='': anOPENread before its branch was deleted mid-run no longer reports "updated PR #N". The restart path opens a new PR instead.PR_BRANCH=also moves into the shared block (no behaviour change). The checkout comment gains #675's reason for pinning by SHA.tests/test_dependabot.py::test_every_workflow_pins_each_action_to_a_commit_with_its_tagreads every workflow, this one included, so a re-render that wrote a bare tag would fail CI. You're right that nothing holds the value or a floor (test_ci.py's floor test isci.yml/audit.ymlonly), so the SHA still has to be read in the diff.Building as specified otherwise.
gregoryfoster commentedon Dec 3, 2026
Done. PR #166 was fast-forwarded to
mainat58e6f63. No deploy: the merge changes no runtime path.install-cadence.sh --checkonmain:re-render: none (a re-render writes the installed file back). Checkout pinv7.0.1 (3d3c42e5aac5).mainat58e6f63: success. Hold the run to the default branch loggedon main, the default branch. The take-in step loggedmeasuring after the rows on context/weekly-measurement (PR #157), and the commit step272bfcf..3bab107 HEAD -> context/weekly-measurement,updated PR #157 with this run's row. The delta check: nothing to repair.Not exercised: the path for a measurement PR that ends mid-run (fix 2) has only been checked by reading the code. PR #157 still needs a close and reopen before its checks run.
gregoryfoster commentedon Dec 3, 2026
CR 3 (held: the generated workflow cites skills issues as bare
#N, four of which are also processor numbers) filed upstream as gregoryfoster/skills#743.