Application state and reactivity
Authorities: the reactive activation (RAC) and dependency/invalidation/recovery contracts are carried verbatim in Authorities — this chapter is pedagogical and does not replace them.
An application’s state gathers the concrete information used in its evaluations and transitions. Its organization distinguishes the authoritative semantic source, the operational states, the evaluation instances and the derived results. Those parts evolve under different contracts and are related by explicit identities and dependencies.
Source and operational state
The source determines which declarations and semantic data constitute the selected authoritative basis. The operational state records the progress of the work: invocations, durable operations, attempts, evidence and other elements of the execution mechanisms.
An evaluation uses a defined basis and produces a result. The publication of a source successor belongs to the evolution contract. Execution can, therefore, advance without each operational change constituting a new semantic revision.
Evaluation instances
An evaluation instance binds the application to the inputs and the basis under which it will be interpreted. Its identity lets results be associated with the set of conditions actually used.
The binding to another basis is represented by a new instance. That organization keeps the meaning of earlier results and makes it possible to distinguish a repeated evaluation from an evaluation performed over new information.
The operation’s contract establishes which inputs are fixed at the start and which can be bound during execution by explicit rules. A reference obtained from an earlier transition keeps the relation to the state that introduced it.
Read dependencies
A result’s validity can depend on the information read, its versions and the presence or absence conditions found. A query selecting the records of a period can be affected both by the change of a known item and by the arrival of a new item satisfying its pattern.
The dependencies used for reuse need to reflect the operation’s contract. The references to the read values are part of that basis; scope restrictions, selection criteria and negative dependencies can also join the result.
When a revision changes the relevant interpretation, the impact on the result is evaluated according to the evolution contract. The result can remain usable, require new computation, remain historical only or have an impact not yet determined.
Reactive update
A reactive integration relates input changes to the applications depending on them. The update can recompute an operation, reuse admissible results or process increments under a specific contract. The execution strategy is chosen according to the guarantees required by the consumer.
The application keeps the basis of each published result. A visualization can receive successive evaluations of a query, while a decision consumes a determined revision and records that binding. The update of the visualization and the update of a decision’s basis are different operations.
A change in policy, authorization or context can be as relevant as a change in the data’s content. The integration uses the declared semantic dependencies, including the normative and temporal bases needed by the judgment.
Increments and partial results
Incremental processing uses a contract determining the meaning of intermediate states, their order, their revisions and the finalization condition. The consumer identifies which increments it can accept and which transitions it can perform before completion.
An operational dashboard can present new measurements as they arrive. An operation requiring complete coverage of an interval also tracks the gaps and the completion state. The continuous presentation of data and the authorization to conclude a judgment follow their own criteria.
Concurrency and history
Independent evaluations can be executed in parallel. Transitions interacting through a source, an authority or other shared state use contracts of ordering, isolation or non-interference.
The history relates the selected states, the evaluations performed and the results made available. Recovery after an interruption uses those identities to resume control or reconstruct results, according to the operational contract.