@wildshard/shard-format 0.33.0 → 0.34.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildshard/shard-format",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "The raw shardfile format: the spec, the validator and a validate CLI. The public, versioned contract every other repo builds on.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -52,25 +52,26 @@ const BASE_LEVEL = 1
52
52
  // Chromium capture (04d76bcf). The calibrated increment rounds to 168 MB.
53
53
  const SHADER_COMPILE_BYTES = 168_000_000
54
54
  const MB = 1_000_000
55
- const ENGINE_PLAYING_BYTES = 696_764_000
56
- const ENGINE_LOADING_BYTES = 982_344_000
57
- /** MG6 epoch 5 (mini-em11b, 2026-11-18): the estimate is ENGINE-MEMORY EM11's phone chain (engine
58
- * `scripts/memory/phone-model.json`, refit on readings without the Web Inspector's Network retention: native WebKit [K]
59
- * of the WebContent and GPU processes through alpha or scale to an iPhone 17 Pro's WebContent, at the 2048 MiB
60
- * ActiveHard line). Each weight is phone bytes per product byte, fitted so that every pinned product's estimate is at or
61
- * over the upper bound of EM11's error bar on its cold runs (engine `037d9f15`, Mac mini, phone Low;
62
- * `memory-calibration.golden.json` holds the pairs), with each verdict kept at the 1.0 GB playing envelope and the 1.5 GB
63
- * loading line except Pine's loading (memory-calibration.test.ts says why). The fit is minimax, then least
64
- * total overshoot; the content weight is held at 0.5 settled and 0.8 loading at least, so bytes a boot downloads and
65
- * decodes always count. The terms count only the files a phone fetches (`phoneInactiveFiles`). The engine term is
66
- * Template's bound raised to cover Sunscar Dunes, whose held bitmaps outweigh its terms; refit it when the engine's own
67
- * boot gets cheaper. Epoch 4 (`6b432a2a` readings) read Pine at 1.46x its clean bound and Dunes under it. */
55
+ const ENGINE_PLAYING_BYTES = 730_889_000
56
+ const ENGINE_LOADING_BYTES = 968_046_000
57
+ /** MG6 epoch 7 (mini-em11c, 2026-11-18; epoch 6 mini-sweep): the estimate is ENGINE-MEMORY EM11's phone chain (engine
58
+ * `scripts/memory/phone-model.json`, read without the Web Inspector's Network retention: native WebKit [K] of the
59
+ * WebContent and GPU processes through alpha or scale to an iPhone 17 Pro's WebContent, at the 2048 MiB ActiveHard line).
60
+ * The terms are the product's alone; the engine term and every weight are what one engine build does with them, so the
61
+ * estimate follows the engine only through a sweep and a refit: `memory-calibration.em11.json` names the build (engine
62
+ * `50092092`, 99 cold runs, 6 per heavy zone), `memory-fit.mjs` fits this block from it and the golden pairs it. Each
63
+ * weight is phone bytes per product byte, fitted so that every pinned product's estimate is at or over the upper bound
64
+ * of EM11's error bar over its cold runs (engine `upperOverRuns`, the 90% prediction bound on one more cold boot;
65
+ * epoch 6 used the highest run's), with each verdict kept at the 1.0 GB playing envelope and the 1.5 GB loading
66
+ * line. The fit is minimax, then least total overshoot; the content weight is held at 0.5 settled and 0.8 loading at
67
+ * least, so bytes a boot downloads and decodes always count. The terms count only the files a phone fetches
68
+ * (`phoneInactiveFiles`). Refit at every engine release, and after a memory cut that should reach the gates. */
68
69
  const PHONE = {
69
70
  engine: { playing: ENGINE_PLAYING_BYTES, loading: ENGINE_LOADING_BYTES },
70
71
  content: { playing: 0.5, loading: 0.8 },
71
- textures: { playing: 1.46099, loading: 1.786 },
72
- gl: { playing: 1.771, loading: 1.349 },
73
- geometry: { playing: 0, loading: 1.977 },
72
+ textures: { playing: 0.8518, loading: 2.2277 },
73
+ gl: { playing: 2.1475, loading: 1.8758 },
74
+ geometry: { playing: 0, loading: 0.7399 },
74
75
  /** A runtime home never reads under its own Simulator reading settled, nor under it times EM11's lowest peak over
75
76
  * settled (1.257) while loading. No pinned home binds here today; it stops a heavy runtime with light files. */
76
77
  runtime: { playing: 1, loading: 1.26 },
@@ -2,11 +2,13 @@
2
2
  * `runtimeCost` reading must have been taken against. It rises when the model changes what it charges (MG6 adds shader
3
3
  * compile, load transients, far slabs and paint arrays); from then a reading from an older epoch is refused until the
4
4
  * shard re-measures. A reading with no `epoch` is epoch 1, the model before MG6. */
5
- const MEMORY_EPOCH = 5
5
+ const MEMORY_EPOCH = 7
6
6
  /** MG6 epoch 4 (mini-estcal2) changed how the estimate converts a reading (EM11's chain), not how a reading is taken:
7
7
  * epoch 3's paired Simulator WebContent + GL protocol stands, so a reading from epoch 3 on is current. Epoch 5
8
8
  * (mini-em11b) refits that conversion to EM11 read without the Web Inspector's Network retention and counts only the
9
- * files a phone fetches; readings are still taken as in epoch 3. */
9
+ * files a phone fetches; epoch 6 (mini-sweep) refits it to an every-zone sweep on engine `50092092`; epoch 7 (mini-em11c) refits
10
+ * it to the same sweep read with EM11's 90% prediction bound over runs in place of the highest run. Readings are still
11
+ * taken as in epoch 3. */
10
12
  const OLDEST_CURRENT_EPOCH = 3
11
13
  const LEGACY_EPOCH = 1
12
14