ShtukbaseStandard
集合/runs.md

运行

运行日志:运行了什么,谁或什么唤醒了它,何时开始与结束,如何结束,以及什么证实了它。

页面字段(7)
icon🏃
itemTypeRun
items{mode: path,path: /runs,recursive: false}
writeTo/runs
staleAfterHours24
properties{status: {kind: phase,contour: /runs/contours/runs,label: 状态},action: {kind: relation,collection: /actions,label: 动作},automation: {kind: relation,collection: /automations,label: 自动化},agent: {kind: relation,collection: /agents,label: 智能体},about: {kind: text,label: 关于什么(记录、任务)},woke: {kind: text,label: 谁唤醒了它(人工、时钟、变更……)},started: {kind: text,label: 开始(ISO)},ended: {kind: text,label: 结束(ISO)},ending: {kind: text,label: 结束方式(完成、拒绝、停止……)},evidence: {kind: text,label: 由以下证实(提交、路径、链接)},message: {kind: text,label: 失败的原因},wrote: {kind: number,label: 改动了多少页面},retryOf: {kind: text,label: 重试的运行}}
views[{id: runs--table,name: 全部运行,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: 按状态,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}]}]

一次运行即一个页面。它在运行开始时写入,在结束时补全一次。它由发起运行的一方写入:智能体、脚本、自动化,或 Shtukbase 节点(节点会自行写入这类页面)。

运行的页眉:

type: Run
title: "夜间检查"
action: /actions/nightly-check        # 运行的内容(或自动化,或智能体)
automation: /automations/nightly      # 若为自动化,由谁唤醒
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]

已完成的运行须附有证明:提交、文件路径、链接或输出行。失败和取消的运行,在 message 中写明理由。状态见运行流程轮廓。

记录一次运行:shtuk run runs start --title "..." --action /actions/<name>(输出页面地址),然后 shtuk run runs finish <地址> --status done --evidence "..."。

本页页眉中的 staleAfterHours 是一个小时数:处于“运行中”状态的运行,超过这个时数后即视为挂起。

规范:RUN-R01 规定运行须被完整记录;RUN-R02 规定运行的结束须有说明。

包 运行日志 会把此页面放在 /runs.md。源文本