# `Cause.kind`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`Cause`](Cause.md) · stable · since 2.0.0

```ts
readonly kind: 'write' | 'transaction' | 'undo' | 'redo' | 'patch' | 'load' | 'restore' | 'input' | 'other';
```

'write': one autocommit write; 'transaction': [`session.transaction`](Session.transaction.md); 'undo' and 'redo';
'patch': [`applyPatch`](Writer.applyPatch.md); 'load': a [`setSceneModel`](Writer.setSceneModel.md) with no earlier model ([`boot`](boot.md) loads none),
never an undo step (its result is the floor of history);
'restore': connections or state put back by the runtime; 'input': a runtime-made commit from
canvas input (a drag with `commit: 'runtime'`).

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `kind` names no product |
| 2. A precedent | pass (through its owner [`Cause`](Cause.md)): a correctness rule (rows `X2`) |
| 3. Two apps, or labs | pass (through its owner [`Cause`](Cause.md)): 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` (through its owner [`Cause`](Cause.md)) at tier stable (a member only where no rule, data, asset or app code serves the need) |
