package page→ /runs.md
pages/runs.md
76 lines, 3.1 KB. As a page.
- ---
- type: Collection
- title: "Runs"
- icon: "🏃"
- description: "The run log: what was run, who or what woke it, when it started and ended, how it ended and what confirms it."
- itemType: Run
- items: {mode: path, path: /runs, recursive: false}
- writeTo: /runs
- staleAfterHours: 24
- properties:
- status: {kind: phase, contour: /runs/contours/runs, label: "State"}
- action: {kind: relation, collection: /actions, label: "Action"}
- automation: {kind: relation, collection: /automations, label: "Automation"}
- agent: {kind: relation, collection: /agents, label: "Agent"}
- about: {kind: text, label: "About what (record, task)"}
- woke: {kind: text, label: "Who woke it (hand, clock, change ...)"}
- started: {kind: text, label: "Started (ISO)"}
- ended: {kind: text, label: "Ended (ISO)"}
- ending: {kind: text, label: "Ending word (finished, refused, stopped ...)"}
- evidence: {kind: text, label: "Confirmed by (commit, path, link)"}
- message: {kind: text, label: "Why it failed"}
- wrote: {kind: number, label: "How many pages it changed"}
- retryOf: {kind: text, label: "Retry of run"}
- views:
- - id: runs--table
- name: All runs
- layout: table
- fields: {}
- sorting:
- - {propertyId: started, direction: descending}
- properties:
- - {name: title, visible: true, width: 320}
- - {name: status, visible: true}
- - {name: action, visible: true}
- - {name: automation, visible: true}
- - {name: started, visible: true}
- - {name: evidence, visible: true}
- - id: runs--board
- name: By state
- layout: board
- fields: {}
- board:
- preview: page-content
- cardSize: small
- wrap: true
- grouping:
- by: status
- colorBy: status
- properties:
- - {name: title, visible: true}
- - {name: started, visible: true}
- ---
- One run is one page. It is written when the run starts and completed once when it ends. It is written by whoever started the run: an agent, a script, an automation or the Shtukbase node (it writes such pages itself).
- The run header:
- ```yaml
- type: Run
- title: "Nightly check"
- action: /actions/nightly-check # what was run (or automation, or agent)
- automation: /automations/nightly # who woke it, if an automation
- woke: clock # hand, clock, change, phase, sensor ...
- started: 2026-11-28T03:00:00Z
- status: done # running, waiting, done, failed, cancelled
- ended: 2026-11-28T03:04:12Z
- evidence: ["commit 1a2b3c4", /work/tasks/t-12.md]
- ```
- A finished run carries proof: a commit, a file path, a link, an output line. A failed and a cancelled one carry the reason in `message`. The states are in the [runs contour](/runs/contours/runs.md).
- To record a run: `shtuk run runs start --title "..." --action /actions/<name>` (prints the page address), then `shtuk run runs finish <address> --status done --evidence "..."`.
- `staleAfterHours` in the header of this page is the number of hours after which a run in the state "Running" counts as hung.
- Norms: [RUN-R01](/norms/rules/runs/RUN-R01.md) says a run is recorded whole; [RUN-R02](/norms/rules/runs/RUN-R02.md) says the end of a run is explained.