Document import
An operator imports service names from a document and keeps its source alongside the imported batch.
The model demonstrates a caller-supplied file Input, a document-reading Capability invoked by the business Contract, and a retained file on a Record. The provider binding is illustrative; the model prescribes no storage or parsing implementation.
- Who
- Operator
- Rules
- 1
What must hold
The rules of this model, in its own words, and the step that keeps each one.
Requirements traceability
1 / 1 satisfied (100%)- IMPORTAn operator can supply a document containing service names. Valid names are retained with the source document; unreadable documents and blank names are rejected.✓ Contract:ImportServices
Use it with your agent
Connect AIM to the agent you already use, then ask it to start your own version:
Read the AIM context "Document import" at https://intentmodel.org/registry/reference/documents/ and start our own version of it for our team.
Browse the model
Document import
Facets by type
File
AGENTS.md
Document import example
Read the repository's ../../specification.md before working on this example. Behavioral authority lives in aim/documents/documents.aim.
intent
Document import
Summary
An operator imports service names from a document and keeps its source alongside the imported batch.
Requirements
- IMPORT — An operator can supply a document containing service names. Valid names are retained with the source document; unreadable documents and blank names are rejected.
Tests
- Importing a readable document with two valid names retains those names and the source document in one batch.
- An unreadable document or a blank name creates no batch.
Dependencies
Requires
- DocumentReader
Persona
Operator
Role
Supplies documents for import.
Access
- Import a document — invokes · ImportServices.
Record
ImportBatch
Schema
id: string required
source: file required
names: list(string) requiredCapability
DocumentReader
Read service names from a supplied document.
Operations
- Read(document) -> serviceNames
Bindings
- binds:
system:document-reader— as: Read
Contract
ImportServices
Validate and retain service names read from the operator's document.
Authz
- Operator may import documents.
Input
document: file requiredEnsures
- Read the supplied document — invokes · DocumentReader.
- Reject unreadable documents and blank service names before retaining any batch.
- Retain the names and original document together — mutates · ImportBatch, satisfies · IMPORT.
File
README.md
Document import (AIM 5.8)
The model demonstrates a caller-supplied file Input, a document-reading Capability invoked by the business Contract, and a retained file on a Record. The provider binding is illustrative; the model prescribes no storage or parsing implementation.
The upload input is named document, while the retained source is named source: incoming documents and stored fields need not share names. Already-parsed text or a remote-source address would have its own appropriate input type.
See specification §3.7 and §13.9. This example has no View, so it owes no visual identity.
For developers: packages, files and how to check them
AIM Core only
About this example
The upload input is named document, while the retained source is named source: incoming documents and stored fields need not share names. Already-parsed text or a remote-source address would have its own appropriate input type.
See specification §3.7 and §13.9. This example has no View, so it owes no visual identity.