@blockcast/fec-worker 0.1.0 → 0.3.0-main.2515e5ca4858

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.
Files changed (40) hide show
  1. package/README.md +19 -9
  2. package/dist/block-order.d.ts +22 -0
  3. package/dist/block-order.d.ts.map +1 -0
  4. package/dist/block-order.js +48 -0
  5. package/dist/block-order.js.map +1 -0
  6. package/dist/fec-worker-client.d.ts +19 -7
  7. package/dist/fec-worker-client.d.ts.map +1 -1
  8. package/dist/fec-worker-client.js +105 -30
  9. package/dist/fec-worker-client.js.map +1 -1
  10. package/dist/fec-worker-types.d.ts +146 -25
  11. package/dist/fec-worker-types.d.ts.map +1 -1
  12. package/dist/fec-worker.js +326 -127
  13. package/dist/fec-worker.js.map +4 -4
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/shred-fec-worker.js +23 -2
  18. package/dist/shred-fec-worker.js.map +2 -2
  19. package/dist/shred-worker-types.d.ts +16 -1
  20. package/dist/shred-worker-types.d.ts.map +1 -1
  21. package/dist/shred-worker-types.js +16 -1
  22. package/dist/shred-worker-types.js.map +1 -1
  23. package/package.json +8 -3
  24. package/src/block-order.ts +59 -0
  25. package/src/fec-worker-client.ts +114 -32
  26. package/src/fec-worker-types.ts +145 -21
  27. package/src/fec-worker.ts +518 -180
  28. package/src/index.ts +3 -0
  29. package/src/shred-fec-worker.ts +34 -3
  30. package/src/shred-worker-types.ts +16 -1
  31. package/src/__tests__/fec-worker-alta.test.ts +0 -231
  32. package/src/__tests__/fec-worker-cleanup-integration.test.ts +0 -250
  33. package/src/__tests__/fec-worker-pending-queue.test.ts +0 -315
  34. package/src/__tests__/fec-worker-repair-size.test.ts +0 -1029
  35. package/src/__tests__/fec-worker-wasm-contract.test.ts +0 -84
  36. package/src/__tests__/shred-fec-worker.test.ts +0 -448
  37. package/src/fec-worker-client.test.ts +0 -530
  38. package/src/fec-worker-types.test.ts +0 -400
  39. package/src/shred-worker-client.test.ts +0 -182
  40. package/src/transfer.test.ts +0 -24
@@ -7,6 +7,18 @@
7
7
  *
8
8
  * Types here are importable from both main thread and Worker contexts.
9
9
  */
10
+ /**
11
+ * FEC block profile (BLO-35597, ISO/IEC 23008-1 Annex C): the catalog
12
+ * `fec.blockProfile` token. Required and never inferred; the only profile is
13
+ * `iso-ssbg1-v1` (C.3.3 ssbg_mode1): SS_ID increments by one per source
14
+ * packet mod 2^32; a block is `[SS_Start, SS_Start + SSB_length)` keyed by
15
+ * SS_Start; `k` is only the maximum SSB_length; repair ESI =
16
+ * SSB_length + RS_ID. The retired `k-padded-v1` token is refused like any
17
+ * unknown one.
18
+ *
19
+ * Mirrors @blockcast/mmt-base `FecBlockProfile`.
20
+ */
21
+ export type FecBlockProfile = "iso-ssbg1-v1";
10
22
  /** Per-track FEC configuration. Matches design spec section 3.2 FecTrackConfig. */
