Map tiles in M3? #7

Closed
opened 2026-11-10 16:48:37 +01:00 by SirStone · 2 comments
Owner

Part of #2

Question

Should M3 include the /tiles/ gate? M3 scope leaves it out, but M3 accept needs the leak test (d) and a smoke tile-steal check.

  • Suggested default: build the Nim tile gate (X-Accel-Redirect) with fixture tiles in M3; the import CLI stays in M6.
Part of #2 ## Question Should M3 include the /tiles/ gate? M3 scope leaves it out, but M3 accept needs the leak test (d) and a smoke tile-steal check. - Suggested default: build the Nim tile gate (X-Accel-Redirect) with fixture tiles in M3; the import CLI stays in M6.
SirStone added the wayfinder:grilling label 2026-11-10 16:48:37 +01:00
SirStone added a new dependency 2026-11-10 16:49:01 +01:00
SirStone added a new dependency 2026-11-10 16:49:04 +01:00
SirStone self-assigned this 2026-11-10 19:33:35 +01:00
Author
Owner

In progress (session paused 2026-11-10). Answers so far from the owner:

  1. Yes, build the /tiles/ gate in M3, using fixture tiles. The import CLI stays in M6.
  2. Yes, M3 tests run through a minimal local test nginx (internal /_tiles/ location), as in the prototype. This covers the leak test (d) and the smoke tile-steal checks, including a direct /_tiles/ fetch returning 404. The production nginx vhost stays in M6.
  3. Note, not a question: fixture tile_size follows DESIGN's FIXED 32 px. tests/fixtures/scene.json tileSize: 256 is stale and gets fixed at build time.

Pending: where fixture tiles come from. The recommended answer is generated by a test helper at test time and not checked in; this was asked but not yet answered. Then the remaining technical defaults:

  • Tile URL: art_version in the path now, or later (§3.3 PROPOSED)?
  • Status codes for malformed or out-of-range paths (400 vs 404); unexplored stays 403.
  • Cache-Control: private (DESIGN) vs no-store (prototype).
  • Does the gate reuse cellsTouched / the explored-grid logic, plus the M2 independent oracle for the leak test?
  • <state>/tiles/ layout and art_version handling: in M3 or deferred to M6?
**In progress (session paused 2026-11-10).** Answers so far from the owner: 1. Yes, build the /tiles/ gate in M3, using fixture tiles. The import CLI stays in M6. 2. Yes, M3 tests run through a minimal local test nginx (internal /_tiles/ location), as in the prototype. This covers the leak test (d) and the smoke tile-steal checks, including a direct /_tiles/ fetch returning 404. The production nginx vhost stays in M6. 3. Note, not a question: fixture tile_size follows DESIGN's FIXED 32 px. tests/fixtures/scene.json `tileSize: 256` is stale and gets fixed at build time. Pending: where fixture tiles come from. The recommended answer is generated by a test helper at test time and not checked in; this was asked but not yet answered. Then the remaining technical defaults: - Tile URL: art_version in the path now, or later (§3.3 PROPOSED)? - Status codes for malformed or out-of-range paths (400 vs 404); unexplored stays 403. - Cache-Control: `private` (DESIGN) vs `no-store` (prototype). - Does the gate reuse cellsTouched / the explored-grid logic, plus the M2 independent oracle for the leak test? - `<state>/tiles/` layout and art_version handling: in M3 or deferred to M6?
Author
Owner

Resolved. DESIGN.md edited in commit 8c03224 (local on main, not pushed).

  1. M3 builds the /tiles/ gate (Nim, X-Accel-Redirect) with fixture tiles. Tile import CLI stays M6.
  2. M3 tests use a minimal local test nginx with internal /_tiles/. Covers leak test (d) and smoke tile-steal checks, incl. direct /_tiles/ fetch → 404. Production vhost stays M6.
  3. Fixture tile_size = 32 px (FIXED). tests/fixtures/scene.json tileSize 256 is stale; fixed at build time.
  4. Fixture tiles generated by a test helper at test time, not committed.
  5. art_version in tile URL from M3 on (always 1 in M3). URL form: /tiles/<scene>/v<art_version>/<x>_<y>.png. Resolves §3.3 PROPOSED tile-url-scene-version → FIXED.
  6. Malformed or out-of-range tile paths → 404. Unexplored → 403 (unchanged).
  7. Cache-Control: private (as DESIGN, not prototype's no-store).
  8. Gate reuses the server's explored-area logic (cellsTouched/explored grid). Leak test checks it against the independent M2 oracle.
  9. On-disk layout <state>/tiles/<scene>/v<art_version>/ fixed in M3. Writing versions and cleanup stay M6.
Resolved. DESIGN.md edited in commit 8c03224 (local on main, not pushed). 1. M3 builds the `/tiles/` gate (Nim, X-Accel-Redirect) with fixture tiles. Tile import CLI stays M6. 2. M3 tests use a minimal local test nginx with internal `/_tiles/`. Covers leak test (d) and smoke tile-steal checks, incl. direct `/_tiles/` fetch → 404. Production vhost stays M6. 3. Fixture tile_size = 32 px (FIXED). `tests/fixtures/scene.json` tileSize 256 is stale; fixed at build time. 4. Fixture tiles generated by a test helper at test time, not committed. 5. `art_version` in tile URL from M3 on (always 1 in M3). URL form: `/tiles/<scene>/v<art_version>/<x>_<y>.png`. Resolves §3.3 PROPOSED `tile-url-scene-version` → FIXED. 6. Malformed or out-of-range tile paths → 404. Unexplored → 403 (unchanged). 7. `Cache-Control: private` (as DESIGN, not prototype's no-store). 8. Gate reuses the server's explored-area logic (cellsTouched/explored grid). Leak test checks it against the independent M2 oracle. 9. On-disk layout `<state>/tiles/<scene>/v<art_version>/` fixed in M3. Writing versions and cleanup stay M6.
Sign in to join this conversation.