AIMAgentic Intent Model

Proposal (AIM 5.9) — Who does the work

Status: admitted in 5.9 — §7.3, §7.4, §12.2, §1.2, §18, §13.10 of the specification · Author: Michael & Claude working session, 2026-09-27 · Affects: §7.3, §7.4, §12.2, §1.2, §18, §13 · Syntax: none

Amended on admission (2026-10-02), after review of the draft: the continuation rule now states that an unheard Event ends only its own branch and never the emitting Flow's sequence; the performer precedence puts the data-only step (the flow's own work) ahead of Flow inheritance, so inheritance covers human steps and invoked operations only; several Personas invoking one operation are alternative performers, with the step's opening Persona naming which one acts and a performer conflict when it is none of them. The quoted text below is the admitted wording.

The problem#

"Who does this step?" is the first question anyone asks of a process, and the answer is a commitment in the strictest §1.4 sense: it is what a Reviewer holds a performance accountable to. The language answers it only in part.

What 5.8 states:

  • A Persona that invokes an operation performs it directly (§8.2, the invokes row; §8.6 records that performs was refused because it is invokes from a persona).
  • A step whose only edges are mutates/emits/reads is work the flow performs itself (§7.3).
  • A step with no edges is a human step (§7.3). The spec never says whose.

What 5.8 leaves open:

  • Who performs a human step.
  • Whether work a Flow step calls inherits the Flow's performer, and what stops the inheritance.
  • What ### Authz means for performance. §7.2's example reads as permission ("InternalReviewer only"). §18's own guidance puts "CFO approves…" in Authz, which reads as assignment.
  • Whether a Trigger that starts work, or a Persona that can reach the View exposing it, says anything about who does it.

The 5.4 proposal recorded the first gap and left it open: "A prose step has no performer — the reference implementation infers it from neighbouring steps. For a process model, who performs a manual step is a commitment, not an inference."

Worked failure: one model, two answers, one codebase#

The reference implementation now has two readers of the same process model — the guided runner, which runs cases for people, and the process check, which reads a Business Process as a map and asks its owner questions. They answer "who does it?" differently:

Guided runner Process check
### Authz names a role assigns the work to that role, first permission only, never the performer
Step opens with a Persona ("The Manager reviews…") ignored the step's performer
Work a Flow step calls the work's Authz roles, else its invokers, else the Flow's roles its own invoker, else the step's opening Persona, else the Flow's performer
A possessive ("the client's project") names the Client names no one

(Reference implementation, server/src/process-engine.js: rolesOf — "A guided case assigns work by Authz first, then by the Personas that invoke it"; declaredPerformers — "permitted — Authz names who MAY do it, never who does.")

Take a model where the Persona Clerk invokes ApproveInvoice and its Authz says "Controller only". The guided runner gives the step to the Controller. The process check asks: "The model has 'Clerk' do 'ApproveInvoice', but says only 'Controller' may. Who does it?" Both are conforming readings of 5.8, because 5.8 does not say. This is the 5.5 proposal's warning, realized inside one tool: "A performance re-resolves ambiguity at every execution — two conforming performers of the same model may run materially different processes." A developer agent handed the exported bundle is a third reader, with no rule at all.

Worked example: why the order matters#

The Expense Approval template:

