1. Edit the existing pull request workflows
Find the existing workflows in.github/workflows/ that run on pull_request. Keep their triggers and job conditions. Do not switch to pull_request_target to obtain credentials.
Re-read pins.txt on every setup. Copy its uses: line only if OK=1; do not use a cached SHA or a floating tag. If the manifest is unavailable or reports OK=0, stop and report that you could not verify the pin. Leave jibril_version unset so the Action uses its bundled default. Place the pinned step like this:
actions/checkout in each supported Linux x86_64 job that runs on pull requests. Move and update an existing Garnet step instead of adding a duplicate. For matrix jobs, set the step’s job_index input to ${{ strategy.job-index }}.
Grant id-token: write for GitHub OIDC and ensure contents: read or an existing higher grant. Preserve all other effective permissions, including inherited workflow grants. If every caller of a reusable workflow is in this repository, add Garnet to the reusable workflow and verify or update the grants through every caller, including nested and non-PR callers. Leave the reusable workflow unchanged if any caller is outside this repository or you cannot verify or update its grants; report what is needed. If OIDC is not available, see the fallback in Quick start.
2. Commit, push, and open a pull request
Commit the workflow changes on a new branch, push the branch to GitHub, and open a pull request. Do not stop after editing or validating the files.3. Ask the human to install the App
If the App is not installed on the repository, send the human only this link: https://github.com/apps/garnet-runtime-review/installations/select_target The human completes installation in GitHub. The Action records the job; only the App posts the PR comment.4. Verify that head
Read the current pull request head SHA from GitHub, not the workflow’s test-merge SHA. Callpr_review on the Garnet MCP with githubOrg (the GitHub owner), repo (the bare repository name), and pullNumber (an integer). Require status: finalized, bound_to_head: true, and both head_sha and marker_commit equal to the current GitHub PR head. Read result, capture_quality, reasons, and comment_url. Use the product MCP for PR evidence, not the docs MCP, which searches the documentation.
If MCP errors or returns no usable result, read the trusted garnet-runtime-review[bot] comment on the PR. In the raw comment, match <!-- garnet:commit <sha> --> and the garnet:summary JSON’s commit to that same head, and require the summary’s status: finalized. The comment calls the classification outcome; MCP calls it result. See the comment contract.
- No comment or still recording:
missingwhile CI runs orrecordingis pending. Check once after CI finishes, or on the next requested review; do not wait or poll. If CI finished and there is no comment, check that the App is installed on this repository. - Wrong head or unusable record:
stale,malformed,unsupported,incomplete, and a classification ofnot-recordeddo not verify the PR. Requirecapture_qualityofcompleteorbest-efforton either path; missing orpartialcapture is unknown. A finalizedfirstis a record, not a comparison.best-effortcan support a recorded observation, not completeness; a no-change result withoutcompletecapture is unknown, never clean. - No OIDC grant: If the job lacks
id-token: write, check the Garnet step log and correct the effective permissions. On eligible fork pull requests without OIDC, check for the uploadedgarnet-run-*artifact. The App on the base repository collects it after the run; an upload alone does not verify the comment. - Unsupported runner: An unsupported platform or architecture is skipped and records nothing. Check runner coverage; a green CI job does not prove recording.
result (or comment outcome), its capture limit, and the App comment URL. If the comment has a public Full record in Garnet link, include that exact Execution Profile URL. If there is no usable current-head record, report why instead of presenting an older or pending URL as proof.