AIMAgentic Intent Model

AIM Review, Supplied Material, and Evolution (Normative Reference)

Normative details for AIM v8.0 handoff of supplied material and JSON row profiles (§7), bindings and Level-3 graph-diff review including stated-row review (§12), graph-preserving evolution transforms and 7.0/8.0 migration (§14), and reverse encoding from existing artifacts or testimony (§15). Load this module during review, handoff, migration, or reverse capture. Core summary lives in specification.md (§7, §12, §14, §15).

Dependencies, supplied material, and JSON row profile (§7)#

  • Requires. ## Dependencies contains ### Requires for capability aliases. A Requires entry has the form - <capability-kind> as <Alias>, for example - Identity as AssigneeUsers.
  • No imports. AIM has no imports: every reference names the canonical node by its full address (§8).
  • One shared Persona in several roles. Where a process has multiple distinct roles played by the same shared organizational Persona, model each local role as a Persona with [plays](aim:...) (§4.5).
  • What the work depends on.
    • A function the work requires is a Capability facet (§4.12). It is required here by its alias.
    • A system that answers it, where the work consumes one through a connection, is a Service facet (§4.12). It is connected through its own Bindings.
    • A body of knowledge the work consults is a Knowledge facet (§4.9). It needs no alias.
  • Resolving an alias. Each Requires alias resolves either through a co-located kind: mapping file or through inline Bindings on its Capability. An alias unresolved by either form is a hard validation error.
  • A mapping. A mapping has ## Map: <Alias>, ### Target with a backticked provider intent bullet, and ### Operation Map bullets in the form - `<Alias>.<Operation>` → `<provider>.<Operation>` . It is intent-to-intent.
  • A provider intent. A provider intent, such as a service's own model, written from what the service offers, lives outside the consuming organization's tree. Nothing is moved into or out of it, and only its own source changes it. Its data enters the consumer as a value of its shape (part(<provider>#<Record>)) or as an external identifier. It never enters through ref(...), which needs a row of the consumer's own.
  • Bindings. Bindings resolve an external provider with no intent model and remain intent-to-realization. A Capability binding MAY name the Capability operation it realizes after — as:.
  • Older spellings. The deprecated ### Imports (- `org.Employee` as Traveler) is read so its aliases resolve. Migration rewrites every use into the full address and removes the block (§14).

Supplied material is concrete copy, seed data and media beside the model. It is never authored into .aim and is never a new facet, verb or block.

  • What is owed.
    • A View reading a Record owes displayed data and any stated empty-state message.
    • A Record read but never mutated in-model owes externally supplied contents, unless it states its rows (§4.2) or has Entries (§6).
    • A Result that work needs and nothing in the model produces is owed from outside (§4.11).
    • Optional starting entries for mutable Records are permitted material but create no owed-material obligation.
  • Intent or material. Visual identity belongs in Style. A mark's words are intent, and its image file is supplied material. Action labels remain intent, and material MUST NOT duplicate them.
  • Handoff channels. The conventional handoff channels are records/ for seed rows and content/ for copy/media (content/assets/ for image assets). Their file shapes are not specified, except the JSON profile for rows (below).
  • Using material. Consumers MUST use supplied material verbatim and never write it back into the model.
  • Missing material. Missing material is a question for the owner. It is never permission to invent content or ship placeholders.
  • Recovered material. Material recovered from an existing realization is a draft for owner confirmation, with the same provenance discipline as inferred intent.
  • Readiness. Material readiness is derived from the handoff. It never changes specification level or becomes a hard model error.
  • Slots and placement. Ecosystem tooling determines owed content slots. Placement remains realization unless stated in Layout.

Made or handed over#

  • Made content. Content made to realize the model, such as a layout, a dialogue file or an image produced during realization, is a realization, as code is (§1). Realization chooses within the freedom the model leaves and follows its observable commitments. A binding makes the site reviewable (§12).
  • Handed-over content. Finished content that the owner hands over is supplied material. The handoff says which values it supplies, by Record, key and field where that applies. The consumer preserves those values. Packaging and schema-directed decoding may change the representation and never the values.
  • A directory. A directory is a convention for finding material: that a file lies under content/ or at a bound site says nothing about where a value came from.
  • Both in one row. One row may hold both. A level has a layout made during realization and music the owner supplied, and the work that assembles the row shows which source contributed each field.
  • A promised value that is missing. A value the handoff promises and omits is a handoff finding.
  • A required value nobody assigns. A required value that nothing assigns and no default fills is owed by realization, as a completed row or as a question recorded for the owner.

Supplied rows#

  • A seed row. A supplied seed row for a Record without Rows is a complete row.
  • A fragment. A supplied fragment for a Record with Rows (§4.2) holds the key and only the unstated fields the owner supplies. The consumer checks a fragment's values against their field rules, verifies its key and checks for overlap before assembly.
  • Validation. For both kinds the consumer validates the completed rows before use, after filling defaults, against the full Schema and the check lines of Constraints: required fields, unknown fields, nested values, uniqueness across the data that will be loaded, and references against the data the realization uses.
  • A failure. A failure names the Record, the row and the field or check. It is a handoff finding, apart from model conformance.

The JSON profile. The portable form is a JSON array of row objects, at a path the Record's address determines:

Record Complete seed rows Fragments for stated rows
A Record facet <intent>#Record:<Name> records/<intent>/<Name>/seed.json records/<intent>/<Name>/supplied.json
A promoted Record <intent> records/<intent>/seed.json records/<intent>/supplied.json
  • Path. The namespace is written in full, with its dots. A path mapping that is ambiguous on the file system in use is rejected.
  • Keys. A fragment's key uses the encoding of its field. Duplicate object keys are rejected, and so are duplicate row keys where a key is required.
  • Absent values. A missing property and JSON null are absent (§3).
  • Scalars. boolean, integer and number use JSON booleans and numbers. A decimal is its number literal in a JSON string, so the exact value survives. Other scalars and enum values are JSON strings.
  • References and files. A ref(...) uses the encoding of its target field. A file is a /-separated project-relative path to a file in the package.
  • Nested values. Parts and maps are objects and lists are arrays, with the Schema applied at every depth.
  • Other representations. Other representations may be supplied or bound. They are verified through a reader that understands them, and where a review has no such reader the gap is recorded (§12).

What is derived

Bindings, graph-diff review, and stated-row verification (§12)#

A binding connects an intent node to its realization site.

  • Optional. Bindings are optional. Missing coverage is informational at Level 1/2. Writing bindings opts into Level-3 graph-diff responsibility for those claims.

  • Form. Canonical bindings are a node's inline ### Bindings property containing bullets such as - binds: `procedures/onboarding.md#verify-id` — as: procedure or - binds: `src/tasks/create.ts#createTask` — as: handler. Multiple sites are allowed.

  • Roles. Advisory as roles describe what the site is (such as procedure, form, document, spreadsheet, handler, model, component, route, topic or test). Text after the backticked locator is prose a parser may ignore.

  • Provenance. An optional - provenance: inferred bullet in the Bindings block carries its trust until human-confirmed, independent of the surrounding intent's trust.

  • Locators. Locators have an open scheme set, <scheme>:<opaque-locator>.

    • Domain locators may use document:, form:, procedure:, calendar:, system:, workflow:, agent:, queue: or other schemes.
    • Code-family locators include path#symbol, a whole path, path#L40-L72 (last resort), route:POST /api/tasks, topic:tasks.created and table:tasks.
    • Unknown schemes are valid. An unsupported scheme is unverifiable, never invalid.
  • Specified schemes. Two schemes are specified.

    • rows-json:<project-relative-path> on a Record with stated rows names a file that holds the complete assembled set in the JSON profile (§7). The Record it is bound to says which Schema governs it.
    • entries:<Record address> on a Knowledge facet names that Record's Entries collection (§6).
  • Older spellings. The accepted deprecated sidecar form is kind: binding with ## Bind: <FacetType>:<Name> entries (## Bind: Flow: and ## Bind: Contract: read as Process and Operation, §4.0). Conforming tools MUST read it. They MUST merge its locators into inline ### Bindings before any migration that removes the sidecar file.

  • The two graphs. The declared graph consists of intent nodes and declared relations. The realized graph consists of sites and recovered relations. Bindings project them into a common space for diffing.

  • Bounded review. Review is bounded: for each declared edge, inspect the bound site and check that claim rather than reconstructing the entire system.

  • A manifest. Tools MAY supply a precomputed realized-graph manifest. Its format, enforcement mechanics and report formats are not specified.

  • What is checked how. Structural counterparts are checked by graph-diff. Guarantee semantics require inspecting realization. Guarantees whose outcomes cannot be verified use procedure verification.

Finding Condition Severity / resolution
UNBOUND_NODE A facet has no binding. Requirements, sub-blocks, schema fields and Steps owe none of their own: a requirement is covered through the bound facets that satisfy it, a property through its facet. Informational at Level 1/2; MISSING at Level 3.
DANGLING_BINDING Site no longer exists. INCORRECT; update realization or locator.
MISSING_EDGE Declared edge has no realized counterpart at its bound site. MISSING; realize the edge.
EDGE_MISMATCH Edge exists on both sides with different endpoints. INCORRECT; align the realization.
UNDECLARED_EDGE Realized behavior has no declared counterpart. UNDOCUMENTED; declare it in the model, or remove it from realization.
AMBIGUOUS_BINDING Conflicting sites for one node, or two nodes share one site that nobody has confirmed. One site realizing several commitments is normal; the finding clears once the owner confirms the sharing. Ambiguous; owner input.
  • Confidence. Every finding carries confidence. It is high when the bound realization clearly matches or clearly does not. It is needs-human-check when dynamic or ambiguous realization prevents a conclusion. Proxy confidence concerns procedure conformance, never outcome truth.
  • A clean report. A clean report means every declared edge was reviewed as realized and no undeclared behavior was found at inspected bound sites, at stated confidence. It is not global proof.
  • The impact set. The impact set is every node reachable from a changed node by following inbound edges, together with what depends on it without an edge:
    • every View and document Result that wears a changed Style when software is loaded (its intent and descendants, up to a nearer Style);
    • for a changed State, its Record and every operation that mutates that Record;
    • for a changed field, every facet or intent whose Criteria, Expects or Constraints names it in a comparison (§4.3).
  • Stated rows in the impact set. A changed, added or removed stated row puts the Record's realization and every reference known to name the row in the impact set. Rows are matched by typed key. A key change is a removal and an addition, unless the change records a rekey and updates its references.
  • Context. The context of a node (§10) is the counterpart of the impact set: the impact set is what must be looked at when a node changes, the context what must be read to work on it. Both are derived from the same graph, and neither is stored.

Reviewing stated rows#

A review checks a Record's stated rows (§4.2) against the complete catalogue the running system uses. The bound file is shown to feed the running Record, or to be a complete extract of it at an identified snapshot. A source fragment or an extract of unknown coverage establishes nothing about completeness.

Finding Condition Severity / resolution
MISSING_ROW A stated key is absent from the complete realized catalogue. MISSING; restore the row in realization.
UNDECLARED_ROW The complete realized catalogue holds a key the model does not state. INCORRECT; remove it from realization, or state it in the model if deliberate.
ROW_MISMATCH A realized row's key matches and a stated field is missing or differs under typed equality. INCORRECT; align the realized value.
INVALID_ROW The realized data violates the Schema or a checked constraint, a repeated key included. INCORRECT; correct the realized data, or the owner corrects invalid supplied material.
UNVERIFIABLE_ROWS The bound site is unreadable, unsupported or yields only part of the catalogue. Verification gap; the review records which claims could not be checked.
  • A missing site. A site known to be missing is DANGLING_BINDING.
  • Partial evidence. Partial evidence may establish a mismatch on a row it shows. Only a complete enumeration establishes that a key is missing or that the catalogue conforms.
  • Duplicate keys. Duplicate keys are reported before rows are paired by key.
  • A snapshot. Checking a snapshot establishes membership and values at that snapshot.
  • Checked apart. That the running system keeps the rows read-only, and any words of a row that depend on behavior, are checked apart.

Verification modes#

  • Checking the output. For cheaply and completely checkable outcomes, state Ensures and verify the result; do not also prescribe a procedure.
  • Checking the procedure. For an unverifiable guarantee, state a Process invoked by the Operation and verify its normative Steps.
  • Both, per guarantee. These modes compose per guarantee: output-check what is observable and cover only the remainder by procedure.
  • What may be reported. Procedure conformance MUST NOT be reported as outcome verification. Proxy-verified guarantees never earn high outcome confidence.
  • When uncertain. When uncertain, check output and prescribe procedure only where output cannot answer.

Evolution transforms, migration, and stale satisfiers (§14)#

  • Authoring operations. Authoring operations are EXTEND an existing intent and ADD an intent.
  • Transforms. Tools reshape structure using promote (capability to child), split (distinct behaviors to siblings under an index), move/re-home, merge or rename. These are transforms, not language syntax or additional author primitives.

A transform changes addresses, never commitments. It MUST preserve behavior and relations, and:

  1. Repoint all inbound references across the whole graph, in every intent of the project or workspace that names the old address, in the one change. Introduce no dangling reference or illegal triple. No alias keeps an old address alive. An address outside the graph that still names the old place is a dangling reference wherever it is read. It is said and never repaired by guessing.
  2. Write every address in the moved content in full. A deprecated short address is rewritten to what it resolved to before the move.
  3. Update every affected Children index.
  4. Restore agreement of directory, filename, aim and parent.
  5. Carry inline bindings with nodes. Relocate/update legacy sidecars. Preserve realization locators because the realization has not moved.
  6. Have owner confirmation before merging purported duplicates. Remove the duplicate, choose one canonical node and repoint both sets of references.
  7. Never count as acceptance. Provenance stays per file.
    • Moving inferred content into a confirmed intent is one change that says it confirms that content. Approving it is the confirmation.
    • Moving confirmed content into an inferred intent is refused as an automatic transform. Confirm the destination first, or keep the content in its own sibling facet file, which keeps its own provenance (§15).
  8. Leave the background of every intent as it was. Compare, before and after, the Knowledge in reach of each affected intent and the sources it resolves to (§10), matching renamed facets by identity. A move that changes which background an intent has in reach, or what a Knowledge facet resolves to, is a commitment change that the owner reviews and not a transform.

Promote, in particular:

  • The facet becomes an intent under the universal promotion rule (§4.0): its sub-blocks lift to top-level sections of the same names, its ### Label becomes H1, its ### Bindings becomes ## Bindings, and its facet type becomes nature:.
  • Actors (Persona / Organisation) and stored data (Record) remain separate under the one-origin rule (§4.0): promoting an actor does not merge a Record's ## Schema into top-level sections of the actor intent; the Record stays a ## Record: facet inside the intent (or its own child intent).
  • Every reference to the promoted facet is rewritten to the intent's address: edges, ref(...), part(...), Authz roles, plays, State Of lines, mapping targets, requirement sources, Decides outcomes, Ends on, continues:, and Schedule anchors.
  • The transform carries, with the addresses, everything the realization attached to the facet: the rows of a Record promoted with it, the people who hold a Persona, and the permissions its Authz entries gave.
  • A Record's stated rows, its ### Period, ### Replaces and ### Complete and its Entries files move with it. Every row address, link, entries: locator, modelref value and requirement source that names it is rewritten.
  • A renamed Schema field is renamed in every value bullet and entry line that names it.
  • A transform that drops one of these is not a valid transform.
  • A rename of a Record field or an Input field rewrites [<field>] and [<input>.<field>], and a bare left side naming it, in every comparison that names it (§4.3).

Migration of deprecated spellings. A tool adopting this version MAY rewrite deprecated spellings when it opens a model, under the preservation rules of §3:

  • each short address into the full address it resolves to;
  • each use of a ### Imports alias into the full address it names, removing the block;
  • each <From> → unchanged — [X] into an ### Only in bullet;
  • each Flow into Process, each Contract into Operation, and each Output into Result (§4.0), in headings, nature, kind, file names, binding sidecars and every address, in one change, never the heading alone.

The rewrite changes no resolved node and no edge. It is shown to the owner like any change. A provider intent is never rewritten (§7).

  • 6.5 deprecates nothing. A model that describes a produced thing as an Operation returning a part stays valid and is never rewritten into a Result by migration. Whether it is one is an authoring judgement, made with the owner (§4.11).
  • 6.6 deprecates nothing either. Prose Expects and Constraints stay valid and are never rewritten into check lines by migration.

Adopting 8.0. AIM 8.0 is a breaking revision. The new rules apply when the owner declares aim_version: 8.0 in AGENTS.md:

  1. Required nature:. Every intent MUST declare nature:. Intents that previously omitted nature: receive nature: subject (or a specific Core/package facet type chosen by the owner).
  2. Packages in AGENTS.md. Projects using Service or Capability declare systems under packages: in AGENTS.md; projects using Software, View, or Style declare software (which includes systems). Projects using Project migrate to Subject or load the work package (Project with Origin: Subject).
  3. One origin per intent. Any 7.0 intent that combined top-level ## Role and ## Schema separates its stored data into a ## Record: facet inside the intent (or a sibling child intent).
  4. Deprecated Output. Output remains accepted as a deprecated spelling of Result (§4.0) and may be migrated automatically on open.

Adopting 7.0. (Retained for 6.6 → 7.0 upgrades; see reference/versions.md.) The 7.0 rules apply when aim_version: 7.0 or higher is declared: a tool previews Record blocks named Rows/Period/Replaces/Complete, duration/position fields, (should)/over requirements, record/subject/models frontmatter keys, {#name}/at ... anchors, newly inherited Knowledge background, and supplied-row validation before upgrading.

Graph-diffs. Transforms yield graph-diffs of nodes, addresses, edges and bindings, with computable impact sets. A valid transform preserves the explicit edges and what nodes inherit without one (background Knowledge, and when software is loaded a View's or document Result's effective Style), and introduces no attributable hard error, orphan, shadow or duplicate.

Change record. A change record MAY preserve this delta under /aim/work/ for realization handoff. It is non-authoritative, point-in-time, archived after application. On disagreement .aim wins and review falls back to full graph-diff. Its format is not specified.

EXTEND that rewrites a requirement. EXTEND that rewrites a requirement changes a commitment.

  • Revisit every item containing a satisfies edge to it: revise the item or explicitly confirm and report that it still holds.
  • Stale satisfier compares both sides of a change: requirement text changed at the same label, or same position if unlabeled, while the satisfying list item/step/paragraph did not. It also flags harmless rewording for confirmation.
  • Removing satisfies is never repair.
  • New requirements have no existing satisfiers to revisit.
  • Removed requirements produce dangling references.
  • Reordered labeled items do not change identity.

Reverse capture from existing artifacts or testimony (§15)#

A model may be made from anything at hand: a conversation, documents, data, an existing realization, a person's own account. This is the reverse pass. It is described by its result, whatever produced it.

  • The given words are kept or cited. What someone said or wrote stays as written, as the text of an entry (§6) or as a source a requirement cites (§3). It is not paraphrased into a rule that then stands alone.
  • Every line says where it comes from. A requirement carries its source and a line of an entry its origin. What the maker filled in on its own is marked proposed until the owner or the collection's author confirms it.
  • A gap is a question. What the material does not say is asked and never invented. A rule that was asserted without evidence is kept with a confirming question.
  • It passes the checks before it is shown. The proposed graph is derived, and every hard error its maker can resolve is resolved first (§11).

What an assistant does to a diary is this pass at the grain of a line. It recovers structure from someone's testimony, and what it recovers stays marked until that person confirms it (§6).

  • Reverse encoding. Reverse encoding infers intent from artifacts or testimony. It authors inferred intent and emits bindings to the existing realization in the same pass, changing nothing in reality.
  • Sources. Cite artifact sources. Record who supplied testimony and when. Testimony defaults to needs-human-check until its source or principal confirms.
  • Exceptions. Capture exceptions in On Error or separate operations and ask about them explicitly.
  • Provenance. Re-encoded files MUST carry provenance: inferred. Remove it or set confirmed on human acceptance. Absence means confirmed. A transform never counts as acceptance (§14 rule 7). Overall file provenance and per-node binding provenance compose independently.
  • Inferred intent. Inferred intent is provisionally authoritative for resolution and diagnostics but MUST be visually/reportably distinguished wherever presented. Confirmation coverage is informational.
  • Confidence. Record high or needs-human-check confidence in a non-authoritative encoding report under /aim/work/, never in .aim. The model carries provenance.
  • Bindings. Emit a binding for every inferred node with an identifiable realization site. Personas and Organisations as roles, and manual steps known only from testimony, are exempt. Otherwise reverse encoding provides Level-3 binding coverage immediately.
  • One intent at a time. Bound each examination by intent. An entire tree MAY be drafted together but humans confirm each intent separately.
  • Existing entities. Resolve-or-reference existing entities before defining new ones. Duplicates use the ordinary diagnostic and an owner-confirmed merge.

Files and layout