Skip to content

Verification locks

A verification lock records the commits, release tags and hashes a walk-hallway run uses. Passing lock --check compares those records with the files and tags they name. That comparison is a pin check. It is not a capability result, and it is not robot certification.

Two files carry locks, and they use different format strings. The version numbers are the format of each file.

Name Format string File
Robot verification lock livingproof-verification-lock/1.0.0 verification.lock.json in the robot repository
Caller verification lock livingproof-verification-lock/0.1.0 <definition-stem>.lock.json beside the definition. lock writes this format.
Caller verification lock livingproof-verification-lock/0.2.0 The path passed as verification-lock. A run copies that file to caller-verification.lock.json. lock in this repository writes a 0.1.0 file.

The robot lock is the document the runner already reads. 0.1.0 records the sha256 of that file and copies its releases. 0.2.0 carries the evidence fields itself. A caller run projects those evidence fields into a 1.0.0 document so the runner can read them, and records the replaced robot file's sha256 on that document.

Hash fields, commits and image digests are written by the command that computes them. Recorded hashes names each command and the check that rejects a value typed in by hand.

Spellings

Value Spelling Example of the shape
Commit 40 lowercase hexadecimal characters 0123456789abcdef0123456789abcdef01234567
File sha256 64 lowercase hexadecimal characters, with no prefix definition.sha256, robot.lock.sha256, configurations[].sha256, world.sha256, overridden_robot_lock.sha256
Image digest sha256: and then 64 lowercase hexadecimal characters releases.reporter.digest
Release tag v and then X.Y.Z of digits v1.2.3
Repository OWNER/NAME Living-Proof-Labs/capability-verifier
Scenario id name@version walk-hallway@0.1.0
Configuration version X.Y.Z of digits 1.1.0

An uppercase hash or commit fails the pattern check that applies to that field. A tag without the leading v fails where the tag pattern applies. 0.1.0 read_lock requires the verifier tag and commit keys to exist, and the pattern check for those two keys is the comparison of the whole releases object with the robot file, together with repin --check on that file. 0.2.0 read_lock applies the tag, commit, repository and digest patterns itself.

Robot verification lock

livingproof-sim-mujoco reads verification.lock.json from the robot root. This repository's evidence writer builds that document from a 0.2.0 caller lock. The document's top-level keys are format, scenario, releases, world, configurations and plan, in that order. format is written as livingproof-verification-lock/1.0.0.

$comment may sit on a robot file. It is left out of the evidence document.

When a caller run replaces a robot file that was already there, the evidence document gains overridden_robot_lock.path (verification.lock.json) and overridden_robot_lock.sha256 (the sha256 of the file before replacement). When the robot commit has no lock file, the log line is robot commit has no verification.lock.json and the document has no overridden_robot_lock object.

The two robot files kept in this repository are tests/fixtures/g1-862cf979-verification.lock.json and tests/fixtures/repin/verification.lock.json. Together their leaves are:

Field What the files hold
format livingproof-verification-lock/1.0.0
scenario walk-hallway@0.1.0 in both files
$comment A note. The evidence writer omits it.
releases.specs.repository OWNER/NAME
releases.specs.tag A vX.Y.Z tag
releases.specs.commit The commit that tag names
releases.runner.repository OWNER/NAME
releases.runner.tag A vX.Y.Z tag
releases.runner.commit The commit that tag names
releases.verifier.repository OWNER/NAME
releases.verifier.tag A vX.Y.Z tag
releases.verifier.commit The commit that tag names
releases.verifier.image Present on the G1 file: ghcr.io/living-proof-labs/capability-verifier-hallway
releases.verifier.digest Present on the G1 file, beside that image
releases.reporter.repository OWNER/NAME
releases.reporter.tag A vX.Y.Z tag
releases.reporter.commit The commit that tag names
releases.reporter.image ghcr.io/living-proof-labs/livingproof-capability-report in both files
releases.reporter.digest The registry digest beside that image
world.id hallway-open in both files
world.version 0.1.0 in both files
world.repository OWNER/NAME in both files
world.tag A tag in both files
world.commit A commit in both files
configurations[].name Configuration name
configurations[].version X.Y.Z
configurations[].path Path of the configuration file inside the robot repository
configurations[].sha256 sha256 of that file
plan.command_speed A number in both files
plan.trials An integer in the repin fixture
plan.trials.count The trial count in the G1 fixture, where plan.trials is an object
plan.seeds[] The seed list in the repin fixture
plan.required_passes An integer in the repin fixture

