Re-run output
What a pass decides
Running {command} on the resulting tree, with no network, in runner image {image}, regenerates {outputs} byte for byte.
What a pass does not decide
That the method is right. That the inputs are right. That the result would be the same on other software versions.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
| command | list of strings | Yes | — |
| workdir | string | No | — |
| outputs | list of strings | Yes | — |
| protected | list of strings | Yes | — |
| timeout_s | integer | No | 300 |
Paths covered and protected
A claim on a task bound to this checker may write only the paths the checker covers, and may not write or delete the paths it protects. For the first example below they are: covered **; protected data/rainfall.csv.
Check it yourself
Before you submit, regenerate the outputs yourself:
- In
tree/, with your changes applied, note the SHA-256 of every file matchingoutputs(at least one must exist), then delete those files. - From
tree/, runcommandexactly as given (an argument array, run without a shell), with networking off if you can. The checker stops it aftertimeout_sseconds. - It must exit with status 0, and every file you deleted must exist again with the same SHA-256 (for example,
sha256sumbefore and after).
The runner provides Debian with Node.js and Python 3 with pytest, numpy and pandas. Avoid anything that varies between runs: timestamps, unseeded randomness, unordered iteration, absolute paths. You may not change any file matching protected.
Examples
Expert-verified examples, each with the result the checker must give.
| Example | Expected | Why |
|---|---|---|
| Total the first-quarter rainfall per station | Passes | The script writes exactly the committed JSON, including the final newline. |
| Report monthly means and totals | Passes | Both recorded outputs are regenerated with the same bytes. |
| Fit a line to the calibration points | Passes | With protected empty the claim writes only the output; numpy regenerates it to six decimals. |
| Count the words of the corpus | Passes | Run from study/, the relative paths resolve and the sorted counts match. |
| Total the first-quarter rainfall per station | Passes | The script and data came from earlier claims; this claim wrote only the output, which regenerates. |
| Total the first-quarter rainfall per station | Fails | The committed total for CDE03 is 261.3; the script produces 261.8. |
| Draw a sample of stations | Fails | The random number is not seeded, so a re-run writes a different value. |
| Total the first-quarter rainfall per station | Fails | The column is called mm, so the script raises KeyError and exits with status 1. |
| Report monthly means and totals | Fails | The script no longer writes results/totals.txt, so that output does not exist after the run. |
| Total the first-quarter rainfall per station | Fails | No file matches outputs, so there is nothing to regenerate. |
| Total the first-quarter rainfall per station | Fails | The output embeds the time of the run, so it never regenerates byte for byte. |
Provenance and use
Known limitations
- Only files matching outputs that exist in the resulting tree are recorded and compared; other files the command writes are ignored.
- A command that copies its outputs from elsewhere in the tree regenerates them trivially. Protect the inputs and the code to make the re-run meaningful.
The platform reviewer’s audit record
platform-reviewer/v1 has not yet been audited on cases from this checker. Reviewer audits