mutation: run all test files, add mutations e-j (scanline fill, escape crossing, GM bypass, capsule, step cap, blocked trigger); header limitations updated
Control passes; a-d still caught (1,2,2,1,1 expected tests), new e-j each caught. Logs regenerated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
-8
@@ -1,12 +1,15 @@
|
||||
## 2D vision geometry. Pure, stdlib only. Ported from prototype-server-vision/src/geometry.nim.
|
||||
## Known limitations (see prototype-server-vision/HANDOFF.md, docs/DESIGN.md 5.4 / 12):
|
||||
## - token exactly on a wall cannot move off it (inclusive segsCross); pinned by a KNOWN LIMITATION test.
|
||||
## - closing a door on a token: policy open, DESIGN Q14 (5.4 vs H2 conflict); behaviour pinned in tests.
|
||||
## 2D vision geometry. Pure, stdlib only. Ported from prototype-server-vision/src/geometry.nim (M1), revised in M2.
|
||||
## Move rules (swept circle, token-on-wall escape, step cap, `blocked`) live in server/moverules.nim, not here.
|
||||
## Fixed in M2 (DESIGN 5.5): token exactly on a wall can move off it (moverules escape rule); the move check is the
|
||||
## swept circle, not centre path + destination only; `moveBlocked` is gone from this module; cellsTouched is a scanline
|
||||
## (prototype per-cell version kept test-only in tests/refold.nim, differential-tested).
|
||||
## Known limitations (DESIGN 5.4 / 12):
|
||||
## - boundary epsilon ambiguity: RayEps 1e-4 rad, inclusive tests; token on a vision boundary is ambiguous
|
||||
## (leak checker uses a 0.5 px neighbourhood).
|
||||
## - move collision = centre path a->b + destination circle only, NOT the swept circle (corner clipping possible).
|
||||
## - vision is O(rays x walls) per token, bbox cull only.
|
||||
## - cellsTouched costs ~12x a polygon (results/bench.log in the prototype).
|
||||
## (leak checker and explored oracle use a 0.5 px neighbourhood).
|
||||
## - cellsTouched keeps a prototype quirk on purpose: a cell touching the polygon only along its bbox minimum x / y line
|
||||
## is not marked (every other touch is). The regression corpus has such polygons (walls on x = 256).
|
||||
## - vision is O(rays x walls in bbox): bbox cull, no spatial grid (H3: not built, 5k bench met target; results/bench.log).
|
||||
## A dense 5k layout (4096 px world, ~200 walls per vision box) costs ~1.3 ms per polygon.
|
||||
## - circle range limit is an inscribed 64-gon: error <= ~0.12% of R.
|
||||
import std/[math, algorithm]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user