# `Events['assembly:changed']`

> 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 [`Events`](Events.md) · stable · since 2.0.0

```ts
'assembly:changed': {
  readonly cause: Cause;
  readonly connections: readonly Connection[];
};
```

The connections changed in a commit: one event per commit whose connections differ from the
previous commit's, whatever changed them (`attach`, `detach`, [`setSceneModel`](Writer.setSceneModel.md), [`applyPatch`](Writer.applyPatch.md),
undo, redo, a restore, a reload, or a stale connection removed, spec section 6.12, A6 and
A10); `cause.kind` tells which. A commit that leaves them equal fires nothing, also one that
re-attaches the same chain. `connections` is the whole list after the commit.

## Fields

<a id="cause"></a>
### `cause`

```ts
readonly cause: Cause;
```

<a id="connections"></a>
### `connections`

```ts
readonly connections: readonly Connection[];
```

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `assembly:changed` names no product |
| 2. A precedent | not recorded: no ledger row (coverage.json) names this member or its owner |
| 3. Two apps, or labs | pass: 21 apps (fleet cross-check: app-04c2774145, app-0c773a4ee3, app-37356bf09f, app-378d190f1b, app-4762caacdc, app-4fd23bc869, app-822bb9d6aa, app-8675b3225c and 13 more) |
| 4. The cheaper fix first | not recorded per member (Appendix B decides it per need) |
