The Lattice & The Bridge

How Sirpi reconciles strict objects with the mutable DOM.

The Intent-Driven DOM

In Sirpi, the DOM is not a direct target for manipulation. It is a projection of the state lattice. Because Rule 9 forbids getters and setters, traditional data-binding is impossible. Sirpi solves this via Targeted Intent Reconciliation.

1. The Pure Lattice

Your business logic exists in a lattice of tiny, single-purpose objects. These objects never touch the browser. They take commands and emit Intents (Value Objects).

2. The Surgical Bridge

The Sirpi Runtime acts as a high-speed bridge. It maintains a mapping of Intents to specific DOM nodes. When an object emits a PriceChanged Intent, the runtime performs a surgical O(1) update on exactly the nodes that care about that price.

The LLM-Native Core

Sirpi is designed to be the ultimate target for AI-driven development. By enforcing extreme modularity and small entities, it provides the LLM with a high-signal environment where logic is impossible to hallucinate and side-effects are strictly controlled.