feat(server): map import CLI, pulled forward to M4 (#79)
Slice a PNG/WebP map into the gate's <x>_<y>.png tree under <state>/tiles/<scene>/v<art_version>/ and update the one scene row (w, h, tile_size, art_version); a re-import grows art_version so clients never serve stale tiles. The state-dir lock keeps a running server out (it loads the scene at startup), so stop/import/restart. Decoding is ImageMagick from the root devbox with a disk-backed pixel cache (-limit memory/map), keeping a 16384 px source memory-sane; no Nim/npm image dependency and the FIXED stack is unchanged. The black-box harness covers the tile geometry, scene row, restart pickup through the gate, re-import bump and every refused-import case. Records the M6 -> M4 move in DESIGN 3.3/11.1/13 and DESIGN-history, and documents the CLI plus the 16384 px/50-token recipe in README.
This commit is contained in:
+5
-1
@@ -31,7 +31,7 @@ export const GROUPS = {
|
||||
],
|
||||
},
|
||||
tiles: {
|
||||
files: ['tiles.test.mjs', 'oneway.test.mjs'],
|
||||
files: ['tiles.test.mjs', 'oneway.test.mjs', 'import.test.mjs'],
|
||||
evidence: [
|
||||
{ file: 'tiles.test.mjs',
|
||||
test: 'tile gate: leak check (d) matches the independent explored oracle',
|
||||
@@ -43,6 +43,10 @@ export const GROUPS = {
|
||||
{ file: 'tiles.test.mjs',
|
||||
test: 'tile gate: revocation is immediate and sessions survive a restart (#65)',
|
||||
minAsserts: 6, requires: ['rawUpgrade'] },
|
||||
// #79: the map import CLI writes the tree this gate parses, and a restarted server serves it.
|
||||
{ file: 'import.test.mjs',
|
||||
test: 'map import CLI: a fixture slices into v1 tiles, the scene row and a 200 through the gate',
|
||||
minAsserts: 12, requires: ['runImport'] },
|
||||
{ file: 'oneway.test.mjs',
|
||||
test: 'one-way sight: the blind side sees nothing across, the seeing side does (#58)',
|
||||
minAsserts: 12, requires: ['withOneWayStack'] },
|
||||
|
||||
Reference in New Issue
Block a user