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 23, 2026
Notes for #147, collected by the coordinator (epic #84), 2026-11-23:
75e472f):docs/DEPENDENCIES.md:21's pin table still reads setup-uv v10.3.3. Both workflows pinastral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0now, so update the table in this PR, as #80 docs: § CI pins and Dependabot records setup-uv v10.3.3, WIF under Dependabot, the 3-day cooldown #111 did for chore: bump astral-sh/setup-uv from 10.3.2 to 10.3.3 #110.4127d5c):docs/DEPENDENCIES.md§ Bumping co-core (step 1) and § Extraction dependencies (the "Since Bump co-core 0.38.0 → ≥ 0.46.1 and drop the soupsieve override (#138) #140" entry) changed. Branch from4127d5cor later.be7c5809(PR chore: update skills submodules #146), the version the attestation needs.The brief comes when this child is next, after #143's phase 2 (from 2026-11-25). The epic's #147 line names the hazards it will weigh. The main one: Processor merges by fast-forward, so
main's push run tests the commit the PR attested, and the deploy gate reads that run.gregoryfoster commentedon Nov 24, 2026
Brief: #147, adopt
shipping-work's local-gate attestation (coordinator, epic #84, 2026-11-24)Authorities:
skills/shipping-work/references/attestation.mdat the vendored9443df67(PR chore: update skills submodules #150, merged 2026-11-24 asc817b34).4127d5cor later. Branch fromc817b34.origin/mainc817b34.Labels:
[measured]: run in this pre-flight;[traced]: read in the code or a diff;[stated]: a doc or issue says so.Why now
[measured: visibility PUBLIC]. This is conformance with the cohort's adopters (CannObserv/status, CannObserv/broker, CannObserv/address-validator), not a cost lever.processor.drift.RUNTIME_*[traced: src/processor/drift.py:63-67]. So the broker's no-deploy days (Wed 11-25 and Fri 11-27, Follow the broker to Valkey 7.2 (CannObserv/broker#85): CI image, scratch server, 7.0.15-only claims #54 comment 7122617711) don't constrain it.Pre-flight
[measured, 2026-11-24]skills/shipping-workis one tracked link to the vendored directory, not per-file links, so_attest-gate.shis already present.push.shthere carries the attestation.GH_TOKEN(fine-grained) now has Commit statuses: Read and write, granted 2026-11-24.statereturned 422 (validation), not 403. Nothing was posted.github-processor:CannObserv/processor.git._attest_repo_ofresolves the alias throughssh -Gtogithub.com, so the write goes toCannObserv/processor..gitmodulessets noignore =, and.venv/is ignored.ignore = dirty, skip-worktree or assume-unchanged path. Processor uses none.redis-serveris 7.0.15, the same as CI's image.The hazards, and what this brief decides
1. The deploy gate. Processor merges by fast-forward, so
main's push run tests the very SHA the PR attested.scripts/deploy.shrequireslintandtestto besuccesson that push run[traced: :56, :255-282].if:skips leaves its jobsuccess. With the reference step as written, the push run would skip pytest, and the deploy would pass with no runner test.if:skips readsskipped, whichdeploy.shrefuses. That is CannObserv/broker's shape, which needs a daily schedule. Here it would block every deploy of an attested commit.2. The local gate doesn't run the integration tests.
shipping-work'spre-ship.shdeselects everyintegration-marked test with its own plugin (:569-593) and runs--no-cov.[measured: --collect-only]: the bus contract against the broker's Redis.uv run pytest, drops a tier no gate ran. The runner'spyteststep takes about 1m39s, of a 2m12stestjob (push run on4127d5c).3. Job-level
permissionsoverride the workflow's.{contents: read, id-token: write}), sostatuses: readmust go on thetestjob. At workflow level it is ignored (CannObserv/broker's finding).tests/test_ci.py:58-61(test_cloud_access_is_job_scoped) asserts the exact dictionaries, so it changes too.4.
tests/test_ci.pyreadsrun:lines by joining them (_runs), not byshlex. CannObserv/status's apostrophe trap doesn't apply[traced]. Buttest_the_whole_suite_runs_against_the_brokers_redis(:212-218) unpacks exactly one line containingpytest. A second pytest step breaks it, so it changes with the design.Operator decisions
pull_request:if: github.event_name == 'pull_request'on theatteststep.test, with the reference'sif:verbatim.mainthen reads nothing and runs the full suite, sodeploy.shandCI_JOBSstay unchanged.]uv run pytest -m integrationwhen the full suite is skipped, so every PR's runner still checks the bus contract against the broker's Redis.main's push run is the only backstop. Under fast-forward,mainhas already moved by then, and a red run blocks deploys until it's fixed.merge_modeispr, and every commit that reachesmaingets a full push run.]Starting the thread approves these recommendations.
What it touches on
main[traced on c817b34].skills/attest-local-gate(new)on, committed: read from the shipped commit, not the work tree.github/workflows/ci.ymltest(:84-155)permissionsgainsstatuses: read. Theatteststep goes afteruv sync,if: pull_request.pytesttakes the reference'sif:. The integration step runs only on the inverse. Comment the step-level choice, as at CannObserv/statusci.yml:115-126tests/test_ci.py:58-61exact permissions (lint unchanged, test addsstatuses: read);:212-218(the full suite still has no-m; the integration step is exactly-m integration). New: theif:never skips onpush,workflow_dispatch, a bot's PR or a fork's PR; the attest step runs only onpull_request; it reads the combined status withper_page=100tests/test_shipping_knobs.pyattest_read_knob(_attest-gate.sh:97), as the file already does formerge_modeanddeploy_commanddocs/SKILLS.md:14's knob row, and § Shipping's table (:80-83): anattest-local-gaterowdocs/DEPENDENCIES.md:21setup-uv → v10.4.0 (PR #148). A short attestation section, Dependencies and CI being this file's subject: what is skipped and where, the trust caveat, never a required statusdocs/DEPLOYMENT.md§ The CI gateAGENTS.md.skills/context-budgetdecidesDone when
on. The PR's push printedAttestation: gate/local = success posted on <sha>, and the combined status shows it.ci.yml. By step:attestreadsattested=yes;pytestis skipped;lintran in full.main's push run on the same SHA:attestis skipped,pytestran the full suite, andlintandtestare green.ok.Refs #147: the Dependabot case stays open (below).Known debt to carry
github-actions, weekly) must showpytestrun in full. That run is Optional: shipping-work's local-gate attestation is available for adoption (gregoryfoster/skills#688) #147's live check.pre-ship.shdeselects. Report it on**For #84:**; the operator decides whether it goes to gregoryfoster/skills.Out of scope
gate/locala required status (the reference says never).deploy.sh,CI_JOBSand the drift check.audit.yml.ci.ymlimage line conflicts textually only.gregoryfoster commentedon Nov 24, 2026
Brief check against
origin/mainc817b34(implementer, 2026-11-24)Every traced reference holds:
ci.ymltest:84-155,test_ci.py:58-61and:212-218,deploy.sh:56/:255-282,drift.py:63-67,pre-ship.sh:569-593,_attest-gate.sh:97.--collect-onlygives 60 of 1,124 integration tests[measured].pyproject.toml'saddoptscarries no-m, so-m integrationon the command line replaces nothing..gitmodulesand.git/configset noignore, and no path is skip-worktree or assume-unchanged[measured]. Building on the three recommended decisions.Corrections and additions:
.skills/doc-sensitive-paths, not in the brief's table. It names eachshipping-workknob (merge_mode…gate-stamp-inputs), so a knob edit sendsdoc-checktodocs/SKILLS.md.attest-local-gatejoins that list.test_each_doc_sensitive_path_matches_a_tracked_pathcovers the new entry.docs/SKILLS.md:14also saystest_shipping_knobs.pyreads "the first two" knobs through the skill's readers. With this change it reads three.docs/DEPENDENCIES.md: the pin table's lead-in ("with setup-uv moved by chore: bump astral-sh/setup-uv from 10.3.2 to 10.3.3 #110") gains chore: bump astral-sh/setup-uv from 10.3.3 to 10.4.0 #148, along with:21's v10.4.0.if:s are tested.tests/test_ci.pyevaluates bothif:s with a small evaluator for GitHub's expression syntax, over an event matrix: push tomain,workflow_dispatch, an attested PR, an unattested PR, a bot's PR, a fork's PR, and a tag. It does not compare strings. It also pins the integration step'sif:as exactly!(<pytest's if>), so the two steps can't both skip and can't both run.[.skills/context-token-counts]:AGENTS.md: 5,945 of 6,000, so 55 tokens free. The CI row gets a short parenthetical at most.DEPLOYMENT.md: 9,473 of 10,000.DEPENDENCIES.md: 8,643 of 10,000.The attestation section stays short.
push.shposts the status before the PR exists, so the PR's firstpull_requestrun finds it. A later push to the PR (a CR commit) starts itssynchronizerun as it lands, and the status follows seconds later. Theatteststep sits afteruv sync, about 30 s into the job, so it usually finds it. If it doesn't, that run runs the full suite, which fails safe.gregoryfoster commentedon Nov 24, 2026
Shipped to PR #151 (awaiting the operator's FF merge)
PR: #151. Head is
6c09fb7a78cea98f94b9eec199f2922e181ed580, ten commits onc817b34(51f6032..6c09fb7)..skills/attest-local-gateis committedon.push.shreused the gate's stamp for this exact tree (1,083 passed, 15 skipped, 60 deselected) and printedAttestation: gate/local = success posted on 6c09fb7…. The combined status readsgate/localsuccess(19:40:52Z).ci.ymltest:statuses: readsits on the job.atteststep runs onpull_requestonly.pytesttakes the reference'sif:verbatim, at step level.pytest (integration)runs on!(<that if>).deploy.shandCI_JOBSare untouched.tests/test_ci.pyevaluates bothif:s over every trigger, attested and not: exactly one of the two steps runs, and the full suite never skips outside an attested human PR.tests/test_shipping_knobs.pyreads the knob throughattest_read_knob.6c09fb7):attest→attested=yes;pytest→ skipped;pytest (integration)→ 60 passed, 1,098 deselected;lintran in full;eb859d9,c453ade,48fdcd0,3318878,6c09fb7). CR 6 is stet:AGENTS.mdis at about 5,962 of 6,000 tokens (offline estimate), which is within budget and what the brief allowed.Known limits:
main's push run on6c09fb7(attest skipped, full suite) can't be seen until the FF merge.github-actionsPR (weekly). That run must showpytestrun in full.Refs #147, so the issue stays open for it.synchronizerun that starts before the write lands) is unobserved. It fails safe: that run runs the full suite.if:evaluator intests/test_ci.pydoesn't model a step's implicitsuccess() &&, and refuses a bare!(CR 1, CR 3). Real syntax was proven by this PR's run, not by actionlint, which isn't installed here.For #84:
pre-ship.shdeselects: everyintegration-marked test. Processor runs that tier on the inverse condition, as a second step.For #143:
push.shasks the gate before it pushes, which takes about 2 min unless the tree's pass is already stamped.pytestand run the integration tier.For #54:
ci.yml'sservices.redis.imageonly. It conflicts with this change textually, not semantically.#147 docs: CR 7 — under FF, main's SHA carries the PR's attestation: …
#147 test: CR 8 — test_shipping_knobs says which checkout each reader…
#147 test: CR 9 — the knob test is named for what it checks
gregoryfoster commentedon Nov 24, 2026
CR round 2 on PR #151, new head
056d23e0b23f898011754c05c54f979fdf99ef3c6167391): the test docstring andci.yml's comment now give the real reason the read is PR-only. Under fast-forward,main's SHA is the PR's head and carries itsgate/local, so a read onmain's push run would skip the suite on the rundeploy.shreads. The earlier text gave CannObserv/status's reason ("a merge GitHub made carries no status"), which is false here. Behaviour was already covered:test_a_status_never_skips_the_suite_outside_a_humans_prchecks the push-to-main case with the status set.8c5719f):test_shipping_knobs.py's docstring says which checkout each reader reads.056d23e): the knob test is renamedtest_attest_local_gate_is_on.push.shran the full gate on the new tree (1,083 passed, 15 skipped, 60 deselected) and attested056d23e.The
synchronizerun (45484170334) checks the status race the earlier comment's Known limits listed as unobserved:attestreadattested=yes, so the status landed before the step ran;pytestwas skipped;pytest (integration)passed 60, with 1,098 deselected;lintran in full.The race stays possible on a slower write, and it fails safe.
gregoryfoster commentedon Nov 24, 2026
Merged: PR #151, fast-forward to
056d23e0b23f898011754c05c54f979fdf99ef3cmainwentc817b34..056d23ebygit merge --ff-onlyandgit pushfrom the main checkout. GitHub marked PR #151 merged at 2026-11-24T21:05:37Z.main's push run (45487533897, same SHA):attestwas skipped;pytestran the full suite: 1,118 passed, 40 skipped;pytest (integration)was skipped (its tests ran inside the full suite);lintran in full;So the run
deploy.shreads means what it did before.Not deployed. The merge touched no
processor.drift.RUNTIME_*path. Live stays4127d5c. The drift check before the merge readok(20:38Z, "1 commit ahead, none that runs"). The first one to see056d23eruns at 21:38Z.The worktree and branch are removed.
Known limits:
github-actionsPR must showpytestrun in full and the integration step skipped. That run is this issue's last live check. Then close.gregoryfoster commentedon Nov 24, 2026
For #84: both upstream notes are posted, each with the operator's approval (2026-11-24):
integrationtier the stock gate deselects;gate/localontomain's push run.