AIMAgentic Intent Model

Proposal (AIM 5.4) — Decisions are first-class

Status: draft for review · Author: Amy working session, 2026-07-28 · Affects: §7.2, §7.3, §8.x, §12.2

The problem#

Decisions are the basis of every process. "Are the financial statements accurate?", "Approve or return?", "Are the receipts complete?" — a process's shape comes from its decisions, and its loops exist because of them. Every notation a process owner has ever seen puts the decision at the centre of the diagram.

AIM cannot express one. The specification is silent; the only written guidance lives in a tool's process lens ("branch logic is Steps prose; a weighty decision becomes a Contract"). The consequence is not cosmetic — the graph cannot distinguish a decision from parallel work:

Review  emits Confirmed → GenerateReports,  DiscrepanciesFound → Investigate    (either/or)
Draft   emits Prepared  → Review,           AuditLogged        → Archive        (both, always)

Same node types, same verbs, same fan-out. Demonstrated against the reference implementation: a projection that marks the first as a branch necessarily marks the second one too, and no heuristic can separate them because the distinguishing fact — these outcomes are mutually exclusive — is not in the model. Three things are lost:

  1. Exclusivity. Whether the outcomes are alternatives or concurrent.
  2. The outcome's name. "Accurate" / "Inaccurate" — the YES and NO a reader looks for.
  3. The criteria. What the judgment turns on. This has no home in the language at all, and it is the part an auditor asks about first.

A related ambiguity in the 5.3 step grammar has the same root: it says two invokes in one step are "alternatives or joint work", leaving a reader (and a tool) unable to tell which.

Non-goal: a gateway node#

BPMN and flowcharts draw the decision as its own symbol because they model token flow for an execution engine — the diamond exists to say which way the token goes. AIM models commitments, and a decision here is not plumbing: it is a judgment somebody makes, against criteria, with accountability. That makes it commitment-shaped — but it also means it already has a node.

The deciding operation is the decision. ReviewFinancialStatements is not a task that hands off to a diamond; reviewing is deciding. Splitting them across two nodes would:

  • separate the judgment from the ### Authz that says who may make it — losing accountability at the exact point where accountability matters most;
  • mint a node with no commitment of its own, needing its own orphan rules, edge legality, and addressing;
  • duplicate one real-world act as two model nodes, which every §16 transform then has to keep in step.

So: decisions become first-class on the operation that makes them, consistent with the language's own rule that an edge is declared once, at the acting node (§8.3).

Proposal: ### Decides#

A Contract or Flow that reaches a judgment declares its outcomes in a ### Decides sub-block:

## Contract: ReviewFinancialStatements

### Summary

The reviewer checks the draft statements against the reconciliations.

### Authz

- InternalReviewer only.

### Decides

- **Accurate** — every balance ties to a reconciliation and each adjustment is supported
  — [emits](aim:#Event:FinancialStatementsConfirmed)
- **Inaccurate** — any balance is unexplained, or an adjustment lacks support
  — [emits](aim:#Event:DiscrepanciesFound)

Grammar, deliberately the same shape as the 5.3 step grammar so there is one thing to learn:

  • One bullet = one outcome. The bolded name is the outcome's label (the YES/NO), following the §3.6 name grammar so it is addressable (#Contract:ReviewFinancialStatements→Decides[Accurate]).
  • The prose after the dash is the criteria — what the judgment turns on. Normative: a realization must decide on this basis, and a Reviewer checks that it does.
  • The outcome's edge tokens ride in its bullet, exactly as a step's do. Normally one emits; invokes/mutates are legal where an outcome does work directly.
  • The block asserts exclusivity and exhaustiveness. That is what ### Decides means — no extra marker. Two or more bullets required; one bullet is not a decision.

What the graph gains#

Edges are unchanged — every outcome's emits derives exactly as today. The addition is a derived exclusivity group on the deciding node: the set of outcome labels, each with its events and its criteria text. Nothing about resolution, verb legality, or addressing changes, so this is additive with no migration (§13-style relabel not required).

Consequences that fall out for free:

  • Projections can draw a true decision — a diamond with labelled legs — instead of guessing. Today's reference implementation marks a "the path splits here" fork and has to admit in its tooltip that it cannot tell alternatives from concurrent outcomes.
  • The 5.3 step ambiguity resolves. A step whose operations come from a deciding contract's outcomes is exclusive; anything else is joint work. The "alternatives or joint work" wording can be replaced with a rule.
  • ### Steps stay the procedure, not the branch. A flow's steps remain a sequence; where it forks, the fork belongs to the deciding contract the step invokes. Sequencing and judgment stay separate concerns.

Diagnostics this unlocks (§12.2)#

  • Unhandled outcome — an outcome whose event nothing consumes: the half-modelled YES/NO a flowchart author writes when the losing branch trails off the page. Today this is indistinguishable from an ordinary dead-end event.
  • Single-outcome decision — a ### Decides with one bullet: either it is not a decision, or an outcome is missing.
  • Criteria-free outcome — a labelled outcome with no basis stated: the judgment is unauditable.
  • Undeclared branch (informational) — an operation emitting two or more events whose consumers diverge, with no ### Decides: probably a decision the author left implicit. This is precisely the case the current heuristic has to guess at, converted into a question for a human.

Open questions for review#

  1. Block name. ### Decides reads as the acting node's own voice, matching ### Ensures. ### Outcomes is more neutral but weaker about exclusivity.
  2. Non-exclusive outcome sets. Is there a real need to declare "these outcomes are the complete set, and more than one may happen"? If so it is a second block, not a flag on this one — but no motivating case has appeared yet.
  3. Decisions with no operation. "Over €1,000 goes to the CFO" is routing. It is expressible today as the routing operation's decision, or as a ## Requirements policy. Confirm no third form is needed.
  4. Guard on the losing path. When an outcome loops back (correction paths), does anything need to bound the retry, or does that remain ### On Error territory?

Worth resolving in one pass rather than three, since all touch a Flow's steps:

  • ### On Error has no grammar — a compensating emits under it derives an edge identical to a happy-path one, so failure paths cannot be projected separately.
  • 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.
  • A step is not bindable — §10.2 binds intents and facets, so §18's "a step with no edge and no binding is the digitalization backlog" is not computable.