# Proposal (AIM 5.5) — Scope and step semantics

Status: **draft for review** · Author: Michael & Claude working session, 2026-07-28 · Affects: §1, §7.2–§7.3, §8.6, §12.2, §15.7

## The problem

Two recurring pressures, one root.

**1. Universality challenges get relitigated.** External reviews keep measuring AIM against
*formal semantics of execution* and finding it missing — a recent critique enumerated fourteen
domains (arbitrary computation, loops, parallelism, transactions, temporal logic, exception
propagation, PL typing and evaluation, …), anchored on the closed verb taxonomy (§8.2). The spec's
answer exists, but it is scattered: §1.3 separates behavior from realization, §8.6 defends the
closed taxonomy, §15.7 draws the orchestration boundary, §15.9 the composition boundary, §15.10 the
verification boundary. Each is an instance of one rule the spec never states. So every challenge is
answered item by item, from scratch, instead of by applying a test.

**2. The step grammar implies semantics it never states.** Stress-mapping real processes (a
standard operating procedure; a monthly financial close) shows the 5.3/5.4 grammar carrying
readings a tool or performer must *guess*:

- Two joint `invokes` in one step are unordered — but may a realization run them concurrently?
  Does the next step wait for both?
- A correction loop ("statements inaccurate → investigate → review again") lives on the deciding
  Contract's losing outcome — but nothing says the *winning* leg is the next step, so a projection
  cannot know the flow reaches step 6 only via **Accurate**:

  ```
  5. Review the statements — invokes ReviewFinancialStatements
        Decides: Accurate → (proceed?)   Inaccurate → invokes Investigate → invokes Review…
  6. Generate final reports — invokes GenerateReports
  ```

- Nothing bounds the losing leg. Review↔investigate can spin forever; a real close escalates.

Why this matters more now than in 5.3: a realization is an **artifact or a performance** (§1.2).
An artifact absorbs ambiguity once, at build time, through a developer's judgment that a review
then checks. A performance re-resolves ambiguity **at every execution** — two conforming performers
of the same model may run materially different processes, and drift becomes per-instance. The step
grammar's precision is the difference between "performed by agents" being a claim and a property.

## Proposal 1: §1.4 — Scope: Commitments, Not Mechanics

A new closing subsection of §1, stating the rule the per-topic boundaries instantiate. Draft text:

> AIM models **commitments** — what an intent promises, who may act, what must hold — and
> deliberately does not model the **mechanics** of meeting them. The test for any candidate
> construct, and for any "can AIM express X?" challenge: *is X a commitment a Reviewer can hold a
> realization accountable to, or is it how a realization meets one?* Expression evaluation, control
> flow within an operation, memory and typing semantics, isolation protocols, delivery mechanics,
> control laws — mechanics, all of it: it belongs to the realization's own languages (code, SQL, a
> workflow engine, a control system) and never to the model. The commitment each serves — "the
> period locks", "at most one payment per approval", "held at 22 ± 0.5 °C", "confirmed within five
> business days" — is what belongs in the model, and is already expressible: Requirements,
> `### Expects`/`### Ensures`, `### Decides` criteria, schemas and constraints, deadline Triggers.
>
> Three consequences, stated once so the boundaries elsewhere read as instances, not exceptions:
>
> - **Formalizing mechanics would make AIM a programming language** — a worse one, and it would
>   consume the degree of freedom that makes a realization the Realizer's to choose (§1.2). The
>   closed taxonomy (§8.6), the orchestration boundary (§15.7), and the composition boundary
>   (§15.9) apply this rule.
> - **Prescribing procedure destroys outcome verification.** A guarantee whose procedure is fully
>   specified can only ever be procedure-verified; §15.10 keeps the two modes distinct, and its
>   confidence attribution caps what procedure conformance may claim.
> - **Prose is not a fallback — it is half the language.** The graph carries what a symbolic check
>   can consume (edges, exclusivity groups, schemas, deadlines); normative prose carries what only
>   a judging reader can (criteria, steps, requirements). AIM's readers include exactly such a
>   judge (§1.2), and §12.3's confidence grades keep judgment labeled as judgment.
>
> The universality claim this scope supports, stated precisely: any process's *commitments* can be
> modeled sharply enough that an independent Reviewer can hold its realization — artifact or
> performance — accountable. AIM is universal at the accountability level and does not aspire to be
> universal at the semantics level. The pressure to become the latter is permanent; this section is
> the standing answer, and candidates that survive the test anyway are admitted through §8.6's
> gate, on evidence.

