The Grammar of Sovereignty
Defining the core building blocks of the Sculpt DSL.
1. Domains (The Law of Primitives)
In Sculpt, primitives are never loose. They are always bound to a **Domain**. A Domain is a machine-verifiable wrapper that ensures data integrity at the source.
domain Age = number(0..120)
domain TaskName = string(min: 2, max: 280)
2. Sculptures (The Law of Entities)
A Sculpture is the equivalent of a class, but with strict physical limits. Every sculpture represents a node in the state lattice.
sculpture Profile {
name: Name
age: Age
}
Constraint: The compiler will reject any sculpture with more than two instance variables (Rule 8).
3. Acts (The Law of Behavior)
Data in a sculpture is immutable from the outside. The only way to evolve state is through an Act.
act updateAge(newAge: Age) {
age = newAge
emit ProfileUpdated(age)
}