AUSUS 2.0 — Entity Engine (canonical documentation)
This is the official reference for AUSUS 2.0, the metadata-first Entity Engine vertical slice (EE-RFC-011 Entity Engine / EE-RFC-012 Entity Definition). It is a self-contained line of packages —
ausus/kernel(Definition/Contracts/ Compiled),ausus/entity-engine,ausus/authoring,ausus/cli,ausus/persistence-memory,ausus/api-runtime,ausus/view-system, and@ausus/react-renderer— validated by three reference applications (CRM, Teranga PMS, SGH).The repository also contains an earlier
standard-stacklineage (ausus/standard-stack,ausus/api-http,ausus/runtime-default,@ausus/renderer-react, RFC-001…018) documented by the rootREADME.mdand the historicalRELEASE-NOTES-v0.1.x.md. This 2.0 documentation describes only the Entity Engine slice and does not modify the historical material.
Start here
New to AUSUS 2.0? Follow the Quick Start — the single
recommended path, from composer require to a rendered UI, outside the monorepo.
Reference (read in any order)
- Introduction — what AUSUS is, why it exists, principles.
- Architecture — the L0 → L6 layering with a diagram.
- Pipeline — DSL → … → React Renderer, step by step.
- Inside the monorepo — a first project — the same walkthrough resolved via Composer path repositories, for contributors working in this repository. External users should follow the Quick Start instead.
- Reference applications — CRM, Teranga PMS, SGH.
- Capabilities — actions, guards, expand, views, runtime, API, React, repository.
- Known limits of 2.0 — documented honestly, no proposed fixes.
At a glance
DSL (entities/*.php)
→ EntityDefinition (EE-RFC-012 declarative model)
→ Compiler (global closure + canonicalise + content-hash)
→ EntitySchema (frozen, content-addressed)
→ FileSchemaRepository (.ausus/schemas/<hash>.json + index.json)
→ EntityEngine::bind() (schema + PersistenceDriver → RuntimeEntity)
→ RuntimeEntity (invoke / read, data-aware authorization)
→ API Runtime (GET schema · GET projection · POST action)
→ React Renderer (auto navigation, tables, forms)
→ View System (ViewDefinition → pages/sections)
- Requirements: PHP 8.3+ ; Node 18+ (for the React renderer / TS tests).
- Status: all 20 PHP test suites and 5 JS suites green (see each section).
- License: MIT.