repin also reads releases.<name>.expected while an entry is still PENDING_RELEASE. Filling that entry removes expected. The message is releases.{name} is PENDING_RELEASE (expected {expected}), and {expected} falls back to the words a release tag when the key is absent.

The walk-hallway plan step reads these paths from verification.lock.json: configurations[].name, scenario, world.id, releases.verifier.repository, releases.verifier.commit, releases.verifier.tag, releases.verifier.image, releases.verifier.digest, releases.reporter.image, releases.reporter.tag and releases.reporter.digest. Evaluator declarations are separate explicit caller inputs; no evaluator is implicitly selected by the lock.

Resolved pin inputs

walk-hallway.yml and scenario.yml take three optional string inputs. Each defaults to empty. An empty input leaves the lock field as the value the plan step already writes. A caller that has resolved a release tag passes the commit or image ref it checked, and the run uses that value.

Input Lock field Accepted value
verifier-commit releases.verifier.commit 40 lowercase hexadecimal characters
verifier-image releases.verifier.image, releases.verifier.tag and releases.verifier.digest, joined as image:tag@digest ghcr.io/living-proof-labs/capability-verifier:<semver>@sha256:<64 hex>
reporter-image releases.reporter.image, releases.reporter.tag and releases.reporter.digest, joined the same way ghcr.io/living-proof-labs/livingproof-capability-report:<semver>@sha256:<64 hex>

<semver> is MAJOR.MINOR.PATCH: three numeric parts, no leading zeros, and no pre-release suffix. The image tag has no leading v. That is the ref the plan step builds from a lock (ltrimstr("v") on the tag, then image:tag@digest). Digests and commits are lowercase. Any other spelling fails before the value is written as a job output. The image semver has to equal the lock tag with one leading v removed. verifier-image semver 2.11.5 does not match releases.verifier.tag v2.11.4 and the same sentence for reporter-image and releases.reporter.tag. A supplied commit has to be the commit already recorded for that tag: verifier-commit <input> does not match the commit for tag <tag> (<lock commit>). If the verifier or reporter has no tag, the input fails with lock has no tag before either comparison. The media and bundle gate still reads releases.verifier.tag and releases.reporter.tag from the lock file.

The plan step passes each input through an environment variable (RESOLVED_VERIFIER_COMMIT, RESOLVED_VERIFIER_IMAGE, RESOLVED_REPORTER_IMAGE). It does not interpolate the inputs into the shell script. apply_resolved_pins.sh decides with jq and, when the input supplies the value, writes the commit, image and digest into verification.lock.json and caller-verification.lock.json before the capability step and repin --check. The evidence and media jobs stamp those plan outputs onto the fresh evidence lock, so the recorded releases are the values the run used. definition run applies the same inputs before it checks out releases.verifier.commit.

An empty component is absent. jq -r still prints null for a missing verifier commit and :3.15.4@ when the reporter tag is present and the image and digest are missing, and that text is the output when the input is empty. It is not a present value. A missing or empty .commit, .image or .digest is filled by the input. A non-empty component that differs from the input fails before the plan outputs are written. The message names the input, the input value, the lock field and the lock value:

verifier-image <input> does not match releases.verifier.digest (<lock>); the verification lock is stale

The same sentence is used for releases.verifier.image, releases.reporter.image and releases.reporter.digest. A commit that differs uses does not match the commit for tag instead. A value that fails the spelling check is not compared with the lock. The messages are:

verifier-commit must be a 40-character lowercase hexadecimal SHA (got <value>)
verifier-image must be ghcr.io/living-proof-labs/capability-verifier:<semver>@sha256:<64 hex> (got <value>)
reporter-image must be ghcr.io/living-proof-labs/livingproof-capability-report image, tag <semver>, digest sha256:<64 hex> (got <value>)

got prints the rejected value with shell quoting. The plan job records the source that supplied each field: verifier-commit-source, verifier-image-source and reporter-image-source are input or lock.

Caller verification lock 0.1.0

python3 -m capability_verifier.definition lock DEFINITION.toml fetches the definition's robot ref, reads verification.lock.json at that commit, and writes livingproof-verification-lock/0.1.0 to <definition-stem>.lock.json. The same entry point is livingproof capability verify lock DEFINITION.toml.

