Concepts / Outcomes and checks

Outcomes and checks

Name the result you want and agree on a command that proves it.

Bind the goal to a check

The Job names the outcome. Its first Task brief records the full goal sentence and the check’s argument vector. Agree on the exact command and what exit 0 proves before setup.

Set the hang guard

The default deadline is 300 seconds. To change it, agree on the deadline and pass --timeout-seconds N before -- to scripts/start.py. On timeout, the helper kills the check’s process group, records timed_out in the receipt and leaves the Task open.

Run the agreed check

Use the saved profile, brief and evidence directory when you want to verify the Task.

Example · saved Task
python3 scripts/check.py "$task" --profile "$profile" --brief "$brief" --evidence-dir "$evidence_dir"

Each attempt has its own directory and receipt. A failed check leaves the Task open. Repair the work and run the same bound check again. A successful verification records a close pointer and immediately verifies its digest.

Verify a receipt

With the receipt file from a successful check, use waystone task verify through the listener helper to verify the recorded result.

Example · saved receipt
python3 scripts/listener.py "$profile" task verify "$task" --file "$receipt"

Read the Task state

waystone task state reports the following values in row.state.

pendingunclaimedworkingwaitinginterruptedclosed

A successful close is identified by its result pointer. The separate lifecycle phase can still read Activated.