@wildshard/shard-format 0.41.0 → 0.41.1

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.41.0",
3
+ "version": "0.41.1",
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": {
@@ -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
@@ -13,14 +13,6 @@
13
13
  "loadingBytes": 984731013,
14
14
  "evidence": "engine-pinned product revision 6 (tar f42fe0449a93), a data shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
15
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)"
23
- },
24
16
  "far-reach": {
25
17
  "armed": "2026-11-18",
26
18
  "by": "mini-pinemem5",
@@ -37,22 +29,6 @@
37
29
  "loadingBytes": 925290035,
38
30
  "evidence": "engine-pinned product revision 1 (tar 5764c86a258a), a data shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
39
31
  },
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"
55
- },
56
32
  "open-plot-alien-plain": {
57
33
  "armed": "2026-11-18",
58
34
  "by": "mini-pinemem5",
@@ -197,14 +173,6 @@
197
173
  "loadingBytes": 925256481,
198
174
  "evidence": "engine-pinned product revision 1 (tar e42e2f5f5793), a data shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
199
175
  },
200
- "pine-hollow": {
201
- "armed": "2026-11-18",
202
- "by": "mini-pinemem5",
203
- "epoch": 8,
204
- "playingBytes": 920666659,
205
- "loadingBytes": 1298769921,
206
- "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)"
207
- },
208
176
  "sunscar-dunes": {
209
177
  "armed": "2026-11-18",
210
178
  "by": "mini-pinemem5",
@@ -213,5 +181,43 @@
213
181
  "loadingBytes": 1108011593,
214
182
  "evidence": "engine-pinned product revision 2 (tar f4a1d611cccc), a data shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
215
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"
194
+ },
195
+ "nalati-grasslands": {
196
+ "armed": "2026-11-18",
197
+ "by": "mini-pinemem5",
198
+ "epoch": 8,
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"
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
- if (zone === undefined) {
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
  }