The Factory
How a moment works
Every moment of every being walks the same five beats. The Factory is the engine that walks them.
Before the cycle: what is a being?
A moment belongs to a being. Before the five beats make sense, it helps to know what a being IS and what kinds of cognition drive one. Scripted, LLM, human, composite . the substrate treats them all the same. Read Being types if any of those words need a footing.
The cycle
Time in TreeOS is made of moments. A moment is one being, one face of the world, one act. The Factory is what assembles a moment, runs it, and writes the result down.
Five beats. They always happen in order, and they always repeat. A being lives by walking this loop again and again.
- 1
Intake
A summon arrives. The being's inbox gains a new entry. Until the scheduler picks it up, nothing else happens.
- 2
Assign
The scheduler picks the entry off the queue and hands it to the stamper. The being's role is resolved. An Act row is planned. The moment now has a frame.
- 3
Fold
The reels the being depends on are folded. Every Fact behind them collapsed into a current view. This is what the being will see when it acts. Reads before writes.
- 4
Momentum
The being acts. Its role runs. New Facts accumulate, not yet committed. They are staged in the moment's ΔF, waiting for the seal.
- 5
Stamped
The Act row materializes and every Fact in ΔF commits together, in one Mongo transaction. The reels grow. The past is now larger by one moment. The next intake can begin.
Why the cycle matters
A being is not a thing that holds state. A being is whoever stamped this reel of Facts. To know who a being is, fold their reel. To act AS a being, walk a moment through this cycle.
That's the whole engine. The rest of the Factory tour unpacks each beat with examples.
If you came for the verbs
The four verbs (SEE / DO / SUMMON / BE) are how the outside world talks to TreeOS. Each one of them, when it arrives, kicks off a moment that walks the five beats above. Read about IBP for the protocol side.