11
23
  export interface FecTrackConfig {
12
24
  /** Codec string, e.g. 'avc1.64001f', 'mp4a.40.2' */
@@ -26,13 +38,21 @@ export interface FecTrackConfig {
26
38
  sampleRate?: number;
27
39
  /** FEC algorithm identifier: 'raptor', 'reed-solomon', 'none' */
28
40
  algorithm: string;
29
- /** Source symbols per block (K) */
41
+ /** Block profile; the Worker refuses to configure without a known token. */
42
+ blockProfile: FecBlockProfile;
43
+ /** Source symbols per block (K). Under `iso-ssbg1-v1` the maximum SSB_length (kMax). */
30
44
  k: number;
31
45
  /** Repair symbols per block (P). NOT symbol size. */
32
46
  repairCount: number;
33
47
  /** Bytes per symbol */
34
48
  symbolSize: number;
35
- /** Interleave depth in frames (D) */
49
+ /** Retained decoder horizon as a BLOCK COUNT, not D. `isRetiredSbn`
50
+ * retires blocks more than this many blocks behind the live SS_ID, by
51
+ * `isoBlocksBehind(SS_ID, live SS_ID, k)` (block-order.ts), the lower
52
+ * bound every ISO receiver layer shares, and `MmtFecDecoder::new`
53
+ * documents it as "the number of interleaved blocks".
54
+ * Never assign `deriveFecInterleaveDepth()` here — that returns media units
55
+ * per block, which is a different quantity (BLO-35597). */
36
56
  interleaveDepth: number;
37
57
  /** Interleave depth in milliseconds (D * frameDurationMs) */
38
58
  interleaveMs: number;
@@ -49,16 +69,21 @@ export interface FecTrackConfig {
49
69
  }
50
70
  /** Per-block snapshot for live block visualization and stats. */
51
71
  export interface FecBlockSnapshot {
52
- /** Source block number */
72
+ /** Block key: the block's SS_Start. */
53
73
  sbn: number;
54
74
  /** Current block state */
55
- state: "collecting" | "complete" | "recovered" | "failed" | "green-fill";
75
+ state: "collecting" | "complete" | "recovered" | "failed";
56
76
  /** Number of source symbols received */
57
77
  sourceReceived: number;
58
78
  /** Number of repair symbols received */
59
79
  repairReceived: number;
60
- /** Expected source symbols (K) */
80
+ /** Configured source-block geometry (K); under `iso-ssbg1-v1` the block's SSB_length. */
61
81
  k: number;
82
+ /** Authored source symbols (SSB_length) once a repair symbol declared it.
83
+ * Under `iso-ssbg1-v1` a block is only known from a repair symbol, so it is
84
+ * always set — except on a cleanup tombstone for a block the Worker never
85
+ * saw, whose length nothing declared. */
86
+ ssbLength?: number;
62
87
  /** Expected repair symbols (P) */
63
88
  repairCount: number;
64
89
  /** Timestamp of first symbol arrival (ms) */
@@ -88,8 +113,6 @@ export interface FecTrackStats {
88
113
  blocksRecovered: number;
89
114
  /** Blocks that failed (unrecoverable) */
90
115
  blocksFailed: number;
91
- /** Frames replaced with green-fill */
92
- greenFillFrames: number;
93
116
  /** Recovery success rate 0-100 */
94
117
  recoveryRate: number;
95
118
  /** Packets with valid publisher ALTA signature */
@@ -128,11 +151,11 @@ export interface FecTrackStats {
128
151
  relayBlocksVerified: number;
129
152
  /** Blocks with invalid relay signature */
130
153
  relayBlocksFailed: number;
131
- /** Current live source block number */
154
+ /** Live media position: the newest accepted SS_ID / SS_Start. */
132
155
  liveSbn: number;
133
156
  /** Active block snapshots */
134
157
  blocks: FecBlockSnapshot[];
135
- /** Number of blocks in the interleave window */
158
+ /** Number of blocks in the FEC block span */
136
159
  interleaveWindowBlocks: number;
137
160
  /** Average recovery latency (ms) */
138
161
  avgRecoveryMs: number;
@@ -140,6 +163,52 @@ export interface FecTrackStats {
140
163
  maxRecoveryMs: number;
141
164
  /** Repair symbols rejected before WASM because their byte length did not match T. */
142
165
  repairSymbolSizeMismatch?: number;
166
+ /**
167
+ * Source symbols whose SBN had already fallen below the retained window.
168
+ *
169
+ * This and its two peers below are dropped before WASM and narrow the
170
+ * explanations for a block that settles at K-1 source symbols (BLO-35597
171
+ * defect 2): a late symbol past retention, a symbol for a block that had
172
+ * already settled (complete, recovered *or failed*), or a repeated
173
+ * (SBN, ESI).
174
+ *
175
+ * They narrow; they do not uniquely attribute. A symbol lost in transit
176
+ * never reaches the worker and increments nothing, so all three reading
177
+ * zero on a short block means only that no *receiver-side* drop was
178
+ * recorded — wire loss and a short authored block both remain open. Use
179
+ * `FecBlockSnapshot.ssbLength` to separate them: below `k` is a genuinely
180
+ * short authored block, equal to `k` with fewer accepted is loss-or-late.
181
+ * `ssbLength` is undefined until a repair symbol declares it, in which case
182
+ * both stay open.
183
+ *
184
+ * All three are cumulative across decoder epochs: `configure` clears block
185
+ * tracking but none of them, so they stay comparable against the
186
+ * `sourceSymbols` denominator. Only a reset zeroes them.
187
+ */
188
+ sourceDroppedRetired?: number;
189
+ /** Source symbols for a block that had already completed, recovered or failed. */
190
+ sourceDroppedTerminal?: number;
191
+ /**
192
+ * Source symbols repeating an (SBN, ESI) already accepted in the current
193
+ * epoch; `configure` clears the accepted-ESI sets.
194
+ *
195
+ * Unlike the other two, this one cannot fire once a block settles — the
196
+ * terminal check returns first, and marking a block terminal retires its
197
+ * accepted-ESI set anyway — so a non-zero value means the repeat reached
198
+ * the worker while the block was **still collecting**. It attributes the
199
+ * timing, not the origin: usually a duplicate packet on the wire,
200
+ * sometimes an SBN/ESI derivation collision.
201
+ */
202
+ sourceDroppedDuplicate?: number;
203
+ /**
204
+ * Accepted source symbols whose block never became known (no repair
205
+ * symbol named a range containing them) before their SS_ID fell behind
206
+ * the retained horizon. They were already fed to the decoder and routed
207
+ * directly; this counts the bookkeeping retired with them, i.e. evidence
208
+ * that a block's repair symbols never arrived. The decoder retires its
209
+ * own copies by the same horizon inside `cleanup_by_ss_start`.
210
+ */
211
+ sourceUnplacedRetired: number;
143
212
  /** Native decoder counters, converted to numbers so browser diagnostics remain JSON-safe. */
144
213
  decoder?: {
145
214
  sourcePackets: number;
@@ -152,17 +221,32 @@ export interface FecTrackStats {
152
221
  };
153
222
  }
154
223
  /** Stable identities for Worker failures whose message text contains live values. */
155
- export type FecWorkerErrorCode = "recovered-symbol-size-unconfigured" | "recovered-block-too-short" | "repair-symbol-size-mismatch" | "reset-failed" | "unknown-command" | "command-failed" | "worker-runtime" | "worker-message";
224
+ export type FecWorkerErrorCode = "recovered-symbol-size-unconfigured" | "recovered-block-too-short" | "recovered-symbol-ssb-length-invalid" | "repair-symbol-size-mismatch" | "repair-ssb-length-conflict"
225
+ /** `iso-ssbg1-v1`: a repair's `[SS_Start, SS_Start + SSB_length)` overlaps a different known block. */
226
+ | "repair-block-overlap"
227
+ /** `iso-ssbg1-v1`: a recovered symbol's ssbg_mode1 length field exceeds T-2 or its padding is non-zero. */
228
+ | "recovered-ssbg1-symbol-invalid"
229
+ /** `iso-ssbg1-v1`: the decoder returned a recovered block for a source the Worker could not place in a known block. */
230
+ | "recovered-block-unplaced" | "reset-failed" | "unknown-command" | "command-failed" | "worker-runtime" | "worker-message";
156
231
  /** Per-frame metadata emitted with frame events from Worker. */
157
232
  export interface FrameMeta {
158
233
  /** ALTA verification result: true/false after check, null when ALTA not configured (AUTH-04) */
159
234
  altaVerified: boolean | null;
160
235
  /** Whether this frame was recovered via FEC (not received directly) */
161
236
  recovered: boolean;
162
- /** Source block number this frame belongs to */
237
+ /** Block key this frame belongs to: the block's SS_Start */
163
238
  sbn: number;
164
- /** Encoding Symbol ID within the recovered source block (0..K-1). */
239
+ /** Encoding Symbol ID within the recovered source block (0..ssbLength-1).
240
+ * Under `iso-ssbg1-v1` a recovered frame is the full T-byte ssbg_mode1
241
+ * symbol (length field, packet, zero padding); the Worker validates but
242
+ * never trims it. */
165
243
  esi?: number;
244
+ /**
245
+ * Authored source-symbol count of the recovered block (the repair
246
+ * symbols' SSB_length, 1..K). Recovered frames are ESI 0..ssbLength-1;
247
+ * ESIs ssbLength..K-1 are encoder zero padding and are never emitted.
248
+ */
249
+ ssbLength?: number;
166
250
  }
167
251
  /** Discriminated union of all commands sent from main thread to Worker. */
168
252
  export type FecWorkerCommand = {
@@ -180,9 +264,12 @@ export type FecWorkerCommand = {
180
264
  } | {
181
265
  type: "feedSource";
182
266
  /** Flat 32-bit Source Symbol ID from the MMTP Source FEC Payload ID
183
- * (ISO 23008-1 §C.5.2). The WASM decoder derives SBN = floor(ssId/K)
184
- * and ESI = ssId % K internally — do NOT pre-compute. */
267
+ * (ISO 23008-1 §C.5.2). SS_IDs are consecutive per source packet mod
268
+ * 2^32 and the block comes from a repair's range — do NOT
269
+ * pre-compute a block. */
185
270
  ssId: number;
271
+ /** The protected packet exactly, unpadded and without its SS_ID (at
272
+ * most T-2 bytes). */
186
273
  data: ArrayBuffer;
187
274
  ts: number;
188
275
  /** Optional ALTA authenticator bytes (detached mode — 08-07 MMTP
@@ -199,17 +286,27 @@ export type FecWorkerCommand = {
199
286
  altaPayloadEnd?: number;
200
287
  } | {
201
288
  type: "feedRepair";
202
- /** SS_Start: SS_ID of the first source symbol in the block
203
- * (= SBN * SSB_length), from the MMTP Repair FEC Payload ID
204
- * (ISO 23008-1 §C.5.3). */
289
+ /** SS_Start: SS_ID of the first source symbol in the block, from the
290
+ * MMTP Repair FEC Payload ID (ISO 23008-1 §C.5.3): any uint32; the
291
+ * block key. */
205
292
  ssStart: number;
206
- /** SSB_length: K for this block (variable-K allowed per spec). */
293
+ /** Authored source-symbol count for this block; 1..configured K. */
207
294
  ssbLength: number;
208
- /** RS_ID: repair symbol index within the block; WASM maps to
209
- * repair ESI = SSB_length + RS_ID. */
295
+ /** RS_ID: repair symbol index within the block; WASM maps to repair
296
+ * ESI = SSB_length + RS_ID. */
210
297
  rsId: number;
211
298
  data: ArrayBuffer;
212
299
  ts: number;
300
+ } | {
301
+ /**
302
+ * Every source and repair symbol the page fed in one task, in feed
303
+ * order, sharing one transfer list. The client sends symbols this
304
+ * way instead of one message per symbol (BLO-36599); the Worker
305
+ * handles each record exactly like the single-symbol command of the
306
+ * same `type`, and a record that fails does not stop the others.
307
+ */
308
+ type: "feedSymbols";
309
+ symbols: FecSymbolCommand[];
213
310
  } | {
214
311
  type: "relayBlockSig";
215
312
  sbn: number;
@@ -217,13 +314,29 @@ export type FecWorkerCommand = {
217
314
  hash: ArrayBuffer;
218
315
  } | {
219
316
  type: "cleanup";
220
- /** Every timed-out block covered by this coalesced queue-drain barrier. */
317
+ /** Every timed-out block covered by this coalesced queue-drain barrier,
318
+ * by block key (SS_Start). */
221
319
  sbns: number[];
222
320
  } | {
223
321
  type: "reset";
322
+ }
323
+ /**
324
+ * Ask the Worker to post a blockUpdate on every block transition. Without
325
+ * it the Worker posts none: each one is a structured clone and a task on
326
+ * the page thread, and the player does not consume them (BLO-36599).
327
+ * Sent only to a Worker that announced it in `capabilities`.
328
+ */
329
+ | {
330
+ type: "subscribeBlockUpdates";
224
331
  } | {
225
332
  type: "dispose";
226
333
  };
334
+ /** One symbol record of a `feedSymbols` batch. */
335
+ export type FecSymbolCommand = Extract<FecWorkerCommand, {
336
+ type: "feedSource";
337
+ } | {
338
+ type: "feedRepair";
339
+ }>;
227
340
  /** Discriminated union of all events emitted from Worker to main thread. */
228
341
  export type FecWorkerEvent = {
229
342
  type: "frame";
@@ -235,18 +348,26 @@ export type FecWorkerEvent = {
235
348
  } | {
236
349
  type: "blockUpdate";
237
350
  block: FecBlockSnapshot;
238
- } | {
239
- type: "greenFill";
240
- sbn: number;
241
- data: ArrayBuffer;
242
351
  } | {
243
352
  type: "cleanupComplete";
244
353
  sbns: number[];
245
354
  } | {
246
355
  type: "resetComplete";
356
+ }
357
+ /**
358
+ * Optional commands this Worker accepts, posted once it is configured.
359
+ * The client uses `feedSymbols` only after the Worker names it, so a page
360
+ * that meets an older cached Worker bundle keeps sending one command per
361
+ * symbol instead of a batch that Worker would reject (BLO-36599).
362
+ */
363
+ | {
364
+ type: "capabilities";
365
+ commands: FecWorkerOptionalCommand[];
247
366
  } | {
248
367
  type: "error";
249
368
  message: string;
250
369
  code?: FecWorkerErrorCode;
251
370
  };
371
+ /** Commands a client may send only after the Worker announced them. */
372
+ export type FecWorkerOptionalCommand = "feedSymbols" | "subscribeBlockUpdates";
252
373
  //# sourceMappingURL=fec-worker-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fec-worker-types.d.ts","sourceRoot":"","sources":["../src/fec-worker-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,mFAAmF;AACnF,MAAM,WAAW,cAAc;IAC9B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,2CAA2C;IAC3C,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iEAAiE;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,gBA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