This revision. An adopted process is an agent (Section 15.7). It presents the interface the Common Agent Specification defines: its Descriptor is generated from the document, and the runtime that runs the document is its harness. Section 15.7 says which part of the document each member of the Descriptor comes from, and a reference process has a Descriptor too, with its blanks left open as what setting it up needs. A blank may end in a mark saying what kind of answer it takes, such as <your legal reviewer (person)> (Section 15.4), and a role keeps one wording throughout a document (Section 15.3). Every new part is optional, so no document in the corpus fails anything new.

0.10.0. A phase can start on a draft (Section 8.4.1). Where a handoff waits on a person, a document may let the phase after it begin on what the person is reading, by ending the handoff line with on draft: <key>. Nothing that phase produces is handed on until the handoff exists. Where what it was given changed, or the person refused, its work is discarded, and the record keeps the discarded round. A gate is never shortened or skipped.

0.9.2. A test case is pinned to the digest of the process's shape, which leaves out the bindings: block (Section 21.1), so swapping or upgrading the agent that holds a role keeps a suite valid and a change to the process itself does not. A deviation line may end with limit: <n>, the most times one run may take that way back (Section 6.7.1). The five reference processes kept in this repository no longer reuse a handoff key as a record key (Section 8.6), and the three that named no quality gate now name one (Section 12.2).

0.9.1. A test is a test of the real thing (Section 21.3). Every phase of a test run runs as it would for real, models included; only a phase that acts in the world, by sending to somebody outside, publishing, paying or signing, returns its stand-in instead, decided by what its holder declares. Calling a model is not acting in the world.

0.9.0. A process can be tested by a program (Section 21). A test run follows a test case, kept beside the document, that says what the run is handed, how each approval is answered (approve, changes or reject, in order where a phase runs more than once), what each phase that reaches outside returns in place of acting, and what must be true when the run ends. Its record says mode: test and names the test case, every answer is recorded as the test case's and never as a person's, no phase reaches outside, and test runs are kept apart from real runs. Section 7.3's rule that an approval waits for a person now says real run, and names the test run as its one exception. A process MAY have a suite of test cases. Nothing in a process document changes, so no document in the corpus fails anything new.

0.8.0. Three things a process could not say, and a place for everything else. A trigger can now say what a run is handed when it starts, written carries: under the trigger (Section 5.4): each item by name, what it is, and whether a run may start without it. from: can now name a process copied from another organization, not only a reference process, and a copy leaves the original's people behind (Section 4). A document can name example:, somewhere to see what a run produced, and the catalog gains the column that copies it. A phase a person must approve is approved on every run, the first run of a new version included (Section 7.3). And a document can carry extensions (Section 20): optional parts with their own published definitions, for what only software needs, such as how a start form is drawn or how one phase's output is typed and converted for the next. Section 20.1 gives the four tests that decide whether something belongs in this specification, in an extension, in whatever starts runs, or in the catalog. A process offered to others, or a reference process published to be adopted, is listed under the Common Agent catalog profile's process entry, which copies the document's header and pins it by digest (Section 1.3). Every new part is optional, so no document in the corpus fails anything new.

0.7.1-draft. Editorial. The site's Reference processes section gains three reference processes for the agents an organization runs itself, kept in processes/reference/: ref/dev/make-a-new-agent, which turns a request into an approved spec, a test suite written before the scripts, a package, a deploy on the owner's yes and a conformance check by an agent that built none of it; ref/dev/record-an-incident, which turns a quiet agent or a failed job into a timeline that names the source of every fact and every gap, and leaves the decision to a person; and ref/dev/retire-an-agent, which tells whoever depends on an agent, takes down its listing, removes it on the owner's yes and closes its AgentDoc with the date and the reason. The intro of every reference process drops its line about whether the process has run. The incident process states its first phase as the watcher or a person noticing, and the make-a-new-agent and retire-an-agent processes drop the sentences that said why a phase stays with the owner. No rule in this specification changes.

0.7.0-draft. A run MAY close with a signed close (Section 13.5.1): one attestation, made by the process owner in the record convention of the Common Agent Specification §8.1, that names every record the run left by the SHA-256 of its exact bytes. A reader who holds the run's records can check that they are the records the owner closed the run on, with none added, changed or dropped since. A runtime that writes one lists every record in it and writes no record for the run after it (Section 17.3). The reference process ref/gm/offboard-an-agent closes with one, so its run record is the signed proof of exit.

0.6.0-draft. A process document can name the Agent NDA that every participant from outside the process owner shares, written confidential-under: in the header (Section 4). Every agent of another owner that holds a phase or receives a handoff MUST belong to an owner bound by that agreement, as Agent NDA §8.1 defines it, and the process owner MUST be a party to it. A runtime that implements the key checks before it starts such a phase or delivers such a handoff, refuses with the reason named, and records the refusal in the run record. A phase that runs another process passes the agreement on to the inner run, and an inner document that names its own agreement adds to the outer one and cannot drop it. An agent that a harness contracts on its own is bound by flow-down only. A runtime that does not implement the check says so under Section 11.3. A phase's under: (Section 6.4.1) is unchanged. The key is optional, and no document in the corpus fails anything new. The matching change is in the Agent NDA specification, which adds multilateral agreements and flow-down to subcontractors.

0.5.0-draft. A phase can now be handed to an agent that runs its own loop, written harness: <what the agent works out> (Section 6.3). This is harness-led orchestration: the process names what has to come out, the agent decides how to get there, and the phase closes with one record shaped like a run's own close (Section 13.3), so a run reads the same however the agent worked. The form replaces runs <pattern>:, which named a work pattern from a separate library that has been retired. Documents written in the earlier form stay readable: a runtime reads runs <name>: as a harness: phase (Section 6.3), so no document in the corpus fails anything new.

0.4.0-draft. A phase held by somebody else's agent can now cite the agreement it runs under (Section 6.4.1). A document says who does each part and has never had anywhere to say on what terms, which is the question a reader asks as soon as a phase is held outside the organisation: at whose expense, and under what promise. under: is optional, nothing in this specification reads it, and a document without it is complete, so no document in the corpus fails anything new. The matching change is in the Agent SoW specification, where an engagement's scope can now be a whole process at a version rather than a list of offerings.

0.3.0-draft. A phase can now run another process and wait for its run to close (Section 6.3.1). Processes are published to be reused, and the corpus already holds one written to be started by others: ref/mkt/approve-marketing-material fires when "another process submits finished material at a version" and hands its clearance back to "the submitting process". Until this revision the submitting side had no way to say that it waits. No document in the corpus uses the new form yet, so every obligation it brings binds only a document that does, and no reference process fails one.

0.2.0-draft answered eighteen of the twenty-five findings that came from upgrading four documents against 0.1.0-draft. Every obligation it added was checked against all 169 reference processes before it was written, and where the corpus did not already do the thing it was written as SHOULD or MAY rather than as MUST, on the principle that an obligation the corpus fails is a bug in the obligation.

A process document says how work actually gets done: what happens, in what order, who does each part, what passes between them, where a person has to sign, and what the run leaves behind. This specification says what such a document means, precisely enough that two people reading the same document reach the same conclusion and two programs reading it behave the same way.

It also specifies the reference profile: a process document with the organizational parts deliberately left blank, which is what makes a process publishable by one organization and adoptable by another.

1. Introduction#

Process documentation usually fails in one of two directions. It describes somebody else's organization, so it does not fit and nobody uses it. Or it is a blank template, so it fits everybody and helps nobody. The format specified here sits between the two: the walk through the work is written down, the roles are named, the ways a run goes wrong are drawn, and everything that belongs to a particular organization is left as a blank for that organization to fill in.

This document was promoted from guidance. The prose it came from described the format well and obliged nothing, which was tolerable while one team wrote all the documents and stopped being tolerable the moment a second implementer had to read one. Almost nothing here is new. What is new is that the obligations are now stated as obligations, and that the parts a second implementer would otherwise have to guess at are decided.

1.1 What this specifies#

A process document, its phase graph, its handoffs, its bindings and the records a run must produce; the four automation levels and what each obliges of whatever runs the process; the reference profile and what adopting a reference process produces; how a process is tested by a run that follows a test case; and what it means to claim that a document conforms.

1.2 What this does not specify#

How to run a process. Nothing here describes an engine, a scheduler, a message format or a runtime, and no such thing is required to use this format. A process document is a specification of work, and the systems that carry it out are whatever an organization already runs.

It also does not specify the wrapper a catalog publishes a document in. A publisher may present a process with a diagram, an activity table and a summary, or as the document alone. The document is the normative artifact.

1.3 Listing a process#

