MindPuck.Web/SPEC
MindPuck.Web — Product specification
The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree.
docs/RELEASE.mdsays which part of this the current milestone delivers.
1. Product definition
A product in docs/ECOSYSTEM.md (Games): the canonical MindPuck, played with the face through the platform's webcam library. MindPuck moves an air-hockey puck into the goal with your eyes. The table holds obstacles; where you look pushes, pulls or steers the puck, tracked through an ordinary webcam, a phone camera, or the pointer with no camera. Every level is generated from a seed and proven winnable by a solver bot in every control scheme before you see it. This repo is the canonical version; MindPuck.Unity and MindPuck.Unreal are frozen ports of its rules. The finished product is the game a real person plays to the goal with their own camera in all three schemes: the owner's original ask, "a user can use their webcam or phone cam to repulse a puck".
2. Scope boundary
2.1 In the product
- The table, physics, solver-proven procedural levels and shareable seeds.
- Three control schemes (magnetic, steer, repulsor) stepped with F1.
- Camera, phone camera and pointer input through MindAttic.Webcam; serving from the bridge at
/play/. - A verified real-eye play path and the owner's check guide.
2.2 Never in the product
- New control schemes or game modes beyond the three (RELEASE §5); a scheme would follow DESIGN.md's recipe only on the owner's request.
- Multiplayer or online scores (BIBLE §3).
- App-store publishing; a WebGL Unity build.
- Open-ended bughunts (MP-T10).
3. Users and roles
- Player: plays with a webcam, phone camera or pointer.
- Owner: runs the real-eye check and signs off MS-1.
4. Requirements
Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.
E1. MindPuck web game — MP-T19 — built
F1.1 Table, physics and levels — MP-T20 — built
- S1.1.1 The puck table — MP-T2 — built As a player, I want a three.js table with polygon collisions, drag and procedural levels the solver has won, so that every level I see is winnable. Acceptance:
npm run levelsshows every level won. Evidence:87b9097.
F1.2 Control schemes — MP-T21 — built
- S1.2.1 Magnetic mode — MP-T5 — built As a player, I want my gaze to pull the puck to where I look, by default. Evidence:
8f6aadc. - S1.2.2 Steer mode — MP-T6 — built As a player, I want to look at the puck's edge to move it that way, with F1 stepping through the three schemes. Evidence:
9bf0504. - S1.2.3 Steer anchored to the puck — MP-T7 — built As a player, I want steer to remove the standing gaze offset during the start hold, so that steer works at webcam accuracy. Evidence:
67e8725. - S1.2.4 Calibrate over the play window — MP-T4 — built As a player, I want calibration targets to cover the window I play in, not fullscreen. Evidence:
e28d3e8.
E2. Real-eye play on the web — MP-T11 — MS-1
F2.1 Pre-signoff smoke — MP-T12 — MS-1
- S2.1.1 Fake-camera smoke of /play/ — MP-T14 — MS-1 (task) As the owner, I want
/play/driven in headless Chrome on a recorded face clip through calibration and all three schemes, with anything broken fixed, so that my real-camera session is not wasted.
F2.2 Owner real-eye check — MP-T13 — MS-1
- S2.2.1 Real-eye check guide — MP-T15 — MS-1 (task, after MP-T14) As the owner, I want
docs/REAL-EYE-CHECK.mdwith the steps (webcam, then phone; calibrate; gaze-lab accuracy; win a level in each scheme) and where to record the accuracy figure, so that MS-1's sign-off has evidence.
5. Non-functional requirements
- The core is pure:
src/corehas no browser, DOM or three.js dependency (MP-LAW-1). - Every level is proven winnable in every scheme (MP-LAW-2); a zero-confidence gaze pushes nothing (MP-LAW-4).
- Rules change here first; the ports mirror the core file for file (MP-LAW-3). Fixed 1/120 s physics step.
6. Interfaces and dependencies
- Platform repos used, by concern (
docs/ECOSYSTEM.md§2.1): browser, media, voice, face: MindAttic.Webcam (face and gaze landmarks). - Uses: MindAttic.Webcam (
EyeTracker,RemoteGazeSource,MouseGazeSource, the bridge that serves/play/), three.js. - Used by: MindPuck.Unity and MindPuck.Unreal, which port its core.
7. Release sequence
- MS-1 MindPuck real-eye verification (active, shared with MindAttic.Webcam, MindPuck.Unity and MindPuck.Unreal; the finished product): E2. Its sign-off, the owner playing with a real camera, is the polish and release step. No later milestone is planned.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from README, BIBLE, DESIGN, RELEASE, code and the ticket history | MAT-T382 |
| 2026-11-30 | MAT-T462 single-source pass: 0 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 1 requires added (0 cross-repo to the Unity platform kits), 0 platform re-points (the game already uses the owner kits; links make the order explicit) | MAT-T473 |