Layer 5 · work
process
The procedure a task follows, held by identifier only. A process has a name, a version and the digest of its source; it is published or withdrawn. It may declare the named outcomes a run of it ends with (merged, abandoned). It states whether it needs a model and may name the route its runs take; a process that needs no model takes no route. Whether a step of a task is legitimate under the process is decided by an external evaluator, never here.
Depends on
Used by
- work · layer 5 · 20 references
- trigger · layer 7 · 4 references
- deployment · layer 9 · 4 references
Entities
Process
One published version of a procedure. A task names it by ProcessId; the source itself lives with the evaluator and is known here by its digest.
Identified by process_id (ProcessId).
| field | type | meaning |
|---|---|---|
name | Name | |
version | integer | |
source_digest | string | sha256 of the process source, lower-case hex. |
outcome_names | optional list of Name | The outcomes the process declares for a run of it, such as merged and abandoned. A run of the process that ends with a named outcome names one of these (agentic.work EndRun); a process that declares none takes no named outcome. |
needs_model | boolean | Whether a step of the process makes a model call. False for a process whose steps make none, such as one whose programs all have a model budget of 0: a run of it takes no route (agentic.work StartRun). |
route_id | optional RouteId | The route the runs of the process take; a run of it on another route is refused (agentic.work StartRun). Absent, a run takes any route. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
routereferences Route of model (one, byroute_id)
Lifecycle of Process
Withdrawn.Commands
PublishProcess
Publish a process.
| field | type | meaning |
|---|---|---|
process_id | ProcessId | |
name | Name | |
version | integer | |
source_digest | string | |
outcome_names | optional list of Name | |
needs_model | optional boolean | False for a process whose steps make no model call; absent, the process needs a model. |
route_id | optional RouteId | The route the runs of the process take; absent, a run takes any route. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
route-without-model refused | defined(needs_ | Route: A process that needs no model names a route; nothing was published. |
invalid-version refused | version < 1 | Invalid: A version starts at 1. |
published | otherwise | creates a Process in Published; emits Process |
already-published refused | the Process exists already | Process: A process of this identifier exists; a changed procedure is a new identifier. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
WithdrawProcess
Withdraw a process.
| field | type |
|---|---|
process_id | ProcessId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-process refused | no such Process | Process: No process of this identifier was published. |
withdrawn | otherwise | moves the Process Published → Withdrawn; emits Process |
wrong-state refused | the Process is in a state that does not allow it | Process: The process is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
ProcessPublished | process_ ProcessId, name Name, version integer, source_ string, outcome_ optional list of Name, needs_ boolean, route_ optional RouteId, at timestamp | Publish |
ProcessWithdrawn | process_ ProcessId, at timestamp | Withdraw |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
ProcessesProcesses | each Process | process_ ProcessId, name Name, version integer, source_ string, outcome_ optional list of Name, needs_ boolean, route_ optional RouteId, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
2 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
task_under_withdrawn_processTasks created under a process that was withdrawn. How: TaskCreated events naming a process with a ProcessWithdrawn earlier. Must be 0. | count | lower | gate | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Completeness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
process_steps_done_shareShare of the steps of a task's process that have a recorded result. How: For tasks that name a process, steps with a recorded result divided by steps of the published process. The process is referenced by identifier and evaluated elsewhere. | share | higher | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part process:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
steps | integer of at least 1 | steps | 1 | The steps of the process's program; a run executes each once. | |
agent_steps | integer of at least 0 | steps | How many of the steps are agent steps, each a turn of the role with a model call when the running part reaches a model. Named with person_ or alone; the steps neither names are program steps, each lasting the role's turn_seconds with no model call. Without both, every step is a turn of the role. With both, at most steps together. | ||
person_steps | integer of at least 0 | steps | How many of the steps are person steps, each a question to the part the running part's question link reaches, answered with that part's delay; a running part without a question link is refused. Without agent_, the other steps are program steps. | ||
role | string | The role of the behaviour profile whose turn_seconds a step of a run takes. | |||
model_share | shares | The share of the process's model calls each model part it reaches gets; without it, equal shares. | |||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.