Repository navigation
Description
From gregoryfoster/skills#516's coordinator, 2026-11-21. One notice like this goes to each repo that vendors gregoryfoster/skills.
shipping-work can now attest the local gate (gregoryfoster/skills#688, shipped in be7c5809). It's opt-in, and a repo that does nothing sees no change.
What it does
With .skills/attest-local-gate committed as on, shipping-work's push.sh checks the gate on the exact tree before it pushes. It pushes only a clean tree that passes. Then it posts the commit status gate/local = success on the pushed SHA, and reads it back. Your CI can then skip its heavy tier for that commit, and still run it for Dependabot's PRs, forks' PRs, scheduled runs and manual runs.
Does it pay here?
This repo is public, so its runs on standard GitHub-hosted runners are not billed and this lever saves nothing here. No action is needed; this notice is for the record, and it can be closed once read.
It pays only in a repo that is private (so its minutes are billed), whose CI cost is duration-shaped, and whose PRs come from people who ran the same gate before pushing. auditing-ci-cost's census now prints a BILLING line that says whether a repo is billed at all (gregoryfoster/skills#597).
To adopt, if it pays
The steps are on gregoryfoster/skills#688 (adopter steps), and the reference is shipping-work/references/attestation.md. In short:
- Bump the vendored skills to
be7c5809or later. Ifskills/shipping-work/scripts/is a directory of per-file links, add one for_attest-gate.sh. - Commit
.skills/attest-local-gateholdingon. - Check the token. A classic
ghtoken withrepocovers it; a fine-grained token needs Commit statuses: Read and write. - Add the CI step from the reference, with
statuses: readinpermissions. - Run the census before, and again about 30 days after.
Know before turning it on
- The push changes. With the knob on, it refuses a tree the gate fails, a tree with uncommitted changes, and a tree with paths git was told not to watch. The gate often runs in full at the push.
- The status is trust, not proof. Anyone with push access can post it. Never make
gate/locala required status by itself. - The CI step hasn't run on Actions yet. The first adopter's first PR is its first real run. Please confirm there that an attested human PR skips the heavy tier and a Dependabot PR doesn't, and report back on shipping-work: build the opt-in local-gate attestation step (attest-local-gate) from #602's sketch gregoryfoster/skills#688.
- One known gap, open as shipping-work: gate-stamp.sh stamps a tree whose edits git was told to hide (submodule ignore, skip-worktree, assume-unchanged) gregoryfoster/skills#694: the gate's stamp can record a pass for a tree whose edits git was told to hide (an
ignore = dirtysubmodule, skip-worktree, assume-unchanged), and a later attestation can reuse it. It's next in line to fix.
Activity
gregoryfoster commentedon Nov 22, 2026
Brief: #456, adopt the local-gate attestation anyway (epic #394 coordinator, 2026-11-22)
Taken on the operator's decision, 2026-11-22: adopt it, even though this repo is public. The billing case doesn't apply here, so the reason to adopt is to be the first repo where the CI step actually runs, which upstream asks for. Pre-flighted read-only against
origin/main4102ae87, with the vendored skills at284c3d9eand upstreammainatbe7c5809. Labels:[measured]read from the repo, a run or the API;[traced]followed through code or docs;[stated]the notice or the reference says so.What it saves here
[measured: PR run 44797969426, #455]The PR's checks took about 45 s of wall clock in total. The heavy steps are
pytestintest(18 s) andpytest -m integrationinintegration(19 s). Skipping them saves about 20 s of wall clock per agent PR, and no money, since the repo is public. The squash commit onmaincarries no status, so the push run onmainstill runs every tier, and the coordinator's verify recipe (CI by job on the squash commit's push run) is unchanged.Still true
[measured]be7c5809isn't in the vendored284c3d9e. It's 132 commits ahead, and_attest-gate.shis new.skills/shipping-worklinks the whole directory, so the new script comes with the bump.main'sinstall-cadence.sh,--checkstill exits 0, but it reportsre-render: behind, 114 lines. Those include thepr-render fixes from curating-context: the cadence's pr render trusts GITHUB_REF_NAME, can reopen a squashed PR's rows, and discovers the PR twice gregoryfoster/skills#683, which this repo filed: the default-branch hold and the merge-commit restart.GET commits/<sha>/statusreturnspending, with 0 statuses). Whether it can write a status can't be checked without writing one.ignore, and no path is skip-worktree or assume-unchanged. The only extra files ingregoryfoster-skillsare git-ignored__pycache__/directories, which are ignored, not untracked.tests/ci/test_co_pypi_ci.py:83asserts a job'spermissions == {"contents": "read", "id-token": "write"};tests/test_integration_gate.py:100assertsintegration's permissions equaltest's.Decisions (starting the thread accepts the recommendations)
[Operator decision: skip only the two pytest steps, in test and integration; lint and migrations always run — recommend.]The local gate covers what those two steps check:scripts/pre-ship.shruns the vendored gate with CI's no-serverTEST_DATABASE_URL(pre-ship.sh runs the default suite against the real test database, so a DB test missing its integration marker passes locally and fails only in CI #406), which matchestest;pytest -m integrationwith the no-skip check, which matchesintegration.It doesn't run
alembic upgrade headfrom an empty database, oralembic check. Somigrationsisn't covered, and it stays.[Operator decision: two PRs — first the skills bump plus the cadence re-render, then the attestation — recommend; or one PR.]push.shattests that PR itself. Its ownpull_requestrun, using its ownci.yml, is the first real run of the step.[Operator decision: report the first real run on gregoryfoster/skills#688 (closed, collecting adopter reports) — recommend; posted only with the operator's OK at the time.]Operator step (before PR 2's push)
GH_TOKENin.envholds, on CannObserv/watcher. The agent token can't check its own permissions.ATTESTATION NOT POSTED. CI then runs everything, which fails safe. Never post the status by hand (attestation.md).Hazards (weigh them; overrule with evidence)
permissionsreplace the workflow's. Bothtestandintegrationdeclare their own, sostatuses: readgoes on each job, besidecontents: readandid-token: write, not at the top of the workflow.if:: never for a bot's PR, a fork's PR, a tag, or anything other than a push or a pull request. Copy the reference's expression as it is.integration's no integration test skipped step reads the JUnit file that the pytest step writes. Give it the sameif:, or it fails on a missing file whenever the pytest step is skipped.head.shaonpull_request, nevergithub.sha(that's the merge commit).push.shchanges under the knob.__pycache__/above, check that ignored files really pass).scripts/pre-ship.shagain at the push. The vendored gate reuses its pass, but the wrapper's integration run doesn't record one, so expect about 20 s extra at each push.gate/local=successon its head;testandintegration, the attest step readsyesand the pytest steps show skipped;mainruns every pytest step.user.type == 'Bot') has to run the pytest steps in full. Leave it under Known limits for the coordinator to read at the next batch.docs/SKILLS.mdon the knob, and one indocs/COMMANDS.md's CI paragraph saying a PR from an attested push skips the two pytest steps, whilemainand Dependabot never do. Re-measure both, and AGENTS.md if it's touched (it's near its budget at 5,488 of 6,000; leave it alone if you can).gh pr update-branchfor whichever merges second).Done when
be7c5809or later, the cadence re-rendered with--checkclean, the host pulled, and the submodule updated.on, the CI step and its tests, and the docs.Out of scope
Making
gate/locala required status (never, per the reference); a schedule forci.yml, since every push tomainalready runs the full tier; any sibling repo.gregoryfoster commentedon Nov 22, 2026
Brief review: corrections before building (2026-11-22)
Re-checked against
origin/main4102ae87and upstreammain(stillbe7c5809; nothing newer). Holds as written: 132 commits ahead,skills/shipping-workis a whole-directory link, combined-status read works (pending, 0), no submoduleignore, no skip-worktree/assume-unchanged path, clean porcelain with--ignore-submodules=none.Corrections
[measured]. Itsrun:comment sayscontext's: an unbalanced quote toshlex.split, whichtests/test_integration_gate.pyruns over every step'srun(_pytest_step,test_no_job_selects_live). Pasted as is, all ofTestCiJobserrors withNo closing quotation. The commands and theif:go in verbatim; the explanation moves to YAML comments aboverun:.[traced].test_co_pypi_ci.py:83is parametrized over all four syncing jobs, so it goes per-job (statuses: readontestandintegration, absent onlintandmigrations).test_integration_gate.py:100assertsintegration's permissions equaltest's, so it keeps passing unchanged. That's the property we want, so it stays as is. The red test is the new per-job one.test_the_integration_job_sets_up_like_the_test_jobcomparessteps[:pytest], so it then pins the two attest steps equal at no cost.integration's postgres service still starts, because job-levelservicescan't be conditional, so the saving is the pytest steps alone, as stated.gh pr update-branchon PR 2[stated: attestation.md, "a merge commit made on GitHub carries no status"]. Its new head would be a GitHub merge commit with nogate/local, so that run is unattested and the hazard 5 proof would point at a superseded run. Ifmainmoves under PR 2, mergeorigin/mainlocally and runpush.shagain (the gate re-runs and attests the new head).update-branchstays fine for PR 1 and the cadence PR.git submodule update --initcomes beforepush.sh. Without it, theskills/links dangle,scripts/pre-ship.shexits 2, andpush.shsays Nothing was pushed. For PR 2, the worktree branches from the post-PR-1main, with the bumped submodule checked out.The rest of the brief stands. Building PR 1 now.
#456 docs: the re-rendered cadence's two new refusals
gregoryfoster commentedon Nov 22, 2026
PR 1 of 2: #459 (skills bump plus the cadence re-render), open and waiting for the operator's OK
gregoryfoster-skillsis bumped from284c3d9etobe7c5809._attest-gate.shcomes with the whole-directory link.context-cadence.ymlis re-rendered by upstreaminstall-cadence.sh(+115/−17). It adds the pr-mode default-branch hold and the merge-commit restart (curating-context: the cadence's pr render trusts GITHUB_REF_NAME, can reopen a squashed PR's rows, and discovers the PR twice gregoryfoster/skills#683).--checkexits 0 and reportsre-render: none. The schedule and the checkout SHA pin are kept.docs/DEPENDENCIES.mdon the re-render's two new refusals (a run that isn't onmain, and the PR merged mid-run). One finding was declined:checkout pin: kept, which is correct after a Dependabot bump.a4bcea0eand31dc5bea. The PR run 45046873251 is green: lint, test, integration and migrations.Known limits:
mainis squash-only. A PR merged mid-run fails that run, and the remedy is a fresh dispatch, as the new docs line says.#456 fix: CR — drift guard against the vendored reference; comments a…
gregoryfoster commentedon Nov 22, 2026
PR 2 of 2: #460 (attest the local gate), open and waiting for the operator's OK
.skills/attest-local-gateison.push.shattested both of this PR's pushed heads:9177bfab, then002b055dafter the CR fixes. Each push took about 35 s, because the wrapper's integration run re-runs at the push.ci.yml:testandintegrationeach get anatteststep just before pytest, identical in both. The pytest steps andintegration's no-skip check carryattestation.md'sif:verbatim.statuses: readis set on each of those two jobs.lintandmigrationsalways run.9d40b238):tests/ci/test_attest_local_gate.pyevaluates theif:. It never skips for a bot's PR, a fork's PR, a tag,workflow_dispatch,schedule,pull_request_targetormerge_group. It also pins the step, the per-job permissions, the knob (through the vendored reader) and a drift guard against the vendoredattestation.md.test_co_pypi_ci.pynow checks permissions per job.002b055d):pushtriggers only onmain).NOT CONFIRMEDtoo. One finding was declined; it's under Known limits below.docs/SKILLS.mdanddocs/COMMANDS.md's CI section. Both are under the 10,000-token budget (8,919 and 8,880 estimated).AGENTS.mdis untouched.9177bfab, and 45048784312 on002b055d.gate/localpassed on each head, and the attest step succeeded.testandintegration, the pytest steps and the no-skip check were skipped, with all four checks green. On a human, same-repopull_requestrun, onlyattested == 'yes'can skip them.testtook 13–19 s, against 30 s on #456 chore: bump vendored skills to be7c5809, re-render the cadence #459, andintegration26–28 s, against 45 s.main(it should run every step), posted after the merge.Known limits:
user.type == 'Bot') has to run the pytest steps in full. The coordinator can check it at the next batch.main's push runs, where its answer can't skip anything. A transient GitHub API error there failstestandintegrationwithout running a test. The fix is a re-run. It was declined in CR to keep the reference verbatim; it could go upstream with the #688 report.yesis inferred, because nothing else in theif:can skip a human same-repo PR's steps.gregoryfoster commentedon Nov 22, 2026
Hazard 5 proof: complete (2026-11-22)
#460 merged as
11f4e340, and the host has pulled it. No restart: the change is CI, docs and a knob only.gate/local=successon the PR head002b055d:push.shprinted posted … and read back, andgh pr checkslistsgate/local passtestandintegration, the attest step readsyesand the pytest steps are skipped9177bfab): attestsuccess;pytest (default…),pytest (integration)andno integration test skippedallskippedpass;mergeStateStatuswas CLEAN, and the squash merge went throughmainruns every pytest step11f4e340: attestsuccess, both pytest steps and the no-skip checksuccess, all four jobssuccess; the combined status of11f4e340holds no contexts ([])The attest step doesn't print its answer, so the
yesis inferred: on a human, same-repopull_requestrun, onlyattested == 'yes'can skip those steps.Known limits:
user.type == 'Bot') has to run the pytest steps in full. The coordinator can check it at the next batch.gregoryfoster commentedon Nov 27, 2026
The Dependabot half is discharged (epic #394 coordinator, 2026-11-27) [measured]: the first
dependabot[bot]PRs since the knob turned on (11f4e340) ran CI in full. Thetestandintegrationjobs on #467 (run 46051711200, head6d0c8fd3) and #468 (run 46051718937, head11a9537a) ran both pytest steps and the no-skip check, allsuccess. The attest step also ran and reportedsuccess. The two reasons it would pass, a skipped gate or a stamp, can't be told apart from here. Either way, nothing was skipped. The upstream follow-up on gregoryfoster/skills#688 (closed 2026-11-21) waits for the operator's OK.