@camstack/addon-matter-broker 0.2.82 → 0.2.84

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.
package/dist/addon.js CHANGED
@@ -18826,11 +18826,30 @@ var SensorEventSchema = object({
18826
18826
  value: record(string$2(), unknown()).nullable(),
18827
18827
  timestamp: number()
18828
18828
  });
18829
+ /**
18830
+ * One stored sighting on a track's trajectory.
18831
+ *
18832
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18833
+ * arrival order, and the two detector passes interleave, so a consumer must not
18834
+ * assume the two are the same on a row written by an older build.
18835
+ */
18829
18836
  var TrackPositionSchema = object({
18830
18837
  x: number(),
18831
18838
  y: number(),
18832
18839
  timestamp: number(),
18833
- bbox: BoundingBoxSchema
18840
+ bbox: BoundingBoxSchema,
18841
+ /**
18842
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18843
+ * pass on the analysis raster, `recovery` is the native-resolution
18844
+ * small-subject second pass (D377/D378). Both write into one array, and until
18845
+ * this field existed the only way to tell them apart was that full-frame boxes
18846
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18847
+ * Absent on rows written before D399.
18848
+ */
18849
+ source: _enum(["frame", "recovery"]).optional(),
18850
+ /** Detection score of this box, so a position can be weighed and not only
18851
+ * plotted. Absent on rows written before D399. */
18852
+ score: number().optional()
18834
18853
  });
