Jump to content

MindPuck.Unity/SPEC

From MindAttic Docs
Revision as of 11:41, 30 November 2026 by Docs Sync (talk | contribs) (md2wiki: sync from MindAttic.Docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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 Run-menu deploy — 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 Freeze notice — 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.

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

  • 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
From MindPuck.Unity/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.