AIMAgentic Intent Model

AIM Graph Resolution, Context, State, and Result Details (Normative Reference)

Verbatim parser-grade rules for AIM v8.0 canonical address resolution and traceability (§8, §9), derived context reach/backlinks/questions (§10), State validation rules (§4.8, formerly §4.10), and Result content/acceptance rules (§4.11, formerly §4.16 Output). Load this module when implementing a strict parser, validator, or query engine. Core summary lives in specification.md.

Graph identity and derivation (§8)#

8. Graph identity and derivation#

The graph is normative. Relations are declared once at the acting end. Inverse relations are derived. Tree position determines ownership but does not constrain cross-intent or cross-level edges. Tools SHOULD expose useful graph queries and views without requiring people to comprehend the entire graph.

Node Source Identity/type
Intent aim and H1 Namespace; intent, with the semantic types its content gives it (§5)
Facet ## <FacetType>: <Name> Heading keyword determines type; no inference
Section Bare top-level section section
Sub-block/item H3 and its list items Addressable block, not an independent facet type

Edge endpoints.

  • Sections. Sections are valid report anchors but are edge-inert.
  • Intents and facets. Typed edges connect intents/facets, with only two sub-block exceptions:
    • schema attributes participate in refs and holds;
    • individual top-level Requirements items are targets of satisfies.
  • Other sub-blocks. No other sub-block is an edge endpoint.
  • Rows. A row is no edge endpoint either.
  • Relationships that are no edges. A link between two rows is a data relationship, derived from an Entries file and labelled by its field (§6). A modelref field and a requirement's from and over are structured references (§3). None of them is a verb of §5, and none joins traceability.

Addresses.

  • An intent address is its namespace.
  • A facet address is:
