Pinned inputs and provenance¶
The plan job in .github/workflows/report.yml resolves every input from its release tag before a trial starts. walk-hallway and scenario need that job. When a check fails, the message names the input and the expected and found values. No report.json is written, and walk-hallway and scenario do not start, because both need the plan job. Collect requires a successful plan whose provenance statuses are verified, not-published, resolved, or fixture, and it does not write a report otherwise.
Inputs¶
| Input | Lock field | What is checked |
|---|---|---|
| capability-verifier | releases.verifier |
Release, tag commit, workflow pin, image digest, attestation. commit, image, and digest in the lock are refused. |
| livingproof-sim-mujoco | releases.runner |
Release, tag commit, source archive sha256, attestation. commit, when present, must equal the peeled tag. |
| robot-capability-specs | releases.specs |
Release, tag commit, each files sha256, sources.parameters.sha256, attestation. commit must equal the peeled tag. Each files entry must equal that file at the tag. sources.parameters.sha256, when present, must equal specs/scenarios/<scenario id>/parameters.json at the specs commit. sources.parameters.path is the robot destination and is not the file that is hashed. |
| livingproof-worlds | world |
Release, tag commit, worlds/<id>/<version>/world.json sha256, attestation. commit, when present, must equal the peeled tag. world.sha256 and sources.world.sha256, when present, must equal that file. |
| livingproof-capability-report | releases.reporter |
Release, tag commit, image digest, attestation. commit must equal the peeled tag. image and digest in the lock are refused. |
No evaluator is one of these pins. Every evaluators entry in the lock is ignored, the Scenario entry too. The caller's evaluators input declares each evaluator, Scenario, Run Integrity (livingproof-evaluator-run) and Health alike, and capability-verifier resolves, installs and runs them. The plan prints one notice when the lock has an entry and does not name it. An empty input declares none.
The tag is read from the definition when the definition has one, and otherwise from the lock. The image name passed to the trial is ghcr.io/living-proof-labs/capability-verifier-hallway or ghcr.io/living-proof-labs/livingproof-capability-report. The lock does not name it.
Checks¶
For each input the plan asks GitHub for the Release named by the tag, peels the git tag to a commit, and then compares:
- Release. A missing Release fails. The message names the input, the tag, and that no release was found.
- Commit. The expected commit is the peeled tag ref:
GET /repos/{owner}/{repo}/git/ref/tags/{tag}, following an annotated tag throughGET /git/tags/{sha}until the object is a commit. When an attestation is published, itsgitCommitis the primary cross-check and must equal that peeled commit. A difference fails as an attestation commit mismatch and no report is written.target_commitishcounts only when it is a full commit SHA and that SHA equals the peeled commit. A full SHA that differs fails as a moved tag. Release notes are not scanned for commits. When the attestation is absent andtarget_commitishis not that SHA, the peeled tag is recorded and the pin's status isresolved. - sha256 or digest. File pins use the
SHA256SUMSasset on the Release when it lists the path. Image pins use theimage:version@sha256:…line in the release notes when it names that image, compared with the registry manifest digest. Source pins use asource.tar.gzorSOURCEline inSHA256SUMSwhen present, compared with the sha256 of the tag archive. A published value that differs from the bytes fails. The message names the input, the path or image, and the expected and found values. - Attestation. The plan reads
GET /repos/{owner}/{repo}/attestations/{digest}. HTTP 404 means no attestation was published. HTTP 200 means an attestation exists: its subject digest, source repository, and commit must all match, or the run fails. The failure names which of the three disagreed and the expected and found values. The plan does not record a mismatched attestation. Any HTTP status other than 200 or 404 fails the run. The plan does not add a sigstore verifier. It trusts the attestations the GitHub API returns for that subject.
contents: read is the workflow permission. The plan does not ask for attestations: read, because every caller of this reusable workflow would have to grant that permission before the plan job could start.
The capability-verifier uses: lines stay a full commit SHA. GitHub rejects an expression there, so the plan cannot swap the called workflow. After the tag peels, that commit must be a9fcc5f6ad87d6ad24fa6a844be6a0ac9bd540a7 (v4.2.13). Any other commit fails before a trial. Renovate's GitHub Actions manager bumps that one line, SHA and # vX.Y.Z comment together. The lock's verifier tag must peel to the same commit. No lock hash is rewritten.
Tag bump¶
capability-verifier accepts verifier-commit, verifier-image and reporter-image. The plan passes the commit and the image:semver@sha256 ref it resolved. The lock fields those inputs replace are refused when present: releases.verifier.commit, releases.verifier.image, releases.verifier.digest, releases.reporter.image and releases.reporter.digest. A one-line edit of the verifier tag therefore needs no relock of a commit or digest. The Scenario evaluator is not pinned here at all: its tag is the one in its evaluators.yml line, and capability-verifier peels it to a commit and records it.
These fields stay, because capability-verifier still reads them and has no input for them. A value that differs from the resolved tag is refused:
releases.runner.commitreleases.specs.commitandreleases.specs.filesworld.commit,world.sha256, andsources.world.sha256sources.parameters.sha256releases.reporter.commit
repin --check requires a commit on every releases.* entry, including the runner, the specs, and the reporter. fetch_hallway_specs.py checks out releases.specs.commit and, when world.commit is present, world.commit. sources.world is fetched at the world commit. sources.parameters.sha256 is compared with specs/scenarios/<scenario id>/parameters.json at the specs commit, the same file capability-verifier fetches. The lock's sources.parameters.path is only where that file is written in the robot repository. A runner, specs, or world tag edit that leaves the old commit or hashes in the lock is refused before a trial. The runner tag must also still match the robot pyproject.toml source, which repin --check compares with releases.runner.tag.
Fixture definitions under tests/fixtures/robot/verifications/, when this repository calls its own workflow, skip the network and record status: fixture. They are not a robot release. A robot repository's definitions are checked.
Status¶
Each input's status is one of:
| Status | Meaning |
|---|---|
verified |
The attestation matched the subject digest, the source repository, and the commit. |
not-published |
HTTP 404. The commit was checked against the release. |
resolved |
HTTP 404, and the release named no commit. The peeled tag is recorded. |
fixture |
This repository's own fixture. The release was not checked. |
Records¶
report.json and run.json both gain inputs. Each entry has name, repository, tag, commit, digest, status, and attestation. report.md and report.txt include a Pinned inputs section stamped by the Action. report.html is re-rendered from the stored report.json with the reporter's own command, render --format html --pinned-inputs, which draws the same section; an empty or absent list renders no HTML section. In a real run that command runs in the lock's reporter image (the trial workflow's reporter-image, which drew report.json, report.md and report.txt), so every report file comes from one reporter version; bumping the reporter in a lock changes the published page. Fixture runs use the reporter this Action installs, which also drew their other report files. Each line is name: status (meaning), so a verified pin reads differently from one that was not. A failed check does not produce that file.
status: resolved can sit beside attestation: not-published. The attestation field records the HTTP 404. resolved means the release named no commit, so the peeled tag is what was recorded. status: not-published with that same attestation field means the 404 happened and the commit was checked against the release.
A missing GitHub Release, or a tag that does not peel to a commit, fails the run as well. That 404 is not recorded as not-published.
Source pins hash the codeload archive of the peeled commit. A pin with more than one file hashes a synthetic sha256 of those file hashes. Those subjects are not what a published attestation names, so the lookup returns HTTP 404 and the pin stays not-published until a later change uses a subject the release actually publishes. Image digests and a single file's sha256 can match.
The plan step sets GITHUB_TOKEN from github.token. contents: read covers the release, tag, and attestation reads. That token is sent only to api.github.com. The codeload archive and the registry token request do not receive it. A bundle_url is fetched only from https://tmaproduction.blob.core.windows.net, with no token, with redirects refused, with a 30 second timeout, and with the body capped at 16 MiB.