@wildshard/shard-format 0.35.0 → 0.37.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.35.0",
3
+ "version": "0.37.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,26 +52,27 @@ 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 = 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
55
+ const ENGINE_PLAYING_BYTES = 601_226_000
56
+ const ENGINE_LOADING_BYTES = 880_443_000
57
+ /** MG6 epoch 8 (mini-pinemem5, 2026-11-18; epoch 7 mini-em11c, epoch 6 mini-sweep): the estimate is ENGINE-MEMORY EM11's phone chain (engine
58
58
  * `scripts/memory/phone-model.json`, read without the Web Inspector's Network retention: native WebKit [K] of the
59
59
  * WebContent and GPU processes through alpha or scale to an iPhone 17 Pro's WebContent, at the 2048 MiB ActiveHard line).
60
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
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
62
+ * `0af7ccd8`, 99 cold runs, 6 per heavy zone; epochs 6 and 7 read `50092092`), `memory-fit.mjs` fits this block from it and the golden pairs it. Each
63
63
  * weight is phone bytes per product byte, fitted so that every pinned product's estimate is at or over the upper bound
64
64
  * of EM11's error bar over its cold runs (engine `upperOverRuns`, the 90% prediction bound on one more cold boot;
65
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
66
+ * line (epoch 8 exempts Nalati's loading verdict: EM11 now reads it under 1.5 GB, and keeping that verdict forced
67
+ * a 4.6x geometry weight that raised Nine's loading estimate by 260 MB; its estimate still falls 1,727 -> 1,582 MB). The fit is minimax, then least total overshoot; the content weight is held at 0.5 settled and 0.8 loading at
67
68
  * least, so bytes a boot downloads and decodes always count. The terms count only the files a phone fetches
68
69
  * (`phoneInactiveFiles`). Refit at every engine release, and after a memory cut that should reach the gates. */
69
70
  const PHONE = {
70
71
  engine: { playing: ENGINE_PLAYING_BYTES, loading: ENGINE_LOADING_BYTES },
71
72
  content: { playing: 0.5, loading: 0.8 },
72
- textures: { playing: 0.8518, loading: 2.2277 },
73
- gl: { playing: 2.1475, loading: 1.8758 },
74
- geometry: { playing: 0, loading: 0.7399 },
73
+ textures: { playing: 2.1078, loading: 2.6827 },
74
+ gl: { playing: 1.5515, loading: 1.7403 },
75
+ geometry: { playing: 0, loading: 0 },
75
76
  /** A runtime home never reads under its own Simulator reading settled, nor under it times EM11's lowest peak over
76
77
  * settled (1.257) while loading. No pinned home binds here today; it stops a heavy runtime with light files. */
77
78
  runtime: { playing: 1, loading: 1.26 },
@@ -4,13 +4,13 @@ import { staleReadingAdmitted } from './memory-ratchet.ts'
4
4
  * `runtimeCost` reading must have been taken against. It rises when the model changes what it charges (MG6 adds shader
5
5
  * compile, load transients, far slabs and paint arrays); from then a reading from an older epoch is refused until the
6
6
  * shard re-measures. A reading with no `epoch` is epoch 1, the model before MG6. */
7
- const MEMORY_EPOCH = 7
7
+ const MEMORY_EPOCH = 8
8
8
  /** MG6 epoch 4 (mini-estcal2) changed how the estimate converts a reading (EM11's chain), not how a reading is taken:
9
9
  * epoch 3's paired Simulator WebContent + GL protocol stands, so a reading from epoch 3 on is current. Epoch 5
10
10
  * (mini-em11b) refits that conversion to EM11 read without the Web Inspector's Network retention and counts only the
11
11
  * files a phone fetches; epoch 6 (mini-sweep) refits it to an every-zone sweep on engine `50092092`; epoch 7 (mini-em11c) refits
12
- * it to the same sweep read with EM11's 90% prediction bound over runs in place of the highest run. Readings are still
13
- * taken as in epoch 3. */
12
+ * it to the same sweep read with EM11's 90% prediction bound over runs in place of the highest run; epoch 8 (mini-pinemem5) refits it to an every-zone
13
+ * sweep on engine `0af7ccd8`. Readings are still taken as in epoch 3. */
14
14
  const OLDEST_CURRENT_EPOCH = 3
15
15
  const LEGACY_EPOCH = 1
16
16
 
@@ -4,8 +4,10 @@
4
4
  * OF10c1a runtime tier and the MG5 stale-reading check refuse a zone only when it is worse than its baseline here;
5
5
  * at or under the baseline they report. A zone with no row keeps every refusing gate.
6
6
  *
7
- * Each baseline is the zone's reading on 2026-11-18 under memory epoch 7 (MEMORY-GATES MG8, mini-mg8): the largest of
8
- * the engine-pinned product's estimates (admission and performance report) and the current source's, in decimal bytes. A cut ratchets the row down; a zone
7
+ * Each baseline is the zone's reading on 2026-11-18 under memory epoch 8 (MEMORY-GATES MG10, mini-pinemem5; epoch 7
8
+ * mini-mg8): the largest of the engine-pinned product's estimates (admission and performance report) and the current
9
+ * source's, in decimal bytes. Pine's playing and loading rows are its pinned product's declared admission (the epoch-8
10
+ * estimate reads 1,261 / 1,697 MB). A cut ratchets the row down; a zone
9
11
  * that passes a line loses that field, and the line refuses again. `staleRevision` is the pinned product's
10
12
  * `identity.revision`: it admits that revision's pre-epoch-3 runtime reading; any later revision must carry a current one.
11
13
  */
@@ -18,24 +20,22 @@ interface MemoryBaseline {
18
20
 
19
21
  const MEMORY_RATCHET: Readonly<Record<string, MemoryBaseline>> = Object.freeze({
20
22
  'driftwood-isle': {
21
- loading: 1_616_043_903,
22
23
  runtime: 538_863_164,
23
24
  staleRevision: 2,
24
25
  },
25
26
  'nalati-grasslands': {
26
- loading: 1_731_454_480,
27
+ loading: 1_582_259_503,
27
28
  runtime: 700_846_587,
28
29
  staleRevision: 1,
29
30
  },
30
31
  'nine-dragon-stack': {
31
- playing: 1_530_989_917,
32
- loading: 1_928_953_301,
32
+ loading: 1_666_992_954,
33
33
  runtime: 547_365_098,
34
34
  staleRevision: 1,
35
35
  },
36
36
  'pine-hollow': {
37
- playing: 1_648_479_456,
38
- loading: 1_982_254_656,
37
+ playing: 1_627_187_329,
38
+ loading: 1_707_187_329,
39
39
  runtime: 550_909_717,
40
40
  staleRevision: 1,
41
41
  },