Placement: new §1.4 (§1.3 is the last subsection of §1, so nothing renumbers). Alternative —
folding into §1.3 — is an open question below; the case for a separate subsection is that §1.3 is
about *authority between files* and this is about *scope of the language*, and challenges should
have one address to be pointed at.

## Proposal 2: §7.3 — joint work in one step is unordered

Appended to the step grammar (after the 5.3 bullets). Draft text:

> **Joint work is unordered (5.5).** The grammar above places sequencing *between* steps and never
> within one; this paragraph makes the implication normative. Operations sharing one step have no
> order among them: a realization MAY perform them concurrently, in any order, or interleaved.
> Conformance is their joint completion — the following step is the **join**, and MUST NOT begin
> until the step's joint operations have completed. Fork-join therefore needs no construct: several
> `invokes` in one item fan out, and the next step is the barrier. A *multi-step* parallel branch
> is expressed by promotion — each branch becomes a Flow (or a process-intent) and one step invokes
> the branches jointly. What a joint step does **not** express is a **race** — first-completes-wins,
> remainder abandoned: racing and cancellation are recorded pressure, not admitted (§8.6). Where a
> race is the actual commitment, state it in the step's prose and treat the guarantee per §15.10 —
> procedure the output cannot verify.

Demonstrated on the financial close: "collect receipts, bank statements, system reports" is one
step with three joint `invokes`; reconciliation is the join. A projection may now draw parallel
lanes converging — with authority, not heuristics.

## Proposal 3: §7.3 — where the flow continues after a decision

One convention, so correction loops are drawable. Draft text:

> **Continuation after a decision (5.5).** A step that `invokes` a deciding Contract carries the
> fork, and the legs land in different places: the outcome on which the procedure *proceeds*
> continues as the **next step** and declares no continuation of its own; every other outcome's
> consequence — a corrective `invokes`, an abort `emits` — rides its bullet in `### Decides`
> (§7.2). A correction loop therefore reads: the losing outcome `invokes` the corrective operation,
> the corrective operation `invokes` the deciding Contract again — a legal cycle among contracts —
> while `### Steps` remain the linear procedure. When no single outcome proceeds — a true multi-way
> branch — the deciding step is the sequence's last, and each outcome carries its own continuation.

Two informational diagnostics fall out (§12.2):

