Jump to content

MindPuck.Unity/SPEC

From MindAttic Docs

MindPuck.Unity — 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.md says which part of this the current milestone delivers.

1. Product definition

A product in docs/ECOSYSTEM.md (Games), frozen: superseded by MindPuck.Web, kept only as built. MindPuck.Unity is a frozen port: MindPuck's rules ported 1:1 to C# on MindAttic.Webcam's Unity gaze client, at parity with the web core of MindPuck.Web commit 67e8725 (steer anchoring). MindPuck.Web is the canonical game and supersedes this port for any new rule or feature. The finished product is the port playable from the shared run menu with a README that says it is frozen.

2. Scope boundary

2.1 In the product

  • The ported core, table, gaze client and the three schemes, at parity with the web.
  • Development and Release Windows players on R:\MindAttic\Apps\MindPuck.Unity through the run menu.

2.2 Never in the product

  • Any new feature, scheme or mode: rule changes land in MindPuck.Web first and are ported only on the owner's request (MP-LAW-3).
  • A WebGL build or app-store publishing.
  • Open-ended bughunts (MPU-T8).

3. Users and roles

  • Owner: launches the Release player from the run menu; asks for a port when the web rules change.

4. Requirements

Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.

E1. Unity port at parity — MPU-T18 — built

F1.1 Port of the web core — MPU-T19 — built

  • S1.1.1 Unity port — MPU-T2 — built As the owner, I want the core rules ported 1:1 to C# with a code-built table, the gaze client wired in and NUnit core tests. Evidence: d6caf79.
  • S1.1.2 Magnetic mode — MPU-T3 — built. Evidence: c0466cb.
  • S1.1.3 Steer mode — MPU-T4 — built. Evidence: e99f9e2.
  • S1.1.4 Steer anchoring at web parity — MPU-T5 — built. Evidence: 11e7bf1.

E2. Unity port frozen — MPU-T11 — MS-1

F2.1 Installed from the run menu — MPU-T12 — MS-1

  • S2.1.1 MindPuck.Unity on the run menu — MPU-T10 — MS-1 (task) As the owner, I want run.ps1 and a generated run.bat over deploy-lib.ps1 Publish-Unity, so that Redeploy makes Development and Release players in R:\MindAttic\Apps\MindPuck.Unity\{Debug,Release} that launch.

F2.2 Marked frozen for MindPuck.Web — MPU-T13 — MS-1

  • S2.2.1 Unity freeze notice — MPU-T14 — MS-1 (task) As a future agent, I want the README (docs/overview.md) and AGENTS.md to say the port is frozen at 67e8725, so that no feature work starts here.
  • S2.0.1 Installed port is the frozen port (membrane) — MPU-T20 — MS-1 Acceptance: Given Redeploy, when the Release player on R: is launched, then it reaches level 1 in all three schemes, and docs/overview.md and AGENTS.md say frozen at 67e8725 and how to install from the run menu. Joins F2.1 and F2.2.

5. Non-functional requirements

  • Same constants and order of random draws as the web core; pars match the web.
  • One heavy Unity build at a time on the machine.

6. Interfaces and dependencies

  • Platform repos used, by concern (docs/ECOSYSTEM.md §2.1): shipping: the shared run menu (MindAttic.Agency deploy-lib).
  • Uses: MindAttic.Webcam's Unity client (unity/com.mindattic.eyetracker) over the bridge, the shared deploy-lib.ps1.
  • Superseded by: MindPuck.Web, the canonical version.

7. Release sequence

  1. MS-1 MindPuck real-eye verification (active, shared; the finished product): E2. After it, the owner may archive the repo (portfolio-reset note).

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written: frozen port, superseded by MindPuck.Web MAT-T382
2026-11-30 MAT-T462 single-source pass: 2 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 0 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
2026-12-01 Build-up plan phase: ledger 14/14 read and seated (R12); E2's membrane S2.0.1 (MPU-T20) filed and approved; no debt MPU-T11
From MindPuck.Unity/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.