## Persona: Employee
### Access
- [invokes](aim:#Flow:ClaimExpense)

## Persona: Manager
### Access
- [invokes](aim:expenses.review#Contract:Review)

## Flow: ClaimExpense
### Steps
1. Employee submits the claim — [invokes](aim:expenses.submission#Contract:Submit).
2. Manager reviews the evidence — [invokes](aim:expenses.review#Contract:Review).

The Employee performs the Flow. Read by inheritance alone, step 2's Review is performed by the Employee — the one person Review's own Expects forbids ("The reviewer is not the person who submitted the claim"). It is the Manager's because Manager invokes Review directly, and because the step opens with the Manager. A rule with inheritance and no stop, or a stop and no step subject, gets this model wrong.

Scope sort (§1.4)#

Who performs a piece of work is a commitment: a Reviewer can hold a performance to it ("step 2 was performed by the Employee; the model says the Manager"), and swimlanes, handoffs and §18's organizational drift ("a manual step with no accountable performer") all rest on it. How the performer is notified, queued or authenticated is mechanics, and stays out.

Proposal#

No new syntax. Reading rules for constructs that already exist, one continuation rule, three informational diagnostics, one Architect conduct rule, and a wording fix in §18.

1. §7.3 — the step's opening Persona (new bullet in Step grammar (5.3), after "A step with no edges is a human step")#

  • A step's opening Persona is its performer (5.9). "The Manager reviews the evidence — invokes." When a step's text begins with a declared Persona's name, or an Imports alias of one (§9.1), optionally after an article, that Persona performs the step and the operations it invokes, unless an operation has a direct performer of its own (§7.4). A Persona named later in the sentence is someone the step concerns, never its doer ("Send the invoice to the Client"), and a possessive never names a doer ("The Clerk's manager signs"). A step that opens with no Persona inherits the Flow's performer. The opening Persona does not carry across an exclusive step's alternatives: each alternative keeps its own performer.

2. §7.3 — continuation through an announcement (new paragraph after Continuation after a decision (5.5))#

Continuation through an announcement (5.9). This rule says where an announcement leads; it never shortens the sequence that made it. A Flow's next step always follows by position (above), whatever its predecessor emitted and whether or not anything heard it. What leads along an edge out of a step or an outcome is only invokes and emits; reads, mutates and satisfies lead nowhere. An emits leads to the Event's subscribers: a subscriber without ### Steps of its own — typically a Contract — is the next work on that branch; a subscriber with steps of its own — a Flow, or a promoted process — starts a run of its own and does not continue this one. An Event nothing subscribes to ends that branch and nothing else — the emitting sequence proceeds to its next step, and only an outcome whose sole edge is such an emits (an abort, above) ends its leg there. A Trigger anchored on the Event (§7.7) arms a timer and does not continue the branch.

3. §7.4 — who does the work (new paragraph after "Entity and role are two things wearing one facet")#

Who does the work (5.9). Performing, being permitted and being able to reach are three different facts, and the model states each in its own place. A piece of work — an operation, or a step of a Flow or promoted process — is performed by the first of these that applies:

  1. The Persona that invokes it (§8.2) — its direct performer. Several Personas that each invokes the same operation are its alternative performers: any one of them performs it, and the operation alone does not say which. Joint performance — all of them must act — is never written as several invokers; it is one step per actor (§7.3).
  2. The Persona its step opens with (§7.3) — for the step itself, and for the operations the step invokes that have no direct performer. Where an invoked operation has several direct performers, the opening Persona names which of them acts in this step, and MUST be one of them (§12.2).
  3. The flow itself — a step whose only operations are reads, mutates or emits is work the flow performs (§7.3). It owes no Persona and inherits none: the Flow's performer may be waiting on it, but is not doing it.
  4. The performer of the enclosing Flow — a human step, or an invoked operation with no performer of its own, inherits the nearest enclosing Flow's (or promoted process's) performer, which is that Flow's direct performer or what it inherited in turn. The first declaration stops the inheritance.

None of the following is evidence of who performs work:

  • ### Authz states who may — permission. Work can be permitted to three roles and performed by one. Where Authz names roles, the performer MUST be among them; Authz never names the performer.
  • Reach. A Persona that accesses a View exposing an operation can get to it; that is not a commitment that they do it.
  • A Trigger starts work (§7.7); it never does it. Work a schedule or deadline starts still owes a performer.
  • ### Role prose describes the actor, not an assignment of any particular work.

Work is owed a performer when something obliges it to happen: it is a step of a Flow or promoted process, work a step invokes, or work a Trigger or a subscription starts. Owed work with no performer by rules 1–4 has no declared performer, and the model is incomplete at that point (§12.2). Work that is only offered — an operation a View exposes, which whoever reaches it may do within its Authz — owes no performer.

4. §12.2 — three informational diagnostics (append)#

  • No declared performer (5.9) — owed work (§7.4) with no performer by §7.4's rules: nothing names one; or only ### Authz names who may, and permission is not performance; or only a Trigger starts it, and a timer is not a doer. Tools SHOULD say which of the three applies, and SHOULD ask once of a Flow when several of its steps lack the same answer, since one declaration on the Flow answers every step that inherits from it. Remediation: the performing Persona invokes the work, or the step opens with it. Only the owner can answer this; the Architect never assigns a performer to close it (§1.2).
  • Performer conflict (5.9) — the performer the model declares for a piece of work is not among the roles its ### Authz permits; or Authz names several roles without saying whether any one of them suffices, and nothing declares which performs it; or a step opens with a Persona that is not among the direct performers of an operation it invokes (§7.4). The model either says two things or leaves "all of them, or any one?" open. Remediation: align performer and permission, write the alternative ("Manager or Director"), open the step with one of the operation's performers, or make separate steps when all must act.
  • Role without work (5.9) — a declared Persona that performs nothing, reaches nothing, and is named in no step and no ### Authz (§7.4). Remediation: give the role its part, or remove it.

5. §1.2 — Architect conduct (amend Architect: validate before present)#

Current: "Only diagnostics that genuinely need a human decision are surfaced: a confirmed-duplicate merge (§16.3 invariant 6), an unresolved canonical-home choice (§15.8), or an ambiguous binding (§12.3)."

Proposed:

Only diagnostics that genuinely need a human decision are surfaced: a confirmed-duplicate merge (§16.3 invariant 6), an unresolved canonical-home choice (§15.8), an ambiguous binding (§12.3), or a missing or conflicting performer (§7.4, §12.2). Who does the work is the owner's commitment; the Architect never assigns a performer to make a diagnostic go away.

6. §18 — wording (amend Do not mirror the org chart)#

Current: "the hierarchy belongs in the model as Personas and ### Authz ("Accountant may…", "CFO approves…"), never as namespace segments."

Proposed:

the hierarchy belongs in the model as Personas, their ### Authz, and who performs what — "the Accountant may post…" is permission, in Authz; "The CFO approves the budget" is performance, written as a step's opening Persona or an invokes (§7.4) — never as namespace segments.

Against §8.6#

The five tests are written for constructs, and this proposal adds none. Run anyway:

  1. Relational commitment? The rules read relations the graph already holds (invokes, step membership, Flow nesting). The step-subject rule reads a position inside an existing structured list — the same kind of rule as "indented continuation lines belong to the step above them".
  2. Not expressible today? Direct performance is. A human step's performer is not, and inheritance and Authz's standing are unspecified — which is why two readers in one codebase disagree.
  3. Pays rent? Swimlanes, "whose turn is it" in a guided case, per-persona prompt export, and the three diagnostics are computable only once the rules are fixed. The reference implementation's process check pins them with its test suite and a parity golden.
  4. Demonstrated need? The 5.4 open item; the owner's review rules for the process check (2026-09-25: permission is not performance, a timer is not a doer); the two-reader disagreement above.
  5. Fully specified? Precedence, stops, non-evidence, the owed/offered line, three diagnostics.

Consequences for the reference implementation, if adopted as written#

  • The guided runner changes. It routes work by the declared performer, and Authz becomes the check that the performer is permitted. Where no performer is declared it may still offer the work to the permitted roles — a routing choice the Realizer makes and surfaces (§1.2) — but it reports No declared performer instead of treating the fallback as the model's answer. The step-subject rule and the possessive rule apply to guided cases too.
  • Models where Authz and invokes agree behave identically. All three shipped templates do.
  • The process check needs little change: its codes map onto the three diagnostics (NO_RESPONSIBLE_ROLE, ONLY_PERMITTED and STARTED_BY_TIMER_NO_DOER are the three reasons for No declared performer; PERFORMER_UNCLEAR is Performer conflict; ROLE_WITHOUT_WORK is Role without work). Today it runs for Business Processes only; the spec makes the rules apply to owed work in any model.
  • The prompt export still carries its own copy of the continuation rule; it should read the shared one.
  • Re-run the process and approval benchmarks.

Migration (contribution to §13.10)#

Additive clarification; nothing already written becomes invalid. Review models that used ### Authz to assign work: add an invokes from the performing Persona, or open the step with it.

Draft of the full §13.10 entry, assuming this proposal and the stale-satisfier proposal are both adopted:

13.10 From v5.8 To v5.9#

Additive; no new headings, edges or schema-line grammar. Two reading rules that tools already needed to agree on, and one diagnostic over change.

  1. Who does the work (§7.3, §7.4). A piece of work is performed by the Persona that invokes it (several invokers are alternatives: any one of them), else the Persona its step opens with; a step whose only operations are reads, mutates or emits is the flow's own and inherits nothing; all other work inherits the enclosing Flow's performer. ### Authz is permission and never names the performer; reach and Triggers are not evidence. New informational diagnostics: no declared performer, performer conflict, role without work (§12.2).
  2. Continuation through an announcement (§7.3). Only invokes and emits lead anywhere out of a step; an emits continues at a subscriber without steps of its own and starts a separate run at a subscriber with steps; an Event nothing hears ends only that branch — the emitting Flow's next step still follows by position.
  3. A changed rule revisits what satisfies it (§16.7). New diagnostic over a change: stale satisfier.

When adopting, relabel AGENTS.md to aim_version: 5.9 and refresh the specification cache. Review models that used ### Authz to assign work: add an invokes from the performing Persona, or open the step with it. Nothing already written becomes invalid.

Decision needed#

  1. Adopt the four performer rules and the non-evidence list as normative?
  2. Is ### Authz ever the performer? Recommended: never, with the routing fallback above. The alternative — Authz first, as the guided runner does today — keeps the runner unchanged, but makes permission and performance one fact and leaves "permitted to three roles, performed by one" inexpressible.
  3. Adopt continuation through an announcement?
  4. Admit the three diagnostics?

What this does not settle#

  • Unheard announcements. The reference process check also asks about every emitted Event nothing consumes — Unhandled outcome (5.4) extended beyond decision outcomes. Applications routinely announce to consumers outside the model, so this wants evidence from application models before it goes into §12.2.
  • Loops and deadlines. The process check asks whether a deadline touching a loop ends it ("a deadline is not a way out"), while §15.7 names a deadline Trigger as the commitment-shaped bound on a correction loop. The two agree only when the model says what happens to the loop when the deadline fires. Worth its own look.
  • Joint performance ("the Manager and the Director both sign"). Expressible today as two steps; no new form proposed. Settled on admission as far as reading goes: several Personas invoking one operation are alternatives (any one of them), never joint performers.