@vessel-dsp/runtime 0.6.1 → 0.6.3

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.
Binary file
@@ -3155,7 +3155,9 @@ var ReferenceRuntime = class {
3155
3155
  * A validating shipped order is still replaced when the value-aware candidate
3156
3156
  * reaches the audio-agreement bar (1e-9) an order of magnitude more cleanly
3157
3157
  * without meaningful fill cost -- the refinement in `SCHEDULE_REFINEMENT_BAR`.
3158
- * Bar-clean ties keep shipped even when the audios differ: the
3158
+ * Past the marginal line the shipped order validates by less than an order of
3159
+ * magnitude, so the bar-clean candidate is adopted for correctness without
3160
+ * consulting fill cost. Bar-clean ties keep shipped even when the audios differ: the
3159
3161
  * operating-point replay cannot adjudicate audio-time divergence (`boss-os-2`
3160
3162
  * replays 3.4e-10 shipped vs 2.5e-13 candidate while the audios differ 1000x),
3161
3163
  * so the rule only moves past the bar it can measure, never on a tie.
@@ -6249,13 +6251,18 @@ var SCHEDULE_VALIDATION_TOL = 1e-3;
6249
6251
  var SCHEDULE_REFINEMENT_BAR = 1e-9;
6250
6252
  var SCHEDULE_REFINEMENT_RATIO = 10;
6251
6253
  var SCHEDULE_REFINEMENT_MAX_COST_GROWTH = 1.1;
6254
+ var SCHEDULE_MARGINAL_DISAGREEMENT = SCHEDULE_VALIDATION_TOL / SCHEDULE_REFINEMENT_RATIO;
6252
6255
  var SCHEDULE_MINIMUM_SAVING = 4;
6253
6256
  var SCHEDULE_CONSECUTIVE_FALLBACK_LIMIT = 64;
6254
6257
  function shouldRefinePivotOrder(input) {
6255
6258
  if (!Number.isFinite(input.shippedDisagreement) || !Number.isFinite(input.candidateDisagreement)) {
6256
6259
  return false;
6257
6260
  }
6258
- return input.shippedDisagreement > SCHEDULE_REFINEMENT_BAR && input.candidateDisagreement <= SCHEDULE_REFINEMENT_BAR && input.candidateDisagreement < input.shippedDisagreement / SCHEDULE_REFINEMENT_RATIO && input.candidateOps <= SCHEDULE_REFINEMENT_MAX_COST_GROWTH * input.shippedOps && input.candidateSlots <= SCHEDULE_REFINEMENT_MAX_COST_GROWTH * input.shippedSlots;
6261
+ return input.shippedDisagreement > SCHEDULE_REFINEMENT_BAR && input.candidateDisagreement <= SCHEDULE_REFINEMENT_BAR && input.candidateDisagreement < input.shippedDisagreement / SCHEDULE_REFINEMENT_RATIO && // A shipped order past the marginal line validates by less than an
6262
+ // order of magnitude: the replay is near the failure line, so adopt
6263
+ // the clean candidate for correctness without consulting fill cost.
6264
+ // Below the line the ceiling still stops churn among good orders.
6265
+ (input.shippedDisagreement > SCHEDULE_MARGINAL_DISAGREEMENT || input.candidateOps <= SCHEDULE_REFINEMENT_MAX_COST_GROWTH * input.shippedOps && input.candidateSlots <= SCHEDULE_REFINEMENT_MAX_COST_GROWTH * input.shippedSlots);
6259
6266
  }
6260
6267
  function runSparseSchedule(schedule, matrix, rhs, values, scratchRhs, factors, out) {
6261
6268
  const { ops, gatherRow, gatherColumn, slots, size } = schedule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vessel-dsp/runtime",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Real-time MNA simulation runtime and solver console for VesselDSP Program ROMs.",
5
5
  "keywords": [
6
6
  "guitar-pedal",
@@ -58,7 +58,7 @@
58
58
  "generate-kernels": "bun scripts/generate-kernels.ts"
59
59
  },
60
60
  "dependencies": {
61
- "@vessel-dsp/compiler": "0.7.0"
61
+ "@vessel-dsp/compiler": "0.8.1"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"