Field Role
format livingproof-verification-lock/0.1.0
definition.sha256 sha256 of the definition file bytes
definition.path The definition file name. lock writes it. lock --check does not read it.
procedure walk-hallway or scenario
robot.repository OWNER/NAME from the definition
robot.ref The branch, tag or commit that was resolved. lock writes it. lock --check does not read it.
robot.commit The fetched commit. lock --check requires 40 lowercase hexadecimal characters.
robot.configurations The names from the definition. Each name must appear in the robot file's configuration list at lock time.
robot.lock.path verification.lock.json
robot.lock.sha256 sha256 of that robot file's bytes
releases.verifier.repository Copied from the robot file. The key is required.
releases.verifier.tag Copied from the robot file. The key is required.
releases.verifier.commit Copied from the robot file. The key is required.

releases is the robot file's releases object, copied whole. Further release entries travel with it. lock --check requires releases.verifier and then requires the whole object to equal the robot file at robot.commit.

0.1.0 remains accepted by lock --check. A 0.1.0 file is not an evidence source: the evidence writer requires 0.2.0 for plan, world and configuration sha256s.

Caller verification lock 0.2.0

lock --check and the workflow input verification-lock accept livingproof-verification-lock/0.2.0. This repository's lock command writes 0.1.0. The required leaves below are what read_lock demands.

Field Rule
format livingproof-verification-lock/0.2.0
definition.sha256 sha256 of the definition file. lock --check compares it with the file bytes.
definition.path Accepted. lock --check does not read it.
procedure walk-hallway or scenario
scenario name@version, for example walk-hallway@0.1.0
robot.repository OWNER/NAME. lock --check requires it to equal the definition.
robot.ref Accepted. lock --check does not read it.
robot.commit Required as a key. lock --check requires 40 lowercase hexadecimal characters, then checks out that commit.
robot.configurations A non-empty list of names. It must equal the definition. Every name must appear in configurations.
robot.adapter The non-empty [tool.livingproof] adapter string. lock --check compares it with pyproject.toml at the locked commit.
releases.specs.repository OWNER/NAME
releases.specs.tag vX.Y.Z
releases.specs.commit 40 lowercase hexadecimal characters
releases.runner.repository OWNER/NAME
releases.runner.tag vX.Y.Z
releases.runner.commit 40 lowercase hexadecimal characters
releases.verifier.repository OWNER/NAME
releases.verifier.tag vX.Y.Z
releases.verifier.commit 40 lowercase hexadecimal characters. lock --check checks out this commit.
releases.reporter.repository OWNER/NAME
releases.reporter.tag vX.Y.Z
releases.reporter.commit 40 lowercase hexadecimal characters
releases.reporter.image Required string. The run uses image:tag@digest.
releases.reporter.digest Required sha256: digest
world.id Non-empty string
world.version Non-empty string
world.sha256 Optional. When present, 64 lowercase hexadecimal characters. lock --check checks that spelling and does not open a world file for it.
configurations[].name Non-empty string. Names are unique.
configurations[].version X.Y.Z
configurations[].path A relative path inside the robot repository. An absolute path, or a path that contains .., fails before any fetch.
configurations[].sha256 64 lowercase hexadecimal characters. lock --check compares it with the file at the locked commit.
plan.command_speed Optional JSON number. A boolean fails. Criteria belong to the declared evaluator.

Evaluator declaration lines

scenario.yml and walk-hallway.yml accept explicit newline-separated evaluators declarations, <owner>/<repo>@<ref>/<path>.json. Each ref is a stable release tag or full immutable commit. Branches, unsafe paths and ambiguous declarations refuse. The loader checks the installed source against direct_url.json; descriptor grading semantics determine aggregation.

The Run only declared evaluators step invokes capability_verifier.run. It validates current evidence before executing declarations and writes judgments.json. No declarations means no evaluator results and no grade. Only declared grading results contribute decisions. Missing expected results, malformed results, execution errors and refusals cannot produce PASS. Non-grading results remain separate from grading decisions. The verifier does not run named evaluator fallback jobs or derive evaluator thresholds.

