Apetown
Check reference

Check reference

The board writes checks for you. This page is for writing or reading them by hand, for example in a goals file.

Declaration

A check is one line, indented directly under a goal's Check field:

## 1. Site builds
- **Check:** The static build finishes with valid pages.
  check: run node checks/build.mjs timeout=30s

Only that line runs. Commands in backticks or in other fields never run, and a goal with no check line shows as never checked.

Grammar

check: run <program> [argument ...] [timeout=<N>s]
check: http GET <url> <status> [timeout=<N>s]
check: file <path> younger <N><m|h|d> [timeout=<N>s]
check: manual

Run

The program starts directly with its arguments, never through a shell: no pipes, variables, globbing or chained commands. Quote an argument with single or double quotes. It runs in the project folder. Exit code 0 passes, anything else fails. The last 2 KB of output are kept. The time limit is 1 to 300 seconds, 60 by default; at the limit the whole process tree is stopped. For PowerShell, name the interpreter: check: run pwsh -File checks/verify.ps1.

Web address

Passes on the exact status given (100 to 599). Redirects are not followed. Connection errors and timeouts fail. The start of the response body is kept as evidence.

File

Passes when the file exists inside the project, after resolving links, and is newer than the age given in minutes, hours or days. Paths that leave the project fail.

Manual

For a judgement no program can make honestly. It stays manual until a person or agent reports pass or fail with a written note, such as “Reviewed both pages at 1280 and 390 px”.

Results

LightMeaning
PassLast run passed.
FailLast run failed; the output says why.
StaleThe last result is older than 24 hours. Run it again.
ManualWaiting for a reported judgement.
NeverNo result yet, or the declaration is missing or malformed.

Each goal keeps its last 50 results. A goal's Run button has a ten-minute cooldown.