<intent>#<FacetType>:<Name>
  • A field address is <intent>#<Record>.<field> for a field of a Record facet, or <intent>#<field> for a field of the intent's own top-level ## Schema (a promoted entity). A capitalized name after # is a facet, a lowercase one a field of the intent itself.
  • A promoted facet. A promoted Record, Persona, process or Output is addressed by its intent (§5). No alias keeps its former facet address alive.
  • A row address is <Record address>[<key>], as in game#Record:Level[W1-01] and diary#Record:DiaryEntry[2026-11-28], or <intent>[<key>] for a promoted Record.
    • The key is the value of the Record's key field (§3).
    • A text key stands without quotes. A character an address cannot carry is percent-encoded as in any web address, so the key Team Plus is written [Team%20Plus].
    • The key field gives the type: game#Record:Level[3] names the row whose integer key is 3.
    • A row has this one address wherever it is written, in the Record's ### Rows (§4.1) or in any Entries file (§6). The address never names a file.
    • Reports name a row by it, links between entries use it, and a requirement may cite it as its source (§3).
  • Fully qualified. Every reference is written fully qualified, inside its own intent too: [invokes](aim:juice.tasks#Operation:CreateTask), never #Operation:CreateTask. One spelling per thing reads the same in every file and lets a transform rewrite every reference to it (§14).
  • Verbatim. Facet type capitalization and name match the heading verbatim. No percent encoding is required for valid names.
  • Older spellings. The short forms are deprecated spellings: #<FacetType>:<Name>, and ref(<Record>.<field>), part(<Record>) or list(<Record>) without an intent. Tools read them (§9) and write only full addresses.

Pointers and Requirements targets.

  • A report pointer. A report may add → ### <Sub> [<index>], or → ## Requirements [<index>], to identify a 1-based list item. Such pointers are revision-specific and MUST NOT be authored edge targets. Work artifacts SHOULD include the item's text as a content anchor.
  • An authored satisfies target uses <intent>#Requirements[<key>]: a stable declared label (or a numeric 1-based index in legacy source). Once edges exist, labels SHOULD be used.
  • Positional requirements. Inserting or reordering positional requirements is a rename-class transform and MUST re-point all inbound positional edges.

Deriving the graph. Derive the graph by collecting fully qualified intent/facet/sub-block nodes; collecting inline edge tokens and structured references; resolving targets and validating legal source/verb/target triples; and adding inverses, reconciling any authored inverse blocks.

The graph may live in memory or a build artifact, never as an independent source file.

Canonical resolution and traceability (§9)#

9. Resolution and traceability#

Canonical resolution#

All references MUST use this algorithm; implementations MUST NOT substitute another:

  1. A full address names where the thing is declared.

    • <intent>#<FacetType>:<Name> resolves in that intent's file and its sibling facet files only.
    • It matches type and name together: company#Operation:Review and company#Record:Review are distinct and both valid, since one name MAY serve two facet types.
    • An intent address <intent> resolves to that intent.
    • A field address resolves to the field of the Record facet or of the intent's own Schema (§8).
    • The named intent MUST exist and the thing MUST be declared there. No lookup continues upward.
  2. A deprecated short form resolves from the current intent, by first match:

    1. embedded facet in the intent file;
    2. sibling facet file;
    3. an alias in deprecated ### Imports;
    4. parent, grandparent, and continuing upward;
    5. a required alias through mapping or Capability binding (§7);
    6. absent.

    A schema ref(<Record>.<field>), part(<Record>) or list(<Record>) names a Record. Tools rewrite each short form into the full address it resolves to (§14).

  3. A typed reference whose name exists there only under another facet type is a hard error.

  4. A report pointer and a Requirements key.

    • Resolve any report sub-block pointer by heading and 1-based item index.
    • Resolve a Requirements key against the named intent's top-level Requirements, by numeric position or a bullet label declared as - **Label** — ….
    • Missing/out-of-range keys and duplicate labels are hard errors.
  5. A row address resolves its Record by step 1 and then the row, by typed equality on the Record's key (§3), among the Record's stated rows or its entries in every Entries file of the resolved project. Exactly one row MUST match.

  6. An address into another model, <name>/<address>, resolves <name> in the models map of AGENTS.md (§16) and the rest inside that model by these rules.

    • When that model can be read, the target MUST exist and be of the kind its place requires.
    • When it cannot be read, the reference is unverifiable and never invalid, as an unsupported binding locator is (§12).
    • Nothing is copied: the other model stays the one place where the thing is described, only its own source changes it, and a link gives no right to read what it points at.
    • A target that was renamed or removed over there is reported the next time both models are at hand, and it is never repaired by guessing.
    • A link to something that is not written in AIM remains a url.

After the algorithm:

  • Unresolved. A required unresolved reference is a hard error. An address that a promotion or move left behind is one, and is never repaired by guessing.
  • Shadows. Under a deprecated short form, lower-precedence definitions produce informational shadow diagnostics.

Levels and traceability#

Level Specification
1 Intent only
2 Intent plus some facets and edges
3 Full facet trace with bindings, enabling declared/realized graph comparison

Levels.

  • What a level governs. Levels govern expected realization precision and traceability/review strictness. Tools MAY report the level.
  • Intent only. Intent-only source remains valid with reduced fidelity.
  • Level 3. At Level 3, unbound declared nodes become enforceable findings. Review verifies edges at bound sites with confidence, or uses a supplied realized-graph manifest.

Traceability.

  • Where it begins. Traceability begins at individual Requirements satisfied by behavior.
  • Entry points. Behavioral entry points are a Persona or an Organisation accessing a View/screen intent, an actor that produces an Output (§4.16), or a Trigger starting a Process or an Operation.
  • The chain. Views expose Operations. Operations may invoke Processes. Operations and Processes read or mutate Records, consult Knowledge and emit Events, and produce and need Outputs.
  • An Output is inside traceability. It is reached by produces and needs, and it can be an orphan. It reads Records and consults Knowledge as work does. Its satisfies edges count toward a requirement's satisfied-by.
  • Coverage. Following derived satisfied-by reaches a requirement's realizers. No inbound satisfies is a coverage gap.
  • Style and State do not join this behavioral chain: Style has no edges; State's structural edges are derived.
  • Knowledge joins the chain only through consults, from an Operation, a Process, a View, an Output or an intent with Steps (§5).
  • A requirement's source (§3) is outside traceability.
  • A complete trace. A complete Level-3 trace has no orphan behavioral nodes or dangling edges.
  • Stated rows and entries are outside traceability: neither is an edge endpoint.
  • A requirement with no satisfier. A requirement held by the shape of the data (### Immutable), by the conduct of tools (§6) or by who is given the files has no satisfier. Its coverage gap stays informational for the owner to answer.

10. Context#

Knowledge is written and context is derived. Nothing called context is authored, stored or handed over. What someone needs in reach to work on a node — a person, a Realizer, a Reviewer, or a skill while it runs — follows from the links and from the tree, as the graph itself does (§8).

The context of a node#

A node is an intent, a facet, a labelled Requirements item or a row. Its context has five parts.

Part Holds Derived from
Itself The node, and the Summary and Requirements of the intent it belongs to §17
What it names The targets of the edges and references it declares, the requirements it satisfies and the Knowledge it consults among them §3, §5
Where it comes from The sources that its requirements, or the requirements it satisfies, cite with from §3
What is said about it The rows that link to it through a reference field or a modelref field §3, §6
The background above it The Knowledge declared on its intent and on that intent's ancestors §4.11
  • Derived, never authored. No file, block or edge holds a context. A tool computes it, and two tools derive the same parts from the same project.
  • One step. Each part is one step from the node. This is what a worker has without asking. Anything further is a question (below).
  • In reach, not read in full. A small body is read whole. A large or growing collection is searched, and entered through where it comes from and what is said about it.
  • Access holds. Deriving a context obeys the access rules of what it reaches, ownership included (§3). What cannot be read is reported.
  • Marks travel. A row or a line in a context keeps its origin mark (§6).
  • Context informs. It never decides (§4.11). A rule found only in the context is not a commitment, and the reviewer asks for the requirement.
  • Not an edge. Deriving a context declares no edge and is outside traceability. consults stays the declaration that running work reads a body. A realization builds a lookup at run time only where consults says so.

For scheduling#Operation:ListShiftsForDate of §2:

Part Holds
Itself The operation, and the Summary and Requirements of scheduling
What it names OVERNIGHT-DATE, which it satisfies
Where it comes from The entry OvernightShift, the source of OVERNIGHT-DATE
What is said about it The entry OvernightShift, through explainsOperation
The background above it SchedulingContext, the collection of notes

Reach by placement#

  • Background reaches down the tree. The Knowledge declared on an intent and on its ancestors in the resolved tree is the last part of the context of every node in that intent. Several facets in reach accumulate.
  • A link brings no background. A reference or a dependency into another intent does not bring that intent's background along.
  • Placement sets reach. Placement therefore sets reach, and a rule drawn from background is a requirement that cites it with from (§3).
  • A handover of the repository alone. A handover that passes on the repository alone includes the background it expects the next group to read, or says how to read it from the checkout.
  • Background that is not available. Background that applies and is missing, unreadable or reachable only through a service that is not available is reported as BACKGROUND_UNAVAILABLE against the Knowledge address and the affected intent. The review records which claims stay unverified and goes on with those that have enough evidence. Missing access is a handoff or verification finding, never a defect of the model.

What is said about a node#

Two relations lead from knowledge to the model, and each is authored once.

Relation Authored on It is used when
The rule comes from the entry The requirement, with from [<row address>] (§3) The rule would be reconsidered if the entry changed. The entry shows the requirement drawn from it, and a change to the entry flags the requirement as a stale source.
The entry is about the node The entry, with a modelref field (§3) The entry explains or illustrates the node. A facet has no from, so this is the only link from an entry to an Operation or any other facet.
  • The inverse is derived. A requirement that cites an entry needs no modelref back from it, because the inverse is derived.
  • Backlinks follow access. Backlinks are shown according to the reader's access to the entries.

A question shows its way#

Context is what a worker has without asking, and it stays at one step. A question is something a person or a skill asks of the knowledge.

  • As far as it needs. A question may go as far as it needs, along several links or by comparing typed values, such as an entry's date with the start and end of a period (§4.1).
  • The answer shows the way. The one condition is that the answer shows the way it went: the links it followed and the values it compared. Two answers from a diary: "12 entries, found through the circle Zürich friends, its 4 people, and the entries that mention them", and "31 entries, found by date, between the start and the end of the phase".
  • Every step is exact. A link resolves or it does not, and values compare under the rules of §4.2.
  • The choice of way is a reading. It is visible, so the person can reject it.
  • Nothing is written twice. No entry carries a link to a phase or a circle that its date or its people already imply.
  • What a grouping contains is the owner's to say. Whether "my time at Juice" means the entries dated in that period, the entries that mention colleagues, or both, is written once in the owner's words, as a requirement of the collection or in the skill that shows it.
  • An answer says what it rests on. It says "possibly" for a rough date (§3), "about" for a value so marked, "not recorded" for an absence in an open list and "not in what I have" for a list it holds in part (§4.1), the standing of a claim (§6), and which of the lines it used are proposed.

AIM checks and does not draw conclusions, and it keeps who said what, not what is true.

How it stays true

State detailed rules (§4.8)#

State (§4.8)#

Purpose. A State is the complete list of how one enum field of a Record may change: where it starts, where it ends, every move with the operation that makes it, where deletion is allowed, and which operations may run only in certain states.

Form. A State has only these sub-blocks, besides the inline ### Label and ### Bindings every facet may carry (§3, §12):

Sub-block Required Holds
### Summary yes How the record moves.
### Of yes One bullet: a backticked <intent>#Record:<Name>.<field>, or <intent>#<field> for a promoted entity (the short Record:<Name>.<field> is deprecated, §8); the field MUST be a required enum. States show the labels of its values (§3).
### States yes One bullet per enum value, one to one. Names compare case-insensitively with spaces as underscores (In review is in_review); a different value follows in parentheses (Waiting (on_hold)). Exactly one is marked — initial; any number — final.
### Moves yes One bullet per move: <From> → <To> — <operations> (-> accepted), the operations bracketed Operation or Process full addresses, comma-separated. The reserved target deleted declares deletion.
### Only in no One bullet per confinement: <State>, <State> — <operations>: those operations run only while the record is in one of the listed states.

Example.

## State: ClaimStatus

### Summary

A claim moves from draft to approved; only a draft may be edited or withdrawn.

### Of

- `claims#Record:Claim.status`

### States

- Draft — initial
- Submitted
- Approved — final

### Moves

- Draft → Submitted — [claims#Operation:SubmitClaim]
- Submitted → Approved — [claims#Operation:ApproveClaim]
- Submitted → Draft — [claims#Operation:CorrectClaim]
- Draft → deleted — [claims#Operation:WithdrawClaim]

### Only in

- Draft — [claims#Operation:EditClaim]

Edges. A State declares no edge tokens; its moves are structured references. The graph derives governs to its Record and moved-by to each named operation; these are structure, not verbs. A State is never an orphan and is outside traceability.

Rules.

  • One State per field. One State per field across the whole model. Separate fields have separate States, never combined ones. A State lives with its Record or in a descendant intent.
  • An enum without a State. An enum without a State is only a set of values. A machine MUST NOT be inferred from an enum or from guard prose. A recovered machine is proposed with provenance and needs the owner's signature.
  • How a move is written.
    • Each endpoint of a move MUST be a state. The reserved deleted is the exception, as a target only: it MUST NOT be the <From> of a move.
    • A move MUST NOT go from a state to that same state (<From> → <From>).
    • A move MUST name an operation. Each operation it names MUST resolve, MUST be an Operation or a Process, and MUST mutate the Record.
    • The same move MUST NOT be declared twice by the same operation.
    • A move MUST NOT name an operation that Only in confines to other states, because that move can never happen. The report of this error names both lines.
  • Writing the Record. For every operation writing the Record:
    • A changed value. A changed value MUST be a declared <From> → <To> move, made by an operation the move names. The realization MUST refuse any other change before it commits.
    • The same value. Writing the same state value is no move.
    • Creation. Creation starts in the initial state, by any creating operation. Creation is no move.
    • Deletion. Where → deleted moves exist, deletion is allowed only from their states and by their operations, a final state included. With none, the State says nothing about deletion.
    • Final states. No move leaves a final state except a declared deletion.
    • Only in. An operation listed under ### Only in runs only while the record is in one of the listed states, whatever it writes. The realization MUST refuse it in any other state. An operation in several Only-in bullets runs in any of their states. Any other operation follows its own rules. Other fields and related records are otherwise not frozen.
    • No permission. A legal move grants no permission. It changes nothing about the operation's Input, Authz, Expects or Ensures.
  • What a State keeps and touches. Moves keep their resolved operations and the roles those operations' Authz admits. A State's impact includes its Record, its operations and every other operation that mutates the Record. References are rewritten when the Record or operations move.
  • Older spellings. The deprecated guard <From> → unchanged — [X] is read as <From> — [X] under Only in. Such a line is a confinement and not a move, so its unchanged is not an endpoint that is no state.
  • Enforcement. A realization that does not enforce these rules is drift and MUST NOT be described as enforcing the State.

Result detailed rules (§4.11, formerly Output)#

Result (§4.11, formerly Output)#

Purpose. An Output is a result of work that is handed over — a recipe, an invitation text, a corrected exam, a menu as a document, a DDEX file, ready-mixed concrete on site, a poured foundation — named by what it is, never by who or what makes it. It may be information or a thing in the world. It commits to what one is made from, what one contains or is, the form it is handed over in and what holds for every one. It says nothing about how one is made. It never acts and it is never kept: work that keeps one, or data about one, stores it in a Record. A View is what people look at and use; an Output is what the work hands over.

Form.

Sub-block Required Holds
### Summary yes What the thing is and what it is for.
### Input no What one is made from, in a schema fence, in the grammar of an Operation's Input (§4.2). A field may be a file.
### Contains no The content of one, or for a thing in the world the properties it is described by, in a schema fence, in the grammar of §3. Absent for free text.
### Constraints no Rules on the content, one bullet each, and at most one check fence, as on a Record (§4.1).
### Format no The form one is handed over in, one bullet. The first word is text, data, document, file or physical; a named standard, format or carrier may follow in words after —. Absent means the form is not stated; a realization that makes the Output itself hands over text.
### Ensures no What holds for every one, one bullet each, with its edges.
### Layout no, only for a document Arrangements the owner stated, one bullet each, in their words, under the rules of a View's Layout (§4.5).

Example.

## Output: Rezept

### Summary

Ein schnelles Rezept für eine Mahlzeit.

### Input

```schema
wunsch: string required
personen: integer
```

### Contains

```schema
titel: string required
zutaten: list(string) required
schritte: list(string) required
minuten: integer required max(30)
```

### Ensures

- Enthält kein Gluten und keine Nüsse — [satisfies](aim:kueche#Requirements[ALLERGIEN])

Edges. Declares reads (stored Records it is made from), consults (Knowledge), invokes to a Capability only, and satisfies, inside Ensures bullets. Its Input and Contains derive holds from each part(...) (§3). Receives produces from Operations, Processes and intents with Steps, and from a Persona, an Organisation, a Software, a Service or an intent with a Role; and needs from Operations, Processes and intents with Steps. produces derives produced-by, needs derives needed-by.

Rules.

  • It never acts. An Output declares no mutates, emits, exposes, navigates, subscribes or triggers. It invokes no Operation and no Process. Work that changes something while making one is an Operation that produces it.
  • It is never kept. An Output has no rows, no identity and no ref(...). Work that keeps one is an Operation that produces it and mutates a Record whose fields take its values. A document or file is kept in a file field.
  • Content and representation. Contains and Constraints describe the content. Format describes the representation that is handed over.
    • A realization that makes or carries an Output MUST check the content before it renders or hands over anything, whatever the Format: required fields, types, value rules and Constraints.
    • data hands the content over as its fields.
    • text, document and file render the content. The representation MUST carry the whole content and state nothing the content does not hold.
    • Where the Format names a standard that can be validated, the representation MUST be valid in it.
    • An Output without Contains is free text, and only its Format and Ensures apply.
  • Checked content. ### Constraints MUST NOT be written without ### Contains. A check fence in Constraints compares fields of the Contains, as on a Record (§4.1, §4.2). A Constraints block that holds only the fence is not empty. The content is held to its lines once, when it is handed over. An Output is never changed afterwards, so the clock is allowed.
  • Judged guarantees. Ensures prose is judged, as an Operation's is (§4.2). A realization records the judgment and never claims a judged rule as proven. A rule that can be stated as a comparison on the content belongs in a check fence, where it is checked.
  • Input by document. A file field in Input is a document the requester supplies. The Output owns the commitments made from it (§3).
  • The look. A document wears the Style in reach, as a View does (§4.9). ### Layout states only what the owner specified. It names its subject through the Output's Contains fields, and it declares no edges. Pixels and templates are realization.
  • Dependencies. A function the Output must get from outside is a Capability it invokes (§4.8): a certified signature, a rating from a scoring service, validation by the body that owns a standard.
    • That Capability is required in ## Dependencies like any invoked Capability (§7).
    • The Ensures bullet says what the function is used for.
    • Reading an Input and rendering a Format are the realization's responsibility and need no declared Capability. A model declares one for reading or rendering only when the work depends on a particular function doing it.
  • The accountable producer. A produces edge names who answers for the Output, never who or what carries out the making.
    • From an Operation, a Process or a step, the Output is made as part of that work, for whoever performs it (§4.4).
    • From a Persona, an Organisation, a Software, a Service or an intent with a Role, that actor is its accountable producer: it makes one or has one made.
    • Where a realization makes it, the making runs on the actor's behalf and under the actor's identity. Every reads of the Output is that actor's read, narrowed by ownership as any read of theirs is (§3).
    • An Operation that produces an Output hands it back. Its ### Returns need not restate the Output's Contains.
  • Who or what makes it is open. An Output may be made by a person, an organisation or an outside system, or realized by code, by a single model call, by a workflow or by an agent. The model states its commitments and the dependencies it requires. How it is made is chosen by whoever makes it, except where intent prescribes steps.
  • Needed by work. Work that cannot be done without an Output needs it: the Output is that work's input.
    • Within one case, a step that needs an Output an earlier step produced gets that one (§4.3, A case).
    • An Output that work needs and nothing in the model produces is supplied from outside and is owed, as a Record that is read and never mutated owes its contents (§7).
    • needs states a dependency, not a wait: work that waits for an Output to arrive waits on the Event that announces it (§4.3, Waiting for an Event).
  • When steps are intent. Drafting, checking and revising inside the making are realization. A step belongs in the model when its occurrence, its order or its hand-over is a commitment: a teacher approves a correction before it is released, a grade is recorded. That work is a Process or an Operation that produces the Output (§4.3).
  • The model stays the authority. Everything that shapes an Output is in the model: its Contains, Constraints, Format, Layout and Ensures, the Requirements it satisfies and the Knowledge it consults.
    • A realization may use instructions, templates and examples to implement those commitments. It MUST NOT carry a rule for the Output that the model does not state.
    • A correction meant for one Output changes that one. A correction meant for every later one is a change to the model.
  • Acceptance. Where no realization makes or carries the Output (a person, an organisation or an outside system makes it, or it is physical), its Contains, Constraints and Ensures are what one is accepted against. Accepting is work: an Operation or a step that needs the Output states it. A realization records the acceptance and never claims a rule as held that nobody checked.
  • A promoted Output. An Output with a purpose, requirements and knowledge of its own may become an intent (§14).
    • nature: output MAY mark it as a hint.
    • Its Summary and requirements stand at the top.
    • Its blocks become top-level sections of the same names, declared from the intent node: ## Input, ## Contains, ## Constraints, ## Format, ## Ensures, ## Layout.
    • A promoted Output states its Format even when it is text: an intent with a top-level ## Format is an Output endpoint. Such an intent is produced and needed by its namespace (§5), and it MUST NOT contain a same-named Output facet.