The assessing jobs fetch the specs commit the evidence lock declares with tools/fetch_hallway_specs.py --from evidence/manifest.json. Every file in releases.specs.files must match its declared sha256, description.json as well as parameters.json, or the step fails. Those jobs do not pass --record. fetch_hallway_specs.py --from MANIFEST --record PATH still writes livingproof-specs-files/0.1 when a caller asks for it: run_id, the specs repository and tag, the commit the checkout resolved to, and files, the sha256 of each declared file as read from the checkout (not the lock's values). A failed check writes no record and removes an old one. The workflow does not copy that file into an integrity result.

releases.specs.digest, releases.runner.digest and releases.verifier.digest are optional. A digest must match the sha256: spelling. releases.specs.image, releases.runner.image, releases.verifier.image require the matching digest: an image alone fails with {label}.digest must be a sha256 digest. A digest alone, with a matching spelling, passes read_lock. repin --check compares a digest with the registry when the entry has image.

The lock's releases.verifier.image and digest are what the jobs are asked to run, so a digest read from the lock only repeats the lock. When the lock names a verifier image, the evidence job also runs .github/scripts/record_verifier_image.py from the workflow's own commit. It asks the container engine for the image under the job's container (the runner's job.container.id) and the registry digests that image was pulled by, and writes verifier-image.json (livingproof-verifier-image/0.1) into the evidence artifact, beside manifest.json. Fields: image and locked_digest (the lock), digest (the engine's digest of that image), matches (true when the locked digest is one the engine reports, false when the engine reports another), image_id, repo_digests and container. When the engine cannot be reached, does not know the container, or reports no digest of that image, digest and matches are null and unavailable says why. A difference or a missing answer is recorded with a workflow warning and does not fail the job. The record comes from the evidence job only; the verify job is not recorded. The reporter image is not recorded.

robot.json configuration names must equal the configurations names in the same order. That list is the full configurations array, including entries the definition did not select. robot.configurations is the selected subset.

A 0.2.0 world or plan object may carry further keys. The evidence projection copies the object whole. The published robot files carry world.repository, world.tag, world.commit, plan.trials, plan.trials.count, plan.seeds[] and plan.required_passes. read_lock accepts those keys and does not require them. read_lock requires a plan object, world.id and world.version. plan.command_speed is optional.

A walk-corner lock (scenario walk-corner@0.1.0, world.id hallway-corner) names the world livingproof-sim-mujoco v3.2.1 vendors: world.tag v1.3.0 of livingproof-worlds, not a later worlds tag with the same bytes, which that sim refuses. It must carry world.sha256: the grader refuses walk-corner evidence whose lock.content.world.sha256 is missing or differs from the world it grades.

Field inventory

The tables above are this inventory. The test tests/test_lock_format_docs.py rebuilds it from read_lock, from lock, and from the two robot fixtures.

{
  "caller_0_1_0": {
    "format": "livingproof-verification-lock/0.1.0",
    "required": [
      "definition.sha256",
      "format",
      "procedure",
      "releases.verifier.commit",
      "releases.verifier.repository",
      "releases.verifier.tag",
      "robot.commit",
      "robot.configurations",
      "robot.lock.path",
      "robot.lock.sha256",
      "robot.repository"
    ],
    "written_unchecked": [
      "definition.path",
      "robot.ref"
    ]
  },
  "caller_0_2_0": {
    "format": "livingproof-verification-lock/0.2.0",
    "required": [
      "configurations[].name",
      "configurations[].path",
      "configurations[].sha256",
      "configurations[].version",
      "definition.sha256",
      "format",
      "plan",
      "procedure",
      "releases.reporter.commit",
      "releases.reporter.digest",
      "releases.reporter.image",
      "releases.reporter.repository",
      "releases.reporter.tag",
      "releases.runner.commit",
      "releases.runner.repository",
      "releases.runner.tag",
      "releases.specs.commit",
      "releases.specs.repository",
      "releases.specs.tag",
      "releases.verifier.commit",
      "releases.verifier.repository",
      "releases.verifier.tag",
      "robot.adapter",
      "robot.commit",
      "robot.configurations",
      "robot.repository",
      "scenario",
      "world.id",
      "world.version"
    ],
    "optional_digest": [
      "releases.runner.digest",
      "releases.specs.digest",
      "releases.verifier.digest"
    ],
    "optional_image_requires_digest": [
      "releases.runner.image",
      "releases.specs.image",
      "releases.verifier.image"
    ],
    "optional_file_sha256": [
      "world.sha256"
    ],
    "accepted_unchecked": [
      "definition.path",
      "robot.ref"
    ]
  },
  "robot_1_0_0": {
    "format": "livingproof-verification-lock/1.0.0",
    "evidence_fields": [
      "format",
      "scenario",
      "releases",
      "world",
      "configurations",
      "plan"
    ],
    "not_copied": [
      "$comment"
    ],
    "caller_run_adds": [
      "overridden_robot_lock.path",
      "overridden_robot_lock.sha256"
    ],
    "repin_optional": [
      "releases.<name>.expected"
    ],
    "fixture_fields": [
      "$comment",
      "configurations[].name",
      "configurations[].path",
      "configurations[].sha256",
      "configurations[].version",
      "format",
      "plan.command_speed",
      "plan.required_passes",
      "plan.seeds[]",
      "plan.trials",
      "plan.trials.count",
      "releases.reporter.commit",
      "releases.reporter.digest",
      "releases.reporter.image",
      "releases.reporter.repository",
      "releases.reporter.tag",
      "releases.runner.commit",
      "releases.runner.repository",
      "releases.runner.tag",
      "releases.specs.commit",
      "releases.specs.repository",
      "releases.specs.tag",
      "releases.verifier.commit",
      "releases.verifier.digest",
      "releases.verifier.image",
      "releases.verifier.repository",
      "releases.verifier.tag",
      "scenario",
      "world.commit",
      "world.id",
      "world.repository",
      "world.tag",
      "world.version"
    ]
  }
}

Writing a lock

The definition file is livingproof-verification-definition/0.1.0. lock and lock --check read it first. It needs format, id (lowercase letters, digits and dashes), procedure (walk-hallway or scenario), robot.repository, robot.ref and a non-empty robot.configurations list.

lock resolves robot.ref with git fetch of that ref and records robot.commit. It refuses a definition configuration that the robot file does not list: {repository}@{commit12} has no configuration {names}, where {commit12} is the first 12 characters of the commit. On success it prints wrote {path}; review it before committing.

repin fills PENDING_RELEASE release entries on a robot lock, or on the caller lock when the workflow points --lock at caller-verification.lock.json:

python3 -m capability_verifier.repin --root ROBOT runner=vX.Y.Z verifier=vX.Y.Z reporter=vX.Y.Z
python3 -m capability_verifier.repin --root ROBOT --check
python3 -m capability_verifier.repin --root ROBOT --check --offline

Each entry=vX.Y.Z is resolved with git ls-remote. An annotated tag is peeled. A tag that does not exist is an error: {repository} has no tag {tag}; release it first (tags are never invented). An entry with image also records digest from the registry manifest for image:X.Y.Z (the tag with the leading v removed). The digest lookup accepts ghcr.io images. Any other host fails with {image}: only ghcr.io images are supported. Pinning runner rewrites the livingproof-sim-mujoco source in pyproject.toml to that tag and runs uv lock. The change log ends with uv.lock: regenerated by uv lock. --dry-run prints the changes and leaves the files in place. With no entry=vX.Y.Z and no --check, the command exits with name at least one entry=vX.Y.Z, or pass --check.

repin --check prints NOT RELEASED: {problem} for each problem and {lock}: every ref is a released tag when there are none. --offline skips the tag-to-commit lookup and the registry digest lookup. The problems it can report:

  • releases.{name} is PENDING_RELEASE (expected {expected})
  • releases.{name} needs a vX.Y.Z tag and a full commit
  • releases.{name} has an image but no sha256 digest
  • releases.verifier.image is {image}, not ghcr.io/living-proof-labs/capability-verifier-hallway
  • pyproject.toml has a path-pinned dependency
  • pyproject.toml livingproof-sim-mujoco source is not tag {tag}: {body}
  • releases.{name}: cannot resolve {tag}: {error}
  • releases.{name}: {repository} tag {tag} is {resolved}, not the locked {recorded}
  • releases.{name}: cannot read {image}:{tag}: {error}
  • releases.{name}: {image}:{version} is {published}, not the locked {recorded}
  • {image}:{tag} is not published ({code}); release it first
  • {image}:{tag}: registry returned no sha256 digest
  • {name}={tag}: expected vX.Y.Z
  • unknown entry {name}; one of {names}
  • pyproject.toml has no [tool.uv.sources] livingproof-sim-mujoco line

The tag comparison treats a moved tag, a deleted tag, and a hand-edited commit as the same failure: the tag resolves to a commit other than the one in the lock.

What lock --check enforces

python3 -m capability_verifier.definition lock DEFINITION.toml --check
python3 -m capability_verifier.definition lock DEFINITION.toml --check --workflow FILE
python3 -m capability_verifier.definition lock DEFINITION.toml --check --work DIR

--work defaults to artifacts/.lock-work. --check re-resolves nothing. It uses the commit written in the lock, including when the definition's ref has moved on since locking. Success prints {lockname}: robot {repository}@{commit12}, verifier {tag}: ok, with the first 12 characters of the commit.

The checkout of a reused --work directory is git checkout -f --detach FETCH_HEAD, then git clean -fdx -e .venv. Tracked edits are discarded. Untracked files other than .venv are removed. The hash comparison reads the files at the pinned commit.

Shared checks, for 0.1.0 and 0.2.0:

  • The lock file is missing: {path} is missing; runlock {definition}and review it.
  • The lock is not a JSON object, or its format is neither 0.1.0 nor 0.2.0.
  • A required key is missing, or a required object lacks a required child. Several read_lock problems are joined with ; and the line ends with ; re-run lock and review.
  • definition.sha256 differs from the definition file: {name} changed since it was locked; re-run lock and review.
  • robot.repository or robot.configurations differs from the definition: {lockname}: robot.{key} {recorded} differs from {definition} ({current}); re-run lock and review.
  • robot.repository fails OWNER/NAME: {lockname}: robot.repository {value} is not OWNER/REPO.
  • robot.repository matches the definition and robot.commit is not 40 lowercase hexadecimal characters: robot.commit is not a full commit sha.
  • robot.repository differs from the definition: the checker reports that edit and skips the checkout.

When robot.repository matches the definition, 0.1.0 fetches robot.lock.path at robot.commit:

  • The file's sha256 differs: {repository}@{commit12} lock differs from {lockname}.
  • The sha256 matches and releases differs: releases in {lockname} differ from the robot lock.

When robot.repository matches the definition, 0.2.0 fetches the robot tree and the verifier tree. That comparison reads the configuration files, pyproject.toml and robot.json. The robot verification.lock.json stays out of it. On the robot tree:

  • {repository}@{commit}: {path} is missing
  • {repository}@{commit}: {path} sha256 is {actual}, not the locked {recorded}
  • {repository}@{commit}: pyproject.toml is missing
  • {repository}@{commit}: pyproject.toml has no [tool.livingproof] adapter string
  • {repository}@{commit}: [tool.livingproof] adapter is {actual}, not the locked {recorded}
  • {repository}@{commit}: robot.json is missing
  • {repository}@{commit}: robot.json configurations must be a list of objects with name
  • {repository}@{commit}: robot.json configuration names are {actual}, not the locked {recorded}

0.2.0 shape failures from read_lock, before that fetch:

  • scenario must be name@version (for example walk-hallway@0.1.0), got {value}
  • robot.adapter must be the [tool.livingproof] adapter string
  • robot.configurations must be a non-empty list of names
  • configurations must be a non-empty list
  • configurations[{index}] must be an object
  • configurations[{index}].name must be a string
  • configurations[{index}].version must be X.Y.Z
  • configurations[{index}].path must stay inside the robot repository
  • configurations[{index}].sha256 must be 64 hex characters
  • configuration names must be unique
  • robot.configurations {names} are not in configurations
  • plan must be an object
  • plan.command_speed must be a number
  • world.{id|version} must be a string
  • world.sha256 must be 64 hex characters
  • {label} must be an object
  • {label}.repository must be OWNER/NAME
  • {label}.tag must be a vX.Y.Z release tag (got {value})
  • {label}.commit must be a full commit sha
  • {label}.digest must be a sha256 digest
  • {label}.image is required for releases.reporter when image is missing or is not a string
  • robot.lock must have path, sha256 on a 0.1.0 lock
  • releases.verifier must have repository, tag, commit on a 0.1.0 lock
  • missing {key}
  • {key} must have {children}, including definition must have sha256, robot must have repository, commit, configurations, lock (0.1.0), robot must have repository, commit, configurations, adapter (0.2.0), releases must have verifier (0.1.0), releases must have specs, runner, verifier, reporter (0.2.0), world must have id, version
  • procedure must be one of ['scenario', 'walk-hallway']
  • format is not livingproof-verification-lock/0.1.0 or livingproof-verification-lock/0.2.0
  • {path}: not valid JSON ({error}); re-run lock and review
  • {path}: must be a JSON object; re-run lock and review
  • {path}: not valid TOML ({error})
  • {path}: no such definition
  • format must be 'livingproof-verification-definition/0.1.0'
  • id must be lower-case letters, digits and dashes
  • robot.repository must be OWNER/NAME
  • robot.ref is required (a branch, tag or commit)

check() reports its own problems on separate lines. read_lock joins its problems with ; and ends with ; re-run lock and review.

With --workflow, the job whose id equals the definition id must call {verifier repository}/.github/workflows/walk-hallway.yml@{verifier commit} for procedure walk-hallway, or .github/workflows/scenario.yml at that commit for procedure scenario. scenario.yml runs the scenario and world the lock names (walk-corner, for example); walk-hallway.yml is the thin wrapper around it. Its evidence step passes the evidence document it wrote (verification.lock.json in the robot checkout) to livingproof-sim-mujoco with --lock when the robot's uv.lock has sim 3.0 or later, which requires it. A robot on sim v2.x gets the same command as before, without --lock. Owner and repository compare case-insensitively. The commit compares exactly. The job must pass the locked robot repository, the locked robot commit and the locked configurations. A commented-out pin does not count. Another job that calls the procedure fails unless its id is another definition beside this one. The messages:

  • {workflow}: cannot be read as YAML ({error})
  • {workflow}: has no jobs
  • {workflow}: no job calls {target} for {repository} (job {id}); must call {pinned}
  • {path}: job {name}: calls the procedure, but job id {name} is no known definition; every procedure-calling job's id must be a definition
  • {path}: job {name}: must call {pinned} (calls {uses})
  • {path}: job {name}: must pass the locked robot repository {repository}
  • {path}: job {name}: must pass the locked robot commit {commit}
  • {path}: job {name}: must pass the locked configurations '{json}'

Declared evaluator refs

Each explicit declaration identifies its descriptor and immutable commit (or a release tag resolved to that commit). The installed package's direct_url.json must agree with the resolved source. There is no default evaluator and no verifier dependency pin used as an evaluator fallback. Caller lock validation continues to verify robot, configuration and generic release pins independently.

A caller lock committed in the robot repository

caller-verification.lock.json is the copy a caller run writes for repin --check. A copy already committed in the robot repository is a different thing. The plan step Refs from verification.lock.json treats it as follows.

When EVIDENCE_SOURCE is caller, that file is the pin. The workflow sets caller by passing verification-lock. The plan step sets COPY_CALLER_LOCK=1, and the evidence writer then projects the 1.0.0 document and writes the caller file to caller-verification.lock.json.

When EVIDENCE_SOURCE is anything else, including empty and robot, and caller-verification.lock.json is in the robot tree, the step exits 1 with:

caller-verification.lock.json is committed in the robot repository; pass verification-lock or remove that file

That refusal is the first action in the step, before jq. The verifier runtime that replays the step does not install jq. A caller lock passed in verification-lock remains the pin, because that run's source is caller.

The evidence script refuses a bad verification-lock path on its own:

  • An empty input, and no robot verification.lock.json: the robot commit has no verification.lock.json; pass verification-lock (a path in the caller repository). The local run command's wording is the robot commit has no verification.lock.json; pass a livingproof-verification-lock/0.2.0 as verification-lock.
  • A path that starts with / or contains ..: verification-lock must be a relative path inside the caller repository.
  • A missing file: caller has no verification lock at {path}.
  • A file whose format is not 0.2.0: evidence inputs are written from a livingproof-verification-lock/0.2.0 (got {found}). A 0.1.0 lock does not own plan, world or configuration sha256s.
  • A 0.2.0 file missing an evidence field: verification lock is missing {fields}.
  • A replacement digest that is not 64 hexadecimal characters: overridden robot lock sha256 must be 64 hex characters, got {digest}.
  • Evidence input that is not JSON: {path}: not valid JSON ({error}).

On success the script prints source=caller or source=robot. A caller write logs EVIDENCE_SOURCE: caller and either overridden robot verification.lock.json sha256: {digest} or robot commit has no verification.lock.json. A 0.1.0 local run leaves an existing robot verification.lock.json byte for byte.

Evaluator outcomes

An empty declaration set writes no grade. The verifier records current-input integrity and operational refusals independently of evaluator judgments. Only explicitly declared grading evaluators may contribute robot decisions; non-grading evaluators cannot turn a missing grading verdict into PASS.

Recorded hashes

Record a hash, a commit or an image digest by running the command that computes it. Change the file, the tag or the definition, then run that command again. A value typed by hand fails the check that compares it with the file, the tag or the registry. repin --check describes a commit that is not the commit its tag resolves to as a moved or deleted tag, or a hand-edited commit.

Record Written by Mismatch
definition.sha256 lock, from the definition file bytes {name} changed since it was locked; re-run lock and review
robot.lock.sha256 lock, from the robot verification.lock.json bytes {repository}@{commit} lock differs from {lockname}
robot.commit lock, from the fetched ref robot.commit is not a full commit sha, and the checkout uses the recorded commit
releases.{name}.commit repin, from git ls-remote. Tags are never invented. releases.{name}: {repository} tag {tag} is {resolved}, not the locked {recorded}
releases.{name}.digest repin, from the registry Docker-Content-Digest releases.{name}: {image}:{version} is {published}, not the locked {recorded}
configurations[].sha256 Compared with the file at the locked commit. This repository's lock command writes 0.1.0, which has no configuration sha256 of its own. {repository}@{commit}: {path} sha256 is {actual}, not the locked {recorded}
overridden_robot_lock.sha256 The evidence writer, from the robot file before replacement overridden robot lock sha256 must be 64 hex characters, got {digest}
world.sha256 Optional on a 0.2.0 lock. The checker tests the spelling. world.sha256 must be 64 hex characters

File sha256 fields are 64 lowercase hexadecimal characters. Image digests add the sha256: prefix. The two spellings are not interchangeable: configurations[].sha256 set to a sha256: digest fails .sha256 must be 64 hex characters, and releases.reporter.digest set to a bare 64-character hash fails .digest must be a sha256 digest.

How the evidence step ended

The evidence job writes evidence-ending.json (livingproof-evidence-ending/0.1) into the evidence artifact, beside manifest.json, whether the step succeeded, failed, was cancelled or timed out. The JSON Schema is src/capability_verifier/livingproof-evidence-ending-0.1.schema.json, and the tests check every record the workflow writes against it. Fields:

Field Meaning
configuration The configuration name of this matrix leg
ended exited (the runner command returned an exit code), signalled (the exit code was 128+N, how a shell reports a process killed by signal N) or unfinished (the step's own shell never reached the end of the command)
exit_code The runner command's exit code as the step's shell saw it, or null when unfinished
signal The signal name for signalled (KILL for 137, TERM for 143), otherwise null
step_outcome The workflow's outcome for the evidence step: success, failure, cancelled or skipped
manifest_present Whether manifest.json was in the uploaded directory
planned_trials plan.trials.count from the run's lock, or null when the lock has no whole-number count of zero or more

How to read it: exited with exit_code 0 is a clean run. Exit 4 is trials that disagreed (the manifest carries the test-system finding and the step continues). Any other non-zero exit is a runner failure. signalled is a runner killed from outside, for example by the kernel's out-of-memory killer. unfinished with step_outcome cancelled is a job timeout or a cancellation, and unfinished with failure is a step whose shell died. A program that itself exits with a code above 128 is recorded as signalled. A run on a verifier release before this file has no evidence-ending.json, and neither does a job whose runner or virtual machine disappears, because no later step runs.

Hosted-runner behaviour, checked with throwaway probe workflows (branch scratch/155-probe, since deleted) in a container job on ubuntu-24.04: when the job timeout cancels the step, or the run is cancelled, or the step's shell is killed with SIGKILL, the next if: always() step still runs, sees the evidence step's outcome as cancelled or failure, and the artifact upload after it succeeds. The probes did not run this workflow and did not write evidence-ending.json; they show the always() and upload pattern only. The Python that writes the record is covered by the tests, not by a hosted run.

A temp record from the evidence step that is not a complete exited or signalled object (a missing key, a wrong type) is not used: the record says unfinished with a null exit code and signal, and the job log shows what was there.

The report job runs only when verify succeeded, which needs the evidence job, so a run whose evidence step failed is already failed. An empty evaluators input does not run an integrity evaluator on that evidence, and it does not write a Run Integrity card.

Collection diagnostics

The lower-level artifact collector leaves off any result file that is not valid JSON (truncated, invalid or not UTF-8). It writes a problems file where each line names the evaluator (id and version, or "unknown" when the file cannot be read). It does not make judgments. The declared execution path validates results before aggregation: a missing, refused or malformed expected grading result cannot yield a grade.

Verifier image name transition

New releases publish the executor image at ghcr.io/living-proof-labs/capability-verifier:<semver>@sha256:<digest>. The Docker build target, native AMD64/ARM64 checks, and immutable version guard remain unchanged. Existing capability-verifier-hallway image locks and historical release records remain valid; new releases do not publish a second alias.

Consumers must first verify the new release's canonical image and index digest, then update their image resolver and release lock together. Do not rename an old image reference: its historical version is not published in the new repository. The Reports Action currently constructs the old repository name and needs its own reviewed consumer update after the canonical release is available.


Documentation home · Docs: v6.0.4 · Source · Help / report an issue · License