18835
18854
  var TrackSnapshotSchema = object({
18836
18855
  timestamp: number(),
@@ -19230,14 +19249,25 @@ var TrackSchema = object({
19230
19249
  */
19231
19250
  hasRider: boolean().optional(),
19232
19251
  /**
19233
- * WHY this track ended without a NATIVE best-shot tile
19234
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19252
+ * WHY this track ended without a NATIVE best-shot FRAME
19253
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19254
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19235
19255
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19236
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19237
- * the late-keyFrame upgrade when a native tile lands after all. The
19238
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19256
+ * `derive-returned-null tile=standin`,
19257
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19258
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19259
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19239
19260
  * tile is a face/plate stand-in, a raster crop, or an icon.
19240
19261
  *
19262
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19263
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19264
+ * while its key frame missed carried no reason at all — three of the four
19265
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19266
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19267
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19268
+ * lastFrame copy source`), so its absence is now on this line whatever the
19269
+ * tile ended up being.
19270
+ *
19241
19271
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19242
19272
  * that predates the field, and every track whose tile landed native all
19243
19273
  * omit it. Render nothing when absent.
@@ -25318,6 +25348,59 @@ var IdentitySampleInfoSchema = object({
25318
25348
  deviceId: number().int().optional(),
25319
25349
  base64: string$2().optional()
25320
25350
  });
25351
+ /**
25352
+ * One enrolled sample, judged against the gallery it lives in.
25353
+ *
25354
+ * The gallery is the one input to recognition nobody re-reads: a sample
25355
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25356
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25357
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25358
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25359
+ * where every other cross-identity pair sits under 0.50.
25360
+ */
25361
+ var IdentitySampleAuditRowSchema = object({
25362
+ sampleId: string$2(),
25363
+ enrolledAt: number().int(),
25364
+ deviceId: number().int().optional(),
25365
+ source: _enum(["detected", "photo"]),
25366
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25367
+ mediaKey: string$2().optional(),
25368
+ /**
25369
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25370
+ * across feature spaces is a well-formed float with no meaning. Every number
25371
+ * below then says nothing — it must read as "cannot say", never as an
25372
+ * accusation and never as a clean bill: this list ends in a Remove button.
25373
+ */
25374
+ comparable: boolean(),
25375
+ /** Mean cosine against this person's other samples. Null when there are none
25376
+ * to compare with — never 0, which would read as "opposite". */
25377
+ selfMean: number().nullable(),
25378
+ /** The other person this sample looks most like, when it looks like one.
25379
+ * This is the half that convicts: not looking like yourself can be a hard
25380
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25381
+ bestForeign: object({
25382
+ identityId: string$2(),
25383
+ name: string$2(),
25384
+ score: number()
25385
+ }).optional(),
25386
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25387
+ suspicion: number()
25388
+ });
25389
+ var IdentitySampleAuditSchema = object({
25390
+ identityId: string$2(),
25391
+ name: string$2(),
25392
+ /** The cluster face model every comparison was made in. */
25393
+ modelId: string$2(),
25394
+ totalSamples: number().int(),
25395
+ comparableSamples: number().int(),
25396
+ flagged: number().int(),
25397
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25398
+ * only its current result. */
25399
+ flagThreshold: number(),
25400
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25401
+ * operator asked to see the gallery, not only its accusations. */
25402
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25403
+ });
25321
25404
  var FaceInfoSchema = object({
25322
25405
  faceId: string$2(),
25323
25406
  deviceId: number().int(),
@@ -25469,7 +25552,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25469
25552
  }), method(object({ id: string$2() }), _void(), {
25470
25553
  kind: "mutation",
25471
25554
  auth: "admin"
25472
- }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25555
+ }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string$2().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25473
25556
  identityId: string$2(),
25474
25557
  sampleId: string$2()
25475
25558
  }), _void(), {
@@ -35962,6 +36045,12 @@ Object.freeze({
35962
36045
  addonId: null,
35963
36046
  access: "create"
35964
36047
  },
36048
+ "faceGallery.auditIdentitySamples": {
36049
+ capName: "face-gallery",
36050
+ capScope: "system",
36051
+ addonId: null,
36052
+ access: "view"
36053
+ },
35965
36054
  "faceGallery.createIdentity": {
35966
36055
  capName: "face-gallery",
35967
36056
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18824,11 +18824,30 @@ var SensorEventSchema = object({
18824
18824
  value: record(string$2(), unknown()).nullable(),
18825
18825
  timestamp: number()
18826
18826
  });
18827
+ /**
18828
+ * One stored sighting on a track's trajectory.
18829
+ *
18830
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18831
+ * arrival order, and the two detector passes interleave, so a consumer must not
18832
+ * assume the two are the same on a row written by an older build.
18833
+ */
18827
18834
  var TrackPositionSchema = object({
18828
18835
  x: number(),
18829
18836
  y: number(),
18830
18837
  timestamp: number(),
18831
- bbox: BoundingBoxSchema
18838
+ bbox: BoundingBoxSchema,
18839
+ /**
18840
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18841
+ * pass on the analysis raster, `recovery` is the native-resolution
18842
+ * small-subject second pass (D377/D378). Both write into one array, and until
18843
+ * this field existed the only way to tell them apart was that full-frame boxes
18844
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18845
+ * Absent on rows written before D399.
18846
+ */
18847
+ source: _enum(["frame", "recovery"]).optional(),
18848
+ /** Detection score of this box, so a position can be weighed and not only
18849
+ * plotted. Absent on rows written before D399. */
18850
+ score: number().optional()
18832
18851
  });
18833
18852
  var TrackSnapshotSchema = object({
18834
18853
  timestamp: number(),
@@ -19228,14 +19247,25 @@ var TrackSchema = object({
19228
19247
  */
19229
19248
  hasRider: boolean().optional(),
19230
19249
  /**
19231
- * WHY this track ended without a NATIVE best-shot tile
19232
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19250
+ * WHY this track ended without a NATIVE best-shot FRAME
19251
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19252
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19233
19253
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19234
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19235
- * the late-keyFrame upgrade when a native tile lands after all. The
19236
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19254
+ * `derive-returned-null tile=standin`,
19255
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19256
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19257
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19237
19258
  * tile is a face/plate stand-in, a raster crop, or an icon.
19238
19259
  *
19260
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19261
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19262
+ * while its key frame missed carried no reason at all — three of the four
19263
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19264
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19265
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19266
+ * lastFrame copy source`), so its absence is now on this line whatever the
19267
+ * tile ended up being.
19268
+ *
19239
19269
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19240
19270
  * that predates the field, and every track whose tile landed native all
19241
19271
  * omit it. Render nothing when absent.
@@ -25316,6 +25346,59 @@ var IdentitySampleInfoSchema = object({
25316
25346
  deviceId: number().int().optional(),
25317
25347
  base64: string$2().optional()
25318
25348
  });
25349
+ /**
25350
+ * One enrolled sample, judged against the gallery it lives in.
25351
+ *
25352
+ * The gallery is the one input to recognition nobody re-reads: a sample
25353
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25354
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25355
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25356
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25357
+ * where every other cross-identity pair sits under 0.50.
25358
+ */
25359
+ var IdentitySampleAuditRowSchema = object({
25360
+ sampleId: string$2(),
25361
+ enrolledAt: number().int(),
25362
+ deviceId: number().int().optional(),
25363
+ source: _enum(["detected", "photo"]),
25364
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25365
+ mediaKey: string$2().optional(),
25366
+ /**
25367
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25368
+ * across feature spaces is a well-formed float with no meaning. Every number
25369
+ * below then says nothing — it must read as "cannot say", never as an
25370
+ * accusation and never as a clean bill: this list ends in a Remove button.
25371
+ */
25372
+ comparable: boolean(),
25373
+ /** Mean cosine against this person's other samples. Null when there are none
25374
+ * to compare with — never 0, which would read as "opposite". */
25375
+ selfMean: number().nullable(),
25376
+ /** The other person this sample looks most like, when it looks like one.
25377
+ * This is the half that convicts: not looking like yourself can be a hard
25378
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25379
+ bestForeign: object({
25380
+ identityId: string$2(),
25381
+ name: string$2(),
25382
+ score: number()
25383
+ }).optional(),
25384
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25385
+ suspicion: number()
25386
+ });
25387
+ var IdentitySampleAuditSchema = object({
25388
+ identityId: string$2(),
25389
+ name: string$2(),
25390
+ /** The cluster face model every comparison was made in. */
25391
+ modelId: string$2(),
25392
+ totalSamples: number().int(),
25393
+ comparableSamples: number().int(),
25394
+ flagged: number().int(),
25395
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25396
+ * only its current result. */
25397
+ flagThreshold: number(),
25398
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25399
+ * operator asked to see the gallery, not only its accusations. */
25400
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25401
+ });
25319
25402
  var FaceInfoSchema = object({
25320
25403
  faceId: string$2(),
25321
25404
  deviceId: number().int(),
@@ -25467,7 +25550,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25467
25550
  }), method(object({ id: string$2() }), _void(), {
25468
25551
  kind: "mutation",
25469
25552
  auth: "admin"
25470
- }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25553
+ }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string$2().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25471
25554
  identityId: string$2(),
25472
25555
  sampleId: string$2()
25473
25556
  }), _void(), {
@@ -35960,6 +36043,12 @@ Object.freeze({
35960
36043
  addonId: null,
35961
36044
  access: "create"
35962
36045
  },
36046
+ "faceGallery.auditIdentitySamples": {
36047
+ capName: "face-gallery",
36048
+ capScope: "system",
36049
+ addonId: null,
36050
+ access: "view"
36051
+ },
35963
36052
  "faceGallery.createIdentity": {
35964
36053
  capName: "face-gallery",
35965
36054
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",