Skip to main content

Syntax

Reference for Core and Infra blocks (stable in v0.1). Full grammar: Specification. CRM example: crm-reference.aip. Security and Behavior blocks: Security, Workflows.

Conventions

  • Fields are declared inside entity (name: type modifiers).
  • Modifier order: required | optionaluniquedefault(value).
  • Identifiers: PascalCase for entities/events; snake_case for fields.

app

auth on app is the default; api { } may override HTTP exposure details.

entity

Implicit fields: specification#implicit-fields.

Types


relation

optional marks nullable / optional FK.

crud

Typical routes:
Artifacts depend on the transpiler matrix.

Validation

Prefer inline modifiers:
validation block (equivalent, for many rules):

index

unique on a field already creates a constraint; use index for non-unique or composite lookups.

api

HTTP auth inherits from app.auth unless overridden. Rate limit and CORS: Security.

Summary (Core + Infra)


Blocks in other chapters


Core example (no full CRM)

Full CRM with policy and workflow: crm-reference.aip.