Cause ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Interface · import type { Cause } from '@holostep-configurators/runtime-client/contract'; · stable · since 2.0.0 · section 2. Operations, reports, causes, problems
What caused a commit. On every state event, every commit-feed entry and every Report (as
op, seq, origin).
| Member | Kind | Summary |
|---|---|---|
op |
property | The operation that made the commit. |
seq |
property | +1 per commit of any kind; the current session.seq on an equal write's 'history:changed'. |
revision |
property | session.revision after this commit, or the current one for an equal write. |
actor |
property | Who made it: the write's actor, else its expectGroup's, else 'app'; 'shopper' for canvas input. |
origin |
property | The write's origin tag; null when none was given. |
kind |
property | 'write': one autocommit write; 'transaction': session.transaction; 'undo' and 'redo'; 'patch': applyPatch; 'load': a setSceneModel with no earlier model (boot loads none), never an undo step (its result is the… |
export interface Cause {
readonly op: OpId;
readonly seq: number;
readonly revision: number;
readonly actor: Actor;
readonly origin: string | null;
readonly kind: 'write' | 'transaction' | 'undo' | 'redo' | 'patch' | 'load' | 'restore' | 'input' | 'other';
}
| Rule | Result |
|---|---|
| 1. Neutral name | pass: Cause names no product |
| 2. A precedent | pass: a correctness rule (rows X2) |
| 3. Two apps, or labs | pass: 16 apps (ledger: app-4fd23bc869, app-822bb9d6aa, app-8675b3225c, app-b362a81c85, app-bcb7ef21da, app-c1384707fc, app-e3b47169bc, app-e61a0b42ad and 8 more) |
| 4. The cheaper fix first | decided per need in Appendix B: rows X2 at tier stable (a member only where no rule, data, asset or app code serves the need) |