@blockcast/fec-worker 2.2.0-main.17a9f020b81e → 2.2.0-main.19a23a44730e
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/README.md +5 -3
- package/dist/fec-worker-types.d.ts +41 -7
- package/dist/fec-worker-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/fec-worker-types.ts +41 -7
package/README.md
CHANGED
|
@@ -179,14 +179,16 @@ The `snapshot` event delivers a `FecTrackStats` every 200 ms (catalog-derived; n
|
|
|
179
179
|
|
|
180
180
|
| Field | Meaning |
|
|
181
181
|
|-------|---------|
|
|
182
|
-
| `sourceSymbols
|
|
183
|
-
| `
|
|
182
|
+
| `sourceSymbols` | Source symbols the Worker accepted: placed in a known block, or held until a repair states one. Not those dropped as retired, terminal or repeated (`sourceDropped*`) |
|
|
183
|
+
| `repairSymbols` | Legacy name: repair symbols the Worker accepted into a block still collecting. **Not** repair received: once a block completes the manager refuses the rest of its repair before the Worker sees it, so a block that completes on its first repair symbol adds one here however much repair arrived for it. Repair packets received per track is `repairPacketsReceived` on `FECManager.fecStats` |
|
|
184
|
+
| `blocksComplete` | Block had every authored source symbol without needing repair (clean blocks only; the manager's `blocksComplete` is clean + recovered + failed, its clean count is `blocksClean`) |
|
|
184
185
|
| `blocksRecovered` | Block was recovered using ≥1 repair symbol |
|
|
185
|
-
| `blocksFailed` | Block
|
|
186
|
+
| `blocksFailed` | Block was still collecting when it fell more than `interleaveDepth` blocks behind the live position, or when the manager retired it incomplete |
|
|
186
187
|
| `recoveryRate` | `recovered / (recovered + failed)`, 0–100 |
|
|
187
188
|
| `avgRecoveryMs`, `maxRecoveryMs` | Rolling decode latency (capped at 1000 samples) |
|
|
188
189
|
| `liveSbn` | Newest accepted SS_ID or SS_Start, in RFC 1982 serial order |
|
|
189
190
|
| `repairSymbolSizeMismatch` | Repair symbols rejected before WASM because their byte length did not match `T` |
|
|
191
|
+
| `sourceUnplacedRetired` | Accepted source symbols that no repair ever placed in a block before they fell behind the horizon: evidence that a block's repair never arrived. A block that completes with every source and has a repair is not in it, full-length (`SSB_length` equal to `K`) or short; a block none of whose repair arrived is, even when all its sources did |
|
|
190
192
|
| `sourceDroppedRetired` / `sourceDroppedTerminal` / `sourceDroppedDuplicate` | Source symbols dropped before WASM, by **first matching** cause (see below) |
|
|
191
193
|
| `blocks` | Up to `max(D × 3, 24)` recent `FecBlockSnapshot`s for live visualization |
|
|
192
194
|
| `interleaveWindowBlocks` | `D` from config |
|
|
@@ -106,19 +106,49 @@ export interface FecBlockSnapshot {
|
|
|
106
106
|
/** Relay block signature validity: true/false after verification, null if not yet verified (AUTH-02) */
|
|
107
107
|
relayBlockSigValid: boolean | null;
|
|
108
108
|
}
|
|
109
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Aggregate per-track FEC statistics. Consumed by fec-panel and CmcdProducer.
|
|
111
|
+
*
|
|
112
|
+
* These count what the Worker accepted, not what arrived: the main thread
|
|
113
|
+
* decides first what reaches it. In particular once a block completes the
|
|
114
|
+
* manager refuses the rest of its repair before it gets here, so a block that
|
|
115
|
+
* completes on its first repair symbol adds one to `repairSymbols` however much
|
|
116
|
+
* repair arrived for it. Repair packets received per track is
|
|
117
|
+
* `repairPacketsReceived` on the manager's `FecPacketStats`
|
|
118
|
+
* (`FECManager.fecStats`).
|
|
119
|
+
*/
|
|
110
120
|
export interface FecTrackStats {
|
|
111
121
|
/** Track configuration */
|
|
112
122
|
config: FecTrackConfig;
|
|
113
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Source symbols the Worker accepted: placed in a known block or held
|
|
125
|
+
* unplaced until a repair states their block. Not counted: a source dropped
|
|
126
|
+
* as retired, for a settled block, or as a repeat (`sourceDropped*`).
|
|
127
|
+
*/
|
|
114
128
|
sourceSymbols: number;
|
|
115
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Legacy name: not the number of repair symbols received. Repair symbols the
|
|
131
|
+
* Worker accepted into a block still collecting. Not counted: a repair for a
|
|
132
|
+
* block that is retired, already settled or repeated, and the repair the
|
|
133
|
+
* manager never sends for a block it already completed.
|
|
134
|
+
*/
|
|
116
135
|
repairSymbols: number;
|
|
117
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Blocks the Worker saw complete with every authored source symbol and no
|
|
138
|
+
* recovery: on a source arrival, on the first repair symbol that stated a
|
|
139
|
+
* block already holding all its sources, or on a cleanup of a block found
|
|
140
|
+
* complete. Clean blocks only: recovered and failed blocks are separate. The
|
|
141
|
+
* manager's `blocksComplete` (`FecStats`) is the sum of all three; its clean
|
|
142
|
+
* count is `blocksClean`.
|
|
143
|
+
*/
|
|
118
144
|
blocksComplete: number;
|
|
119
|
-
/** Blocks recovered
|
|
145
|
+
/** Blocks the decoder returned while they were still collecting: recovered by FEC. */
|
|
120
146
|
blocksRecovered: number;
|
|
121
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* Blocks that failed: still collecting when they fell more than
|
|
149
|
+
* `interleaveDepth` blocks behind the live position, or when the manager
|
|
150
|
+
* retired them incomplete.
|
|
151
|
+
*/
|
|
122
152
|
blocksFailed: number;
|
|
123
153
|
/** Recovery success rate 0-100 */
|
|
124
154
|
recoveryRate: number;
|
|
@@ -181,7 +211,11 @@ export interface FecTrackStats {
|
|
|
181
211
|
* the retained horizon. They were already fed to the decoder and routed
|
|
182
212
|
* directly; this counts the bookkeeping retired with them, i.e. evidence
|
|
183
213
|
* that a block's repair symbols never arrived. The decoder retires its
|
|
184
|
-
* own copies by the same horizon inside `cleanup_by_ss_start`.
|
|
214
|
+
* own copies by the same horizon inside `cleanup_by_ss_start`. A block that
|
|
215
|
+
* completes with every source and has a repair is not in it, full-length
|
|
216
|
+
* (SSB_length equal to K) or short: its repair names the block here. A block
|
|
217
|
+
* none of whose repair symbols arrived has nothing to name it, so its sources
|
|
218
|
+
* are in it even when every one of them arrived.
|
|
185
219
|
*/
|
|
186
220
|
sourceUnplacedRetired: number;
|
|
187
221
|
/**
|
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apshot {
|
|
|
115
115
|
|
|
116
116
|
// --- Stats ---
|
|
117
117
|
|
|
118
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* Aggregate per-track FEC statistics. Consumed by fec-panel and CmcdProducer.
|
|
120
|
+
*
|
|
121
|
+
* These count what the Worker accepted, not what arrived: the main thread
|
|
122
|
+
* decides first what reaches it. In particular once a block completes the
|
|
123
|
+
* manager refuses the rest of its repair before it gets here, so a block that
|
|
124
|
+
* completes on its first repair symbol adds one to `repairSymbols` however much
|
|
125
|
+
* repair arrived for it. Repair packets received per track is
|
|
126
|
+
* `repairPacketsReceived` on the manager's `FecPacketStats`
|
|
127
|
+
* (`FECManager.fecStats`).
|
|
128
|
+
*/
|
|
119
129
|
export interface FecTrackStats {
|
|
120
130
|
/** Track configuration */
|
|
121
131
|
config: FecTrackConfig;
|
|
122
132
|
|
|
123
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Source symbols the Worker accepted: placed in a known block or held
|
|
135
|
+
* unplaced until a repair states their block. Not counted: a source dropped
|
|
136
|
+
* as retired, for a settled block, or as a repeat (`sourceDropped*`).
|
|
137
|
+
*/
|
|
124
138
|
sourceSymbols: number;
|
|
125
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* Legacy name: not the number of repair symbols received. Repair symbols the
|
|
141
|
+
* Worker accepted into a block still collecting. Not counted: a repair for a
|
|
142
|
+
* block that is retired, already settled or repeated, and the repair the
|
|
143
|
+
* manager never sends for a block it already completed.
|
|
144
|
+
*/
|
|
126
145
|
repairSymbols: number;
|
|
127
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* Blocks the Worker saw complete with every authored source symbol and no
|
|
148
|
+
* recovery: on a source arrival, on the first repair symbol that stated a
|
|
149
|
+
* block already holding all its sources, or on a cleanup of a block found
|
|
150
|
+
* complete. Clean blocks only: recovered and failed blocks are separate. The
|
|
151
|
+
* manager's `blocksComplete` (`FecStats`) is the sum of all three; its clean
|
|
152
|
+
* count is `blocksClean`.
|
|
153
|
+
*/
|
|
128
154
|
blocksComplete: number;
|
|
129
|
-
/** Blocks recovered
|
|
155
|
+
/** Blocks the decoder returned while they were still collecting: recovered by FEC. */
|
|
130
156
|
blocksRecovered: number;
|
|
131
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Blocks that failed: still collecting when they fell more than
|
|
159
|
+
* `interleaveDepth` blocks behind the live position, or when the manager
|
|
160
|
+
* retired them incomplete.
|
|
161
|
+
*/
|
|
132
162
|
blocksFailed: number;
|
|
133
163
|
/** Recovery success rate 0-100 */
|
|
134
164
|
recoveryRate: number;
|
|
@@ -194,7 +224,11 @@ export interface FecTrackStats {
|
|
|
194
224
|
* the retained horizon. They were already fed to the decoder and routed
|
|
195
225
|
* directly; this counts the bookkeeping retired with them, i.e. evidence
|
|
196
226
|
* that a block's repair symbols never arrived. The decoder retires its
|
|
197
|
-
* own copies by the same horizon inside `cleanup_by_ss_start`.
|
|
227
|
+
* own copies by the same horizon inside `cleanup_by_ss_start`. A block that
|
|
228
|
+
* completes with every source and has a repair is not in it, full-length
|
|
229
|
+
* (SSB_length equal to K) or short: its repair names the block here. A block
|
|
230
|
+
* none of whose repair symbols arrived has nothing to name it, so its sources
|
|
231
|
+
* are in it even when every one of them arrived.
|
|
198
232
|
*/
|
|
199
233
|
sourceUnplacedRetired: number;
|
|
200
234
|
/**
|