- **Redundant continuation** — the proceeding outcome also declares the next step's operation:
  duplicate, possibly stale (mirrors §8.4's redundant-inverse diagnostic).
- **Ambiguous continuation** — a deciding step is followed by a further step, but zero or several
  outcomes read as proceeding (none or many lack a continuation of their own): the model has not
  said which leg is the procedure.

## Proposal 4: bounding the losing leg — no new construct

5.4 left this open (its question 4: "does anything need to bound the retry?"). The financial close
makes it concrete: review↔investigate can spin, and a real close escalates. Examined against the
scope rule, the recommendation is **no new construct**, because the commitment-shaped bound is
already expressible:

- **Time-bounds exist today.** A deadline Trigger (§7.7), anchored on the phase's start and
  disarmed by the confirming Event, is the correction-loop bound in commitment form:

  ```markdown
  ## Trigger: CloseStalled

  ### Kind

  - deadline

  ### Schedule

  - 5 business-days after [Event:StatementsDrafted] — unless [Event:FinancialStatementsConfirmed]

  ### Fires

  - [triggers](aim:#Contract:EscalateToCFO)
  ```

- **Count-bounds ("at most two failed reviews") are not expressible** — but a count is usually a
  proxy for a time budget, and the time form is the stronger commitment (it also bounds a *slow*
  single pass, which the count form misses). Count-bounded retry goes to the §8.6 ledger; if real
  models demonstrate a count that is genuinely the commitment (not a proxy), it earns its
  admission then.

Proposed spec change: one bullet in §15.7 documenting the deadline idiom for correction loops
(worked example as above), nothing else.

## Proposal 5: §8.6 — ledger entries, and the ledger generalized

§8.6's "recorded pressure" paragraph currently holds verb candidates. Two of the three entries
below are not verbs — they are attribute-family and block candidates — so the ledger's framing
generalizes: *pressure for any construct — verb, block, attribute family — is recorded here, with
the reason it is refused*. (The five admission tests apply unchanged; test 1 simply routes
non-relational candidates toward attributes and blocks instead of rejecting them outright.)

Entries to record:

- **Race / cancellation-compensation** — a step whose joint operations compete (first wins,
  remainder cancelled), or a cancellation window pairing each mutating step with a compensator.
  Fails test 4 (no real model has yet needed more than prose plus §15.10) and largely test 2
  (saga compensation is expressible today, §15.7). What would admit it: a model that needs
  compensation-pairing *checked* — "every mutating step inside the window has a compensator" as a
  diagnostic. That diagnostic is the rent.
- **Delivery semantics** — at-least-once / at-most-once, ordering, consumer idempotency. Fails
  test 1 as a verb permanently: these are attributes of an Event's `### Routing` (`Durable: true`
  is the existing foothold), not relations. The pressure recorded here is for **standard Routing
  keys**, admitted when a subscriber-side diagnostic (at-least-once event, consumer not declared
  idempotent) demonstrates rent on a real model.
- **Record lifecycle transition legality** — the status transition table as a checkable relation.
  The states (a schema enum) and the transition *actors* (contracts that `mutate` the Record, with
  `### Decides` where the transition is a judgment) are already in the graph; what is missing is
  transition legality — "closed is terminal", "no posting against a closed period". Fails test 4
  today; the financial close's `LOCKED` requirement is the first recorded evidence. The strongest
  future rent-payer on this list: illegal-transition as a hard diagnostic.

## What the graph gains

- **Process projections gain authority.** Exclusivity groups (5.4) + the continuation convention +
  the unordered-joint reading let a projection draw the full chart — parallel lanes with join
  barriers, decision diamonds with labeled legs, correction loops — from the graph alone. The 5.4
  reference-implementation tooltip ("cannot tell alternatives from concurrent outcomes") retires
  completely.
- **Performance conformance becomes definable.** Two conforming performers of one model now perform
  the same process up to its *declared* freedom (unordered joint work, judged criteria) — the
  precondition for the planned identity reframe ("a general intent language for processes,
  performable by agents; software is one outcome").
- **Universality challenges become test applications.** §1.4 gives every "can AIM express X?" one
  address and one decision procedure, ending the per-item relitigation.

## Open questions for review

1. **§1.4 or §1.3?** Separate subsection (challenges get one address; §1.3 stays about authority
   between files) vs folding into §1.3 (one less section). Drafted as §1.4 above.
2. **Ledger generalization.** Accept construct-pressure framing in §8.6, or keep the ledger
   verbs-only and record attribute/block pressure at their home sections (§7.6 Routing, §7.1
   Record)? Drafted as generalized — scattering pressure notes re-creates the pre-5.5 scatter this
   proposal exists to end.
3. **Count-bounded retry.** Accept the deadline-idiom answer, or does a real process exist where
   the count *is* the commitment rather than a proxy for time? Evidence requested before any
   construct is designed.
4. **Mixed step items.** May one item combine a deciding Contract's outcomes with unrelated joint
   work? 5.4's rule classifies per item (outcomes → exclusive, else joint); a mixed item is
   arguably ill-formed. Legislate now, or record and wait?
