Skip to content

#147 Adopt shipping-work's local-gate attestation - #151

Merged
gregoryfoster merged 11 commits into
mainfrom
147-attest-local-gate
Nov 24, 2026
Merged

gregoryfoster merged 11 commits into
mainfrom
147-attest-local-gate

Conversation

@gregoryfoster

Copy link
Copy Markdown
Member

Adopts shipping-work's local-gate attestation (gregoryfoster/skills#688), in CannObserv/status's shape, per #147's brief (comment 7141925251; corrections 7142241797). This is conformance, not a cost lever: the repo is public.

What changes

  • .skills/attest-local-gate = on. push.sh gates the exact tree, pushes only what passes, then posts gate/local = success on the pushed SHA.
  • ci.yml test:
    • statuses: read goes on the job's own permissions, since a job's permissions replace the workflow's.
    • An attest step after uv sync, on pull_request only, reads the head's combined status (per_page=100).
    • pytest takes the reference's if: verbatim, at step level.
    • A new pytest (integration) step takes !(<that if>), so an attested PR still runs the tier pre-ship.sh deselects.
    • A push to main reads nothing and runs the whole suite, so deploy.sh, CI_JOBS and the gate's meaning don't change.
    • No schedule.
  • Tests:
    • tests/test_ci.py evaluates both if:s with a small evaluator for GitHub's expression syntax, over every trigger (push, tag, dispatch, a human's PR, a bot's PR, a fork's PR), attested and not. Exactly one of the two steps runs. The full suite never skips outside an attested human PR.
    • It also pins the exact permissions and the attest step's read.
    • tests/test_shipping_knobs.py reads the knob through the skill's own attest_read_knob.
  • Docs:
    • docs/DEPENDENCIES.md: a new § Local-gate attestation, and the setup-uv pin row (v10.4.0, chore: bump astral-sh/setup-uv from 10.3.3 to 10.4.0 #148).
    • docs/DEPLOYMENT.md § The CI gate: one line.
    • docs/SKILLS.md: the knob rows.
    • AGENTS.md: the CI row.
    • .skills/doc-sensitive-paths and doc-sections gain the knob and the new section.

Plan: docs/plans/2026-11-24-147-attest-local-gate.md. CR 1–5 are fixed in their own commits. CR 6 (AGENTS.md has about 38 tokens of headroom left) is stet: it's within budget.

Evidence

  • Local gate: 1,083 passed, 15 skipped, 60 deselected. pytest -m integration against the scratch Redis: 60 passed.
  • push.sh: Attestation: gate/local = success posted on 6c09fb7…, and the combined status reads it back.
  • This PR's own run is the attestation's first real run. Expected: attest reads attested=yes, pytest is skipped, pytest (integration) runs 60 tests, and lint runs in full.
  • After the FF merge, main's push run on the same SHA should skip attest and run the full suite.

No deploy: nothing in processor.drift.RUNTIME_* changes.

Refs #147. It stays open for the live check: the next Dependabot PR must run pytest in full.

🤖 Generated with Claude Code

gregoryfoster and others added 8 commits November 24, 2026 19:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation tier

push.sh posts gate/local on a tree pre-ship.sh passed. ci.yml's test job reads
it on a PR only (statuses: read on the job) and skips the full suite at step
level, so main's push run, which deploy.sh reads, always runs everything. The
integration tier, which pre-ship.sh deselects, runs on the inverse condition.
tests/test_ci.py evaluates both if:s over every trigger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ILLS, AGENTS

Also DEPENDENCIES.md's setup-uv pin row, v10.4.0 since #148.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…assed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gregoryfoster and others added 3 commits November 24, 2026 20:43
…why the read is PR-only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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