@wildshard/shard-format 0.41.0 → 0.42.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.42.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": {
|
|
@@ -27,18 +27,18 @@ interface BootMemoryCosts {
|
|
|
27
27
|
/** MG6 epoch 4: what the offline estimate reads of a product, in bytes; from epoch 5 only the files a phone fetches. */
|
|
28
28
|
interface PhoneTerms {
|
|
29
29
|
/** Every phone-tier client file's wire bytes plus its CPU-decoded bytes (audio aside), the commons the same way, and,
|
|
30
|
-
* for a
|
|
30
|
+
* for a shard with no runtime, the decoded engine images the cook mounts: what a boot downloads and decodes. */
|
|
31
31
|
readonly content: number
|
|
32
32
|
/** GPU texture bytes: image and KTX2 files, commons GPU and mounted images; zero for a runtime home, whose `gl` stands
|
|
33
33
|
* in (its files carry every tier's variants: Pine ships 704 MB of texture bytes and holds 65 MB on a phone at Low). */
|
|
34
34
|
readonly textures: number
|
|
35
|
-
/** A runtime home's paired GL reading [L]; zero for a
|
|
35
|
+
/** A runtime home's paired GL reading [L]; zero for a shard with no runtime. */
|
|
36
36
|
readonly gl: number
|
|
37
37
|
/** GPU geometry bytes: GLB and binary files. */
|
|
38
38
|
readonly geometry: number
|
|
39
39
|
/** The shard's own declared sim residency at its growth limit (`budgets.sim`, `serverBudget.memory`). */
|
|
40
40
|
readonly sims: number
|
|
41
|
-
/** A runtime home's paired Simulator WebContent + GL reading, whole; zero for a
|
|
41
|
+
/** A runtime home's paired Simulator WebContent + GL reading, whole; zero for a shard with no runtime. */
|
|
42
42
|
readonly runtimeReading: number
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$doc": "J426 (Jake, 2026-11-18): the one armed-zone list. A zone named here has done the work to get under the J410 lines, and from then on every memory gate refuses it back over them, with no override flag and no report-only fallback: the format's offline estimate over lines.playingBytes / lines.loadingBytes (check, validate, cook, upload), the declared worst-location total over the J408 1.5 GB line, the runtime tier and a stale runtime reading; engine's ledger, footprint and boot-line guards read the same list. A zone not named here reports only (J424). Each zone's playingBytes / loadingBytes are its offline estimate when it was armed (memory epoch in `epoch`); the offline estimate refuses over the larger of the line and that reading plus 0.5% (memory-armed.ts ARMED_ALLOWANCE), so a zone EM11 measured under the line whose conservative estimate reads over it (Nine's playing) is locked at its armed state. Decimal bytes. Format memory-armed.ts reads this; engine reads @wildshard/format/src/format/memory-armed.json.",
|
|
2
|
+
"$doc": "J426 (Jake, 2026-11-18): the one armed-zone list. A zone named here has done the work to get under the J410 lines, and from then on every memory gate refuses it back over them, with no override flag and no report-only fallback: the format's offline estimate over lines.playingBytes / lines.loadingBytes (check, validate, cook, upload), the declared worst-location total over the J408 1.5 GB line, the runtime tier and a stale runtime reading; engine's ledger, footprint and boot-line guards read the same list. A zone not named here reports only (J424). Each zone's playingBytes / loadingBytes are its offline estimate when it was armed (memory epoch in `epoch`); the offline estimate refuses over the larger of the line and that reading plus 0.5% (memory-armed.ts ARMED_ALLOWANCE), so a zone EM11 measured under the line whose conservative estimate reads over it (Nine's playing) is locked at its armed state. Decimal bytes. Format memory-armed.ts reads this; engine reads @wildshard/format/src/format/memory-armed.json. `held` (J424): zones armed once but moved out of `zones` because engine pins an older product of theirs that reads over the line; a held zone reports only, and moves back to `zones` (re-armed) when its engine re-pin lands. Its readings stay so re-arming changes nothing else.",
|
|
3
3
|
"lines": {
|
|
4
4
|
"playingBytes": 1000000000,
|
|
5
5
|
"loadingBytes": 1500000000
|
|
@@ -11,15 +11,7 @@
|
|
|
11
11
|
"epoch": 8,
|
|
12
12
|
"playingBytes": 679221837,
|
|
13
13
|
"loadingBytes": 984731013,
|
|
14
|
-
"evidence": "engine-pinned product revision 6 (tar f42fe0449a93), a
|
|
15
|
-
},
|
|
16
|
-
"driftwood-isle": {
|
|
17
|
-
"armed": "2026-11-18",
|
|
18
|
-
"by": "mini-pinemem5",
|
|
19
|
-
"epoch": 8,
|
|
20
|
-
"playingBytes": 820905616,
|
|
21
|
-
"loadingBytes": 1157545785,
|
|
22
|
-
"evidence": "shard-driftwood e736730 built with format 0.37 (epoch 8); codex-nalati locked pairs on the EM11 upper read 990.5 / 1,344.7 MB (meta MEMORY-GATES)"
|
|
14
|
+
"evidence": "engine-pinned product revision 6 (tar f42fe0449a93), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
23
15
|
},
|
|
24
16
|
"far-reach": {
|
|
25
17
|
"armed": "2026-11-18",
|
|
@@ -27,7 +19,7 @@
|
|
|
27
19
|
"epoch": 8,
|
|
28
20
|
"playingBytes": 999952196,
|
|
29
21
|
"loadingBytes": 1415754105,
|
|
30
|
-
"evidence": "engine-pinned product revision 4 (tar 5bc5adcf764a), a
|
|
22
|
+
"evidence": "engine-pinned product revision 4 (tar 5bc5adcf764a), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
31
23
|
},
|
|
32
24
|
"ink-cel-valley": {
|
|
33
25
|
"armed": "2026-11-18",
|
|
@@ -35,23 +27,7 @@
|
|
|
35
27
|
"epoch": 8,
|
|
36
28
|
"playingBytes": 636979847,
|
|
37
29
|
"loadingBytes": 925290035,
|
|
38
|
-
"evidence": "engine-pinned product revision 1 (tar 5764c86a258a), a
|
|
39
|
-
},
|
|
40
|
-
"nalati-grasslands": {
|
|
41
|
-
"armed": "2026-11-18",
|
|
42
|
-
"by": "mini-pinemem5",
|
|
43
|
-
"epoch": 8,
|
|
44
|
-
"playingBytes": 945736154,
|
|
45
|
-
"loadingBytes": 1328901899,
|
|
46
|
-
"evidence": "shard-nalati 1d5014e8 built with format 0.37 (epoch 8); mini-resweep EM11 upper on the J420 stand-in: playing 0.940 GB less the worker, loading 1.470 GB (meta MEMORY-GATES)"
|
|
47
|
-
},
|
|
48
|
-
"nine-dragon-stack": {
|
|
49
|
-
"armed": "2026-11-18",
|
|
50
|
-
"by": "mini-pinemem5",
|
|
51
|
-
"epoch": 8,
|
|
52
|
-
"playingBytes": 1023504847,
|
|
53
|
-
"loadingBytes": 1434692360,
|
|
54
|
-
"evidence": "shard-nine-dragon 8779b872 built with format 0.37 (epoch 8); mini-pinemem6 prepared online boot on engine d0fd6e62, 9 pairs: playing upper 0.938 GB, loading upper 1.435 GB (meta 1677f091). The estimate's playing (1,023.5 MB) is over the 1.0 GB line, so it locks at that reading"
|
|
30
|
+
"evidence": "engine-pinned product revision 1 (tar 5764c86a258a), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
55
31
|
},
|
|
56
32
|
"open-plot-alien-plain": {
|
|
57
33
|
"armed": "2026-11-18",
|
|
@@ -59,7 +35,7 @@
|
|
|
59
35
|
"epoch": 8,
|
|
60
36
|
"playingBytes": 665173554,
|
|
61
37
|
"loadingBytes": 967392441,
|
|
62
|
-
"evidence": "engine-pinned product revision 1 (tar c32cd9fb9229), a
|
|
38
|
+
"evidence": "engine-pinned product revision 1 (tar c32cd9fb9229), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
63
39
|
},
|
|
64
40
|
"open-plot-clockwork-canyon": {
|
|
65
41
|
"armed": "2026-11-18",
|
|
@@ -67,7 +43,7 @@
|
|
|
67
43
|
"epoch": 8,
|
|
68
44
|
"playingBytes": 675751489,
|
|
69
45
|
"loadingBytes": 982935896,
|
|
70
|
-
"evidence": "engine-pinned product revision 1 (tar 3b322eccd99e), a
|
|
46
|
+
"evidence": "engine-pinned product revision 1 (tar 3b322eccd99e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
71
47
|
},
|
|
72
48
|
"open-plot-coral-drift": {
|
|
73
49
|
"armed": "2026-11-18",
|
|
@@ -75,7 +51,7 @@
|
|
|
75
51
|
"epoch": 8,
|
|
76
52
|
"playingBytes": 681768940,
|
|
77
53
|
"loadingBytes": 992453778,
|
|
78
|
-
"evidence": "engine-pinned product revision 1 (tar 87841749dc3f), a
|
|
54
|
+
"evidence": "engine-pinned product revision 1 (tar 87841749dc3f), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
79
55
|
},
|
|
80
56
|
"open-plot-desert-ruin": {
|
|
81
57
|
"armed": "2026-11-18",
|
|
@@ -83,7 +59,7 @@
|
|
|
83
59
|
"epoch": 8,
|
|
84
60
|
"playingBytes": 686478807,
|
|
85
61
|
"loadingBytes": 997958716,
|
|
86
|
-
"evidence": "engine-pinned product revision 1 (tar 3b65bfef7275), a
|
|
62
|
+
"evidence": "engine-pinned product revision 1 (tar 3b65bfef7275), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
87
63
|
},
|
|
88
64
|
"open-plot-ember-forge": {
|
|
89
65
|
"armed": "2026-11-18",
|
|
@@ -91,7 +67,7 @@
|
|
|
91
67
|
"epoch": 8,
|
|
92
68
|
"playingBytes": 679682616,
|
|
93
69
|
"loadingBytes": 987005255,
|
|
94
|
-
"evidence": "engine-pinned product revision 1 (tar e1a3a9325e8e), a
|
|
70
|
+
"evidence": "engine-pinned product revision 1 (tar e1a3a9325e8e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
95
71
|
},
|
|
96
72
|
"open-plot-fossil-badlands": {
|
|
97
73
|
"armed": "2026-11-18",
|
|
@@ -99,7 +75,7 @@
|
|
|
99
75
|
"epoch": 8,
|
|
100
76
|
"playingBytes": 671308241,
|
|
101
77
|
"loadingBytes": 976533532,
|
|
102
|
-
"evidence": "engine-pinned product revision 1 (tar 5bbdd51b8db9), a
|
|
78
|
+
"evidence": "engine-pinned product revision 1 (tar 5bbdd51b8db9), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
103
79
|
},
|
|
104
80
|
"open-plot-frostline-peaks": {
|
|
105
81
|
"armed": "2026-11-18",
|
|
@@ -107,7 +83,7 @@
|
|
|
107
83
|
"epoch": 8,
|
|
108
84
|
"playingBytes": 694731191,
|
|
109
85
|
"loadingBytes": 1007041500,
|
|
110
|
-
"evidence": "engine-pinned product revision 1 (tar ec7b8879a343), a
|
|
86
|
+
"evidence": "engine-pinned product revision 1 (tar ec7b8879a343), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
111
87
|
},
|
|
112
88
|
"open-plot-jungle-ziggurat": {
|
|
113
89
|
"armed": "2026-11-18",
|
|
@@ -115,7 +91,7 @@
|
|
|
115
91
|
"epoch": 8,
|
|
116
92
|
"playingBytes": 683128342,
|
|
117
93
|
"loadingBytes": 992540003,
|
|
118
|
-
"evidence": "engine-pinned product revision 1 (tar 62fdb3cc7e41), a
|
|
94
|
+
"evidence": "engine-pinned product revision 1 (tar 62fdb3cc7e41), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
119
95
|
},
|
|
120
96
|
"open-plot-lantern-bayou": {
|
|
121
97
|
"armed": "2026-11-18",
|
|
@@ -123,7 +99,7 @@
|
|
|
123
99
|
"epoch": 8,
|
|
124
100
|
"playingBytes": 679945285,
|
|
125
101
|
"loadingBytes": 989938627,
|
|
126
|
-
"evidence": "engine-pinned product revision 1 (tar 1f9fb1cba098), a
|
|
102
|
+
"evidence": "engine-pinned product revision 1 (tar 1f9fb1cba098), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
127
103
|
},
|
|
128
104
|
"open-plot-mosslight-ruins": {
|
|
129
105
|
"armed": "2026-11-18",
|
|
@@ -131,7 +107,7 @@
|
|
|
131
107
|
"epoch": 8,
|
|
132
108
|
"playingBytes": 693006386,
|
|
133
109
|
"loadingBytes": 1006944516,
|
|
134
|
-
"evidence": "engine-pinned product revision 1 (tar 19840339238b), a
|
|
110
|
+
"evidence": "engine-pinned product revision 1 (tar 19840339238b), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
135
111
|
},
|
|
136
112
|
"open-plot-night-market": {
|
|
137
113
|
"armed": "2026-11-18",
|
|
@@ -139,7 +115,7 @@
|
|
|
139
115
|
"epoch": 8,
|
|
140
116
|
"playingBytes": 709180040,
|
|
141
117
|
"loadingBytes": 1028237840,
|
|
142
|
-
"evidence": "engine-pinned product revision 1 (tar d8fe11c2db67), a
|
|
118
|
+
"evidence": "engine-pinned product revision 1 (tar d8fe11c2db67), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
143
119
|
},
|
|
144
120
|
"open-plot-patchwork-fairground": {
|
|
145
121
|
"armed": "2026-11-18",
|
|
@@ -147,7 +123,7 @@
|
|
|
147
123
|
"epoch": 8,
|
|
148
124
|
"playingBytes": 670516626,
|
|
149
125
|
"loadingBytes": 974863462,
|
|
150
|
-
"evidence": "engine-pinned product revision 1 (tar e517f4814ef6), a
|
|
126
|
+
"evidence": "engine-pinned product revision 1 (tar e517f4814ef6), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
151
127
|
},
|
|
152
128
|
"open-plot-saltwind-lighthouse": {
|
|
153
129
|
"armed": "2026-11-18",
|
|
@@ -155,7 +131,7 @@
|
|
|
155
131
|
"epoch": 8,
|
|
156
132
|
"playingBytes": 657567209,
|
|
157
133
|
"loadingBytes": 956173411,
|
|
158
|
-
"evidence": "engine-pinned product revision 1 (tar 2e37a04b0c9e), a
|
|
134
|
+
"evidence": "engine-pinned product revision 1 (tar 2e37a04b0c9e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
159
135
|
},
|
|
160
136
|
"open-plot-sky-harbor": {
|
|
161
137
|
"armed": "2026-11-18",
|
|
@@ -163,7 +139,7 @@
|
|
|
163
139
|
"epoch": 8,
|
|
164
140
|
"playingBytes": 671985118,
|
|
165
141
|
"loadingBytes": 977835231,
|
|
166
|
-
"evidence": "engine-pinned product revision 1 (tar 9aa4a9839015), a
|
|
142
|
+
"evidence": "engine-pinned product revision 1 (tar 9aa4a9839015), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
167
143
|
},
|
|
168
144
|
"open-plot-sky-race": {
|
|
169
145
|
"armed": "2026-11-18",
|
|
@@ -171,7 +147,7 @@
|
|
|
171
147
|
"epoch": 8,
|
|
172
148
|
"playingBytes": 671490214,
|
|
173
149
|
"loadingBytes": 977159704,
|
|
174
|
-
"evidence": "engine-pinned product revision 1 (tar a5633d8eee7f), a
|
|
150
|
+
"evidence": "engine-pinned product revision 1 (tar a5633d8eee7f), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
175
151
|
},
|
|
176
152
|
"open-plot-starfall-observatory": {
|
|
177
153
|
"armed": "2026-11-18",
|
|
@@ -179,7 +155,7 @@
|
|
|
179
155
|
"epoch": 8,
|
|
180
156
|
"playingBytes": 674717033,
|
|
181
157
|
"loadingBytes": 981241332,
|
|
182
|
-
"evidence": "engine-pinned product revision 1 (tar 25331b613be1), a
|
|
158
|
+
"evidence": "engine-pinned product revision 1 (tar 25331b613be1), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
183
159
|
},
|
|
184
160
|
"open-plot-thin-ice": {
|
|
185
161
|
"armed": "2026-11-18",
|
|
@@ -187,7 +163,7 @@
|
|
|
187
163
|
"epoch": 8,
|
|
188
164
|
"playingBytes": 657896658,
|
|
189
165
|
"loadingBytes": 957357794,
|
|
190
|
-
"evidence": "engine-pinned product revision 1 (tar 4546f70ddac2), a
|
|
166
|
+
"evidence": "engine-pinned product revision 1 (tar 4546f70ddac2), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
191
167
|
},
|
|
192
168
|
"pastel-plain": {
|
|
193
169
|
"armed": "2026-11-18",
|
|
@@ -195,23 +171,53 @@
|
|
|
195
171
|
"epoch": 8,
|
|
196
172
|
"playingBytes": 636958876,
|
|
197
173
|
"loadingBytes": 925256481,
|
|
198
|
-
"evidence": "engine-pinned product revision 1 (tar e42e2f5f5793), a
|
|
174
|
+
"evidence": "engine-pinned product revision 1 (tar e42e2f5f5793), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
199
175
|
},
|
|
200
|
-
"
|
|
176
|
+
"sunscar-dunes": {
|
|
201
177
|
"armed": "2026-11-18",
|
|
202
178
|
"by": "mini-pinemem5",
|
|
203
179
|
"epoch": 8,
|
|
204
|
-
"playingBytes":
|
|
205
|
-
"loadingBytes":
|
|
206
|
-
"evidence": "
|
|
180
|
+
"playingBytes": 772000529,
|
|
181
|
+
"loadingBytes": 1108011593,
|
|
182
|
+
"evidence": "engine-pinned product revision 2 (tar f4a1d611cccc), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"held": {
|
|
186
|
+
"driftwood-isle": {
|
|
187
|
+
"armed": "2026-11-18",
|
|
188
|
+
"by": "mini-pinemem5",
|
|
189
|
+
"epoch": 8,
|
|
190
|
+
"playingBytes": 820905616,
|
|
191
|
+
"loadingBytes": 1157545785,
|
|
192
|
+
"evidence": "shard-driftwood e736730 built with format 0.37 (epoch 8); codex-nalati locked pairs on the EM11 upper read 990.5 / 1,344.7 MB (meta MEMORY-GATES)",
|
|
193
|
+
"held": "2026-11-18 opus-pin (J424, QA 11-18 row 29): engine pins an older product of this zone that reads over its line; re-arm (move back to zones) when engine's pin reaches the armed build"
|
|
207
194
|
},
|
|
208
|
-
"
|
|
195
|
+
"nalati-grasslands": {
|
|
209
196
|
"armed": "2026-11-18",
|
|
210
197
|
"by": "mini-pinemem5",
|
|
211
198
|
"epoch": 8,
|
|
212
|
-
"playingBytes":
|
|
213
|
-
"loadingBytes":
|
|
214
|
-
"evidence": "
|
|
199
|
+
"playingBytes": 945736154,
|
|
200
|
+
"loadingBytes": 1328901899,
|
|
201
|
+
"evidence": "shard-nalati 1d5014e8 built with format 0.37 (epoch 8); mini-resweep EM11 upper on the J420 stand-in: playing 0.940 GB less the worker, loading 1.470 GB (meta MEMORY-GATES)",
|
|
202
|
+
"held": "2026-11-18 opus-pin (J424, QA 11-18 row 29): engine pins an older product of this zone that reads over its line; re-arm (move back to zones) when engine's pin reaches the armed build"
|
|
203
|
+
},
|
|
204
|
+
"nine-dragon-stack": {
|
|
205
|
+
"armed": "2026-11-18",
|
|
206
|
+
"by": "mini-pinemem5",
|
|
207
|
+
"epoch": 8,
|
|
208
|
+
"playingBytes": 1023504847,
|
|
209
|
+
"loadingBytes": 1434692360,
|
|
210
|
+
"evidence": "shard-nine-dragon 8779b872 built with format 0.37 (epoch 8); mini-pinemem6 prepared online boot on engine d0fd6e62, 9 pairs: playing upper 0.938 GB, loading upper 1.435 GB (meta 1677f091). The estimate's playing (1,023.5 MB) is over the 1.0 GB line, so it locks at that reading",
|
|
211
|
+
"held": "2026-11-18 opus-pin (J424, QA 11-18 row 29): engine pins an older product of this zone that reads over its line; re-arm (move back to zones) when engine's pin reaches the armed build"
|
|
212
|
+
},
|
|
213
|
+
"pine-hollow": {
|
|
214
|
+
"armed": "2026-11-18",
|
|
215
|
+
"by": "mini-pinemem5",
|
|
216
|
+
"epoch": 8,
|
|
217
|
+
"playingBytes": 920666659,
|
|
218
|
+
"loadingBytes": 1298769921,
|
|
219
|
+
"evidence": "shard-pine-hollow 400ed4b7 built with format 0.37 (epoch 8); mini-pinemem6 prepared online boot on engine f0a96518, 9 pairs: playing upper 0.969 GB, loading upper 1.407 GB (meta 118a2b13)",
|
|
220
|
+
"held": "2026-11-18 opus-pin (J424, QA 11-18 row 29): engine pins an older product of this zone that reads over its line; re-arm (move back to zones) when engine's pin reaches the armed build"
|
|
215
221
|
}
|
|
216
222
|
}
|
|
217
223
|
}
|
|
@@ -26,6 +26,14 @@ const ARMED_ZONES: Readonly<Record<string, ArmedZone>> = Object.freeze(
|
|
|
26
26
|
armed.zones,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
+
/** J424 (QA 11-18 row 29): a zone armed once but held out of `ARMED_ZONES` while engine pins an older product of it
|
|
30
|
+
* that reads over its line. It reports only; it moves back to `zones` (re-armed) when its engine re-pin lands. */
|
|
31
|
+
interface HeldZone extends ArmedZone {
|
|
32
|
+
readonly held: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const HELD_ZONES: Readonly<Record<string, HeldZone>> = Object.freeze(armed.held)
|
|
36
|
+
|
|
29
37
|
/** True when `slug` is in the armed list (J426). */
|
|
30
38
|
function zoneArmed(slug?: string): boolean {
|
|
31
39
|
return slug !== undefined && Object.hasOwn(ARMED_ZONES, slug)
|
|
@@ -34,6 +42,15 @@ function zoneArmed(slug?: string): boolean {
|
|
|
34
42
|
/** A rebuild of the same source moves the computed estimate by packing and compression drift only. */
|
|
35
43
|
const ARMED_ALLOWANCE = 0.005
|
|
36
44
|
|
|
45
|
+
/** The line a zone's entry locks at: the J410 line, or its reading at arming plus the allowance when that is higher. */
|
|
46
|
+
function zoneLine(zone: ArmedZone, kind: ArmedKind): number {
|
|
47
|
+
const armedBytes = kind === 'playing' ? zone.playingBytes : zone.loadingBytes
|
|
48
|
+
return Math.max(
|
|
49
|
+
ARMED_LINES[kind],
|
|
50
|
+
armedBytes + Math.floor(armedBytes * ARMED_ALLOWANCE),
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
37
54
|
/** What an armed zone's offline estimate refuses over: the J410 line, or, when the conservative estimate of a source
|
|
38
55
|
* that EM11 measured under the line already reads over it (Nine's playing), that reading at arming plus the
|
|
39
56
|
* allowance, so the gate locks in the measured state and refuses any growth. Undefined for a zone that only reports. */
|
|
@@ -43,14 +60,7 @@ function armedLine(
|
|
|
43
60
|
): number | undefined {
|
|
44
61
|
const zone =
|
|
45
62
|
slug === undefined || !zoneArmed(slug) ? undefined : ARMED_ZONES[slug]
|
|
46
|
-
|
|
47
|
-
return undefined
|
|
48
|
-
}
|
|
49
|
-
const armedBytes = kind === 'playing' ? zone.playingBytes : zone.loadingBytes
|
|
50
|
-
return Math.max(
|
|
51
|
-
ARMED_LINES[kind],
|
|
52
|
-
armedBytes + Math.floor(armedBytes * ARMED_ALLOWANCE),
|
|
53
|
-
)
|
|
63
|
+
return zone === undefined ? undefined : zoneLine(zone, kind)
|
|
54
64
|
}
|
|
55
65
|
|
|
56
66
|
export {
|
|
@@ -60,5 +70,8 @@ export {
|
|
|
60
70
|
type ArmedKind,
|
|
61
71
|
type ArmedZone,
|
|
62
72
|
armedLine,
|
|
73
|
+
HELD_ZONES,
|
|
74
|
+
type HeldZone,
|
|
63
75
|
zoneArmed,
|
|
76
|
+
zoneLine,
|
|
64
77
|
}
|
|
@@ -30,7 +30,8 @@ const section = v.strictObject({ ...measuredFile, name: sectionName, schema: v.p
|
|
|
30
30
|
const cookRow = v.exactOptional(v.strictObject({ ...measuredFile, path: v.literal('cook.json') }));
|
|
31
31
|
const costs = v.omit(FilesSchema.pipe[0].item, ['kind']).entries;
|
|
32
32
|
const fileSchema = v.strictObject({ ...costs, path, kind: v.picklist(['glb', 'ktx2', 'audio', 'json', 'wasm', 'tile', 'bin', 'image']), name: v.exactOptional(v.pipe(v.string(), v.maxLength(240))), tier: v.exactOptional(v.picklist(['phone', 'desktop'])), variantOf: v.exactOptional(v.pipe(v.string(), v.minLength(1), v.maxLength(240))), commons: v.exactOptional(v.literal(true)), jsonSchema: v.exactOptional(v.record(v.string(), v.unknown())) });
|
|
33
|
-
|
|
33
|
+
/** `trust` is retired (OF1): new indexes omit it, old products still carry their value and nothing reads it. */
|
|
34
|
+
const runtime = v.strictObject({ ...v.omit(ClientPlanRuntimeSchema.pipe[0], ['spawns']).entries, trust: v.exactOptional(v.unknown()), files: v.pipe(v.array(v.strictObject({ ...measuredFile, lines: ShardNaturalSchema })), v.maxLength(0)), lines: v.literal(0) });
|
|
34
35
|
/** Format 2 inventories every emitted byte except its index and validation receipt. */
|
|
35
36
|
export const OutputIndexSchema: v.GenericSchema<OutputIndexRowsInput, OutputIndexRows> & { readonly entries: { readonly [Key in keyof OutputIndexRows]-?: v.GenericSchema<OutputIndexRowsInput[Key], OutputIndexRows[Key]> } } = v.strictObject({
|
|
36
37
|
format: v.literal('wildshard.shardfile'), formatVersion: v.literal(2), sdk: v.picklist(['0.2', '0.3']), version: v.picklist(SHARDFILE_VERSIONS),
|
|
@@ -224,7 +225,7 @@ interface OutputIndexRowsInputFields {
|
|
|
224
225
|
bytes: number;
|
|
225
226
|
} | undefined;
|
|
226
227
|
runtime: {
|
|
227
|
-
trust
|
|
228
|
+
trust?: unknown;
|
|
228
229
|
files: {
|
|
229
230
|
lines: number;
|
|
230
231
|
path: string;
|
|
@@ -322,7 +323,7 @@ interface OutputIndexRowsFields {
|
|
|
322
323
|
bytes: number;
|
|
323
324
|
} | undefined;
|
|
324
325
|
runtime: {
|
|
325
|
-
trust
|
|
326
|
+
trust?: unknown;
|
|
326
327
|
files: {
|
|
327
328
|
lines: number;
|
|
328
329
|
path: string;
|
|
@@ -371,7 +371,7 @@ export function shardfileRules(s: Shardfile, sections?: ReadonlyMap<string, unkn
|
|
|
371
371
|
if (s.crowds.some(row => Math.abs(row.x) > CHUNK_HALF || Math.abs(row.z) > CHUNK_HALF)) errors.push('declared crowd home in cell');
|
|
372
372
|
if (spawnCapacity(s.creatures.spawns) + crowdMembers > s.serverBudget.entities) errors.push('declared entity capacity');
|
|
373
373
|
errors.push(...creatureSizeRules(s.rows.species, s.creatures.spawns));
|
|
374
|
-
for (const spawn of s.creatures.spawns) if (!species.get(spawn.species)?.variants.some((row) => row.id === spawn.variant) || (spawn.strike !== null && !strikes.has(spawn.strike))) errors.push(
|
|
374
|
+
for (const spawn of s.creatures.spawns) if (!species.get(spawn.species)?.variants.some((row) => row.id === spawn.variant) || (spawn.strike !== null && !strikes.has(spawn.strike))) errors.push(`declared spawn species/variant/strike: ${spawn.id}`);
|
|
375
375
|
errors.push(...encounterRules(s.encounters, s.creatures.spawns.map((spawn) => spawn.id), s.ui.filter((row) => row.kind === 'bossPanel')));
|
|
376
376
|
const controlled = new Set(s.encounters.map((row) => row.entity));
|
|
377
377
|
errors.push(...groupBrainRules(s.creatures.groups, s.creatures.spawns, s.creatures.brains.map((row) => row.id), [...controlled]));
|
|
@@ -391,6 +391,8 @@ export function shardfileRules(s: Shardfile, sections?: ReadonlyMap<string, unkn
|
|
|
391
391
|
})) errors.push('exactly one declared creature controller');
|
|
392
392
|
return [...new Set(errors)];
|
|
393
393
|
}
|
|
394
|
+
/** How many failing semantic rules a refusal names before it counts the rest. */
|
|
395
|
+
const NAMED_RULES = 8;
|
|
394
396
|
/** Strict schema for the public SDK format; rejects unknown fields and invalid references.
|
|
395
397
|
* Keep the unknown-input/named-output boundary independent of the nested validator implementation. */
|
|
396
398
|
function shardfileSchema(sections?: ReadonlyMap<string, unknown>): v.GenericSchema<unknown, Shardfile> { return v.pipe(v.unknown(), v.rawCheck(({ dataset, addIssue }) => {
|
|
@@ -408,7 +410,15 @@ function shardfileSchema(sections?: ReadonlyMap<string, unknown>): v.GenericSche
|
|
|
408
410
|
}
|
|
409
411
|
}), rawSchema,
|
|
410
412
|
v.rawCheck(({ dataset, addIssue }) => { if (dataset.typed) { try { preflightAssetGraph(dataset.value); } catch (error) { addIssue({ message: error instanceof Error ? error.message : 'shardfile asset graph admission' }); } } }),
|
|
411
|
-
v.check((s) => entrywayRules(s).length === 0, 'illegal shard: entryway openings must meet road height y=0'), v.
|
|
413
|
+
v.check((s) => entrywayRules(s).length === 0, 'illegal shard: entryway openings must meet road height y=0'), v.rawCheck(({ dataset, addIssue }) => {
|
|
414
|
+
// OF-NE21: the refusal names its rules (the first eight), so an author sees which row is at fault
|
|
415
|
+
if (!dataset.typed) { return; }
|
|
416
|
+
const rules = shardfileRules(dataset.value, sections);
|
|
417
|
+
if (rules.length === 0) { return; }
|
|
418
|
+
const named = rules.filter((_rule, index): boolean => index < NAMED_RULES);
|
|
419
|
+
const rest = rules.length > named.length ? `; and ${String(rules.length - named.length)} more` : '';
|
|
420
|
+
addIssue({ message: `shardfile semantic rules: ${named.join('; ')}${rest}` });
|
|
421
|
+
})); }
|
|
412
422
|
export const ShardfileSchema: v.GenericSchema<unknown, Shardfile> = shardfileSchema();
|
|
413
423
|
/** Parse JSON through every shard rule. Optional section payloads extend item target
|
|
414
424
|
* references only through the defining species-program contract, never an id allowlist.
|