Skip to content

Workflow and site

The README is the short tour: what the action does, a caller job, the real G1 example, and how an evaluator line is declared. This page keeps the longer notes.

Caller job

Pin .github/workflows/report.yml to a release tag, or to a full commit SHA with a # vX.Y.Z comment. The calling job grants contents: read and pull-requests: write. With comment: false the comment job never writes. merge_group works when the caller workflow listens for it; the robot commit is that event's SHA.

name: Verification report
on:
  pull_request:
  merge_group:
    types: [checks_requested]
  push:
    branches: [main]
permissions:
  contents: read
jobs:
  report:
    permissions:
      contents: read
      pull-requests: write
    uses: Living-Proof-Labs/verification-reports-action/.github/workflows/report.yml@<commit> # vX.Y.Z
    with:
      definitions: verifications/*.toml
      evaluators: evaluators.yml

The same list can be inlined instead of a path. This list declares only Run Integrity, so the report gets a Run Integrity card and no Scenario card:

      evaluators: |
        - Living-Proof-Labs/livingproof-evaluator-run@v1.9.2/livingproof-evaluator.json

To grade the robot as well, declare the Scenario evaluator. Each declared line gets its own card:

      evaluators: |
        - Living-Proof-Labs/livingproof-evaluator-scenario@v1.8.0/livingproof-evaluator.json
        - Living-Proof-Labs/livingproof-evaluator-run@v1.9.2/livingproof-evaluator.json

Leave evaluators unset when the run should not declare any.

How the evaluators input is passed

Evaluators are declared by the caller, not by a default in this action. The Scenario evaluator, which grades the robot, is one of them: this action names no evaluator. The evaluators input is either a path in the caller repository or the list itself. Empty means no evaluators: the plan passes an empty string, capability-verifier runs none, and the collect job does not install an evaluator or add a Run Integrity card. No Scenario card appears unless the run declares a Scenario line. Since capability-verifier v4.0.0 there is no bundled Scenario grade, so a caller that declares no Scenario line gets no Scenario card.

A path such as evaluators.yml is a YAML list in the caller repository. Each item is one declaration line. The line format is owner/repo@vX.Y.Z/path.json, or the same shape with a 40-character commit in place of the tag. Blank lines and # comments are not items. This action joins the items with newlines and passes that text to the evaluators input of walk-hallway.yml and scenario.yml. It does not check the line. capability-verifier refuses a branch name, a short commit, or a relative path, and that refusal is the run's failure reason.

An inline list is the same lines, one per line or as a YAML list, passed directly in evaluators.

This repository's own smoke passes evaluators: evaluators.yml. Other callers do not inherit that file. An evaluator that reads recorded media needs media: true.

The trial workflows run a declared Scenario line and upload its results. When the list has items, the collect job checks out capability-verifier, appends those scenario evaluator results onto the verified bundle, runs the loader on the downloaded evidence for the lines it has not run yet (it reads each descriptor's kind and leaves the Scenario line out, so its results are not placed twice), and re-renders the report with the reporter version the lock pins. That render is given the site path of each trial video and trial recording the job copies into evidence/ (for example evidence/video/trial-01-fail.mp4), so the run page plays the video inline and links it and the recording. The verifier workflow's own links name GitHub Actions artifacts, which the reporter never shows. The loader's exit code is not used. A missing or unreadable provenance file is recorded as Run Integrity NOT RUN (failure), the report is uploaded, and the collect job then fails.

The descriptor schema and the Health example are linked from the README. Pinned release checks are in Provenance.

Reports section step (site/action.yml)

Use Living-Proof-Labs/verification-reports-action/site after downloading the verification-report artifact so a robot repository's documentation build can include reports/ directly.

Generated reports/ layout

  • reports/index.html: single-robot index of the latest result per scenario, with failures first.
  • reports/<robot>/<variant>/index.html: scenario run history ordered newest first, with a Latest report link (latest/).
  • reports/<robot>/<variant>/runs/<run-id>/: immutable per-run directory holding the scrubbed report pages, run.json, SHA256SUMS, grading inputs, and retained evidence.
  • reports/site.json: machine-readable publication marker.

A run folder's SHA256SUMS can be recomputed by whoever wrote the folder, so the site checks what it publishes itself:

  • Report pages: each report.html and run index.html must be valid UTF-8 and fit an allowlist of the reporter's own markup, checked with an HTML parser. Allowed links are https:// or relative (media src and poster attributes must be relative), CSS may only embed fonts, and scripts must be the reporter's own, pinned by SHA-256. A page that fits is published byte for byte. Anything else fails the build, except an unknown reporter script, which is removed with a warning. A page larger than 8 MiB (8,388,608 bytes of UTF-8) fails the build before it is parsed. That is more than ten times the largest page the reporter has published. Deeply nested markup does not slow the check down: its cost grows with the page size, not with the square of the nesting depth.
  • Evidence: files a browser would run, such as .html, .htm, .xhtml, .svg, .xml or .js, are not copied. A link or video on a page to an evidence/ file the site did not publish, for example one over the per-run size limit, is shown as plain text, not as a dead link.
  • Actions addresses: a page may link a CI run page only when it is this caller repository's own run, https://github.com/<this owner>/<this repo>/actions/runs/<id>. The caller is GITHUB_REPOSITORY, not whatever run.url says. A run.json whose run.url is missing, null, malformed or names another repository fails the build and the published-report gate. The address must end after the id. A run page from another repository, a case variant of this repository, or this run address with a suffix such as .zip, ;a=1, :80, &x=1, a query, a fragment or an encoded path, is removed from every published page and from report.json, report.md and report.txt, or shown as plain text, and does not fail the build once stripped. An href that encodes /actions/ (for example &#97;ctions or %61ctions) is refused the same way. Artifact, job, attempt and workflow-file addresses are refused, and any mention of an artifact is refused. require_reports.py also fails the build when the newest run page of a scenario does not link this repository's CI run, does not include a published trial video as both an inline <video> player and a trials-table cell link, or does not link the trial recordings it published, or when a run.json in the tree is unreadable or its run.url is not this repository's run.

History across deployments and pull-request runs

  • Main deployments (restore-history: auto): restores reports/ runs from the calling repository's last successfully deployed GitHub Pages artifact (github-pages or github-pages-*) without committing run history to Git. Grant actions: read to the build job so it can list and download the previous Pages artifact.
  • Evidence retention: copied MCAP, video, and media files older than evidence-retention-days (default 7) are pruned on subsequent builds while report pages, run.json, and SHA256SUMS remain valid.
  • Runs published with a viewer: a restored run whose page an earlier release composed with a viewer (a trusted-viewer/ folder) is kept byte for byte. The Action renders and checks no viewer; the reporter's site command checks the rest of the run. When the run's evidence expires, its page is republished like any other run's, without the viewer.
  • Pull requests: restore-history: auto skips restoring Pages history, upload-artifact: auto uploads the generated reports/ tree as a workflow artifact, artifact-only is set to true, and nothing is deployed.

Example site step

- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
  with:
    name: verification-report
    path: artifacts/verification-report
- uses: Living-Proof-Labs/verification-reports-action/site@<commit> # vX.Y.Z
  with:
    runs-dir: artifacts/verification-report
    output-dir: artifacts/docs/html/reports
    evidence-retention-days: '7'
    site-url: https://docs.livingprooflabs.com/livingproof-unitree-g1/

site inputs

Input Required Default Description
runs-dir Yes — Directory of per-scenario run folders (report.{html,json,md,txt}, SHA256SUMS, run.json).
output-dir No reports Destination path for the static reports/ tree (for example artifacts/docs/html/reports). It is resolved inside GITHUB_WORKSPACE, with symlinks followed. Paths that escape the workspace, name the workspace root, or contain .., .git or a control character are refused.
evidence-retention-days No 7 Days to retain copied MCAP, video, and media files before pruning.
restore-history No auto Restore runs from the last deployed Pages artifact (auto, true, or false).
site-url No empty Optional live documentation URL checked when no Pages artifact is listed.
branch No main Branch whose deployed Pages artifacts hold runs from previous deployments.
pages-artifact No empty Exact Pages artifact name (matches github-pages and github-pages-* when empty).
pages-job No empty Pages deploy job name (matches pages, deploy, and deploy-pages when empty).
reset-history No false Start fresh without restoring runs from the previous deployment (true or false). It is read only while history is being restored, so it does nothing when restore-history is off.
exclude-runs No empty Whitespace- or comma-separated list of restored run folder names (for example 43954868926) to drop from restored history before building. An entry matches that run folder in every scenario. Fails if an entry is not a plain run folder name or matches a run in runs-dir.
upload-artifact No auto Upload the built reports/ directory as a workflow artifact (auto uploads on pull_request).
artifact-name No empty Workflow artifact name when uploaded (defaults to verification-reports-site-<run_id>-<attempt>).
artifact-retention-days No 14 Retention days for the uploaded workflow artifact.
github-token No github.token GitHub token used for read-only Pages artifact lookup and download.

site outputs

Output Description
reports-dir Path to the generated static reports/ directory.
index-path Path to reports/index.html.
runs-count Total number of stored runs in the generated reports/ tree.
artifact-only true on pull_request and merge_group runs (artifact only, never deployed); false otherwise.

Recovering from a restored run that fails the check

Every site build re-checks the runs it restores from the last GitHub Pages deployment. If a previously published run fails the HTML or evidence policy—for example error: restored .../runs/<run-id>/report.html: holds a <script> that is not a known reporter script or error: restored .../runs/<run-id>/evidence/...: evidence of this type is not published—the build fails closed and blocks later deployments until that run is no longer in the restored history.

  1. Option 1 (recommended): exclude the failing run ID with exclude-runs. Add the <run-id> folder name from the error message to exclude-runs in the workflow's site step (whitespace- or comma-separated), then run the site build on a branch that deploys Pages (a pull request build is artifact-only, so it does not change what later builds restore). The run folder is dropped from the restored tree in every scenario that has it—even if its run.json is unreadable or malformed, as long as the folder path itself is safe—with a ::warning:: per removed folder, and all other restored runs are kept byte for byte. An ID that is not in the restored history only warns. Excluding never applies to a run added by the same build: if a runs-dir folder has an excluded ID, the build fails. Once the deployed site no longer has that run, remove the exclude-runs entry from the workflow.
  2. Last resort: one deploy with reset_history. Unsafe archive paths during restore (such as symlinks, .., or archive size and entry caps) and unsafe restored run paths stay fail-closed before exclude-runs can apply. For those errors, or when the GitHub Pages artifact has expired, run the Documentation workflow on main (workflow_dispatch) with reset_history set, plus the current release version, tag, and commit. reset_history defaults to false, and a normal release passes false, so this is one deploy rather than a committed setting. That deploy skips restored history and drops the published run list. Later releases accumulate history again for as long as the Pages artifact is kept.

The docs deploy keeps that Pages artifact for 90 days (retention-days: 90). GitHub clamps the value to the repository or organization maximum when that maximum is lower. Restore refuses to publish when the artifact is gone and the live site still has reports. The artifact published with v3.9.1 expires 29 November 2026 at 08:34 AEDT. The only live G1 run is 46070167027, so one reset at that point drops nothing else.