A process its owner runs for others, and a reference process published to be adopted, is listed in a catalog as a process entry under the Common Agent catalog profile, Section 14 (https://commonagent.net/catalog.html#14-a-process-entry). The entry copies the document's header and the items its trigger carries (Sections 4 and 5.4), pins the document by the digest of its text, names the agent that runs it, and discloses every phase held by another owner's agent and every phase a person holds. Where the process is priced or can be engaged, its offers come from a standing proposal whose scope is this process at that digest (Agent SoW, Section 5.2.1).

Nothing in this specification depends on the listing. The document is complete without one, and where a listing and the document disagree, the document governs.

2. Terminology#

The key words MUST, MUST NOT, REQUIRED, SHOULD, SHOULD NOT, MAY and OPTIONAL in this document are to be interpreted as described in RFC 2119.

Obligations name who carries them. "The document MUST" is an obligation on whoever writes it, and a document that fails one is not conformant. "A runtime MUST" is an obligation on whatever carries out a run, whether that is software, a person following a checklist, or both.

Process. A document describing how a piece of work is done, from a trigger to a close, owned by an organization and in force from a date.

Reference process. A process document with the organizational parts left blank, published to be adopted rather than run. Specified in section 15.

Run. One execution of a process, from its trigger firing to its close.

Harness. An agent running its own loop: it decides the steps, does them or convenes others to do them, and stops when the output it was asked for exists or when it cannot go on. A harness: phase hands one phase to a harness (Section 6.3).

Inner run. A run of another process that a phase of this one starts and waits for. The run that phase belongs to is the outer run (Section 6.3.1).

Phase. One step of the work, named, with a way it resolves and a place in the graph. The activity table and the phase list describe the same steps.

Handoff. What passes from one phase to the next, stated as a thing rather than as a conversation.

Gate. A phase a person must sign, written automation: never.

Blank. An angle-bracket placeholder, <like this>, marking a decision the document deliberately refuses to make on the reader's behalf.

Runtime. Whatever carries out a run: a workflow engine, an agent, a person with the document open, or any combination.

3. The document#

A process document is plain text. Its parts appear in this order:

PROCESS: <name>                       id: <id>   v<n>
from: <reference process> v<n>
owner: <who>                          effective: <date>
trigger: <what starts a run>
         carries: <name> - <what it is>, <required or optional>
concurrency: <what may overlap>
goal: <what is true when a run closes>
example: <where to see what a run produced>
phases:
  <phase-name> - <how it resolves>: <what happens>
                 owner: <role>   after: <phase>
                 automation: <level>
run-scoped:
  <name> - <how it resolves>   owner: <role>
           every: <cadence>
           from: <phase>   until: <phase or run close>
handoffs:
  <phase> -> <phase>: <what passes>
bindings:
  roster:  <who holds each role>
  systems: <system> (<access>)
  data:    <what a run reads>
policy:
  <a rule a run is held to>
measures:
  <what a run is measured on>
extensions:
  <extension> v<n>
    <lines the extension defines>

A document MUST carry PROCESS:, id:, trigger:, goal:, phases: and handoffs:. Everything else is REQUIRED only where a later section says so.

Sections 4 to 13 specify each part. Section 14 covers failure edges, which are deliberately not normative. Section 15 specifies the reference profile, 16 translation, 17 conformance, 18 versioning, 19 what all of it means when a run spans two organizations, 20 extensions and how to tell what belongs in one, and 21 test runs.

4. The header#

The header is the block of lines above phases:. It says which document this is, which version of it, where it came from, who is answerable for it, and what a run is for.

A process document MUST carry PROCESS:, id:, a version, trigger:, concurrency:, goal: and phases:. trigger: and concurrency: are defined in Section 5; the rest are defined here.

The header from a real document:

PROCESS: negotiate the agreement   id: <team>/negotiate-the-agreement   v1
from: ref/sls/negotiate-the-agreement v1
owner: <who>                          effective: <date>

PROCESS:#

PROCESS: names the process in plain words. The name is for a reader. It is not an identifier, it changes without ceremony, and nothing cites it. Authors SHOULD write it lowercase, as the corpus does, so that a list of processes reads as a list of work rather than as a list of titles.

id:#

id: is what every other document cites. A document MUST carry one, and it MUST take the form <team>/<slug>, lowercase, with no spaces.

A citing document MUST cite the id and MUST NOT cite the name. Names change and ids do not, so a catalog entry, a fed by: line, a feeds: line and a run record all point at the id. The slug is not obliged to match the words in PROCESS:; the corpus has PROCESS: customer advisory board under id: <team>/advisory-board, and that is conformant.

The version#

The header MUST carry a version, written v<n>. It is written on the PROCESS: line in most documents, but layout is free: two documents in the corpus wrap id: and the version onto the following line, and both are conformant.

The version is what a run record points at. What changes it is defined by the amendments rules, not here.

owner:#

owner: names who owns the document, not the work. They decide what version 5 says.

A process MUST name an owner. A runtime MUST NOT read owner: as naming who may start a run; who may start a run comes from the trigger (Section 5). Conflating the two is how a process goes stale, because the people running it change it in practice and nobody changes the page.

effective:#

effective: is the date this version took over.

A run MUST record the version it ran under. That record MUST NOT be rewritten when a later version takes over. This is the whole reason the date is in the header: an audit a year later reads a run's records against the version that was effective when it ran, not against today's page.

owner: and effective: in a reference process#

A reference process MUST NOT name an owner and MUST NOT carry an effective date. Those two blanks are the mark that the document is not yet anyone's process.

A reference process MUST still carry both lines, with the blanks marked, exactly as the corpus does:

owner: <who>                          effective: <date>

The line stays because it shows the adopter where the value goes. A catalog MUST NOT report a reference process as running, and a runtime MUST NOT start a run from a document that has no owner and no effective date. Filling those two blanks is what turns a reference process into somebody's process at version 1.

from:#

from: records where the document came from. It MUST name a reference process and a version, in the form ref/<domain>/<slug> v<n>, or another organization's process document, in the form given at the end of this section.

A document adopted from a reference process MUST carry from:. A reference process MUST also carry the line in its own document block, naming itself and its version, because that is the line the adopter keeps when they copy it. All 169 reference processes in the corpus do.

from: is provenance and nothing else. It MUST NOT be read as a dependency: once adopted, the document is the adopter's, they amend it from their own debriefs, and the reference process never reaches into it. from: also never claims that anything is running. It names a document and a version of that document. A reference process has no owner, no runs and no records, so a from: line pointing at one is a statement about lineage, not about a live system somewhere.

A document copied from another organization's process document, rather than adopted from a reference process, MAY carry from: naming that document. It is written with the owner first, then the document's id: and the version copied, in the form <owner> <id> v<n>:

from: northwind.example research/explore-a-topic v3

The same rules hold: it is provenance and nothing else, the copy is the copier's from the moment it is made, and the original never reaches into it. One more rule holds because the original was a working document and not a reference: a copy MUST NOT carry the people the original's roster named. It carries a blank in each of their places (Section 15.4), and the copier fills the blanks with their own people. Roles, phases, handoffs and everything else come across as they were.

goal:#

goal: MUST state what exists when a run is done.

It is a state, not an activity, because it has to be checkable against the close of the graph (Section 6). "every ask on the table closed as given, traded or refused, each with a reason and a named approver, and one written position both sides hold" is a goal. "negotiate with the buyer" is not.

example:#

example: is OPTIONAL. It names somewhere a reader can see what a run of this process produced: a published output, or a run record the reader is allowed to open.

example: https://northwind.example/runs/explore-a-topic/run-41

A catalog copies it into its example column, and a process entry under the Common Agent catalog profile copies it the same way (Section 1.3), so neither keeps anything of its own. A reference process MUST NOT carry one, because a reference process has no runs (Section 15.5). An example says what one run made. It is not a promise about what the next run will make, and a runtime MUST NOT read anything from it.

bounded-by:#

bounded-by: is OPTIONAL. It states a deadline on the whole run rather than on a phase.

A phase deadline is written by: (Section 6.6). A run deadline that is the same for every run can be written as a by: on the closing phase. Neither of those fits a run deadline that is agreed inside the run and is different every time. A proof of value ends on a date negotiated with that particular customer, and ref/sls/run-a-proof-of-value can say so only in a policy line, "the proof ends on the agreed date whatever the score, and an extension is a signed change with a new end date", which is a rule rather than a date anything can check a run against.

bounded-by: names where the date comes from:

bounded-by: the end date agreed in agree-dates

Where the value names a phase, that phase MUST be declared in the phase list. A runtime MUST NOT check the bound before that phase has closed, because until then there is no date to check against.

When the moment passes and the run has not closed, a runtime MUST record that the run passed its bound, and MUST NOT extend the bound on its own. Whether the run then stops, closes as abandoned, or carries on with the overrun recorded is the document's decision, stated in its failure edges (Section 14) or its policy (Section 11). A runtime that quietly lets a run run past a date the customer agreed to has produced the failure the key exists to make visible.

bounded-by: binds the run, not any phase in it. It does not close the run and it does not stop a phase; the close is what Section 6.8 says it is.

No document in the corpus carries the key today, which is why it is OPTIONAL.

confidential-under:#

confidential-under: is OPTIONAL. It names one Agent NDA, and every participant in a run from outside the process owner MUST be bound by it.

confidential-under: nda_7k3pxw9c2r4tmq8d v1 sha256:<64 hex digits>

The value has three fields separated by spaces: the agreement's identifier, its version written v<n>, and its digest. The digest is sha256: followed by 64 lowercase hex digits, and it is the digest Agent NDA §8 defines. For a countersigned agreement it is the digest of the agreement's signed bytes. For an open offer it is the offer digest (Agent NDA §6.1). The identifier and the version are for the reader. The digest is what a runtime compares, and the comparison is exact.

A document MUST NOT carry the key more than once. In a reference process the value MUST be a marked blank (Section 15.2):

confidential-under: <your agreement>

Who the key binds. The process owner is the organization the document belongs to, the one whose owner: answers for it (Section 19.1). Every agent that holds a phase of a run, or receives a handoff in one, and belongs to an owner other than the process owner MUST belong to an owner bound by the named agreement. Agent NDA §8.1 defines whether an owner is bound. It is bound when it is a member of a multilateral agreement in force, when it is the recipient of an acceptance in force of the named open offer, or when it is bound by a flow-down agreement whose flows_from names an agreement the party above it is bound by. The process owner MUST itself be a party to the named agreement, as the discloser of the open offer or as one of the members. A runtime that implements the key checks this before it starts a run, and it MUST NOT start a run whose process owner is not a party.

The rule covers the agent a phase goes to and the agent a handoff is delivered to. An agent that a harness: phase contracts on its own is the holder's to bind, and Agent NDA §5.5 says how the holder does so. That agent is bound by flow-down only, and the runtime does not check it, because the runtime never delivers anything to it.

A phase that runs another process. The inner run inherits the outer document's confidential-under: (Section 6.3.1). Where the inner document carries no confidential-under: of its own, a runtime holds every phase and handoff of the inner run to the outer agreement, exactly as it holds the outer run's own. Where the inner document names its own agreement, that agreement MUST be at least as strict as the outer one, and the check shows how: the runtime checks each agent of an owner other than the outer process owner against both agreements, and that owner MUST be bound by each of them. The inner document can add an agreement in this way, and it cannot drop the outer one. The handoff into the phase is checked as any other handoff is.

The check. A runtime that implements the key MUST check, before it starts a run, that the process owner is a party to the named agreement. It MUST then make the check at two moments: before it starts a phase held by an agent of another owner, and before it delivers a handoff to an agent of another owner. It checks that the agent's owner is bound by the named agreement at that moment, and in an inner run by each agreement the paragraph above names. Where the check fails, the runtime MUST refuse. It MUST NOT start the phase or deliver the handoff, and it MUST name the reason. The reason says which agent, which owner, and which test of Agent NDA §8.1 failed: no seat or acceptance names the owner, the agreement is not in force, or the digest does not match. The runtime MUST record the refusal in the run record (Section 13.2):

REFUSED: start load-rates · ops/audit-inbound-freight v3 · run 18
to: [email protected]   owner: Northgate Rate Data
agreement: nda_7k3pxw9c2r4tmq8d v1 sha256:<64 hex digits>
reason: the agreement is not in force; Tidewater Customs Brokers has not signed

A refused phase has not started. A refused handoff does not exist for the phase that receives it (Section 8.4). The runtime MUST NOT deliver the material by another route, and it MUST NOT give the phase to another holder on its own. Whether the run waits for the owner to be bound, takes a bound holder from the roster, or closes as abandoned is the document's decision, stated in its failure edges (Section 14) or its policy (Section 11). A runtime MUST NOT start a run from a document whose confidential-under: is still a blank.

What the key enforces. The check is enforced at the runtime that makes it. Through that runtime, the process owner's material and each participant's material reach only owners bound by the named agreement. What each party does with the material afterwards stays a recorded promise under the agreement, held by its terms and by the records each side keeps (Agent NDA §3). A runtime that does not implement the check MUST say so under Section 11.3, where the person running the process will see it, before it starts the first phase held by an agent of another owner.

The key and under:. A phase's under: (Section 6.4.1) is unchanged. It names the engagement between the process owner and the owner of the agent holding that phase. confidential-under: names the confidentiality terms every participant in the run shares. A document MAY carry both.

Which agreement to name. Use a multilateral agreement (Agent NDA §5.1) when outside parties pass their own material to each other. Each of them is then a discloser, and every other participant has to be bound to it. An open offer from the process owner is enough when every handoff carries only the process owner's material, because the process owner is then the only discloser.

Example. Harbor & Line Outfitters audits the freight charges on its inbound shipments with three outside agents. Northgate Rate Data supplies the lane rates, Caldera Freight Systems audits the freight bills against them, and Tidewater Customs Brokers checks the customs entries against the audited charges:

PROCESS: audit inbound freight charges   id: ops/audit-inbound-freight   v3
owner: Head of Logistics                 effective: 2026-10-20
confidential-under: nda_7k3pxw9c2r4tmq8d v1 sha256:<64 hex digits>
trigger: a month of inbound freight bills closes
concurrency: one run per month
goal: every overcharge in the month's bills claimed or written off, with
      the bill, the rate and the entry each claim rests on
phases:
  load-rates      - harness: the contracted lane rates for the month's
                    shipments, at a version
                    owner: rate-source         after: trigger
                    automation: autonomous
  audit-charges   - harness: each freight bill checked against the lane
                    rates, with every overcharge listed
                    owner: freight-auditor     after: load-rates
                    automation: supervised
  check-entries   - harness: each customs entry checked against the
                    commercial invoice and the audited charges
                    owner: customs-broker      after: audit-charges
                    automation: supervised
  approve-claims  - human: the overcharge claims approved for filing
                    owner: logistics finance lead (person)
                    after: check-entries       automation: never
handoffs:
  load-rates -> audit-charges: Northgate's lane rate table at a version
  audit-charges -> check-entries: the audited charges, with every
    overcharge and the bill it came from
  check-entries -> approve-claims: the claims list, with the entries
    each claim rests on
bindings:
  roster:  rate-source: [email protected]
           freight-auditor: [email protected]
           customs-broker: [email protected]
           logistics finance lead: <named person>

Northgate's rate table goes to Caldera, and Caldera's audit goes to Tidewater. Outside parties pass their own material to each other, so the document names a multilateral agreement with four members: Harbor & Line, Northgate, Caldera and Tidewater. Before load-rates starts, the runtime checks that Northgate Rate Data holds a member seat of that agreement and that the agreement is in force. It checks Caldera before it delivers the rate table, and Tidewater before it delivers the audited charges. A multilateral agreement is in force only when every member has signed (Agent NDA §5.1). A missing signature from any one of them therefore stops the run at its first outside phase, and the refusal record says whose signature is missing. Had every handoff carried only Harbor & Line's own bills, an open offer from Harbor & Line would have been enough.

No document in the corpus carries the key today, which is why it is OPTIONAL.

Layout#

Whitespace in the header carries no meaning. Fields are separated by runs of spaces so that a person can read them in columns, and values wrap onto continuation lines. A translator MUST NOT depend on column positions, on a field appearing on any particular line, or on a field-per-line layout. It reads fields by their name: prefix.


5. The trigger#

trigger: says what starts a run.

A process does not begin because somebody remembered it. It begins when something specific and observable happens: a brief is approved, a termination is recorded, the first Monday of the month arrives, a threshold is crossed.

A process MUST carry a trigger: line, and it MUST name an observable event. A trigger that names an intention rather than an event ("when we decide to refresh the messaging") is not conformant, because nothing can be watched for it and no run record can point at the thing that fired.

A trigger MAY name more than one event, and the corpus names them in both of the two ways there are. Some triggers name alternatives, and any one of them starts a run:

trigger: the review cadence comes round every <cadence>, or a tripwire

Others name events that must all have happened before a run starts:

trigger: a shaping run decides that description is not enough and <who>
         approves an evaluation

The first is disjunctive and the second is conjunctive. Where a trigger is conjunctive, a runtime MUST NOT start a run on one of the named events alone. A run started on the first of them begins before the thing it needs exists, which for the trigger above is an evaluation nobody approved, and the phases that follow are then built on it.

A document SHOULD say which of the two it means. In the structured form (Section 5.1) the two are told apart by the word that joins the watch: lines, and or or. In the sentence they are told apart by the words the sentence uses, and and on its own does not settle it: the corpus writes and inside the description of a single event, as in "a brand positioning is signed and issued at a version", and reads "a tool goes live under an owner, and again every <cadence>" as alternatives rather than as a conjunction. A runtime MUST NOT read a trigger as conjunctive on the strength of the word and alone.

A trigger SHOULD also name who may start a run. Most of the corpus leaves this to the roster and the phase owners, so it is not a MUST, but a trigger that names its starter is the one that survives an argument about who was allowed to fire it.

5.1 A structured trigger#

A document MAY carry, alongside the sentence, a structured form of the trigger that names what arrives: the record, the system it arrives in, and the field or state that changed. Eight documents in the corpus carry one, so it is a MAY and not a SHOULD.

It is written as an indented watch: line under the sentence, naming the record, the system it arrives in, and the change that starts a run:

trigger: the buyer replies to an offer with asks, in <your CRM>
         watch: record=<opportunity> system=<your CRM>
                change=<a reply is logged against a sent offer>

system= is normally a blank in a reference process, because which system holds the record is exactly the kind of decision a reference refuses to make. record= and change= say what the trigger sentence already says. Section 15.4 forbids an author to blank something the reference process does know, and a reference whose sentence reads "the buyer replies to an offer with asks" knows which record arrives and knows what changed about it. The angle brackets around <opportunity> in the example above hold the adopter's own name for that record, which is a different thing from a decision the reference declined to make.

A trigger that fires on a clock has no record and no change. Section 5 names one, "the first Monday of the month arrives", and the corpus writes several, including "the clock - a cycle opens every <period>" and "the review cadence comes round every <cadence>". The structured form of a clock trigger is written as an every= value in the watch: line, taking the same kind of cadence a run-scoped every: line takes, and it carries no record= and no system=:

trigger: the clock - a cycle opens every <period>, and no one has to
         ask for it
         watch: every=<period>

A document MAY carry more than one watch: line where the trigger names more than one event, one line per event, joined by and where the events must all have happened and by or where any one of them starts a run. The example below takes ref/sls/run-a-proof-of-value's trigger sentence and splits it, which is not how that document writes it today; it folds both events into one change= value:

trigger: a shaping run decides that description is not enough and <who>
         approves an evaluation
         watch: record=<shaping decision> system=<your CRM>
                change=<a shaping run records that description is not
                enough>
         and watch: record=<opportunity> system=<your CRM>
                change=<an evaluation is approved>

A single watch: line needs no joining word. A document that carries several MUST join them, because a runtime that cannot tell which of the two it is reading has to guess whether to wait for the second event.

Where a document carries one:

  • The sentence remains the normative statement of the trigger. A structured form MUST NOT contradict it. Where the two disagree, the sentence governs and the document MUST be amended to remove the disagreement.
  • A runtime MAY watch the structured form and start a run when it matches, without a person acting.
  • A runtime MUST NOT treat the absence of a structured form as meaning the process has no trigger. The sentence is the trigger. The structured form is an aid to automating its detection.

5.2 concurrency:#

concurrency: is part of the trigger and is the part that gets forgotten. A process MUST carry it, and it MUST say whether runs of this process may overlap.

The value is prose, not an enumeration. The corpus writes "runs may overlap", "one run at a time", "runs never overlap for one process", "one run per account", and scoped forms that allow overlap globally while forbidding it for one subject:

concurrency: runs may overlap - <how many> negotiations live at once,
             and one opportunity is negotiated by one run at a time

Where runs may overlap, the line SHOULD say what they share. Two runs that share nothing are eight independent campaigns. Two runs that share a system, a budget or a customer are two agents able to do contradictory things to the same thing, and the reader needs to know which case they are in.

5.3 The trigger fires while a run is in flight#

This is the case concurrency: exists to answer, and the one an implementer gets wrong by default.

When the trigger fires while a run of the same process is in flight, a runtime MUST resolve it as the concurrency: line directs, and the resolution MUST be exactly one of:

  • start another run, where the line allows runs to overlap;
  • queue it, and start a run when a run closes;
  • join it to the run already in flight; or
  • refuse it, and record the refusal.

A runtime MUST record which of the four it did, and MUST NOT silently drop the trigger. A dropped trigger is the failure nobody sees: the event happened, the work never started, and no record exists that says so. This is why concurrency: is required rather than recommended. A document that does not answer the question forces the runtime to guess, and the guess is invisible.

5.4 carries: what a run is handed#

Section 8.2 says what the trigger carries is stated in the trigger. A document MAY state it item by item, as indented carries: lines under the trigger sentence, one item per line:

trigger: a person asks for a topic to be explored
         carries: topic - the words, a link or a document to explore,
                  required
         carries: reader - who the result is for, optional

Each item has a name, what it is in words, and required or optional. The name is a key, written like a phase key, and it MUST be unique among the document's items. Handoffs, policy and extensions refer to an item by its name.

Where a document carries carries: lines:

  • The items are the trigger's handoff. The phases with no after: line take them in, and Section 8.4 applies to them as to any handoff.
  • A runtime MUST NOT start a run without every required item. It refuses the run and records the refusal, the same way it records a trigger it refuses under Section 5.3.
  • An optional item a run was not handed is absent from that run. A runtime MUST NOT fill it with a default the document does not state.
  • What a run was handed is part of its run record (Section 13.2), item by item, so the record says what the run started from.

How a person is asked for the items is not this specification's business. A form, a message, an email with attachments and a person reading the list aloud all hand a run the same items. A runtime that draws a form can describe it with an extension (Section 20).

A clock trigger usually carries nothing, and a document without carries: lines is complete. The sentence remains the trigger, and the items say only what arrives with it.


6. The phase graph#

phases: is the body of the process. It is a graph, not a list, and this section is where a second implementer would otherwise guess.

6.1 A phase line#

A phase opens with two spaces, a name, and a dash:

  hold-session        - human: the asks worked through with the buyer,
                        in the order the list sets, against the approved
                        give and trade positions
                        owner: <your deal owner role>
                        after: confirm-deciders + approve-concessions
                        automation: <level>

The name MUST be lowercase kebab: lowercase letters and digits, separated by single hyphens. It MUST be unique within the document. All 2,702 phases in the corpus satisfy both.

The name is what after: lines, handoff lines and run-scoped from: and until: lines cite. Everything after the dash on the opening line and on its continuation lines belongs to that phase, until the next line that opens with two spaces and a name.

6.2 Names, not numbers#

Phases have names rather than numbers, and a runtime MUST take order from after: lines only.

A runtime MUST NOT infer that a phase follows the phase listed above it. Listing order is for reading. Several phases commonly start the moment the trigger fires, run without waiting for each other, and join later.

Where no path through after: lines connects two phases, a runtime MUST NOT require one to finish before the other starts. Serializing an unordered graph is not a conservative choice. It converts a process that takes two days into one that takes nine, silently, and no record says why.

6.3 How a phase resolves#

A phase MUST resolve to exactly one of five forms, and it MUST name that form immediately after the dash.

harness: <what the agent works out> The phase goes to one agent that runs its own loop until the output exists. The agent decides the steps, and it may convene rooms, contract other agents or call systems on the way. The process names what comes out of the phase and MUST NOT reach inside it: the document states no steps for the agent, and a runtime MUST NOT hold the agent to steps the document does not state. The phase's owner: names the agent, or the role, that leads the loop. The agent MUST hand back the output the phase names, and the phase MUST leave the closing record Section 13.3 requires.

  draft-media-plan  - harness: a media plan for the quarter, inside
                      the budget the brief sets
                      owner: media-planner   after: approve-brief
                      by: 3 days             automation: supervised

runs process <id> v<n>: The phase starts a run of another process and waits for that run to close. The process names what comes out of it and MUST NOT reach inside it. Section 6.3.1 says what the form obliges. No document in the corpus writes it yet.

convenes <pattern>: The phase is one shared record, running a collab playbook as written. The record is a room by default, and a message thread or a document's version history also serves when the playbook does not need everyone present at once. The corpus writes convenes approval:, convenes decide-and-announce:, convenes debrief:.

system: <action> No agents collaborate. A system does something: a scheduler publishes, a job runs, a record is written.

human: <action> A person acts outside any room.

The last two carry more weight than they look. Most real processes have steps where nobody collaborates with anybody, and 1,162 phases in the corpus are human: against 164 system:. A format with no way to describe those steps makes authors write down something other than what happens.

A translator MUST take the form from the word after the dash and never from the name that follows it. harness:, convenes, system: and human: each mark one form. The word process after runs always marks a phase that runs another process.

The earlier form, runs <name>:. Documents written against 0.4.0-draft and earlier hand a phase to a sub-job by naming a work pattern after runs, as in runs assessment: and runs collect-and-report:, and the corpus does so throughout. A runtime MUST read runs followed by any name other than process as a harness: phase. The name is then the approach the agent is asked to take, the text after the colon is the output, and the phase leaves the record a harness: phase leaves. A new document, and a new version of an existing one, SHOULD write harness: instead. The same name MAY still appear after convenes in another phase, and there it names a collab playbook.

6.3.1 A phase that runs another process#

A phase that runs another process names the other document by its id and a version, and says what comes out:

  clear-posts      - runs process acme-mkt/approve-material v2: the
                     posts cleared at one version, with the clearance
                     record
                     owner: campaign-manager   after: produce-posts
                     by: 5 days                automation: autonomous

The corpus's ref/mkt/social-campaign convenes its own sign-offs, so that phase is not in it. The phase shows how an organization's adoption of it, acme-mkt/social-campaign, would instead hand its posts to the same organization's adoption of ref/mkt/approve-marketing-material, a process whose trigger already reads "another process submits finished material at a version". In this section the run that phase starts is the inner run. Its document is the inner document. The run the phase belongs to is the outer run.

What it cites. The phase MUST name the inner document by its id and a version, never by its name (Section 4). The inner document MUST be one a run can start from, with an owner and an effective date, which a reference process does not have (Section 4, and Section 15.2's list of what a reference process lacks), so a phase MUST NOT run one. The version is the one the outer document was written against. It does the job the version in a from: line does (Section 18.4): it makes drift visible, and it binds nothing. The inner run runs under the inner document's effective version, as every new run does (Section 18.3), because an organization that amends its approval process means the amendment to govern every approval from that day, including the ones another process asks for. Where the effective version is not the one the phase cites, a runtime MUST record both in the outer run's record of the phase and MUST say so where the person running the outer process will see it. An amendment can change what a run of the inner document produces, and the outer phase finds that out at the close, when what it names does not arrive. Saying early that the version has moved is what gives somebody the chance to read the amendment before the run gets there.

What goes in. Starting the phase fires the inner document's trigger. The handoff into the phase is what that trigger names, and Section 8.4 does not let the phase begin until it exists.

The same trigger fires for other reasons, and the inner run has to know which it was, because the cast comes from a different place in the two cases. The mark is the one the records already carry: an inner run's RUN record names the outer run and the phase that started it, written by the side that started it (Records, below). A runtime MUST fill an inner run's cast from the outer roster where that line is present, and MUST NOT where it is absent, and MUST NOT infer either from the trigger event, which looks the same from the outside.

A firing is a firing, so the inner document's concurrency: line decides what happens when a run of it is already in flight (Section 5.3). A firing that line refuses leaves the phase unable to complete. Where the line queues the firing, the phase's own by: runs from the firing and not from the moment the queued run starts. Where the line joins the firing to a run already in flight, that run's cast governs, whatever filled it, and a runtime MUST record that the phase waits on a run it did not cast.

Confidentiality. Where the outer document carries confidential-under:, the inner run inherits it. An inner document with no confidential-under: of its own is held to the outer agreement, and an inner document that names its own is held to both (Section 4). Where the firing joins a run already in flight, that run was not started under the outer agreement, so a runtime MUST check its outside participants against the outer agreement before it delivers the handoff into it, and MUST refuse the join when any of them is not bound.

What comes out, and nothing else. What the outer document names as coming out of the phase MUST be something the inner document's goal: says exists when a run closes. The outer document MUST NOT reach inside the inner one: none of its after:, by:, not-before:, handoff, deviation, grant, or run-scoped from: and until: lines names a phase, a handoff key or a record key of the inner document. The inner document's phases, grants, policy and failure edges govern the inner run, and the outer document grants it nothing.

When the phase closes. The phase closes when the inner run closes, by the inner document's own rules and with its run-scoped lines closed (Section 9.3), and what the outer document names as coming out of the phase is in that run's result:. Where it is not, the phase has stopped without finishing, and the outer document's exception edges and failure edges say what happens next, as they do for any phase that cannot complete. Two ways an inner run reaches that state are worth naming: a run recorded abandoned (Section 13.5), and a run that ended at an exception phase, which on its own side has ended rather than failed (Section 6.5.1) and still leaves the outer phase with nothing to hand on. A deviation that returns to the phase starts a new inner run. It never reopens the one that closed.

A by: on the phase binds the phase and does not shorten the inner run, which runs under its own deadlines until it closes. A missed deadline is the outer document's failure edge (Section 6.6), and where that edge stops the outer run, the paragraph on abandoning the outer run applies.

The cast. The outer roster names who holds the inner document's roles (Section 10.1), so the whole cast of both runs is decided before the outer trigger fires. A runtime MUST fill the inner run's cast from the outer roster, the inner document's own roster does not apply to that run, and a runtime MUST NOT start an inner run with a role nobody holds. An amendment to the inner document can add a role the outer roster was written before anyone had heard of, and a runtime that meets one refuses the inner run and records the refusal rather than casting the role itself. That refusal is the cost of the version rule above, and it is why a version that has moved is shown to a person rather than logged.

Automation. Each inner phase runs at the level its own document states or at the outer phase's level, whichever is lower on the ladder of Section 7, and a never phase in the inner document stays never. The outer level can lower the level an inner phase runs at and can never raise it. At supervised, a person also approves the inner run's result before it is handed on (Section 7.3). A phase that runs a process MUST NOT be written at never. A runtime holds a never phase until a named person acts (Section 7.1), and the inner document has already put its gates where its own author wanted them; one more gate around the whole run either repeats them or stops work the inner document settled. A gate on what the inner run produced is a phase of its own, after it.

No process runs itself. A process MUST NOT run itself, directly or through any chain of processes it runs. The check is by id, whatever versions are cited, and a document whose chain returns to its own id is not conformant. A reader checks it by following the runs process lines from document to document until the chain ends or comes back.

That check is good as of the documents a reader has open, and an amendment to a document further down the chain can create a cycle afterwards without anybody editing the document at the top of it. So a runtime MUST refuse to start an inner run whose document is already in the chain of runs that started it, and MUST record the refusal. The document check and the runtime check are both needed, and neither replaces the other.

Across organizations. A phase runs a document the organization runs itself. Work inside a counterparty is not a phase of this document, and a counterparty's process is a second document that meets this one at a boundary (Section 19.1). Nothing in the format names an organization, so this is a rule an author keeps and a reader checks by reading the two documents' owners. A runtime cannot test it.

Records. The inner run leaves its own records under its own document, from its RUN record to its RUN DONE (Section 13), and the trigger: line of its RUN record names the outer run and the phase that started it. The outer run's record of the phase names the inner run, the version it ran under and its outcome, and MUST NOT copy the inner run's records into its own.

Abandoning the outer run. An outer run that is abandoned while an inner run it started is still open MUST NOT leave that inner run open with nobody running it (Section 13.5). The inner run is abandoned with it, and the inner document's abandonment edge says what that costs, unless the outer document's abandonment edge names who takes over the inner run.

In a reference process. The id is a blank that names the reference process it expects, and the version is a blank like any other number (Section 15.2):

  clear-posts      - runs process <your adoption of
                     ref/mkt/approve-marketing-material> v<n>: …

Which document an adopter runs, and at which version, is the adopter's decision (Section 15.4). Adopting the outer document includes filling both blanks with a document the adopter runs, and a runtime MUST NOT start a run against a document that still carries either of them.

6.4 owner:#

Every phase MUST carry owner:, naming the role or the agent answerable for that phase. All 2,702 phases in the corpus do.

In a reference process, a phase owner MUST be either an abstract agent, named as the slug the activity table cites, or a role left as a marked blank such as <your sales leadership role>. A reference process MUST NOT name a person, because the roster is one of the things it leaves blank.

6.4.1 under:, the agreement a phase runs beneath#

A phase held by an agent belonging to somebody other than the process owner MAY cite the agreement it runs under:

  check-conformance  - harness: the package checked against its
                       own declarations
                       owner: agentevaluator   under: eng_7c1f
                       after: deploy-the-agent   automation: autonomous

under: names an engagement between the process owner and that agent's owner. It is optional and carries no meaning inside this specification: nothing here reads it, and a document without it is complete. It exists so that a reader of the run, or of the document, can answer the question the document otherwise cannot: on what terms is this outside party doing this work, and at whose expense.

A document naming no engagement is not thereby saying the work is free or unagreed. It is saying only that the document does not carry that fact, which is the honest state for most documents: the terms are the two owners' business and change without the process changing.

Where an Agent SoW engagement takes a whole process as its scope, the relationship runs the other way as well: that document names this one by id and version, and lists every phase held by another owner's agent as a subcontractor. under: on a phase is the smaller, per-phase case, for a process that is not itself the subject of an agreement.

under: names an engagement with one owner. The header key confidential-under: (Section 4) names the confidentiality terms that every outside participant in the run shares. The two answer different questions, and a document MAY carry both.

6.5 after:#

Every phase MUST carry after:. All 2,702 phases in the corpus do.

The value names the phases this one waits for, or the keyword trigger.

after: trigger means the phase starts when the trigger fires. Every process MUST have at least one phase with after: trigger, or nothing in the graph ever begins. All 169 documents in the corpus have one.

after: a + b is a join, and it waits for BOTH. A phase whose after: names more than one phase MUST NOT begin until every phase named has closed. Not the first of them, not any of them.

after: confirm-deciders + approve-concessions

means the session does not open until the deciders are confirmed and the concessions are approved. Reading + as "either" is the defect that produces a run where the buyer is in the room and the concessions were never signed off, which is exactly the failure the phase exists to prevent.

A phase MUST NOT begin before its inbound handoff exists. For every handoff line x -> y, phase y MUST NOT begin until what that line says crosses the edge and contains what the line says it must contain. For a harness: phase, the handoff is the output the phase names, which means what has to cross is stated before anything starts. For a system: phase, the handoff is whatever the system wrote, and the phase after it names where to find it. after: says when a phase is allowed to start; the handoff says what has to be there when it does, and a runtime MUST satisfy both. Section 8.4.1 is the one exception: a phase that starts on a draft begins before both, and nothing it produces counts until both are satisfied.

The value of after: is normally names joined by +. It MAY carry qualifying prose where an edge is conditional; the corpus writes forms like after: do-the-work, when it slips. A translator that cannot parse such a value MUST refuse it rather than discard the qualification.

6.5.1 The exception edge#

One of those conditional forms is not a qualification at all and is worth its own name, because it is a different kind of edge and because in some processes it is the only place a person appears.

An exception edge is the path taken when a phase CANNOT complete. Six documents in the corpus carry one, written in forms like:

  clear-exception - human: a lead that score or route could not settle
                    waits in the queue until a person settles it
                    after: score or route, whichever could not finish
  escalate-stall  - human: the work has not moved
                    after: do-the-work, when it slips

It is neither of the other two edges. after: names a phase that completed; a deviation edge (Section 6.7) returns to a phase that already ran and can repair the work. An exception edge leaves a phase that stopped without finishing, and it usually leads somewhere a person is waiting.

A phase entered by an exception edge MUST name, in its after: value, the phases whose failure sends work to it. It MUST NOT be reachable only through prose in the failure edges, because a reader assembling the graph from the document would never find it.

Where a phase is entered only by an exception edge, its level bears more weight than any other in the process. A process whose ordinary phases are autonomous has, by construction, no person in it except at that phase, so a document SHOULD write that phase at never and a runtime MUST NOT raise it. ref/mkt/lead-routing is the clearest example in the corpus: five phases at autonomous, and clear-exception at never with a by: deadline in hours.

A run that ends at an exception phase has ended. It has not failed, and a runtime MUST NOT report it as an error: the process anticipated this and routed it to somebody.

6.5.2 A phase that does not run in every run#

Some phases only happen when the run gives them something to do. In ref/rev/publish-the-carve, apply-changes applies the appeals that were upheld, and a run where nothing was upheld has nothing for it to apply. The phase after it reads:

  publish-final      - human: the final carve at its version, to
                       everybody it binds, on <publication date>
                       owner: quota-setter
                       after: decide-appeals + apply-changes

Read against Section 6.5, that join waits for both, and read against Section 8.4 the final publication also waits for a handoff out of apply-changes. In a run where no appeal was upheld, neither ever arrives, and the carve is never published. The rule below is what stops that.

A phase that a run never entered counts as closed for the purposes of a join. A join waits for the phases that had something to do in this run, not for every phase named in the line. A handoff from a phase that did not run is not owed, and a runtime MUST NOT hold the receiving phase for it (Section 8.4).

This is not permission to skip a phase. It settles what a join means for a phase the run never had a reason to enter, and nothing here lets a runtime decide that a phase it could have entered was not worth entering.

A runtime cannot in general tell the difference between a phase that will never be entered and one that has not been entered yet, so a document MAY mark the phases that do not run in every run. The marker is a trailing ? on the name in an after: value:

                       after: decide-appeals + apply-changes?

A runtime MUST NOT wait on a phase marked this way that the run never entered. The marker MAY appear only in an after: value. It is not part of the phase's name, and a document MUST NOT write it in the phase list, in a handoff, or in a run-scoped from: or until:, because the name those cite has to stay the name Section 6.1 declares.

No document in the corpus carries the marker today, which is why it is a MAY. A document that does not carry it is saying nothing about which of its phases always run, and a runtime reading such a document has only the rule above and whatever the run itself shows it.

6.6 by:#

by: is OPTIONAL. About half the phases in the corpus carry one.

Where present, it states a deadline in one of four forms.

A duration, counted from the trigger or from the phase this one follows: by: <days>, by: <hours>, by: <weeks>, by: <minutes>. This is what nearly every by: in the corpus is.

A named point in the run: by: launch, by: switch-on, by: issue-release, by: brief-creators.

An absolute or externally-set moment, which is a date somebody outside the run fixed or a date the run itself fixed earlier: by: <date>, by: effective date, by: send date, by: the read date, by: the award's deadline, by: the organizer's deadline, by: <the cut-off date>.

A duration counted backwards from one of those: by: <weeks before>, by: <months before>, by: <days before the event>, by: <days before the period closes>, and, written out in full in ref/mkt/pricing-change:

                     by: effective date minus <the longest notice
                         period in force>

All four forms are in the corpus today. The last two are there because a great deal of real work is scheduled against a date nobody in the run chose: a trade show opens, an award closes, a price takes effect, and the notice has to go out a fixed time before it.

What a named point may name. A named point MUST be one of three things: a phase this document declares, a blank, or a moment the document names somewhere else. The third covers both a moment somebody outside the run sets, as with by: the organizer's deadline in ref/mkt/speaking-engagement, and a moment a phase of this run fixes, as with by: the read date in ref/mkt/conversion-experiment, which is set when the test is sized and appears in that document's activity table, its handoffs and its failure edges. A named point MUST NOT be a phase name the phase list does not declare.

A document SHOULD name the moment somewhere a reader can find it, in the activity table, in a phase, in a handoff, in policy or in the measures. A deadline whose moment appears nowhere else is a date nobody can look up, and the run misses it without anyone being able to say when it was.

Where a phase repeats. A phase MAY carry every: and repeat (Section 9.4). Where it does, by: binds each occurrence, not the phase as a whole. A weekly reading due within <days> is due within <days> of each reading, not <days> after the first one. A document that means the deadline to bind the phase as a whole MUST say so in the phase's own words, because the reading a runtime takes without being told is the per-occurrence one. No phase in the corpus carries both keys today.

Deadlines belong in the process rather than in a run because they are usually policy: payroll has a legal deadline, an access revocation has a security one.

A reference process MUST leave the number blank. It shows where the number goes; the number is the adopter's decision.

A missed deadline. A document that carries by: on any phase SHOULD say, in its failure edges, what happens when a deadline is missed. One failure edge covering deadlines discharges this for every by: in the document; there is no obligation to write one per phase.

Two kinds of answer satisfy it. The document may say what happens to the run, which is either that it continues and the miss is recorded or that it stops. It may instead say what happens to the date: that the date moves, and who agrees the move. Both are quoted here, the first from ref/mkt/award-entry and the second from ref/mkt/pricing-change:

The deadline cannot be made. The manager says so on the day the arithmetic stops working, while there is still time for <who> to decide whether the entry is dropped, whether the body will grant an extension, or whether the entry goes in thinner than it was planned.

The effective date moves after notices have gone out. Every notice already served names a date that is now wrong. The run goes back to produce-material for the corrected wording and then to serve-notice, the waiting time starts again from the day the corrected notice goes, and nobody moves on the date the first notice named.

This was a MUST in 0.1.0-draft and is a SHOULD here, because most of the corpus does not do it. A document that leaves it out has left a real gap and the SHOULD says so, but it is not thereby non-conformant.

6.6.1 not-before:#

not-before: is OPTIONAL. It states the moment a phase MUST NOT begin before, in the same forms by: takes.

by: says a phase must not finish after a moment. Nothing in 0.1.0-draft said a phase must not begin before one, and Section 6.2 tells a runtime to take order from after: lines, which means a phase starts as soon as the phases it waits for have closed. That is the wrong answer for an embargo. ref/mkt/announce-company-news carries the embargo in its handoffs and its data bindings, and its release phase reads:

  issue-release    - human: the named owner says go, the release is sent
                     and the page on the site goes live
                     owner: comms-manager
                     after: get-sign-offs + line-up-press
                     automation: <level>

Every phase it waits for can close a week early. Nothing in the graph says the release does not go out then, and an embargo broken by the organization that set it is the one failure the whole process exists to avoid.

A runtime MUST NOT begin a phase carrying not-before: until that moment has arrived, even when every phase its after: line names has closed. not-before: and after: are both conditions on starting, and both have to hold.

not-before: does not make a phase start on its own. It says when the phase becomes allowed, not when it happens, and the phase still needs its after: phases closed and its handoffs in hand (Section 8.4).

No document in the corpus carries the key today, which is why it is OPTIONAL rather than REQUIRED on phases that need it. A reference process that carries one MUST leave the moment blank where the moment is the adopter's decision, on the same rule by: follows.

6.7 Deviation edges#

A deviation edge is a backward or sideways edge: a gate that comes back refused, a check that fails, a deadlock that goes up.

A deviation edge MUST name the phase it returns to. It MUST NOT return "to the beginning". An approval that comes back with redlines returns to the phase that can act on them:

  A7 -. a concession is refused inside .-> A6
  A13 -. the paper does not say what was agreed .-> A9

The second one is worth reading twice. The reconciliation finds that the contract text and the agreed record disagree, and the edge returns to the agreed record, not to the contract. Which phase an edge returns to is the decision the edge exists to record, and naming it is the whole point of writing the edge down.

Usually the phase it returns to is where the work can actually be repaired. Not always. An edge may also return to the phase that holds the leverage, which is a different thing. ref/rev/retire-a-tool writes:

  confirm-deletion -> close-accounts [supplier-will-not-confirm]: the
    supplier will not confirm what it destroyed, so the closing is
    worked again against the agreement

Nothing at close-accounts can be redone. The accounts are shut and the agreement is ended. The run returns there because that is where the agreement and the final invoice sit, and they are what the organization has left to press the supplier with. An author naming the target of a deviation edge SHOULD ask both questions: where can this be repaired, and, where it cannot, who still holds something the far side wants.

Every document in the corpus carries at least one deviation edge.

6.7.1 Deviations in the document#

The examples above are drawn from a diagram, and Section 6.10 says a diagram is a rendering rather than a source of truth. Read together, those two statements oblige a document to carry something the document block has no way to write down, which is a defect in this specification rather than in any document.

A document MAY carry a deviations: block, after handoffs: and in the same shape, so that going backwards is stated where the rest of the graph is stated:

deviations:
  approve-concessions -> price-asks [concession-refused]: an approver
    refuses a concession, so the ask is priced again against the floor
  reconcile-paper -> record-agreed [paper-disagrees]: the contract text
    and the agreed record disagree, and the agreed record governs

The left side names the phase the run is in, the right side names the phase it goes to, and the sentence says what happened. The key is optional. It belongs to the one key namespace, which has four members: a handoff key, a deviation key, a record key, and the name of a run-scoped line, no two of them the same string in one document (Section 8.6). A deviation line MUST NOT name a phase that does not exist on either side.

The left side MAY be any. Some deviations do not belong to one phase. A story leaking can happen while the run is anywhere between setting the date and issuing the release, and any says so without writing the same line eight times. The line below is ref/mkt/announce-company-news's own failure edge, written as a deviation:

  any -> issue-release [story-leaks]: the story leaks before the date,
    so the run issues what is signed at that moment or the organization
    stays quiet, and <who> decides which

any means every phase of this document. A document that means a particular set of phases writes them out. A runtime MUST NOT read any as making the deviation automatic; it is still a deviation, taken when the sentence's condition holds.

The right side MAY be a phase further forward. A deviation is normally backward or sideways, and a forward target is not an ordinary edge: it says the run skips work the graph said it would do. It is permitted because the world sometimes takes the decision away from the run. When the story is already out, the phases between here and the release have lost their purpose, and a process that could only walk forward one phase at a time would have the organization silent while somebody else told its news. A document that writes a forward deviation MUST say in the sentence what happens to the phases it passes over, and its failure edges SHOULD say the same thing in prose.

A deviation line and a failure edge are not substitutes. The 0.1.0-draft wording here said a deviation line MUST NOT be the only statement of a failure the failure edges also describe, which cannot be violated as written and so obliged nothing. What it meant is this: a deviation line does not replace the prose failure edge, and a document SHOULD carry both where the failure is one a person building this process needs explained. The line carries the edge, which is the part a runtime can act on. The prose carries the scope, the judgment and the reason, which is the part a person acts on at two in the morning (Section 14.1).

A deviation line MAY end with limit: <n>, the most times one run may take that way back. A run that would take it once more does not: it stops at that phase, and the run record says the limit was reached. The limit is part of the process, because a way back that can be taken forever changes what the process does, so it is written on the line and never left to a runtime's setting.

  run-the-suite -> wire-it [suite-failed]: the failing test cases and
    what each one saw   limit: 3

Where a document carries deviation lines and a diagram, they MUST agree. Where they disagree, the document governs.

Until a document carries them, a reader takes the deviations from the diagram, which is what most of the corpus does today.

6.7.2 Which of the two an edge is#

Section 6.5.1 says an exception edge leaves a phase that stopped without finishing. Section 6.7 says a deviation edge returns to a phase that already ran. Plenty of real edges satisfy both tests at once, and three of the documents upgraded against 0.1.0-draft hit one. The buyer's records break the environment: load-buyer-case cannot finish, which is the exception test, and the environment was built by a phase that can be built again, which is the deviation test.

Classify by the target. If the target phase exists to receive work that could not finish, the edge is an exception edge. If the target is a phase that already ran and can be run again, the edge is a deviation.

Under that rule the environment case is a deviation, and ref/sls/run-a-proof-of-value writes it as one:

  load-buyer-case -> set-up-environment [data-will-not-load]: the
    buyer's records break the environment, so the environment is fixed
    before the case is loaded again

clear-exception in ref/mkt/lead-routing is the other way round. It exists for nothing except leads that score or route could not settle, it never runs in an ordinary run, and it is reached only when a phase stops without finishing. That is an exception edge.

The target is the right discriminator because it is what decides where the work goes and who is standing there. An exception edge ends up at a phase whose whole purpose is to hold work a person now has to settle, and Section 6.5.1's obligations about its automation level follow from that. A deviation ends up in the ordinary graph, at a phase that will run again and hand on again.

An exception edge MUST NOT create a cycle in after:. A phase entered by an exception edge names, in its after: value, the phases whose failure sends work to it (Section 6.5.1). Where one of those phases already names the other in its own after:, both phases wait for each other and neither can ever start. Writing set-up-environment as after: load-buyer-case while load-buyer-case is after: set-up-environment deadlocks the pair on every run, not just the ones that go wrong. No document in the corpus has a cycle in its after: lines. A return path that would make one is a deviation and is written under deviations: (Section 6.7.1), which is not part of the after: graph and creates no wait.

6.8 The close#

A document MUST name the close: the state that exists when a run is over. At least one phase MUST reach it.

The close and goal: MUST describe the same state. The diagram states it as a terminal node:

  A15 --> DONE([both sides hold one written agreed position])

More than one phase MAY reach the close, and the phase that reaches it is not obliged to be the last one listed. Two documents in the corpus have a second closing phase, and several list exception-handling phases after the phase that closes the ordinary path.

6.9 The phase list and the activity table#

The activity table and the phase list describe the same work in the same order.

A document MUST have exactly one phase for each row of its activity table, in the same order, and a document whose counts disagree is not conformant. All 169 documents in the corpus satisfy this, including every document that lists exception phases and every document with more than twenty activities.

The two exist because they answer different questions. The table says what happens, in words a person reads once. The phase list says when it happens and who is answerable, in a form an agent and an auditor read. When they drift apart, a reader cannot tell which one is the process, and both stop being trusted.

Run-scoped lines are not phases. They MUST NOT appear in the activity table and MUST NOT be counted against it.

A row for a phase that runs another process (Section 6.3.1) MUST name that document's id. One row commits a second document's whole cast (Section 10.1), and a reader of the table alone would otherwise see one owner where there is a second roster.

6.10 The diagram#

A document SHOULD carry a diagram of the graph. All 169 documents in the corpus do.

The diagram is a rendering of the graph, not a second source of truth. Where the diagram and the after: lines disagree, the after: lines govern, and the document MUST be amended to bring the diagram back into line. A runtime MUST NOT read the graph from the diagram.

The same holds for the diagram's trigger node. Every diagram in the corpus opens with one, as T([the buyer cannot decide from description alone]) does in ref/sls/run-a-proof-of-value, and it is a rendering of the trigger: line. Where the trigger node and the trigger: line disagree, the trigger: line governs, and the document MUST be amended. A runtime MUST NOT take the trigger from the diagram. The node is often shorter than the line, because a box has less room than a sentence, and shorter is not disagreeing; a node that names a different event is.

The graph is written as after: lines because text is something a person, an agent and an auditor can all read, and because a diagram cannot carry an owner, a deadline or an automation level.


7. Automation#

Every phase MUST carry automation:, and its value MUST be one of manual, assisted, supervised, autonomous or never. All 2,702 phases in the corpus carry one.

The level says who does the work and who decides:

Level Who does the work Who decides
manual people people
assisted an agent drafts or gathers a person decides and acts
supervised an agent a person approves the output before it moves on
autonomous an agent nobody in the loop; the record is the check
never people, permanently people

manual, assisted, supervised and autonomous are a ladder. An organization moves a phase up it as it gains confidence. never is not on the ladder and is defined first below, because it is the one level that bears safety.

Raising or lowering a phase's level MUST be an amendment, and the amendment MUST get a version. A runtime MUST NOT change a phase's effective level without one. That is what makes the change dated, attributable, and visible to whoever audits the process later.

This section states what each level obliges a runtime to do. The levels are not descriptions of a working style. They are the column an organization uses to decide where to start, and the column that decides whether a person is standing between an agent and the world.

7.1 never#

never means the phase stays with a person no matter how good the agents get, because a regulator, a contract, a customer relationship, or the fact that the next act cannot be undone requires it.

The fourth reason is the strongest and was missing from 0.1.0-draft. The first three are somebody else's rule, and rules change. Irreversibility is a property of the work. ref/rev/retire-a-tool puts its never gate at review-switch-off, immediately before close-accounts, because after that phase every account is shut and the agreement is ended, and no later phase and no amendment can put any of it back. A phase like that is the last moment a person can still say no, and that is what makes it worth a person's time.

A runtime MUST interrupt every run at a never phase and MUST NOT proceed past it until a named person has acted. The person MUST be identified in the record by name, and the record MUST carry when they acted.

A notification nobody has to answer does not satisfy never. A runtime MUST NOT treat a posted message, an email, a timed window that expires, or any other signal that proceeds on its own as the person acting. If the run can continue without a person having done something, the phase was not held.

A runtime MUST NOT raise a never phase to any other level. Not on a configuration flag, not on an operator override, not on a timeout, not because the phase has been approved the same way forty times. The only thing that may change a never phase is an amendment to the document, carrying a version, made by the document's owner. A runtime that offers an override for never has removed the only reason the word exists as a separate value.

An agent MAY prepare a never phase: gather the material, draft the document, lay out the options. What it MUST NOT do is decide, or act on the decision. never binds the decision and the act, not the preparation.

never is 383 of the corpus's phase levels, and the phases that carry it are the ones that would be expensive to get wrong: set-walk-away, approve-concessions, escalate-deadlock and confirm-position all read automation: never.

The point of no return. A document SHOULD name the phase past which a run cannot be undone. Most processes have one and most documents do not say which it is, which is why this is a SHOULD. The natural place to say it is the abandonment failure edge (Section 14.2), because that is where a reader goes when they need it, and the reader who needs it is deciding whether to stop a run that is already halfway through.

Naming it is also how an author finds the never gate they were missing. If the phase past which nothing can be undone has no person standing in front of it, the process is one agent's bad afternoon away from something nobody can reverse.

7.2 assisted#

assisted means an agent drafts or gathers, and a person decides and acts.

A runtime MUST present the agent's output to a person before anything leaves the phase, and the person acts. The act is the person's: the runtime MUST NOT perform it on the person's behalf on the strength of the draft alone.

The record for an assisted phase MUST name the person who acted and MUST record when. It SHOULD identify what the agent produced, so that a later reader can tell the draft from the decision.

7.3 supervised#

supervised means an agent does the work and a person approves the output before it moves on.

A runtime MUST hold the output at the phase boundary until a person approves it. Approval is an act, so the same rule never states applies here: a window that expires, a notification nobody answers, or a default that proceeds on silence MUST NOT be recorded as an approval.

The rule holds on every real run. A runtime MUST NOT pass a supervised phase without a person's approval on the first run of a new version, on a run started by the person who would approve it, or on any other real run. A runtime that wants a real run to proceed without an approval is asking for a lower level, and a lower level is an amendment to the document (Section 18), made by its owner and visible to every reader.

A test run (Section 21) is the one exception. Its approvals are answered by the test case it follows, and its record says so: a test case's answer is never recorded as a person's approval, and a run that is not recorded as a test is never answered by one.

The record MUST name the approver and MUST record when the approval was given. Where the phase feeds a handoff, the record of the approval SHOULD travel with what crosses, so the next phase can see that the thing it received was approved and by whom.

The difference from assisted is who acts. Under assisted the person does the thing. Under supervised the agent does the thing and the person says yes first.

7.4 autonomous#

autonomous means an agent does the work and nobody is in the loop. The record is the check.

A runtime MAY complete an autonomous phase without any person acting. Because nothing else stands between the phase and the world, the record carries the whole weight, and the obligation is correspondingly strict: a runtime MUST write a record for every autonomous phase it completes, naming the agent that acted, what it did, and when. A runtime MUST NOT complete an autonomous phase without leaving that record.

An autonomous phase MUST still respect its by: deadline, its handoffs, and any policy rule that names it. Autonomous means unattended, not unbounded.

7.5 The level in a reference process#

A reference process SHOULD leave automation: blank, written automation: <level>, except where the level is never, which it states.

This is a choice the reference makes for the adopter deliberately. Where a phase may be automated, how far to automate it is the adopter's decision, and depends on their regulators, their agents and their appetite. Where a phase must stay with a person, that is a property of the work rather than of the adopter, so the reference states it and the adopter inherits it. 2,178 phases in the corpus carry the blank and 383 carry never.

A reference process MAY state a concrete level where the shape of the work fixes it. Twenty-four documents in the corpus do. No reference process states manual, because a phase that people are free to automate later is left blank rather than pinned at the bottom of the ladder.

An adopter MUST fill in every <level> blank before starting a run. A runtime MUST NOT start a run against a document that still carries an unfilled automation: blank, and MUST NOT choose a level for it. There is no safe default: guessing low stalls the run and guessing high puts an agent somewhere a person was meant to stand.

8. Handoffs#

A handoff is what one phase leaves for the next. The graph says which phase follows which. The handoff says what crosses the edge and what it has to contain. A document with a graph and no handoffs tells a reader the order of the work and nothing about the work, and the phase on the receiving side has to go and ask.

8.1. The line#

A handoff is written as one line under handoffs:, in the form <sending side> -> <receiving side>: <what crosses>, continued on indented lines where it does not fit. Quoted from ref/sls/negotiate-the-agreement:

  confirm-position -> hand-on: one dated list of agreed terms, held by
    both sides, and the open items nobody closed

A handoff line MUST say what crosses. A line that names two phases and stops repeats an edge the graph already carries and tells the receiving phase nothing it did not already know.

A document is not required to write a handoff on every edge of its graph. It SHOULD write one on every edge where the receiving phase needs something it cannot get for itself, which in practice is most of them.

8.2. Both sides name something that exists#

A document MUST NOT name a phase key on either side that its phase list does not declare. A handoff to a phase that does not exist is a promise nobody can keep, and a handoff from one is an input that never arrives. Both read as complete on the page, which is what makes them worth a MUST: this is the defect a reader is least likely to catch by eye.

The sending side MUST be either a phase of this document or a counterparty role. A run cannot hand on what it did not produce, so where the thing was produced inside this organization, a phase of this document produced it.

The counterparty case is the exception and it exists because half of some processes happen inside somebody else's organization (Section 19). A proof of value waits for the buyer's own data, and the buyer is not a phase of this document and MUST NOT be written as one (Section 19.1). The sending side is then written as the role name exactly as the roster names it, which is how the reader tells it from a phase:

  customer sponsor (person) -> load-buyer-case [buyer-data]: the
    buyer's own records at the buyer's own volumes, including the ones
    they said were awkward

A role on the sending side is a role, not a phase. It gets no after: line, it appears in no join, it closes nothing, and a runtime MUST NOT treat it as a phase of the graph. What it does carry is Section 19.2's rule about what satisfies it: the handoff is satisfied by what actually arrived, and by nothing that is merely asserted about the far side.

That is the inbound direction. Outbound, where the run hands something to the counterparty rather than taking something from them, is the destination case the next paragraph covers.

The receiving side MAY instead name a destination outside the document, written in prose rather than as a key. This is how a run hands its result out of the process. Quoted from ref/mkt/approve-marketing-material:

  release -> the submitting process: the cleared version, the clearance
    record, and the date the clearance stops being good

Two things that are not phases MUST NOT appear on either side. The trigger is one: what the trigger carries is stated in the trigger, and taking it in is the job of the first phase. A run-scoped line (Section 9) is the other: it has no edges, so it can neither take a handoff nor give one.

8.3. Joins and fan-out#

A handoff MAY name more than one phase on a side.

Several phases on the sending side are joined with +. This is one handoff, and it exists only when all of the named phases have produced their part. Quoted from ref/mkt/display-retargeting:

  check-frequency + check-suppression -> record-in-force: the delivered
    figures beside the settings they were read against

Several phases on the receiving side are separated with /. This is also one handoff, read by each of the named phases. A phase that hands the same thing to two or three others MAY state it once this way rather than repeating itself. Quoted from ref/mkt/product-launch:

  plan-launch -> produce-content / enable-sales / prep-channels: each
    branch's deliverables and deadlines. Three branches read one plan

A document MUST NOT write + on the receiving side or / on the sending side. The two symbols are not interchangeable, and a reader who cannot tell a join from a fan-out cannot tell whether a phase waits for one input or for three.

Stating it once is a permission, not an instruction. A phase that hands different things to two others writes two lines, and so does a phase that hands the same thing for two different reasons.

8.4. Nothing starts before its handoff exists#

In a run, a receiving phase MUST NOT begin before every handoff the document names into it exists. A runtime that starts phases MUST NOT start one before then, and MUST NOT treat an after: edge as satisfied by a phase whose handoff was never produced.

The after: line and the handoff answer different questions. after: says when a phase may begin. The handoff says what has to be in hand when it does. A phase that starts on the edge alone starts without its input, and the work it does before the input arrives is work that has to be done again.

A handoff out of a phase the run never entered is not owed, and this rule does not hold the receiving phase for it. Section 6.5.2 says what a run never entering a phase means and how a document marks such a phase.

Where the document carries confidential-under: (Section 4), a handoff to an agent of another owner is delivered only after the runtime has checked that the owner is bound by the named agreement. A handoff the runtime refused to deliver does not exist for the receiving phase.

Section 8.4.1 is the one exception. It lets a phase begin before its handoff exists, and never lets it finish before then.

8.4.1. Starting on a draft#

Some handoffs wait on a person, and the person is usually going to say yes. The test writer can write against the spec while the owner reads it, and most of the time the owner's answer changes nothing the test writer used. Holding the test writer until the owner answers turns a person's reading time into the whole process's waiting time. A document MAY let the receiving phase start on the draft instead, by ending the handoff line with on draft: <key>:

  approve-the-spec -> write-the-suite [approved-spec]: the spec as the
    owner left it, with who approved it and when   on draft: spec-drafted

Which handoffs. The sending phase MUST be one that waits on a person: a human: phase at never (Section 7.1), or a phase at supervised whose output a person approves before it is handed on (Section 7.3). The key MUST name a handoff into the sending phase, the thing the person is reading. For a supervised phase the key MAY name the handoff itself, and the draft is then the output the person has not yet approved. A document MUST NOT write on draft: on any other handoff. A handoff out of an agent's phase has no draft: it exists when the phase closes.

What may start. The receiving phase MAY begin once the draft exists and every other handoff into it exists. It MUST be told that it is working on a draft, and which one. A phase that acts in the world (sends to somebody outside, publishes, pays, signs) MUST NOT start on a draft, because what it did cannot be thrown away. A phase at never MUST NOT start on a draft either: the person it waits for decides when it begins.

What it produces is held. Until the handoff exists, nothing the receiving phase produces is handed on. The phase MUST NOT close, no after: edge out of it is satisfied, and no handoff out of it exists. Its output is not a draft for any phase after it, so one early start never leads to another.

When the handoff arrives. The runtime compares what the receiving phase was given from the draft with what the handoff carries. What the handoff adds about the decision itself, such as who approved it and when, is not a change. Where nothing the phase was given has changed, the early work stands, and the phase goes on and closes as if it had started when the handoff arrived. Where something has changed, the early work is discarded and the phase runs again on the handoff. The runtime MAY give the holder the discarded work and what changed, to revise from rather than start over. Where the draft changes while the phase is working, for example because a deviation sends it back to be revised, the runtime SHOULD stop the early work, and MAY start it again on the new draft.

When the handoff never arrives. Where the person refuses, or the run ends before the handoff exists, the early work is discarded and nothing of it is handed on.

What it does not change. The person's decision is the same decision it was. Starting on a draft never counts as approving it, and never shortens or skips a gate (Section 7.3). Discarded work still costs what it cost, and the run's caps (Section 10.3) count it. An author SHOULD write on draft: only where the draft rarely changes in ways the receiving phase uses, or where the receiving phase is cheap beside the wait.

Records. Each round that began on a draft is recorded with the key and digest of the draft it began on, and with whether its work was kept or discarded (Section 13.3). A discarded round stays in the record. It is not erased because it did not count.

8.5. A handoff is a thing, not a conversation#

What a handoff names MUST be something a later reader can point at: a document at a version, a list, a record, a dated confirmation, a signed approval. A document MUST NOT name as a handoff something that exists only as a discussion. "The two phases meet" and "a handover call" are not handoffs, because they leave the receiving phase nothing to read and leave an auditor nothing to check.

This is the same rule the records section applies to a run (Section 13), stated one edge at a time. It is also what makes a phase safe to move from a person to an agent: an agent can be handed a list, and cannot be handed the memory of a meeting.

8.6. Handoff keys#

A document MAY give a handoff a stable key alongside its sentence. The key is written in square brackets before the colon:

  price-asks -> sort-asks [ask-costing]: what each ask costs, which
    budget carries it, and the margin after it

A key is lowercase, hyphen-separated, and unique within the document. Keys are one namespace, and it has four members: a handoff key, a deviation key (Section 6.7.1), a record key (Section 13), and the name of a run-scoped line (Section 9). Two of those in the same document MUST NOT be the same string. A run-scoped line is already cited by its name, spend or coverage, so it is a key whether or not anybody calls it one, and a deviation key is written in the same brackets a handoff key is written in, so nothing but the block it sits in tells them apart.

The key exists because a sentence cannot be a field name. A runtime that tracks handoffs, or a translator that renders the document into another form, needs a short identifier that survives an edit to the wording. Where a document gives a key, the key is what other systems cite, and an author who rewrites the sentence MUST keep the key. An author who means a different handoff gives it a different key.

The sentence is not optional. A key next to no description says even less than a bare edge.


9. What attaches to the run#

Not everything a process does sits in a phase. A weekly status report runs for the whole run. A spend watch starts at the first purchase and does not stop until the last invoice. These are run-scoped lines, and they are written under run-scoped:.

Most of a process's management lives here: the status reporting, the spend watch, the escalation path. A document that lists only its phases reads as if nobody is watching between handoffs.

9.1. The line#

A run-scoped line resolves to one of the forms a phase does, except running a process, and it names an owner. A run-scoped line MUST NOT run a process: a process that ought to run on a cadence while this one is live has a trigger of its own (Section 5), and nothing in this graph waits for it. From ref/mkt/display-retargeting, written in the form this version uses:

run-scoped:
  spend     - harness: spend held under the cap and reconciled
              against the invoices                owner: media-buyer
              cap: <n>/day
              from: launch   until: run close
  frequency - harness: a frequency report         owner: analytics
              every: <cadence>
              from: launch   until: run close

A run-scoped line MUST carry from: and until:. Without them the line says something is being watched and does not say from when, which leaves the first hours of a run uncovered and nobody accountable for that.

A run-scoped line MAY carry a cap of its own, as spend does above, where the line is the thing being limited. The grant that cap belongs to is still written in the bindings (Section 10).

9.2. every:#

A line that runs on a cadence carries every: <cadence>. In a reference process the cadence is a blank, because how often a run reports is the adopting organization's decision.

A line that is continuously live rather than periodic carries no every:. A budget watch is not a meeting; it is in force the whole time. A document MAY instead carry on: <event> for a line that fires when something happens rather than on a clock.

9.3. from: and until:#

from: names the phase the line starts at, or trigger when it is live from the moment the run begins.

until: names the phase the line stops at, or run close, or a stated condition. until: run close is the common case. Quoted from ref/mkt/field-event and from ref/mkt/nurture-sequence:

  from: promote   until: run-the-event
  until: the program is switched off

A phase named in from: or until: MUST be declared in the phase list, for the same reason a handoff's phases must be.

A run is not complete until every run-scoped line has closed. A line whose until: has not been reached is a line still running, and a run that closes over the top of one closes without the thing that was watching it.

9.4. Run-scoped lines are not activities#

A run-scoped line is not an activity. It MUST NOT appear in the activity table, and it MUST NOT carry an after: line. It has no incoming or outgoing edges, so it has no node in the graph.

The discriminator is not repetition. A phase MAY carry every: and until: as well: ref/mkt/display-retargeting has a phase check-frequency that runs after: launch and then every: <cadence>, and it is a phase because it sits in the activity table and in the graph, takes a handoff, and hands one on. What makes a line run-scoped is that it has no place in the graph, not that it repeats.

An author who puts a status report in the activity table gets a graph with a node nothing can reach and nothing leaves. An author who puts a phase under run-scoped: loses its handoffs. Both are the same mistake, made in opposite directions.


10. Bindings#

Bindings are what an agent needs before it can run a phase: who holds each role, what a run may touch, and what it reads. They settle permissions in advance. When a trigger fires, nobody should still be working out what the agents are allowed to do.

A document MUST carry all three binding lines: roster:, systems: and data:. A missing line reads as "nothing needed", which is a different claim from "not yet decided", and only one of the two is ever true.

10.1. Roster#

The roster says which agent or person holds each role, standing, between runs. A run fills its cast from the roster instead of negotiating one.

The roster MUST account for every role the activity table names. A role that appears in the table and nowhere in the roster is a role nobody holds, and the phase that needs it stalls on the day it runs.

Every role in the activity table is one of two kinds, and the table says which:

  • A role an agent can hold cites an abstract agent. The citation is a link at the role's first mention in the document, and the bare name thereafter.
  • A role only a person holds is written as a person, with (person) after the name.

Both forms are quoted here from the agents column of ref/sls/negotiate-the-agreement, the first from activity 1 and the second from activity 7:

  [negotiation-coordinator](../../agents/negotiation-coordinator.md)
  sales leader (person) · finance approver (person)

A document MUST mark each role one way or the other. The mark is what tells a reader whether the automation column is a decision that is still open or one that was closed when the process was written.

In a reference process the roster is unbound. It names which roles the adopter has to fill and stops there, because a reference process is not running anywhere and has nobody to name. Quoted from ref/sls/negotiate-the-agreement:

  roster:  <who holds each role - agents claiming the abstract agents
           above, and named people for the deal owner, the sales leader
           who sets the floor, the finance approver and the legal
           reviewer>

An adopted process names a holder for each role. That is part of what adoption is.

Where a phase runs another process (Section 6.3.1), the roster MUST also account for every role the inner document names, and every role of any process that document runs in turn. The inner run fills its cast from here. In a reference process the unbound roster names those roles among the ones the adopter has to fill.

10.2. Systems#

systems: lists what a run may touch and at what permission. An agent that has to ask for access halfway through a run stalls the run, and an agent with more access than the process needs is a finding waiting to happen.

Every system in the list MUST carry an access word. The access words are read, write, trigger and revoke, and a grant MUST carry exactly one of them:

  • read is the right to look. Nothing changes.
  • write is the right to change what is stored.
  • trigger is the right to make something happen outside the system: a send goes out, a session goes live, a signature request leaves the building. trigger is separated from write because staging a send and sending it are different risks, and a run that may do the first is not thereby allowed the second.
  • revoke is the right to end access: to close an account, cut off a person or a system, or end the arrangement under which the organization has the system at all.

revoke is new in 0.2.0-draft and no document in the corpus uses it yet. It exists because the other three cannot say "take it away". ref/rev/retire-a-tool closes every account on the tool, ends the agreement on the notice it requires, and agrees the final invoice, and its binding for that tool reads the tool (read). Nothing in the three words available said what the run was actually going to do to it.

revoke is the access most worth seeing in a binding. A write grant that turns out to be too wide produces a mess somebody can work back through. A revoke grant that turns out to be too wide produces people locked out of a system, or an agreement ended that somebody was still relying on, and neither of those is undone by editing a record. An author listing a system a run will switch off SHOULD write revoke rather than write, so that the grant says the thing out loud.

A system that needs two of them takes two grants. The corpus writes both inside one parenthesis, separated by a semicolon, and MAY qualify either with what it covers. Quoted from ref/mkt/display-retargeting:

  systems: ad platforms (write, cap: <n>/day),
           the audience tools in the ad platforms (write),
           the consent record (read), the suppression lists (write),
           the contact database (read), the website (write:
           measurement code only), analytics (write: tags and
           conversion definitions; read: reporting),

10.3. Caps#

A cap is a limit on a grant, and it is written inside the grant it limits: ad platforms (write, cap: <n>/day). A cap written anywhere else limits nothing, because the thing it would restrain is the access, and the access is granted here.

In a reference process every cap is a blank. The reference process shows where a number goes; the number is the adopting organization's decision, and it is the decision the organization is most likely to want to argue about.

A cap in the document is the only place a cap comes from. An agent never grants itself anything, and an agent MUST NOT raise a cap it was given. A grant that flows from the document to the agent is auditable; one an agent arranged for itself is not.

10.4. Data#

data: is the reference material a run reads: brand guidelines, a claims register, a price list, the record a decision is checked against. Quoted from ref/sls/negotiate-the-agreement:

  data:    <your price book> <version>, <your discount policy>
           <version>, <your standard terms> <version>, the offer as
           sent, the concession record

A data item that a run's output is judged against SHOULD carry a version marker. A run's output is only defensible against the version it read, and a year later the current version is not that one.

The document names the material. Naming which version a particular run actually read is the run's obligation, not the document's, and it is discharged in the records (Section 13).

10.5. A grant that does not last the whole run#

A grant with no time on it is in force for the whole run, from the trigger to the close. That is how every grant in the corpus reads today, and for most processes it is right: a run that may write to the CRM may write to it throughout.

It is wrong for a process that hands a system back. ref/rev/retire-a-tool takes an export, stops the links, puts the tool into read-only, closes the accounts and then ends the agreement. By the last third of the run the tool is gone, and a binding that still grants access to it is granting access to something that no longer exists, in a document whose whole subject is orderly removal.

A grant MAY therefore carry from: and until:, naming phases, exactly as a run-scoped line does (Section 9.3):

  systems: the tool (revoke, from: trigger, until: close-accounts),

A phase named in a grant's from: or until: MUST be declared in the phase list, for the same reason a handoff's phases must be. Where a grant carries them, a runtime MUST NOT use that access before the phase its from: names has been reached or after the phase its until: names has closed. Where a grant carries neither, the grant is in force for the whole run and nothing here changes that.

No document in the corpus carries a dated grant, which is why this is a MAY. It is written down because the alternative an author reaches for is a policy line saying nobody should still be using the tool, and a policy line is not a permission; the permission is the grant, and the grant is here (Section 10.3).


11. Policy#

Policy is the set of rules a run is held to for legal, compliance or brand reasons, rather than for coordination. Coordination rules travel with the playbook a room runs, or with the agent that leads its own loop, and apply wherever they are used. Policy rules are the organization's own and apply here.

"Every claim ships with a citation in the claims register" is policy. "One agent holds the pen during synthesis" is coordination.

11.1. Policy is prose#

Policy lines are written as prose, one rule to a line, in language the person who has to follow the rule would use. Quoted from ref/sls/negotiate-the-agreement and ref/mkt/display-retargeting:

  no concession is offered to the buyer before it is approved inside,
    and the approval names a person
  a discount past <threshold> needs <who> to sign before it is offered
  sign-off is a human gate and is never delegated to an agent

Policy is not machine-readable and a document MUST NOT be written as if it were. There is no grammar here, no operators, and no expectation that a program can evaluate a policy line. A rule stated in prose is a rule a person can be held to; a rule compressed into a syntax to make a program's life easier usually stops saying the thing the lawyer meant.

A policy line in a reference process carries the generic rule and leaves the organization's numbers and names as blanks. <threshold> and <who> above are the shape of the decision, not the decision.

11.2. Who policy binds#

Policy is normative for the organization that adopts the process. Once a document is adopted, its policy lines bind the runs of that process the way any of the organization's own rules bind it. They are not normative for this specification, for a runtime vendor, or for anybody who did not adopt the document.

Enforcement is by a person, or by whatever runs the process, or by both. Nothing in the format enforces a policy line by itself. What holds a run to its policy is the records it leaves and the fact that somebody reads them.

11.3. A runtime says what it cannot enforce#

A runtime MUST NOT silently drop a policy line it cannot enforce. It says so instead: it reports the line, in the document's own words, as not enforced by the runtime, and it does so where the person running the process will see it rather than in a log nobody opens.

A dropped policy line is worse than an absent one. An absent rule is visibly absent. A rule that is written in the document, believed by everyone who read the document, and quietly unenforced by the system running the work is a gap that shows up for the first time in an audit. A runtime that cannot enforce a rule is not failing; a runtime that hides which rules it did not enforce is.

The same obligation falls on a translator that renders the document into another form: a policy line it cannot carry MUST be reported, not dropped.

The same obligation covers the header key confidential-under: (Section 4). A runtime that does not check whether each outside participant is bound by the named agreement MUST say so in the same way, before it starts the first phase held by an agent of another owner.

11.4. Repeated policy belongs somewhere else#

A policy rule that appears in every process in a department SHOULD live in a standing policy document that processes cite, rather than being copied into forty of them. Forty copies drift, and the day the rule changes, thirty-nine of them are wrong and nobody knows which.


12. Measures#

Measures say what a good run looks like: how long it should take, how many run in a period, what coverage or accuracy is expected, and the gate a run has to pass. Measures are what a debrief reads. Without them, amendments come from whoever complained most recently.

Quoted from ref/sls/negotiate-the-agreement:

measures:
  cycle time: <target> from the buyer's reply to a confirmed position
  concession depth: <target> for the gap between the offer as sent and
                    the position as agreed
  volume: <negotiations per period>
  quality gate: every closed ask carries an approver, and no offered
                concession is missing its approval

12.1. The names are open#

The measure names are not a closed list. cycle time, volume, coverage, accuracy, rework and others are in use across the catalog, and a process measures what its work is actually judged on. A document SHOULD name a cycle time, because how long a run takes is the question asked of nearly every process.

Measures are not machine-readable. A runtime MAY compute a number a measure names, where a run's records happen to carry what the arithmetic needs, but no runtime is obliged to, and a measure is not written to be parsed.

12.2. The quality gate#

A document MUST name a quality gate, and the gate MUST be written as a condition a run either meets or does not:

  quality gate: no campaign switches on against a pool the suppression
                list has not been applied to

Every other measure is a number that can be better or worse. The gate is the one that can be failed. A measures block without a gate says how the work is scored and never says what would make a run unacceptable, which is the only part of it that ever stops anything.

12.3. Targets are blanks#

In a reference process the targets are blanks. The reference process names what to measure; the target is the adopting organization's decision, and two organizations running the same process honestly hold it to different numbers.

A measure whose target is <target> is complete for a reference process. A measure without a target is not a failure of the document, and a tool that validates these documents MUST NOT report an unfilled target in a reference process as an error. The blank is the point: it marks where a decision goes and says the decision has not been made here.

A gate may carry a blank inside it and still be a gate, as in "first-week report delivered within <days> of launch". What the gate tests is written; the number it tests against is the adopter's.


13. The records a run produces#

A record is what makes a run auditable. The process document says what the process is; the records show that it ran. Because each record is written as the work happens and names who acted and when, nobody has to reconstruct any of it afterwards.

Records are also what make automation safe. An activity moves from a person to an agent on the strength of what it leaves behind, not on the strength of a promise about the agent. At autonomous there is nobody in the loop and the record is the only check there is. A phase whose records are thin cannot honestly be moved past assisted, whatever the agent is capable of.

13.1. The document says what a run leaves behind#

The document MUST say what a run leaves behind, and it says it in three ways at once:

  • Each phase's level fixes the shape of that phase's record (Section 13.3). A document that names a level for every phase has named a record for every phase.
  • Each role's abstract agent carries a records: line of its own, saying what a run can expect that agent to leave. Quoted from media-buyer v1: "Every campaign configuration at a version, every budget move with the number, the direction, and the reason, and the stop record when the buy comes off."
  • Individual phases say so outright where the record is the point of the phase. Quoted from ref/mkt/display-retargeting:
  record-in-force   - human: the pools, the caps, the membership
                      windows and the exclusions written down at a
                      version

A document MAY additionally carry a records: block of its own, in the same form an abstract agent uses (Section 13.7). A document that has records nobody would predict from the levels SHOULD write them out.

A run MUST leave what its document names. This is the obligation the rest of the section rests on. A run that produced the work and not the records produced something nobody can check, and for an auditor a year later it is indistinguishable from a run that never happened.

13.2. The run record#

A run opens with a record naming the process, the version it ran under, when it started, who started it, and the record that fired it:

RUN: mkt/social-campaign v4 · run 47
started: <date> by <who>
trigger: <the record that fired it>

The version in that record MUST NOT change afterwards, even when the process is amended. An auditor reads a run's records against the version that was effective at the time, not against today's page. A run record that follows the document forward destroys the only evidence of what the run was actually held to.

Where the document carries carries: lines (Section 5.4), the run record also names each item the run was handed, by its item name, and says of each optional item whether it arrived:

carried: topic = <the words, or a reference to the document>
carried: reader - not given

Where the document carries confidential-under:, the run record also holds every refusal the runtime made under it, each as a REFUSED: record naming the phase or handoff, the agent, its owner, the agreement and the reason (Section 4). A refusal is a record of the run, and a run whose refusals are missing from its record cannot show that its material reached only bound parties.

13.3. What each phase leaves#

Each phase leaves the record its own level produces:

The phase What it leaves
harness: <what the agent works out> one closing record, shaped like a run's close (below)
runs process <id> v<n> one line naming the inner run, the version it ran under and its outcome; the inner run keeps its own records (Section 6.3.1)
convenes <collab pattern> that pattern's CONVENED and DONE records
system: <action> one line: what happened, when, and what did it
human: <action> one line: what happened, when, and who did it

A round of a phase that began on a draft (Section 8.4.1) also names the key and digest of that draft, and says whether its work was kept or discarded.

A phase whose records are not written is not complete. A runtime MUST NOT mark such a phase complete, MUST NOT treat it as satisfying an after: edge, and MUST NOT treat a handoff out of it as existing (Section 8.4).

A harness: phase closes with:

HARNESS DONE: draft-media-plan · mkt/media-plan v3 · run 12
led by: <the agent that ran the loop>
outcome: <completed | abandoned>
result: <the output the phase names, and where it is>
open: <what the agent did not finish, and who may close it>

The agent MAY keep its own records of the steps it took, and a runtime MAY keep them beside the run. The process requires only this one, so a run reads the same whether a phase was led by a person, a room or an agent's own loop. abandoned is a legitimate outcome here for the same reason it is at the close of a run (Section 13.5). A phase written in the earlier form runs <name>: leaves this record too, and MAY also keep the plan and the JOB DONE record its pattern produced.

The one-line records matter more than they look. Most real processes have steps where nobody collaborates with anybody, and a format that records only the rooms leaves the majority of a run unwitnessed.

13.4. Run-scoped records#

Run-scoped lines leave records too, at their cadence or as their events fire. A run is not complete until each of them has closed (Section 9.3). A weekly report that stopped being written in week three is how a reader finds out that nobody was watching from week three on, and that is worth knowing.

13.5. The close#

A run closes with:

RUN DONE: mkt/social-campaign v4 · run 47
outcome: <completed | abandoned>
result: <what exists now that did not before>
open: <what nobody finished, and who may close it>

abandoned is a legitimate outcome and MUST be recorded as one. A run that stopped and was never closed is not an abandoned run; it is an open run that nobody is running, and the difference is visible only in this record. The open: line names what was left and who may close it, so that the next person to touch the work starts from what is there.

13.5.1. The signed close#

The records of a run are not signed documents, and nothing above asks a runtime to sign them. A run MAY also close with a signed close: one attestation, made by the process owner, that names every record the run left by its digest. A reader who later holds the run's records can then check that they are the records the owner closed the run on, with none added, changed or dropped since. Where a process needs proof that a run happened as recorded, the signed close is that proof.

The signed close follows the record convention of the Common Agent Specification §8.1, with the tag agent-process-close-v1:

{
  "format": "agent-process-close-v1",
  "role": "process-owner",
  "act": "close",
  "process": { "id": "gm/offboard-an-agent", "version": 1 },
  "run": "run 3",
  "outcome": "completed",
  "records": [
    "sha256:<digest of the RUN record>",
    "sha256:<digest of the next record written>",
    "sha256:<digest of the RUN DONE record>"
  ],
  "produced_at": "2027-04-02T10:00:00Z",
  "by": "<process owner public key>",
  "signatures": [
    { "tag": "agent-process-close-v1", "by": "<process owner public key>",
      "sig": "<base64>", "alg": "ed25519" }
  ]
}
  1. records lists, in the order they were written, the digest of every record the run left, from its RUN record through its RUN DONE record, run-scoped records and refusals included. A digest is sha256: and the 64 lowercase hex digits of the SHA-256 of the record's exact bytes as the runtime stored them, in UTF-8. The signed close is not in the list.
  2. process, run and outcome repeat what the RUN and RUN DONE records say, and MUST agree with them.
  3. The signature is the one the Common Agent Specification §8.1 defines: Ed25519 over the tag, one newline, and the JCS canonical JSON of the document with signatures removed. Its by-equality rule applies.
  4. by is a key of the process owner, the party owner: names. Which key that is, the owner's organization says in its own records, and a reader judges what the key is worth, as for any attestation.
  5. A runtime that writes a signed close MUST NOT write a record for the run after it. A record that appears later is outside the close, and a reader MUST NOT treat it as part of the run the owner closed.
  6. A reader who holds a record whose digest is not in records, or who cannot produce a record whose digest is, MUST say so wherever it shows the run as closed.

The signed close is evidence that the owner closed the run on exactly these records. It is not evidence that what the records say is true. A run without a signed close is complete as Section 13.5 defines it, and a process that wants named people to put their names to a run, beyond the owner, still writes an approval phase for it.

13.6. A record names its source and its versions#

A record MUST name its source and the version of anything it was computed against. A number with no source is an assertion. A figure read against a rule, a list, a price book or a set of guidelines is only defensible against the version that was read, and the version is the part that is impossible to recover later.

In practice this means a record names the data bindings it read at their versions (Section 10.4), the process version it ran under (Section 13.2), and, where the record is a reading of something, the settings it was read against. Quoted from ref/mkt/display-retargeting: "the delivered figures beside the settings they were read against".

A runtime MUST NOT write a record that names a version it did not actually read. Recording today's version because it is the one to hand is worse than recording no version, because it converts an unknown into a wrong answer that reads as an authoritative one.

13.6a. Naming the records#

Section 13.1 establishes what a run leaves behind without a block of its own: each phase's level fixes the shape of that phase's record, and each role's abstract agent carries its own records: line. No document in the corpus writes a records: block, and none is required to.

A document MAY nonetheless carry one, after bindings:, where the records a run must leave are worth stating in the process rather than assembled from the phases and the agents:

records:
  concession-record - every closed ask with the answer, the reason, the
                      date, and the person on each side who agreed

Where a document carries the block, it does not replace what Section 13.1 already establishes. It names the records that matter across the whole run, which is the set a reader of the process asks about and the set a runtime is most likely to store.

13.7. Record keys#

A document MAY give each record a stable key, for the same reason a handoff MAY have one (Section 8.6): a runtime storing records and a translator rendering them both need a field name, and a sentence cannot be one. A key is lowercase, hyphen-separated, and unique within the document, sharing one namespace with the handoff keys:

  records:
    concession-record - every closed ask with the answer, the reason,
                        the date and the person on each side who agreed

A key is stable across amendments. An author who rewrites what a record contains keeps the key; an author who means a different record uses a different key. A key that changes meaning between versions is worse than no key, because everything that cited it is now quietly citing something else.

14. Failure edges#

A run does not always go the way the graph hoped. A phase misses its deadline. A gate comes back refused. The trigger fires while a run is already in flight. Somebody stops the run halfway through. None of those is visible from inside a single phase, which is why a document states them separately.

A process document SHOULD state its failure edges. They are not a key in the document. They are prose stated alongside it, one entry per condition, saying what went wrong, what happens next, and where the run picks up. The corpus writes each as a bolded condition followed by the answer:

A sign-off comes back with changes. The run returns to produce-posts, and only the piece the signers named reopens.

Apart from that SHOULD and the one in section 14.2, nothing in this section is normative. That is a decision rather than an omission, and the rest of the section explains it.

14.1 Why they are prose#

The quoted edge carries three different things at once. "The run returns to produce-posts" is an edge, and a machine could hold it. "Only the piece the signers named reopens" is a rule about scope, and an edge has nowhere to put it. That a sign-off comes back with changes at all is a judgment about this particular work, made by the person who wrote the process down.

Making failure edges machine-readable means fixing a closed set of conditions and a closed set of responses. The conditions are not closed. Each document's edges are about its own work: "The buyer's real decider was never in the room", "The paper does not say what the room agreed", "The model drifts". A vocabulary wide enough to hold all three says nothing about any of them. The part that survives such a translation is the part that mattered least, and what is left reads as complete, which is worse than prose that admits it is prose.

So the specification takes the other side. Failure edges stay readable by the person who has to act on one at two in the morning. A runtime that needs an edge in a form it can act on takes it from the graph and the automation level, not from here.

14.2 Abandonment#

One condition SHOULD always be covered: a run that is abandoned partway through.

By the time a run stops, some phases have already changed the world. Access was granted. Money was paid. A post is public. A concession was approved and can be reused on another deal. A document SHOULD name what has to be undone and who does it:

A run is abandoned. The offer is withdrawn or marked stale in the quoting system, the approvals given for concessions are cancelled so they cannot be reused on another deal, the buyer is told the negotiation has stopped and who to speak to, and the deal goes to the lost deal process with the reason it stopped.

"It does not happen" is a legitimate answer, as long as it is stated rather than left out:

A run is abandoned. It never is; a run costs seconds. A submission that fails midway restarts from capture, because every phase is safe to repeat.

A process that cannot be abandoned safely SHOULD say so. This is the one failure edge whose absence is a real gap. Most other conditions a reader can work out from the graph. What a half-finished run has already changed is knowable only to whoever wrote the process down, and the person who needs it is under time pressure when they need it.

When there is nothing to undo. The paragraphs above discuss abandonment entirely in terms of undoing, and some runs pass a point where undoing is not one of the options. Accounts are closed. An agreement is ended on notice. Data is destroyed and the supplier has sent the receipt. Section 7.1 asks a document to name the phase past which a run cannot be undone, and this is where a reader looks for it.

Where a run can stop but not be undone, a document SHOULD say what a person does instead. The answers are of a different kind from the undoing ones. Somebody has to be told. Something has to be bought or built again. A record has to say what state the work was left in and who now owns it. ref/rev/retire-a-tool is the clear case: a run abandoned after close-accounts cannot reopen the accounts, and what it can do is say plainly which systems are gone, where the export sits, and who is now answerable for the work the tool used to run.

An abandonment edge that names only what gets undone leaves the reader of a run that is past that point with nothing, and that reader is the one who most needed the document to have thought about it.

The run's closing record carries outcome: <completed | abandoned>, so a run can record that it stopped. The record says that it happened. The failure edge says what it costs.


15. The reference profile#

A reference process is a process document published to be adopted rather than run. Its shape is filled in and its specifics are blank. The walk through the work is done, and the parts that belong to an organization are left for that organization to supply.

A reference process MUST satisfy everything sections 3 to 14 require of a process document, plus the obligations in this section. The obligations here are of two kinds, and both are checkable by a reader who knows nothing about the work: things that MUST be present, and things that MUST be absent.

15.1 Identity#

A reference process MUST carry an id of the form ref/<domain>/<slug>, lowercase, no spaces, and MUST carry a version:

ref/sls/negotiate-the-agreement v1

The document block a reference process publishes is written as the adopted document will read, not as the reference reads. Its id: leaves the team blank and keeps the slug, and its from: line already names the reference process and the version being adopted:

PROCESS: negotiate the agreement   id: <team>/negotiate-the-agreement   v1
from: ref/sls/negotiate-the-agreement v1
owner: <who>                          effective: <date>

Adopting is then what section 15.6 says it is: filling in the blanks.

15.2 What MUST be absent#

A reference process MUST NOT carry a named owner. owner: MUST be a blank.

A reference process MUST NOT carry an effective date. effective: MUST be a blank.

A reference process MUST NOT bind a role to a named agent or a named person. The roster MUST be a blank. The roles themselves are named; who holds them is not.

A reference process MUST NOT carry a chosen number. Every cap, threshold, deadline, cadence and target MUST appear as a blank: by: <days>, every: <cadence>, cycle time: <target>, the pricing model (read, cap: <n> discount), a discount past <threshold> needs <who> to sign before it is offered.

A reference process's policy lines carry the generic rule and leave the specifics blank. "Nothing publishes unsigned" is a rule the shape of the work produces. Which regulator, which contract and which brand standard apply is the adopter's, and appears as a blank.

A reference process MUST NOT name an agreement. Where it carries confidential-under:, the value MUST be the blank <your agreement>.

A reference process MUST NOT carry run records and MUST NOT cite a run.

The absences are what make the profile enforceable. An owner, a date or a number in a reference process is a defect a reader can find in seconds, without knowing anything about the work being described.

15.3 What MUST be present#

The walk. A reference process MUST state its activities, each with a name, a plain description of what happens, and the roles involved. This is the part that took the work, and inheriting it instead of starting from a blank page is the whole reason to adopt one.

The graph. A reference process MUST state the order of its activities as after: lines (section 6), including the branches.

The roles. A reference process MUST distinguish a role an agent may hold from a role only a person holds. Each role an agent may hold MUST name an abstract agent, a job description an implementation can claim, whose format this specification does not define. The corpus marks a person's role by writing (person) after it, as in deal owner (person) and sales leader (person), and cites an abstract agent by link on first mention. A publisher SHOULD follow that. A role SHOULD keep one wording throughout a document: in the activity table, in every blank that names it, and as the owner of the phases it holds.

The handoffs. A reference process MUST state what crosses each edge and what it has to contain (section 9). Handoffs come with the shape of the work rather than with the organization, so they are filled in, not blank.

The records. A reference process MUST state the records a run leaves (section 13).

The failure edges. A reference process MUST state its failure edges (section 14). Section 14 makes this a SHOULD for a process document generally; for the reference profile it is a MUST, because the failure edges are the part an adopter is least able to reconstruct and most likely to need.

15.4 Blanks#

A blank is an angle-bracket placeholder marking a decision the reference process deliberately refuses to make.

An author MUST NOT use a blank for something the reference process does know. A blank is not a gap in the writing and not a note to finish later. It is the point where the reference stops on purpose, because what goes there is a decision only the adopting organization can make. A plausible default in that position is worse than nothing, because it gets adopted unread and then it is policy.

An author SHOULD shape a blank so that it says what kind of decision it holds. <your sales leadership role> says more than <who>, and <your price book> <version> says more than <data>.

A blank MAY end, inside its brackets, in a mark saying what kind of answer it takes: (person), (system), (policy), (number) or (run), as in <your legal reviewer (person)>. A person is who holds a role or signs; a system is a tool or a store of records the work happens in; a policy is a rule the organization writes; a number is a figure such as a limit, a count or a window; and a run is a detail each run supplies when it starts, such as which campaign. The mark is not part of the answer; whoever fills the blank replaces it whole. A blank whose words already say its kind, such as <days>, or that sits in a place this specification defines, such as automation: <level>, needs no mark.

15.5 It is not running anywhere#

A reference process MUST NOT claim to be in force. It has no owner, no effective date, no runs and no records, and a publisher MUST NOT list one as running. The reason is not tidiness. A catalog that listed reference processes as running would be one people stop believing, and a catalog nobody believes is worth less than no catalog.

A reference process is also not a best practice, and SHOULD NOT be published as one. It is a first draft to argue with. Its value is that the argument starts from a complete picture instead of a blank page.

15.6 Adoption#

Adopting a reference process produces a new document: the adopter's own, at version 1, with their id and their name on it.

An adopted document MUST carry a from: line naming the reference process and the version adopted:

PROCESS: social campaign              id: acme-mkt/social-campaign   v1
from: ref/mkt/social-campaign v1

An adopted document MUST name an owner and an effective date. The reference profile is the one place those are blank, and a document that still shows owner: <who> has not been adopted; it has been copied.

The from: line is provenance rather than dependency. Once adopted, the document is the adopter's. They amend it from their own debriefs (section 18), and the reference process never reaches into it. A new version of the reference process obliges an adopter to do nothing.

Where an adopter's amendment teaches the reference process something every adopter needs, it MAY flow back as a new version of the reference process.

15.7 An adopted process is an agent#

An adopted process presents the interface of an agent as the Common Agent Specification defines it (https://commonagent.net/spec.html). It has a Descriptor, and another agent finds it, reads what it does and starts a run of it the way it starts any agent's offering. The document is the agent's inside and the Descriptor is its outside. The runtime that runs the document (Section 17.3), as the process runner of Agent Roles, Section 28, runs one, is its harness. A package that carries the document says so, and names that harness, as the Common Agent Specification, Section 12.5.1, describes.

The Descriptor is generated from the document, so the two say the same thing, and where they disagree the document governs. Each member comes from one part of the document:

  • does: the process's name and what is true when a run closes, from goal: (Section 4) and the close (Section 6.8).
  • One offering, which starts a run. Its inputs are the items the trigger carries: (Section 5.4). Its outputs are what each closing phase hands on and the run record (Section 13.2).
  • triggers: each watch: line of the trigger (Section 5.1) as an event in the system it names, and a clock trigger's every= as a schedule.
  • systems[]: each system the bindings grant (Section 10.2), with the access the grant gives, and each system a watch: line names.
  • escalates[]: each phase at never (Section 7.1).
  • refusals: starting a run without an item the trigger carries that a run needs, starting more runs than concurrency: allows (Section 5.2), and letting an agent do a phase at never.
  • The limits: how many runs may be open at once (Section 5.2), each phase's by: (Section 6.6) and each cap (Section 10.3), as settings a closer layer may lower and never raise.

A blank the adopter has not filled appears in the Descriptor in the reference process's own words, and what it asks is what setting the agent up needs. A reference process therefore has a Descriptor as well, generated with every blank left open, and a catalog MAY publish it beside the reference process (Section 1.3). The answer to a blank that names a person never enters a Descriptor, which names no private individual (Common Agent Specification, Section 6.13.1).


16. Translation#

A translation is what you get when a process document is rendered into the format some runtime actually executes. This section says what a translator owes its reader. It names no target platform, because the obligations are the same for all of them.

16.1 A translation is a draft#

A translation is a draft. The process document remains the normative artifact (section 3).

A translator MUST NOT present a translation as equivalent to the document it came from, and MUST NOT present it as an output that can be run without being read. The distinction that matters is between a build artifact, which you regenerate and do not inspect, and a draft, which somebody has to sit down with. A translation is the second thing.

Editing a translation does not amend the process. An organization that changes how the work is done amends the document and translates again (section 18).

16.2 Fidelity#

A translator MUST NOT claim fidelity it does not have.

A translator SHOULD report, per target, what came across and what did not. The report is the deliverable that makes the translation usable, because the reader's real question is not "did it convert" but "what am I now missing".

The parts that usually do not come across are worth naming, because a translator that reports nothing is usually a translator that lost these:

  • automation: never. Most runtimes can express that a step is currently assigned to a person. Few can express that it must stay with one permanently. A translator that maps never onto an ordinary approval task has quietly offered to automate the step later, which is the one thing the level exists to prevent.
  • The failure edges. They are prose (section 14), and prose is exactly what a runtime format has no slot for.
  • The policy lines. They are rules a run is held to rather than steps a run performs, and most formats only have steps.
  • The reason a handoff contains what it contains. The contents may survive as a schema. Why they are required does not.
  • The measures. A runtime that reports its own cycle time is not reporting the same thing the document asked to be measured.
  • A harness: phase. Most runtimes can express a step given to an agent. Fewer can express that the agent chooses its own steps and owes only the output. A translator that writes the agent's loop out as fixed steps has reached inside the phase, and SHOULD render it as one step whose result is the output the phase names.
  • A phase that runs a process. A translator that copies the inner document's phases into the outer graph has reached inside it, dropped the version the phase cites, and merged two runs' records into one. It SHOULD render the inner run as a run of its own, and report it where the target cannot.

16.3 Blanks#

A translator MUST NOT substitute a value for a blank. Where the target format requires a value in that position, the translator MUST report the blank rather than invent one.

This is the strictest rule in the section, and it earns that. A blank is a decision the document refuses to make (section 15.4). A translator that picks a number for <threshold> has made that decision on behalf of an organization that never saw the question, and the number then propagates into a running system with nobody's name on it.

16.4 Provenance#

An emitted artifact SHOULD carry the same provenance a from: line carries: the id and version of the document it was translated from, and, where that document is itself an adoption, the reference process and version behind it.

An artifact that cannot say which version it came from cannot be checked against the document later, which puts it outside everything section 18 makes possible.

16.5 Loss is expected#

A translation that loses something is behaving as expected. It is not a defect to be fixed by widening the target format until nothing is lost, and a translator SHOULD NOT be judged on how little it drops.

A reference process is already a first draft to argue with (section 15.5). A translation is the second draft, in a form the argument can be run against. Both are supposed to be read and pushed back on. What makes a lossy translation dangerous is not the loss but the silence about it, which is why section 16.2 puts the obligation on reporting rather than on completeness.


17. Conformance#

Conformance is a claim about a document. Nobody issues it. This specification names no authority, no registry, no badge and no test suite that grants it. A publisher claims a document conforms and a reader checks the claim, which is possible only because every obligation here is readable from the document itself.

17.1 A conforming process document#

A conforming process document:

  • carries PROCESS:, id:, trigger:, goal:, phases: and handoffs: (section 3);
  • carries a version alongside its id;
  • names every phase in its phase list;
  • states, for every handoff, a sending side that is either a phase declared in the same document or a counterparty role named in the roster (Section 19.2), and a receiving side that is either a declared phase or a destination outside this process (Section 8.2);
  • for every harness: phase, names the output the agent hands back (Section 6.3);
  • for every phase that runs a process, cites the inner document by id and version, names as its output something the inner document's goal says exists, names nothing inside the inner document, and starts no chain of processes that comes back to its own id (Section 6.3.1); the first three a reader checks with both documents open, and the last by following the runs process lines through every document in the chain;
  • where it carries carries: lines, gives every item a name no other item has (Section 5.4);
  • where it carries from: naming another organization's document, carries none of that document's people (Section 4);
  • satisfies every MUST in sections 4 to 13, and in Section 20 where it carries extensions.

The handoff check is the one a second implementer gets wrong, because a handoff is not always a graph edge. A document may state a handoff for a return path the after: lines do not carry, as escalate-deadlock -> hold-session does. That is allowed. Both ends still have to be phases the document declares, or the handoff points at nothing.

A document that fails one of those is not conformant. A document that is merely thin is conformant: four phases, no run-scoped lines and three policy rules conform exactly as much as twenty phases do.

17.2 A conforming reference process#

A conforming reference process is a conforming process document that additionally:

  • carries an id of the form ref/<domain>/<slug> and a version;
  • states the walk, the graph, the roles with the agent and person split, the handoffs, the records and the failure edges (section 15.3);
  • carries a from: line in its published block naming itself and its version (section 15.1);

and that additionally lacks:

  • a named owner;
  • an effective date;
  • a bound roster;
  • any chosen number;
  • any run record.

A reference process that gained an owner did not become a better reference process. It became somebody's process, and it should say so with its own id, a version 1 and a from: line (section 15.6).

17.3 A conforming runtime#

A runtime is whatever carries out a run: a workflow engine, an agent, a person with the document open, or any combination (section 2). It conforms by what it does with twelve sets of obligations.

The graph (section 6). A runtime MUST NOT begin a phase before every phase its after: line names has closed, except as section 8.4.1 allows. A runtime MUST allow phases with no path between them to be in flight at the same time. Order comes from the after: lines and never from the order the phases are listed in, and a runtime that walks the list top to bottom is not running the process the document describes.

Automation (section 7). A runtime MUST run each phase at the level the document states, and MUST NOT run a phase at a higher level than it states. At manual and assisted a runtime MUST NOT let an agent take the action the phase describes; an agent may draft and gather, and the person decides and acts. At supervised a runtime MUST NOT pass a phase's output on to the next phase until a person has approved it. At never a runtime MUST NOT complete the phase without the person who owns it, whatever the agents are capable of by then. Raising a phase's level is an amendment to the document (section 18), not a decision a runtime makes at run time.

Run-scoped lines (section 9). A runtime MUST keep each run-scoped line live from its from: until its until:, and MUST NOT close a run before every run-scoped line has closed. Most of a process's management lives in those lines. A run whose status reporting stops when the last phase finishes has skipped the part where somebody was watching.

Records (section 13). A runtime MUST leave the records section 13 requires, and MUST record the version of the document the run ran under. A runtime MUST NOT alter a record afterwards, including when the document changes (section 18). A runtime that writes a signed close (section 13.5.1) MUST list every record of the run in it, and MUST NOT write a record for the run after it.

Harness phases (section 6.3). A runtime MUST give a harness: phase only when the handoffs it takes in exist, MUST NOT hold the agent to steps the document does not state, MUST NOT treat the phase as complete before its closing record exists, and MUST read a phase written runs <name>:, with any name other than process, as a harness: phase.

Inner runs (section 6.3.1). A runtime MUST start an inner run only when the handoff its phase takes in exists, fill the inner run's cast from the outer roster, run no inner phase above the lower of its own level and the outer phase's level, close the phase only when the inner run closes having reached its goal, refuse an inner run whose document is already in the chain of runs that started it, and MUST NOT leave an inner run open when the outer run is abandoned.

The trigger's items (section 5.4). Where a document carries carries: lines, a runtime MUST NOT start a run without every required item, MUST record the refusal when it refuses one, MUST NOT fill an optional item with a default the document does not state, and MUST name in the run record what the run was handed.

Approvals (section 7.3). A runtime MUST NOT pass a supervised or never phase without a person acting on any real run, the first run of a new version included.

Test runs (section 21). A runtime MUST record a test run's mode and test case when it starts and never change them, MUST record each answer a test case gives as the test case's and never as a person's, MUST NOT let a test case answer a run not recorded as a test, MUST refuse a test case written for another digest of the document, MUST NOT let a phase that acts in the world act in a test run, MUST run every other phase as it would for real, and MUST keep test runs out of anything a reader relies on for the real work.

Starting on a draft (section 8.4.1). A runtime MUST start a phase on a draft only where the handoff line says on draft:, MUST tell the phase it is working on a draft, MUST NOT hand on anything it produces, close it, or satisfy an after: edge out of it before the handoff exists, MUST discard its work where what it was given changed or the handoff never arrives, MUST NOT start a phase on a draft that acts in the world or is at never, and MUST record each such round with its draft's key and digest and whether it was kept or discarded.

Extensions (section 20). A runtime MUST run a document whose extensions it does not know as if their lines were absent, MUST NOT let an extension it knows override anything the document states outside the extensions: block, and MUST NOT write lines this specification does not define anywhere but that block.

Confidentiality (section 4). Where a document carries confidential-under:, a runtime that implements the key MUST check, before it starts a phase held by an agent of another owner and before it delivers a handoff to one, that the agent's owner is bound by the named agreement. It MUST NOT start a run whose process owner is not a party to the agreement. It MUST hold an inner run to the outer agreement, and to the inner document's own as well where the inner document names one. It MUST refuse when a check fails, name the reason, and record the refusal in the run record. A runtime that does not implement the check MUST say so under section 11.3.

Nothing in this specification enforces a run. A process is not enforceable, and nothing holds a run to the graph except the records it leaves and the fact that somebody reads them. That is why the records are the obligations a runtime cannot route around: they are the only place its conformance is visible.

17.4 What conformance is not#

Conformance is not a certification, and no part of this specification issues one.

Conformance is also not a claim that the process is any good. A document can conform and describe the work badly, name the wrong roles, and set measures nobody reads. Conformance says that a reader and a runtime will take the same meaning from it. Whether the meaning is worth having is what debriefs and amendments are for.


18. Versioning and amendments#

18.1 Every document carries a version#

A published document MUST carry a version alongside its id, written v<n>, where n is an integer that increases:

id: acme-mkt/social-campaign   v1

18.2 A change is a new version#

A change to a published document that changes what a run must do MUST produce a new version. It MUST NOT be made as an edit in place.

A cosmetic change MAY be made in place with no version. Fixing a typo, correcting a link, or rewording a description without changing what it asks for are cosmetic.

The line between the two is whether a run would go differently. Moving a phase from supervised to autonomous is a new version. So is adding a phase, adding a policy rule, changing a deadline, and changing what a handoff has to contain. Rewriting a sentence so it reads better is not.

18.3 What a version bump obliges, and what it does not#

A document above version 1 SHOULD record its amendments: for each version, what changed and what produced it, a debrief, a failed run or a policy change.

amendments:
  v<n> - <what changed, and which debrief or run produced it>

Recording where a change came from is what keeps the document honest about its own history. Without it, amendments come from whoever complained most recently, and nobody can tell afterwards which changes were paid for by experience.

A version bump obliges a runtime starting a new run to run the new version.

A version bump obliges nothing of a run that has already closed. A run records the version it ran under, and that record does not change afterwards even when the process does. A closed run is read against the version it recorded, never against the current page. That is what makes an audit possible a year later, and it is the reason section 17.3 says a runtime MUST NOT alter a record.

A version bump also obliges nothing of anyone who adopted the document. Nothing propagates. See section 18.4.

18.4 Versions and adoption#

An adopted document carries from: <reference id> v<n> (section 15.6). The version in that line MUST be the version that was adopted. An adopter MUST NOT change the from: line to name a version they did not take.

That pair, the version in the from: line and the reference process's current version, is what makes drift detectable. When the reference is at v3 and an adopted document still reads from: ref/mkt/social-campaign v1, the gap is two versions of somebody else's thinking, and it is visible without reading either document. This is the only thing the from: line is for, and it is the reason the line carries a version rather than just an id.

Taking a later version of a reference process is not a version bump on the reference. It is an amendment to the adopter's own document and takes the adopter's next version number. An adopter MAY take some of a new reference version's changes and not others, because the document is theirs.

A new version of a reference process changes no adopted document.


19. Processes that span organizations#

Every obligation in this specification is written as though one organization runs the process and one runtime carries it out. Some processes are not like that. A co-sell is worked by two companies, an alliance by two, and a proposal by a seller and a buyer, and in each case half the work happens inside somebody else's organization, on their systems, under their policies.

This section says what the rest of the specification means when that is true. It adds no syntax, because the corpus already models it correctly and the defect was that the specification never said so.

19.1. A process is written from one side#

A process document is written from the side of the organization that adopts it. The other organization appears as a role held by a person, in the activity table and in the roster, exactly as partner lead (person) appears in ref/prt/run-a-co-sell.

Work that happens inside the counterparty is NOT phases of this process. A document MUST NOT write a phase whose owner is the counterparty, and a document that does is describing a process it cannot run, because nothing on this side can start that phase, observe it, or know when it finished.

Where the counterparty runs a process of its own, that is a second document on the other side, and the two meet at the boundary rather than merging into one graph.

19.2. A boundary handoff is satisfied by what arrived#

A handoff whose sending side is a counterparty role crosses an organizational boundary. Section 19.1 forbids a phase owned by the counterparty, so the sending side of an inbound boundary handoff is the role itself, named exactly as the roster names it, and Section 8.2 permits that. This is the one place a handoff's sending side is not a phase of this document.

0.1.0-draft said "a handoff whose sending phase is held by a counterparty role", which no conforming document could write: Section 19.1 forbids the phase and Section 8.2 required the sending side to be one. The effect was that no conforming document could say it waits for something the counterparty sends, which is what ref/sls/run-a-proof-of-value does when it loads the buyer's own case into the environment.

Section 8 obliges the receiving phase not to begin before the handoff exists, and at a boundary "exists" means something narrower than it does inside one organization.

A runtime MUST treat a boundary handoff as satisfied by what actually arrived, and MUST NOT infer from an arrival that anything happened on the far side beyond it. It MUST record what arrived, when, and from whom. It MUST NOT record what the counterparty did.

The distinction is not pedantry. "The partner confirmed the split" and "a message from the partner saying the split is confirmed arrived on this date" are different claims, and only the second is one this side can stand behind later.

19.3. Gates on the far side#

A phase at never whose signer is a counterparty role is an external wait. A runtime MUST NOT mark such a gate signed on an assertion alone. It marks it signed when the evidence the document names has arrived, and until then the run is waiting rather than proceeding.

A runtime MUST NOT lower the level of a phase because its signer is outside the organization. A gate that is inconvenient to wait for is still a gate.

Gates both sides sign. The paragraphs above cover a gate the counterparty signs. The other shape, and a common one at a boundary, is a gate both sides sign, and 0.1.0-draft had nothing to say about it. ref/sls/run-a-proof-of-value has three, and writes them into the phase:

  agree-criteria     - convenes approval: what counts as a pass,
                       written and signed by both sides before anything
                       is built. <how many> criteria at most

A gate MAY name signers on both sides. Where it does, it does not close until every named signer has acted, and a runtime MUST NOT treat one side's signature as closing it. Everything Section 7.1 says about what counts as a person acting applies to each signer separately: a window that expires is not a signature on either side of the boundary.

Which signature arrives first is not fixed and a document SHOULD NOT write the gate as though it were. What makes a co-signed gate worth writing as one phase rather than two is that the two sides are signing the same thing at the same version, and a document that splits it into two phases has made it possible for them to sign different versions.

19.4. Records are kept per side#

Neither side holds the whole record of a shared run, and no requirement here creates one. Each side leaves the records its own document names, for the phases it owns.

A document SHOULD say, for each boundary handoff, which side keeps the record of it. Assembling a timeline across both sides is done by correlating the two records after the fact, and a runtime MUST NOT present its own record as though it were the whole run.

19.5. Concurrency is per side#

concurrency: binds the organization whose document it is. The counterparty may be running any number of its own runs against the same subject, and this side cannot see them. A document MUST NOT state a concurrency rule it can only keep by assuming what the other organization is doing.


20. Extensions#

A runtime that is software needs things a reader does not: how to draw the form that asks a person for the trigger's items, what type each handoff is when one program hands it to another, how to convert one phase's output into what the next phase reads. None of that changes the work, and a person running the process from the page never needs it. It still has to be written down somewhere both the author and the runtime can read, or it ends up in one runtime's own database, where nobody else can.

An extension is that somewhere. It is an optional part of a process document, defined by its own published document, which a runtime that knows it reads and a runtime that does not know it ignores.

20.1 What goes where#

Four tests decide where a thing belongs. Ask them in order and stop at the first one that answers yes.

  1. Does it change the work? Who does a phase, in what order, which phases a person must sign, where the work goes back, what passes between phases, what a run is handed, and what a run leaves behind. If it changes any of these, it belongs in this specification and in the document itself, because whatever changes the work has to be visible to the owner, versioned and signed.
  2. Would a person running the process from the page need it? If yes, it belongs in this specification. If only software needs it, and it is the same for every run, it belongs in an extension.
  3. Is it the same for every run? If it differs from one run to the next, it is not part of the process at all. It is something a run is handed (Section 5.4), and saved sets of those answers or settings belong to whatever starts runs, not to the document.
  4. Is it about finding or showing the process rather than doing it? Then it belongs in the catalog, which copies every field it shows from the document. A process listed for others to find and engage is a process entry under the Common Agent catalog profile (Section 1.3), which copies the same way. A field the catalog needs and the document lacks is added to the document's header, as example: was.

The tests are in that order because the first is the one that matters. A setting that skips an approval on the first run, a default that fills an item the trigger was not handed, or a form that starts a run halfway through the graph all change the work. Calling any of them an extension, a setting or a feature does not move it out of the document.

20.2 The block#

A document carries its extensions in an extensions: block, the last block of the document. Each extension starts with a line naming it and the version of its definition, and the lines under it are written in the form that definition gives:

extensions:
  agentprocesses.ai/ext/start-form v1
    topic: label "What to explore"   hint "Paste words, a link or a file"
  agentprocesses.ai/ext/typed-handoffs v1
    plan-the-angles -> write-the-cards: application/json

The name is the address of the extension's definition without its scheme. Anyone MAY publish an extension at an address they control.

20.3 The rules#

  • An extension MUST NOT change the work. Every test in Section 20.1 that sends something to this specification sends it out of every extension, and a definition that does any of those things is not an extension of this specification.
  • An extension refers to phases, handoffs and the trigger's items by their keys in the document. It MUST NOT give any of them a second name.
  • A runtime that does not know an extension MUST run the document as if the extension's lines were absent, and the run MUST be the same run in every respect Section 20.1 test 1 names. It SHOULD say, in the run record, which extensions it ignored.
  • A runtime that knows an extension MUST NOT let it override anything the document states outside the extensions: block. Where the two disagree, the document governs.
  • A document MUST NOT be held non-conformant because a reader or a runtime does not know one of its extensions.
  • Lines this specification does not define SHOULD NOT appear outside the extensions: block, and a runtime MUST NOT write any there. A runtime's private data written into the header or the phase list makes a document only that runtime can read.

20.4 A definition#

An extension's definition is a short published document. It MUST say:

  • its name and version, and that it extends Agent Processes;
  • what it adds, and which software needs it;
  • the form of its lines, and what each refers to by key;
  • why it passes the four tests of Section 20.1, test by test.

A new version of a definition is a new version number. A document names the version it was written against, so a definition can change without changing the meaning of a document already written.

The extensions this specification's authors publish are listed with the specification, beginning with two: start-form, which says how a form asks a person for the trigger's items, and typed-handoffs, which says what type each handoff is and how a runtime converts one that does not fit the phase that receives it.


21. Test runs#

A process is tested by running it. Somebody has to hand the run its items, answer its approvals and stand in for the things it would do to the outside world, and somebody has to say afterwards whether it did what it should. When that somebody is a program, such as a test suite, a release check or a continuous integration job, nobody is there to approve, and a rule that every approval waits for a person would make the process impossible to test.

A test run answers that without pretending a person was there. It is a run that follows a test case, and its record says so from the first line to the last.

21.1 The test case#

A test case is a short plain-text document kept beside the process document, never inside it. It names the process by id: and by the digest of the document's shape, and it says four things:

TEST: revise-then-publish          for: northwind/explore-a-topic
                                   digest: sha256:9f2a…
carried: topic = the market for heat pumps in Norway
answer: approve-the-cards = changes: the third card has no source
answer: approve-the-cards = approve
stand-in: publish-the-cards = a receipt naming the address it would
          have published to
expect: goal reached
expect: ran plan-the-angles, write-the-cards, approve-the-cards,
        write-the-cards, approve-the-cards, publish-the-cards
expect: write-the-cards hands on five cards, each with a source
  • carried: lines are what the run is handed, one per item the trigger carries (Section 5.4), by the item's name.
  • answer: lines answer the phases a person would sign, by phase key: approve, changes: with the words a person would write, or reject: with the reason. A phase that runs more than once takes its answers in order, so a test case can send work back and check that it comes round again. A phase that waits for an answer the test case does not give stops the test, and the result says which.
  • stand-in: lines say what a phase that acts in the world returns in place of acting (Section 21.3), by phase key.
  • expect: lines say what must be true when the run ends: whether the goal was reached, which phases ran in order, repeats included, and what a phase hands on, in words or in a form a program can check.

A test case refers to phases, handoffs and items by their keys in the document, as an extension does (Section 20.3). It does not change the document, and the same document runs the same way in a test run as in a real one, except where this section says otherwise.

The digest of a document's shape is the SHA-256 of its text with the bindings: block left out. Who holds each role and which systems it uses change whenever an organization swaps an agent or upgrades one, and those are exactly the changes a suite should be run against, not refused by. Everything else is in the digest: the phases, their order, their automation levels, the gates, the ways back, the handoffs and what the trigger carries.

Where a test case was written for a shape the document no longer has, a runtime MUST refuse to run it and say so. A test that passes against a process it was not written for says nothing.

21.2 What a test run records#

A test run's run record opens with the mode and the test case, and they MUST NOT change afterwards:

RUN: research/explore-a-topic v3 · run 52
started: <date> by <the program that started it>
mode: test   case: revise-then-publish

Every phase a person would sign is recorded as answered by the test case, naming it, with the answer and the time. A runtime MUST NOT record a test case's answer as a person's approval or signature, and MUST NOT let a test case answer a phase in a run whose record does not say mode: test. The close names whether each expectation was met. An expectation the runtime could not check is recorded as not checked, never as met.

21.3 A test run does not act in the world#

A test is a test of the real thing. Every phase of a test run runs as it would in a real run, with the same holders, the same models and the same systems, except the phases that act in the world.

A phase acts in the world when it sends a message to somebody outside the organization, publishes or posts where others can read it, pays, or signs on the organization's behalf. Such a phase MUST NOT act in a test run. It returns its stand-in: instead, recorded as a stand-in, or, where the test case gives none, the test stops at that phase and the result says why.

Calling a model is not acting in the world. A model the organization uses is part of how a phase does its work, and a test that replaced it would test something other than the process. A runtime decides which phases act in the world from what each holder declares, and a holder that declares none of these acts runs in a test run exactly as it runs for real. A test case MAY still give a stand-in for any phase, to test the rest of the process without it.

21.4 A test run is not a real run#

A test run's records are kept apart from real runs. A runtime MUST NOT count a test run as a run of the process in anything a reader relies on for the real work, such as how often it runs, how long it takes, what it cost or what it produced, and MUST NOT present a test run's output as the process's output. A catalog's example: names a real run, never a test run.

21.5 A suite#

A process MAY have a suite: the set of test cases kept beside it. A suite passes when every test case in it passes. A runtime that changes how it runs a document, and an owner who amends one, SHOULD run the suite before the change is used for real work, and a reader who is asked to rely on a process may ask to see the suite and its last results.

A test case and a suite are not part of the process document, for the reason Section 20.1's third test gives: what a run is handed and how its approvals are answered differ from one run to the next.