indigo-matter-bridge 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,32 @@
25
25
  * baseline stays, so the drift keeps being reported until a human resolves it
26
26
  * with §3.11.
27
27
  *
28
+ * **One narrow, deliberate exception (issue #140).** An entry the node itself
29
+ * marked {@link EndpointRecord.numberVoid} is not a drifted entry at all —
30
+ * {@link EndpointMapStore.voidNumbers} is only ever called at the two points
31
+ * where matter.js has just erased its OWN number allocation along with every
32
+ * fabric (§3.10's `factory_reset preserveEndpointNumbers: true`, and the
33
+ * last-fabric self-reset). matter.js is always the allocator; this map is only
34
+ * ever its witness (see below), and with no fabric left there is no paired
35
+ * ecosystem that could still be holding the old numbers to disagree with —
36
+ * adoption there is unobservable outside this node. {@link
37
+ * EndpointMapStore.check} adopts a void entry's live number silently instead
38
+ * of reporting it. An entry that was never voided still drifts exactly as
39
+ * documented above; only the reset that erased matter.js's own allocation
40
+ * earns the adoption.
41
+ *
42
+ * The marker's lifetime is bounded by when its `UniqueID` next comes back
43
+ * LIVE, not by the moment of the reset: only entries `check()` actually sees
44
+ * get to adopt, so a device that stays offline through the first post-reset
45
+ * reconcile simply keeps its VOID marker — still unadopted — until it next
46
+ * exports, however much later that is. That is still safe even if fabrics
47
+ * have been re-paired by then: the number it eventually adopts is the one
48
+ * matter.js handed out fresh after THIS reset, not a stale one, and no
49
+ * ecosystem ever saw the old number in between (it was never live to be
50
+ * observed). The safety argument above just has to be read as "no fabric
51
+ * survived the reset that erased the allocation", not "no fabric exists at
52
+ * the moment of adoption".
53
+ *
28
54
  * **It also carries what it takes to REBUILD an endpoint** (issue #141). Numbers
29
55
  * alone were enough while the file was only a witness, but a node that comes
30
56
  * online with an empty aggregator and waits for the plugin tells every paired
@@ -99,6 +125,15 @@ export declare const ENDPOINT_MAP_FILE = "endpoint-map.json";
99
125
  * endpoint set can be rebuilt without the plugin. Version 1 files are still
100
126
  * read — see {@link ENDPOINT_MAP_VERSION_LEGACY} — because a v1 file holds the
101
127
  * one thing that can never be re-derived: the numbers paired ecosystems know.
128
+ *
129
+ * **Still 2 as of issue #140's `numberVoid` marker — not bumped to 3.** A
130
+ * schema bump exists to protect an OLD build from a NEW file it cannot parse;
131
+ * `numberVoid` needs no such protection, because every reader here (old and
132
+ * new) reaches a field by name (`candidate.number`/`.role`/`.label`) rather
133
+ * than by validating the object shape as a whole, so an old build reading a
134
+ * file with an unknown extra key simply never looks at it — no throw, no
135
+ * `readRecord` rejection, the entry loads exactly as it would without the
136
+ * marker. There is nothing here for a version bump to guard.
102
137
  */
103
138
  export declare const ENDPOINT_MAP_VERSION = 2;
104
139
  /** The numbers-only shape shipped by E5. Still read; never written again. */
@@ -117,6 +152,19 @@ export interface EndpointRecord {
117
152
  number: number;
118
153
  role?: string;
119
154
  label?: string;
155
+ /**
156
+ * Set by {@link EndpointMapStore.voidNumbers} (issue #140): `number` is a
157
+ * pre-reset value that {@link EndpointMapStore.check} must silently ADOPT
158
+ * from the next live number it sees for this `UniqueID`, rather than
159
+ * report as drift. Absent (not `false`) on every ordinary entry, so a plain
160
+ * `JSON.stringify` of a non-void record is unchanged from before #140 —
161
+ * `readRecord` only ever sets this to `true` and never anything else. An
162
+ * old build reading a file that has it simply never looks at the key: it
163
+ * destructures `number`/`role`/`label` off the parsed object by name, so
164
+ * an unrecognised extra property is inert, not a crash — see the schema
165
+ * version note below, which is why this stays version 2.
166
+ */
167
+ numberVoid?: true;
120
168
  }
121
169
  /** The on-disk shape (v2). */
122
170
  export interface EndpointMapFile {
@@ -222,8 +270,50 @@ export declare class EndpointMapStore {
222
270
  * order the numbers were first recorded — irrelevant to matter.js, which
223
271
  * keys each endpoint's number on its `Endpoint.id`, but stable, which makes
224
272
  * the log read the same way twice.
273
+ *
274
+ * **`numberVoid` is deliberately not part of this filter (issue #140).** A
275
+ * voided number is still the best guess for `createEndpoint`'s
276
+ * `Endpoint.id`-keyed restore — matter.js hands back whatever it currently
277
+ * has for that id regardless of what this map believes, and the {@link
278
+ * check} that follows `server.start()` is what reconciles the map to
279
+ * whatever number came back. Excluding void entries here would only widen
280
+ * the online-and-empty window issue #141 already closed, for no benefit.
225
281
  */
226
282
  restorable(): RestorableEndpoint[];
283
+ /**
284
+ * A device was **un-exported**: keep its number, drop what would rebuild it.
285
+ *
286
+ * The other half of {@link restorable}, and without it the restore is a bug
287
+ * rather than a fix. `check` only ever *adds* and *refreshes*, so once an
288
+ * entry has carried a `role`/`label` it carries them for ever — and a device
289
+ * the user deliberately un-exported therefore stayed restorable, was
290
+ * re-created as a child endpoint on every single boot, and was removed again
291
+ * by the plugin's next attach seconds later. That is precisely the
292
+ * appear-then-vanish churn issue #141 exists to eliminate, aimed at the
293
+ * devices the user had already told us to stop exporting, and it regresses
294
+ * XAC7's "un-exported accessories are gone".
295
+ *
296
+ * **The number stays.** §3.3 retains the allocation on purpose, so re-adding
297
+ * the same device gets the same endpoint number back and paired ecosystems
298
+ * see the accessory they already know rather than a new one. Deleting the
299
+ * entry outright would throw that away to save three fields. Clearing only
300
+ * the restoration half makes the entry non-restorable — {@link restorable}
301
+ * filters on `role` **and** `label` — while leaving the identity intact, and
302
+ * one re-export refills it through the ordinary {@link check}.
303
+ *
304
+ * **Only a caller that watched a specific endpoint go may call this.** An
305
+ * empty live set is not evidence of anything: a node that has never attached
306
+ * has none, and `seed([])` deliberately knows nothing. So this takes the
307
+ * uniqueIds that were actually removed rather than inferring them from
308
+ * whatever happens to be live, and `node.ts` derives them by diffing the
309
+ * live set across one mutation. A factory reset is deliberately NOT such a
310
+ * caller: `erase()` wipes matter.js's endpoints, but the user un-exported
311
+ * nothing and the plugin's re-attach re-creates the same set.
312
+ *
313
+ * Returns how many entries actually lost something, so a no-op costs no
314
+ * disk write.
315
+ */
316
+ forget(uniqueIds: readonly string[]): number;
227
317
  /**
228
318
  * Compare the live endpoint numbers against the map (PRD §4.3).
229
319
  *
@@ -236,8 +326,51 @@ export declare class EndpointMapStore {
236
326
  * retains the allocation so re-adding the same device restores the same
237
327
  * number, and forgetting it here would throw away the very baseline that
238
328
  * makes a re-add verifiable.
329
+ *
330
+ * **A `numberVoid` entry is adopted, not drift-checked (issue #140).** See
331
+ * the class comment for why that is safe. The live number is taken as the
332
+ * new baseline and the marker is cleared — even when the live number
333
+ * happens to already equal the stale one, because the marker itself is
334
+ * what has to stop being true, not just the mismatch it was guarding
335
+ * against.
239
336
  */
240
337
  check(live: readonly LiveEndpointNumber[]): DriftEntry[];
338
+ /**
339
+ * §3.10's preserving reset and the last-fabric self-reset (issue #140) —
340
+ * mark every entry's number as no longer trustworthy, WITHOUT discarding
341
+ * it, so the next {@link check} adopts whatever number each `UniqueID`
342
+ * comes back with instead of reporting it as drift forever.
343
+ *
344
+ * **Why this is safe — see the class comment for the full argument.** In
345
+ * one line: matter.js is always the allocator and this map only ever
346
+ * witnesses it, and both call sites reach this with an empty fabric set,
347
+ * so nothing paired can still be holding the numbers this call is about
348
+ * to let move.
349
+ *
350
+ * Unlike {@link rebuild}, this keeps every entry (role/label survive
351
+ * untouched — a void number does not make an endpoint any less
352
+ * restorable, see {@link restorable}) and unlike {@link discard}, it
353
+ * throws nothing away: a caller who wants "adopt whatever exists right
354
+ * now" already has {@link rebuild}, and this is deliberately weaker than
355
+ * that — it only stops treating the CURRENT numbers as ground truth.
356
+ *
357
+ * A no-op on an empty map: nothing to mark is not worth a write, and a
358
+ * bridge that has never exported anything must not have this manufacture
359
+ * a baseline out of nothing.
360
+ *
361
+ * Returns whether the voided baseline reached disk — `false` on the
362
+ * empty-map no-op as well as on a failed write, since neither actually
363
+ * persisted anything new. A caller that has to tell those two apart
364
+ * (a no-op is not a failure worth warning about) should check {@link size}
365
+ * before calling, the way both `node.ts` call sites now do.
366
+ *
367
+ * Also drops {@link checked}: a baseline the node itself just declared
368
+ * VOID has not been verified against anything, and leaving the flag set
369
+ * would have §4.3's `driftChecked: true` claim "checked, nothing moved"
370
+ * over numbers that are, by construction, not yet trusted. The first
371
+ * post-reset {@link check} against live entries earns it back.
372
+ */
373
+ voidNumbers(why: string): boolean;
241
374
  /**
242
375
  * Adopt a baseline for a bridge that is already commissioned but has no map
243
376
  * — the E5 upgrade path (PRD §7).
@@ -248,6 +381,16 @@ export declare class EndpointMapStore {
248
381
  * true is the migration; refusing to serve until a human confirms a
249
382
  * *rebuild* would take a working bridge offline to fix a file it never had.
250
383
  *
384
+ * **This is a full REPLACE, not a merge**, and the next caller has to mean
385
+ * it: whatever is in memory is dropped, so seeding a partial list silently
386
+ * discards the numbers of everything absent from it — the one thing in this
387
+ * file that cannot be re-derived. Today's single caller
388
+ * (`node.bootstrapEndpointMap`) passes `[]` against a map that is by
389
+ * definition absent, so it drops nothing; the assertion below is what keeps
390
+ * that true if a later caller has a map in hand. A caller that wants to add
391
+ * to a baseline wants {@link check}, and one that wants to replace a
392
+ * *disagreeing* baseline wants {@link rebuild}, which quarantines first.
393
+ *
251
394
  * Returns whether the baseline reached disk.
252
395
  */
253
396
  seed(numbers: readonly LiveEndpointNumber[], why: string): boolean;
@@ -256,9 +399,10 @@ export declare class EndpointMapStore {
256
399
  *
257
400
  * The recovery path out of `endpoint_map_invalid`, and the only operation
258
401
  * here that discards a mapping. It does not renumber anything in matter.js:
259
- * whatever duplication a lost map implies has already happened by the time a
260
- * user is asked to confirm this, and what the rebuild does is stop refusing
261
- * and start telling the truth about the numbers that now exist.
402
+ * whatever duplication lost Matter storage implies has already happened by
403
+ * the time a user is asked to confirm this, and what the rebuild does is
404
+ * stop refusing and start telling the truth about the numbers that now
405
+ * exist.
262
406
  */
263
407
  rebuild(live: readonly LiveEndpointNumber[]): boolean;
264
408
  /**
@@ -25,6 +25,32 @@
25
25
  * baseline stays, so the drift keeps being reported until a human resolves it
26
26
  * with §3.11.
27
27
  *
28
+ * **One narrow, deliberate exception (issue #140).** An entry the node itself
29
+ * marked {@link EndpointRecord.numberVoid} is not a drifted entry at all —
30
+ * {@link EndpointMapStore.voidNumbers} is only ever called at the two points
31
+ * where matter.js has just erased its OWN number allocation along with every
32
+ * fabric (§3.10's `factory_reset preserveEndpointNumbers: true`, and the
33
+ * last-fabric self-reset). matter.js is always the allocator; this map is only
34
+ * ever its witness (see below), and with no fabric left there is no paired
35
+ * ecosystem that could still be holding the old numbers to disagree with —
36
+ * adoption there is unobservable outside this node. {@link
37
+ * EndpointMapStore.check} adopts a void entry's live number silently instead
38
+ * of reporting it. An entry that was never voided still drifts exactly as
39
+ * documented above; only the reset that erased matter.js's own allocation
40
+ * earns the adoption.
41
+ *
42
+ * The marker's lifetime is bounded by when its `UniqueID` next comes back
43
+ * LIVE, not by the moment of the reset: only entries `check()` actually sees
44
+ * get to adopt, so a device that stays offline through the first post-reset
45
+ * reconcile simply keeps its VOID marker — still unadopted — until it next
46
+ * exports, however much later that is. That is still safe even if fabrics
47
+ * have been re-paired by then: the number it eventually adopts is the one
48
+ * matter.js handed out fresh after THIS reset, not a stale one, and no
49
+ * ecosystem ever saw the old number in between (it was never live to be
50
+ * observed). The safety argument above just has to be read as "no fabric
51
+ * survived the reset that erased the allocation", not "no fabric exists at
52
+ * the moment of adoption".
53
+ *
28
54
  * **It also carries what it takes to REBUILD an endpoint** (issue #141). Numbers
29
55
  * alone were enough while the file was only a witness, but a node that comes
30
56
  * online with an empty aggregator and waits for the plugin tells every paired
@@ -91,6 +117,15 @@ export const ENDPOINT_MAP_FILE = "endpoint-map.json";
91
117
  * endpoint set can be rebuilt without the plugin. Version 1 files are still
92
118
  * read — see {@link ENDPOINT_MAP_VERSION_LEGACY} — because a v1 file holds the
93
119
  * one thing that can never be re-derived: the numbers paired ecosystems know.
120
+ *
121
+ * **Still 2 as of issue #140's `numberVoid` marker — not bumped to 3.** A
122
+ * schema bump exists to protect an OLD build from a NEW file it cannot parse;
123
+ * `numberVoid` needs no such protection, because every reader here (old and
124
+ * new) reaches a field by name (`candidate.number`/`.role`/`.label`) rather
125
+ * than by validating the object shape as a whole, so an old build reading a
126
+ * file with an unknown extra key simply never looks at it — no throw, no
127
+ * `readRecord` rejection, the entry loads exactly as it would without the
128
+ * marker. There is nothing here for a version bump to guard.
94
129
  */
95
130
  export const ENDPOINT_MAP_VERSION = 2;
96
131
  /** The numbers-only shape shipped by E5. Still read; never written again. */
@@ -130,6 +165,11 @@ function readRecord(value) {
130
165
  if (isNonEmptyString(candidate.label)) {
131
166
  record.label = candidate.label;
132
167
  }
168
+ // Tolerant, like role/label: anything other than a literal `true` is
169
+ // simply not a void marker, rather than a reason to reject the entry.
170
+ if (candidate.numberVoid === true) {
171
+ record.numberVoid = true;
172
+ }
133
173
  return record;
134
174
  }
135
175
  /**
@@ -239,7 +279,7 @@ function noteRestorable(record, entry) {
239
279
  return changed;
240
280
  }
241
281
  /** Why {@link EndpointMapStore.check} is writing, for the log line. */
242
- function persistReason(added, refreshed) {
282
+ function persistReason(added, refreshed, adopted) {
243
283
  const parts = [];
244
284
  if (added > 0) {
245
285
  parts.push(`recorded ${added} new endpoint number(s)`);
@@ -247,6 +287,9 @@ function persistReason(added, refreshed) {
247
287
  if (refreshed > 0) {
248
288
  parts.push(`refreshed ${refreshed} endpoint role/label(s)`);
249
289
  }
290
+ if (adopted > 0) {
291
+ parts.push(`adopted ${adopted} renumbered endpoint number(s)`);
292
+ }
250
293
  return parts.length === 0 ? "retried after a failed write" : parts.join(" and ");
251
294
  }
252
295
  /**
@@ -364,6 +407,14 @@ export class EndpointMapStore {
364
407
  * order the numbers were first recorded — irrelevant to matter.js, which
365
408
  * keys each endpoint's number on its `Endpoint.id`, but stable, which makes
366
409
  * the log read the same way twice.
410
+ *
411
+ * **`numberVoid` is deliberately not part of this filter (issue #140).** A
412
+ * voided number is still the best guess for `createEndpoint`'s
413
+ * `Endpoint.id`-keyed restore — matter.js hands back whatever it currently
414
+ * has for that id regardless of what this map believes, and the {@link
415
+ * check} that follows `server.start()` is what reconciles the map to
416
+ * whatever number came back. Excluding void entries here would only widen
417
+ * the online-and-empty window issue #141 already closed, for no benefit.
367
418
  */
368
419
  restorable() {
369
420
  const restorable = [];
@@ -380,6 +431,56 @@ export class EndpointMapStore {
380
431
  }
381
432
  return restorable;
382
433
  }
434
+ /**
435
+ * A device was **un-exported**: keep its number, drop what would rebuild it.
436
+ *
437
+ * The other half of {@link restorable}, and without it the restore is a bug
438
+ * rather than a fix. `check` only ever *adds* and *refreshes*, so once an
439
+ * entry has carried a `role`/`label` it carries them for ever — and a device
440
+ * the user deliberately un-exported therefore stayed restorable, was
441
+ * re-created as a child endpoint on every single boot, and was removed again
442
+ * by the plugin's next attach seconds later. That is precisely the
443
+ * appear-then-vanish churn issue #141 exists to eliminate, aimed at the
444
+ * devices the user had already told us to stop exporting, and it regresses
445
+ * XAC7's "un-exported accessories are gone".
446
+ *
447
+ * **The number stays.** §3.3 retains the allocation on purpose, so re-adding
448
+ * the same device gets the same endpoint number back and paired ecosystems
449
+ * see the accessory they already know rather than a new one. Deleting the
450
+ * entry outright would throw that away to save three fields. Clearing only
451
+ * the restoration half makes the entry non-restorable — {@link restorable}
452
+ * filters on `role` **and** `label` — while leaving the identity intact, and
453
+ * one re-export refills it through the ordinary {@link check}.
454
+ *
455
+ * **Only a caller that watched a specific endpoint go may call this.** An
456
+ * empty live set is not evidence of anything: a node that has never attached
457
+ * has none, and `seed([])` deliberately knows nothing. So this takes the
458
+ * uniqueIds that were actually removed rather than inferring them from
459
+ * whatever happens to be live, and `node.ts` derives them by diffing the
460
+ * live set across one mutation. A factory reset is deliberately NOT such a
461
+ * caller: `erase()` wipes matter.js's endpoints, but the user un-exported
462
+ * nothing and the plugin's re-attach re-creates the same set.
463
+ *
464
+ * Returns how many entries actually lost something, so a no-op costs no
465
+ * disk write.
466
+ */
467
+ forget(uniqueIds) {
468
+ let forgotten = 0;
469
+ for (const uniqueId of uniqueIds) {
470
+ const record = this.#endpoints.get(uniqueId);
471
+ if (record === undefined || (record.role === undefined && record.label === undefined)) {
472
+ continue;
473
+ }
474
+ delete record.role;
475
+ delete record.label;
476
+ forgotten += 1;
477
+ }
478
+ if (forgotten > 0) {
479
+ this.persist(`cleared the role/label of ${forgotten} un-exported endpoint(s), keeping their ` +
480
+ "numbers so a re-export returns the same accessory");
481
+ }
482
+ return forgotten;
483
+ }
383
484
  /**
384
485
  * Compare the live endpoint numbers against the map (PRD §4.3).
385
486
  *
@@ -392,11 +493,19 @@ export class EndpointMapStore {
392
493
  * retains the allocation so re-adding the same device restores the same
393
494
  * number, and forgetting it here would throw away the very baseline that
394
495
  * makes a re-add verifiable.
496
+ *
497
+ * **A `numberVoid` entry is adopted, not drift-checked (issue #140).** See
498
+ * the class comment for why that is safe. The live number is taken as the
499
+ * new baseline and the marker is cleared — even when the live number
500
+ * happens to already equal the stale one, because the marker itself is
501
+ * what has to stop being true, not just the mismatch it was guarding
502
+ * against.
395
503
  */
396
504
  check(live) {
397
505
  const drift = [];
398
506
  let added = 0;
399
507
  let refreshed = 0;
508
+ let adopted = 0;
400
509
  for (const entry of live) {
401
510
  const record = this.#endpoints.get(entry.uniqueId);
402
511
  if (record === undefined) {
@@ -411,17 +520,28 @@ export class EndpointMapStore {
411
520
  if (noteRestorable(record, entry)) {
412
521
  refreshed += 1;
413
522
  }
523
+ if (record.numberVoid) {
524
+ record.number = entry.endpointNumber;
525
+ delete record.numberVoid;
526
+ adopted += 1;
527
+ continue;
528
+ }
414
529
  if (record.number !== entry.endpointNumber) {
415
530
  drift.push({ uniqueId: entry.uniqueId, expected: record.number, actual: entry.endpointNumber });
416
531
  }
417
532
  }
533
+ if (adopted > 0) {
534
+ this.log(`Adopted ${adopted} endpoint number(s) renumbered by the factory reset; matter.js's ` +
535
+ "allocation was erased with the fabrics, so no paired ecosystem holds the old " +
536
+ "numbers — this is the reset's own renumbering, not drift.");
537
+ }
418
538
  // `#dirty` is the retry: a write that failed last time leaves the map
419
539
  // owing the disk something even when this pass added nothing, and the
420
540
  // steady state (`added === 0`, clean) still costs no I/O. Without it a
421
541
  // full disk at the moment of the first check would never be revisited,
422
542
  // and `checked` — see the `#dirty` field — would never come true again.
423
- if (added > 0 || refreshed > 0 || this.#dirty) {
424
- this.persist(persistReason(added, refreshed));
543
+ if (added > 0 || refreshed > 0 || adopted > 0 || this.#dirty) {
544
+ this.persist(persistReason(added, refreshed, adopted));
425
545
  }
426
546
  // An empty comparison compared nothing, so it cannot make `driftChecked`
427
547
  // true — the same rule {@link seed} already applies. §4.3 says
@@ -435,6 +555,51 @@ export class EndpointMapStore {
435
555
  }
436
556
  return drift;
437
557
  }
558
+ /**
559
+ * §3.10's preserving reset and the last-fabric self-reset (issue #140) —
560
+ * mark every entry's number as no longer trustworthy, WITHOUT discarding
561
+ * it, so the next {@link check} adopts whatever number each `UniqueID`
562
+ * comes back with instead of reporting it as drift forever.
563
+ *
564
+ * **Why this is safe — see the class comment for the full argument.** In
565
+ * one line: matter.js is always the allocator and this map only ever
566
+ * witnesses it, and both call sites reach this with an empty fabric set,
567
+ * so nothing paired can still be holding the numbers this call is about
568
+ * to let move.
569
+ *
570
+ * Unlike {@link rebuild}, this keeps every entry (role/label survive
571
+ * untouched — a void number does not make an endpoint any less
572
+ * restorable, see {@link restorable}) and unlike {@link discard}, it
573
+ * throws nothing away: a caller who wants "adopt whatever exists right
574
+ * now" already has {@link rebuild}, and this is deliberately weaker than
575
+ * that — it only stops treating the CURRENT numbers as ground truth.
576
+ *
577
+ * A no-op on an empty map: nothing to mark is not worth a write, and a
578
+ * bridge that has never exported anything must not have this manufacture
579
+ * a baseline out of nothing.
580
+ *
581
+ * Returns whether the voided baseline reached disk — `false` on the
582
+ * empty-map no-op as well as on a failed write, since neither actually
583
+ * persisted anything new. A caller that has to tell those two apart
584
+ * (a no-op is not a failure worth warning about) should check {@link size}
585
+ * before calling, the way both `node.ts` call sites now do.
586
+ *
587
+ * Also drops {@link checked}: a baseline the node itself just declared
588
+ * VOID has not been verified against anything, and leaving the flag set
589
+ * would have §4.3's `driftChecked: true` claim "checked, nothing moved"
590
+ * over numbers that are, by construction, not yet trusted. The first
591
+ * post-reset {@link check} against live entries earns it back.
592
+ */
593
+ voidNumbers(why) {
594
+ if (this.#endpoints.size === 0) {
595
+ return false;
596
+ }
597
+ for (const record of this.#endpoints.values()) {
598
+ record.numberVoid = true;
599
+ }
600
+ this.#checked = false;
601
+ return this.persist(`voided every endpoint number — ${why}`);
602
+ }
438
603
  /**
439
604
  * Adopt a baseline for a bridge that is already commissioned but has no map
440
605
  * — the E5 upgrade path (PRD §7).
@@ -445,9 +610,25 @@ export class EndpointMapStore {
445
610
  * true is the migration; refusing to serve until a human confirms a
446
611
  * *rebuild* would take a working bridge offline to fix a file it never had.
447
612
  *
613
+ * **This is a full REPLACE, not a merge**, and the next caller has to mean
614
+ * it: whatever is in memory is dropped, so seeding a partial list silently
615
+ * discards the numbers of everything absent from it — the one thing in this
616
+ * file that cannot be re-derived. Today's single caller
617
+ * (`node.bootstrapEndpointMap`) passes `[]` against a map that is by
618
+ * definition absent, so it drops nothing; the assertion below is what keeps
619
+ * that true if a later caller has a map in hand. A caller that wants to add
620
+ * to a baseline wants {@link check}, and one that wants to replace a
621
+ * *disagreeing* baseline wants {@link rebuild}, which quarantines first.
622
+ *
448
623
  * Returns whether the baseline reached disk.
449
624
  */
450
625
  seed(numbers, why) {
626
+ if (this.#endpoints.size > 0 && numbers.length < this.#endpoints.size) {
627
+ throw new Error(`refusing to seed ${numbers.length} endpoint number(s) over a baseline of ` +
628
+ `${this.#endpoints.size}: seed() replaces the whole map, so this would discard ` +
629
+ "endpoint numbers paired ecosystems are keyed on — use check() to add, or " +
630
+ "rebuild() to deliberately replace");
631
+ }
451
632
  this.#endpoints = new Map(numbers.map(entry => [entry.uniqueId, recordFor(entry)]));
452
633
  this.#problem = undefined;
453
634
  this.#checked = numbers.length > 0;
@@ -458,9 +639,10 @@ export class EndpointMapStore {
458
639
  *
459
640
  * The recovery path out of `endpoint_map_invalid`, and the only operation
460
641
  * here that discards a mapping. It does not renumber anything in matter.js:
461
- * whatever duplication a lost map implies has already happened by the time a
462
- * user is asked to confirm this, and what the rebuild does is stop refusing
463
- * and start telling the truth about the numbers that now exist.
642
+ * whatever duplication lost Matter storage implies has already happened by
643
+ * the time a user is asked to confirm this, and what the rebuild does is
644
+ * stop refusing and start telling the truth about the numbers that now
645
+ * exist.
464
646
  */
465
647
  rebuild(live) {
466
648
  // The unusable file is COPIED aside before it is overwritten. It is the
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint-map.js","sourceRoot":"","sources":["../src/endpoint-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAmB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,eAAe,CAAC,KAA4B;IACxD,IAAI,KAAK,CAAC,YAAY,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC;IACnF,CAAC;IACD,OAAO,KAAK,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,iBAAiB,CAAC;AAC3F,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAE7C,mFAAmF;AACnF,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAC5C,MAAM,WAA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nB,MAAM,OAAO,GACT,qCAAqC,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,IAAI;gBACtE,+DAA+D,CAAC;YACpE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAClB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC1C,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;CACJ"}
package/dist/node.d.ts CHANGED
@@ -222,6 +222,15 @@ export declare class BridgeNode implements BridgeFacade {
222
222
  * Deliberately here rather than in {@link removeFabric}: §3.9 is only one of
223
223
  * the ways to get here. An ecosystem that removes *us* from its side does it
224
224
  * too, and that route never touches our command handler at all.
225
+ *
226
+ * **The endpoint map's numbers are voided here too (issue #140), for the
227
+ * same reason as §3.10's preserving reset.** matter.js has just erased
228
+ * itself, so its own number allocation is gone with the fabrics — the map's
229
+ * numbers are about to disagree with whatever gets re-created, and with no
230
+ * fabric left there is no paired ecosystem that could still be holding the
231
+ * old numbers to disagree with. {@link EndpointMapStore.voidNumbers} is a
232
+ * no-op on an empty map, so this costs nothing on a bridge that had never
233
+ * exported anything.
225
234
  */
226
235
  private noteLastFabricGone;
227
236
  /** Print the pairing codes the way an operator (and the plugin log) needs them. */
@@ -235,6 +244,30 @@ export declare class BridgeNode implements BridgeFacade {
235
244
  * `role`/`label` that let it be rebuilt at the next start (issue #141).
236
245
  */
237
246
  private liveIdentities;
247
+ /** The live set as the map keys it, for the before/after diff below. */
248
+ private liveUniqueIds;
249
+ /**
250
+ * Tell the map about endpoints this operation actually took away, so they
251
+ * stop being restored on every boot (issue #141 follow-up).
252
+ *
253
+ * `check` is add-and-refresh only, so without this a device the user
254
+ * un-exported kept its `role`/`label` for ever, was rebuilt as a child
255
+ * endpoint before every `server.start()`, and was removed again by the next
256
+ * attach — the exact appear-then-vanish churn the restore exists to stop,
257
+ * pointed at the devices the user had already removed. It also cost the
258
+ * plugin `REMOVAL_PACING_MS` per ghost on every attach while counting
259
+ * towards neither the desired set nor the un-export debt, so a handful of
260
+ * accumulated ghosts ate the attach deadline for a set nobody asked for.
261
+ *
262
+ * **Measured, not inferred.** The removals are the difference between the
263
+ * live set before the operation and after it, which is the only honest
264
+ * source: `attach`'s desired set is a request (a refused or part-applied
265
+ * reconcile removed less than it asked to), and an empty live set proves
266
+ * nothing at all. A recreate — removed and re-created in one reconcile — is
267
+ * in both snapshots, so it is not a removal; and even if it were, the
268
+ * {@link checkDrift} that follows re-records its role and label.
269
+ */
270
+ private forgetRemoved;
238
271
  /**
239
272
  * Compare the live endpoint numbers against the persisted map (PRD §4.3).
240
273
  *
@@ -342,6 +375,16 @@ export declare class BridgeNode implements BridgeFacade {
342
375
  *
343
376
  * The live endpoints are deliberately left alone. They are still the set the
344
377
  * plugin asked for; what changed is who is allowed to see them.
378
+ *
379
+ * **A preserved map has its numbers VOIDED, not drift-checked (issue #140).**
380
+ * `erase()` wipes matter.js's own allocation, so every endpoint re-created
381
+ * after this is renumbered from scratch — and the map disagreeing with that
382
+ * on every future attach is not a real anomaly, it is the reset's own,
383
+ * expected renumbering. `voidNumbers()` marks every entry so the next
384
+ * `check()` silently adopts whatever number each `UniqueID` comes back with
385
+ * instead of reporting it as drift forever; see its doc comment for why that
386
+ * is safe (the fabric set is empty here, so no paired ecosystem can still be
387
+ * holding the old numbers to disagree with).
345
388
  */
346
389
  factoryReset(preserveEndpointNumbers: boolean): Promise<void>;
347
390
  /**
package/dist/node.js CHANGED
@@ -443,8 +443,9 @@ export class BridgeNode {
443
443
  ? "Nothing will be exported until the quarantined identity.json.unreadable-<stamp> is " +
444
444
  "restored or repaired as identity.json and the bridge restarted; rebuilding the " +
445
445
  "endpoint map CANNOT fix this."
446
- : "Nothing will be exported until the endpoint map is rebuilt (BRIDGE_PROTOCOL §3.11), " +
447
- "which WILL duplicate accessories in already-paired ecosystems.";
446
+ : "Nothing will be exported until the endpoint map is rebuilt (BRIDGE_PROTOCOL §3.11). " +
447
+ "The rebuild adopts the numbers that exist now and renumbers nothing — any " +
448
+ "duplicate accessories were caused by the storage loss itself, not the rebuild.";
448
449
  this.log(`REFUSING to serve endpoints — ${reason}. ${remedy}`);
449
450
  }
450
451
  /** §1.1 — the reason we are refusing, or `undefined` while serving. */
@@ -551,6 +552,15 @@ export class BridgeNode {
551
552
  * Deliberately here rather than in {@link removeFabric}: §3.9 is only one of
552
553
  * the ways to get here. An ecosystem that removes *us* from its side does it
553
554
  * too, and that route never touches our command handler at all.
555
+ *
556
+ * **The endpoint map's numbers are voided here too (issue #140), for the
557
+ * same reason as §3.10's preserving reset.** matter.js has just erased
558
+ * itself, so its own number allocation is gone with the fabrics — the map's
559
+ * numbers are about to disagree with whatever gets re-created, and with no
560
+ * fabric left there is no paired ecosystem that could still be holding the
561
+ * old numbers to disagree with. {@link EndpointMapStore.voidNumbers} is a
562
+ * no-op on an empty map, so this costs nothing on a bridge that had never
563
+ * exported anything.
554
564
  */
555
565
  noteLastFabricGone() {
556
566
  if (this.identity.commissionedAt === undefined) {
@@ -560,6 +570,20 @@ export class BridgeNode {
560
570
  "so the commissioning witness is being cleared to match. Without this the next start " +
561
571
  "would refuse to serve endpoints, blaming lost storage for a deliberate unpairing.");
562
572
  this.applyWitness(WARN_IDENTITY_WRITE, clearCommissioned(this.config.storagePath, this.identity, message => this.log(message)));
573
+ // `size > 0` first: `voidNumbers` returns `false` for an empty map too
574
+ // (nothing to void is not a failure), and this bridge may never have
575
+ // exported anything.
576
+ if (this.#endpointMap.size > 0 &&
577
+ !this.#endpointMap.voidNumbers("the last fabric left — matter.js factory-reset itself, wiping its own endpoint-number " +
578
+ "allocation with it")) {
579
+ // Same risk as the factory-reset branch above: the VOID markers
580
+ // are RAM-only until a later persist succeeds (`#dirty` makes that
581
+ // retry automatic), and a restart before then brings back #140's
582
+ // forever-drift report for this unpairing.
583
+ this.log("The endpoint map's VOID markers could NOT be written to disk after the last fabric " +
584
+ "left — they exist in memory only for now and will be retried on the next " +
585
+ "successful persist; a restart before then will report the old §4.3 drift again.");
586
+ }
563
587
  this.#drift = [];
564
588
  }
565
589
  /** Print the pairing codes the way an operator (and the plugin log) needs them. */
@@ -619,6 +643,43 @@ export class BridgeNode {
619
643
  label: identity.label,
620
644
  }));
621
645
  }
646
+ /** The live set as the map keys it, for the before/after diff below. */
647
+ liveUniqueIds() {
648
+ return new Set((this.#registry?.identities() ?? []).map(identity => uniqueIdFor(identity.indigoDeviceId)));
649
+ }
650
+ /**
651
+ * Tell the map about endpoints this operation actually took away, so they
652
+ * stop being restored on every boot (issue #141 follow-up).
653
+ *
654
+ * `check` is add-and-refresh only, so without this a device the user
655
+ * un-exported kept its `role`/`label` for ever, was rebuilt as a child
656
+ * endpoint before every `server.start()`, and was removed again by the next
657
+ * attach — the exact appear-then-vanish churn the restore exists to stop,
658
+ * pointed at the devices the user had already removed. It also cost the
659
+ * plugin `REMOVAL_PACING_MS` per ghost on every attach while counting
660
+ * towards neither the desired set nor the un-export debt, so a handful of
661
+ * accumulated ghosts ate the attach deadline for a set nobody asked for.
662
+ *
663
+ * **Measured, not inferred.** The removals are the difference between the
664
+ * live set before the operation and after it, which is the only honest
665
+ * source: `attach`'s desired set is a request (a refused or part-applied
666
+ * reconcile removed less than it asked to), and an empty live set proves
667
+ * nothing at all. A recreate — removed and re-created in one reconcile — is
668
+ * in both snapshots, so it is not a removal; and even if it were, the
669
+ * {@link checkDrift} that follows re-records its role and label.
670
+ */
671
+ forgetRemoved(before) {
672
+ const after = this.liveUniqueIds();
673
+ const removed = [...before].filter(uniqueId => !after.has(uniqueId));
674
+ if (removed.length === 0) {
675
+ return;
676
+ }
677
+ const forgotten = this.#endpointMap.forget(removed);
678
+ if (forgotten > 0) {
679
+ this.log(`${forgotten} un-exported endpoint(s) will no longer be restored at startup; their ` +
680
+ "endpoint numbers are kept (§3.3) so a re-export returns the same accessory");
681
+ }
682
+ }
622
683
  /**
623
684
  * Compare the live endpoint numbers against the persisted map (PRD §4.3).
624
685
  *
@@ -642,10 +703,15 @@ export class BridgeNode {
642
703
  }
643
704
  /** §3.1 — reconcile the live endpoint set, then answer with the new status. */
644
705
  async reconcile(endpoints, replaceAll) {
706
+ const before = this.liveUniqueIds();
645
707
  try {
646
708
  await this.registry.reconcile(endpoints, replaceAll);
647
709
  }
648
710
  finally {
711
+ // Before the drift check, so a recreate — which is a remove and a
712
+ // create in one plan — has its role and label put straight back by
713
+ // the `check` below rather than being left as a bare number.
714
+ this.forgetRemoved(before);
649
715
  // In a `finally` because a part-applied reconcile (registry.ts is
650
716
  // explicit that there is no transaction across several `add`s) has
651
717
  // still created endpoints, and those are exactly the numbers worth
@@ -679,10 +745,12 @@ export class BridgeNode {
679
745
  * upsert happened to notice.
680
746
  */
681
747
  async removeEndpoint(indigoDeviceId) {
748
+ const before = this.liveUniqueIds();
682
749
  try {
683
750
  return await this.registry.remove(indigoDeviceId);
684
751
  }
685
752
  finally {
753
+ this.forgetRemoved(before);
686
754
  this.checkDrift();
687
755
  }
688
756
  }
@@ -834,6 +902,16 @@ export class BridgeNode {
834
902
  *
835
903
  * The live endpoints are deliberately left alone. They are still the set the
836
904
  * plugin asked for; what changed is who is allowed to see them.
905
+ *
906
+ * **A preserved map has its numbers VOIDED, not drift-checked (issue #140).**
907
+ * `erase()` wipes matter.js's own allocation, so every endpoint re-created
908
+ * after this is renumbered from scratch — and the map disagreeing with that
909
+ * on every future attach is not a real anomaly, it is the reset's own,
910
+ * expected renumbering. `voidNumbers()` marks every entry so the next
911
+ * `check()` silently adopts whatever number each `UniqueID` comes back with
912
+ * instead of reporting it as drift forever; see its doc comment for why that
913
+ * is safe (the fabric set is empty here, so no paired ecosystem can still be
914
+ * holding the old numbers to disagree with).
837
915
  */
838
916
  async factoryReset(preserveEndpointNumbers) {
839
917
  this.#window.clear();
@@ -893,18 +971,41 @@ export class BridgeNode {
893
971
  // What preservation actually bought, checked rather than claimed.
894
972
  // `erase()` wipes matter.js's OWN allocation, so a preserved map is a
895
973
  // baseline for numbers that are about to be handed out afresh — it
896
- // preserves the ability to NOTICE, not the numbers (see §3.10). Running
897
- // the detector here is what turns that into a statement in the log
898
- // instead of a surprise on the next attach.
899
- if (preserveEndpointNumbers) {
900
- this.checkDrift();
901
- this.log(this.#drift.length === 0
902
- ? "Endpoint-number map preserved; no drift against the live endpoints yet — note " +
903
- "that matter.js's own allocation was wiped by the reset, so drift is expected " +
904
- "as endpoints are re-created and is what the preserved map exists to report"
905
- : `Endpoint-number map preserved and ${this.#drift.length} endpoint(s) already ` +
906
- "differ from it — that is the reset's own renumbering, reported exactly as " +
907
- "designed; rebuild the map (§3.11) to accept it");
974
+ // preserves the ability to NOTICE, not the numbers (see §3.10). Issue
975
+ // #140: the numbers this map already holds are about to disagree with
976
+ // matter.js on every single re-created endpoint, and that is not a real
977
+ // anomaly — it is the reset's own renumbering, guaranteed by the fact
978
+ // that `erase()` just ran. Voiding them means the next `check()` (the
979
+ // first reconcile after re-pairing) adopts the fresh numbers silently
980
+ // instead of reporting the same "drift" on every attach forever, which
981
+ // is #140's complaint: the plugin refuses the §3.11 rebuild the old log
982
+ // line pointed at, because the node is otherwise perfectly healthy.
983
+ if (preserveEndpointNumbers && this.#endpointMap.size > 0) {
984
+ // `size > 0` gates both the call and the log: `voidNumbers` returns
985
+ // `false` for an empty map too (nothing to void is not a failure),
986
+ // and a bridge that had nothing preserved must not be told its
987
+ // numbers are VOID, nor warned about a persist that never
988
+ // happened.
989
+ if (this.#endpointMap.voidNumbers("factory reset (preserveEndpointNumbers: true) wiped matter.js's own allocation")) {
990
+ this.log("Endpoint-number map preserved but its numbers are now VOID: matter.js's own " +
991
+ "allocation was wiped by the reset, so they will be silently adopted as endpoints " +
992
+ "are re-created rather than reported as drift — no fabric survived the reset to " +
993
+ "still be holding the old numbers, so nothing outside this node can observe the " +
994
+ "difference. A §3.11 rebuild is not needed for this.");
995
+ }
996
+ else {
997
+ // The void markers exist in memory only — this write failed the
998
+ // same way `discard()`'s can, and the risk is the mirror image:
999
+ // a crash before the next successful persist loses the markers,
1000
+ // and the next start reports #140's forever-drift again as if
1001
+ // this reset had never happened. `persist()` already leaves
1002
+ // `#dirty` set on this failure, so the retry is automatic: the
1003
+ // very next successful `check()` or write re-attempts it.
1004
+ this.log("Endpoint-number map preserved but its VOID markers could NOT be written to disk " +
1005
+ "— they exist in memory only for now. The next successful persist will retry " +
1006
+ "and write them; if the node restarts before then, the old §4.3 drift report " +
1007
+ "will return once, until this reset's renumbering is adopted again.");
1008
+ }
908
1009
  }
909
1010
  this.log("Factory reset complete; advertising for commissioning again");
910
1011
  this.logPairing();
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClH,OAAO,EACH,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAA2B,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EAAwB,kBAAkB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAIH,aAAa,EACb,sBAAsB,EAEtB,yBAAyB,EAEzB,SAAS,EAET,MAAM,EAEN,aAAa,E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KAAK,EAAE,CAAC;QACzB,CAAC;IACL,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indigo-matter-bridge",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Matter bridge node for the indigo-matter Indigo plugin — exports selected Indigo devices as Matter accessories.",
5
5
  "license": "MIT",
6
6
  "type": "module",