@wildshard/shard-format 0.35.0 → 0.36.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.
|
|
3
|
+
"version": "0.36.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 =
|
|
56
|
-
const ENGINE_LOADING_BYTES =
|
|
57
|
-
/** MG6 epoch
|
|
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
|
-
* `
|
|
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
|
|
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:
|
|
73
|
-
gl: { playing:
|
|
74
|
-
geometry: { playing: 0, loading: 0
|
|
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
|
+
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
|
|
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
|
|