fix: limit trainer jumps and exit positions

This commit is contained in:
nyan404 committed 2026-11-22 16:33:30 +03:00
1 parent 27b3e0aaae
commit cc6bcb23c8
12 files changed
+174 -79

No files matched your search

@@ -14,5 +14,7 @@ Spec: ../specs/2026-11-17-lu-trainer.md and root LU_TRAINER_PROJECT.md (owner re
goal: make page available through Python and gateway, document scope and checks, commit without push.
files: app/main.py, nginx.conf, web/index.html, tests/test_lu_trainer.py, tests/browser/lu-trainer.cjs, README.md, AGENTS.md, MEMORY.md, structure_and_data.md, project_mind_map.md, LU_TRAINER_PROJECT.md
acceptance: targeted HTTP tests, Nginx syntax/serving, JS syntax, diff check, spec/diff review; temporary environments cleaned.
- [x] Follow-up: Limit jumps to adjacent cells and restrict variable exits to the specified edges.
acceptance: model tests for current-position adjacency, all allowed exit cells and a safe route up to the exit; targeted HTTP and JS checks; browser regression for rejected jumps and synchronized exits.
Final review: approved root scope implemented. Spec compliance/consistency review resolved temporary hint disclosure and terminal controls. Source/diff review found and fixed overlapping hint expiry and result-inspection timer advancement. JS syntax, Python source compilation, 9 engine tests, 5 focused HTTP/calculator-page tests, Chromium acceptance and isolated Nginx syntax/alias/MIME checks passed. No runtime dependency, API, storage or production change. Check record and environment limits: root structure_and_data.md.