Jump to content

Unity.Cursory/SPEC

From MindAttic Docs

Unity.Cursory — 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): the faithful Unity port of Cursory, the maintained Cursory. Unity.Cursory is the maintained version of Cursory, MindAttic's wordless co-op physics puzzle, rebuilt in Unity 6 on Unity.Multiplayer. Every player is a cursor on a real rope; heavy blocks only move when several players pull together; a whistle is the whole vocabulary. It is for the owner and friends playing together on Windows, hosted from a player's PC or a headless Linux server. The finished product is the faithful port: Cursory's 14 levels, its rules and its feel, playable online with friends from any network and bug-hunted. It is a port, not a redesign (BIBLE §2), so its gameplay is fixed and only bugs are fixed.

2. Scope boundary

2.1 In the product

  • Cursory's 14 levels, its Mass rules, goals, circuit and win detection.
  • Server-authoritative Physics2D with a physical cursor and a real, corner-wrapping rope.
  • Networked co-op: cursors and bodies in sync, votes, whistles, the front end, reconnects.
  • A Linux dedicated server, headless bots and an end-to-end bot test.
  • Client presentation: HUD, minimap, tether camera, per-player settings.
  • Launch modes (muted, headless) and the Windows player on R:\MindAttic\Apps\Unity.Cursory.
  • Join by code over Unity Relay for a home host, with no port forwarding.

2.2 Never in the product

  • New mechanics such as a grappling tether (UC-T37). A port, not a redesign; the rope already gives two-player leverage.
  • New puzzles from docs/design/puzzles.md. The 100 ideas are design reference only: the port keeps Cursory's own 14 levels, and new levels would change the game (owner rule for ports: fix bugs only).
  • A level editor or user-made levels (UC-T38, UC-T57–T59). Cursory never had one.
  • Renaming to Unity.Rea.Cursory (UC-T47, UC-T60–T62). This ports MindAttic's own game, not a reverse-engineered one.
  • Cursory's dead SwitchTile, Door and ShapeAttachment. They did nothing in the original.
  • Accounts, chat or text channels. Identity comes from the shared profile; the whistle is the only comms.
  • Clients other than Windows. The dedicated server runs on Linux; players run on Windows.

3. Users and roles

  • Player — plays a level with friends: grabs, pulls, whistles, votes.
  • Host — a player whose game is also the server; shares a join code.
  • Server operator — runs the headless Linux server through Unity.Multiplayer's mp-host game.
  • Bot — a headless client that proves the build end to end.
  • Owner — deploys the players to R: and signs off the release.

4. Requirements

Status is built (closed ticket, with evidence) or MS-34, the active milestone, which is also the finished product.

E1. The faithful port — UC-T88 — built

Cursory's levels, rules and physics, ported unchanged.

F1.1 Levels and rules — UC-T80 — built

  • S1.1.1 Level model — UC-T4 — built As a player, I want blocks, shapes, walls, goals and the circuit to behave as in Cursory, so that the port plays the same. Acceptance:
    • Given Cursory's levels 1, 3 and 14 as data, when they are validated, then they load with their Masses and goals. Evidence: Assets/Unity.Cursory/Core/Model, LevelDataTests.
  • S1.1.2 All 14 levels — UC-T5 — built As a player, I want all 14 of Cursory's levels with their own Masses, so that I play the whole original game. Acceptance:
    • Given the level library, when a level loads, then it equals Cursory's seed and stays clear of the 1.5 and 3.0 thresholds. Evidence: Core/Levels/LevelSeeds, LevelSeedTests, SolvabilityTests.
  • S1.1.3 Goals, circuit and win — UC-T9 — built As a player, I want a level to know when every goal is solved and the bulb is lit, so that we see we won. Acceptance:
    • Given a block dragged onto its pad, when the server ticks, then the goal shows solved on every client.
    • Given level 14 wired correctly, when the server ticks, then the bulb lights and the level is won. Evidence: CircuitRules, LevelProgress, LevelStateServerTests.

F1.2 Physics and rope — UC-T81 — built

  • S1.2.1 Server physics — UC-T6 — built As a player, I want one cursor to move Mass 1.0 but not 2.0, and two to move 2.0, so that cooperation matters. Acceptance:
    • Given a Mass 2.0 block, when one cursor pulls, then it does not move; when two pull, then it moves. Evidence: PhysicsWorld, ServerSimulation, ServerPhysicsTests.
  • S1.2.2 Physical cursor and real rope — UC-T33 — built As a player, I want my tether to be a real rope that wraps corners and drags me toward a heavy load, so that leverage and tug of war feel physical. Acceptance:
    • Given a corner grab pulled round a corner, when I pull, then the body turns toward me.
    • Given a rope, when anything pulls on it, then it never stretches past its length. Evidence: PhysicalCursorTests, HallBotTests, TetherWrapTests.
  • S1.2.3 Reload rebuilds the physics — UC-T20 — built As a player, I want a reset or level switch to rebuild the world cleanly, so that nothing from the old level lingers. Acceptance:
    • Given a grab in progress, when a reset vote passes, then every cursor lets go and the new level's bodies spawn. Evidence: ServerSimulation.RebuildWorld, LevelReloadTests.

E2. Networked co-op — UC-T82 — built

Friends play together on a host or a dedicated server.

F2.1 Playing together — UC-T83 — built

  • S2.1.1 Networked cursors and bodies — UC-T7 — built As a player, I want to see every cursor and body where the server says they are, so that we all play one world. Acceptance:
    • Given a host and a client, when a cursor moves or grabs, then both peers see the same positions. Evidence: CursorAvatar, NgoBodySync, CursorAvatarHostAndClientTests.
  • S2.1.2 Front end — UC-T12 — built As a player, I want menus to host, join by IP or code, see the lobby and reconnect, so that starting a game is easy. Acceptance:
    • Given the main menu, when I host and a friend joins by the lobby's code, then we both enter level 1. Evidence: NetFrontEnd adoption, FrontEndTests.
  • S2.1.3 Votes and whistles — UC-T10 — built As a player, I want to vote to reset or switch levels and to whistle, so that we coordinate without words. Acceptance:
    • Given three players, when two vote yes to reset, then the level resets.
    • Given a whistle, when I click empty space, then every peer sees my ripple and hears my tone. Evidence: WhistleBoard, LevelVotes, WhistleBoardTests.

F2.2 Servers and bots — UC-T84 — built

  • S2.2.1 Dedicated server — UC-T13 — built As a server operator, I want a headless Linux server build in Docker, so that friends can join a server that is always up. Acceptance:
    • Given mp-host game, when I deploy, then the server starts headless and publishes a join code. Evidence: docs/hosting.md.
  • S2.2.2 End-to-end bots — UC-T14 — built As the owner, I want two headless bots to solve level 2 on a dedicated server, so that a build is proven end to end. Acceptance:
    • Given a dedicated server on level 2, when bots A and B join by code, then they drag the Mass 2.0 block onto its pad together and both log OK. Evidence: CursoryBot, BotEndToEndTests.

E3. Presentation and launch — UC-T85 — built

What a player sees, and how the game is launched.

F3.1 Client presentation — UC-T86 — built

  • S3.1.1 HUD, minimap and camera — UC-T11 — built As a player, I want a toolbar, level banner, minimap and pan and zoom, so that I can find my way around a level. Acceptance:
    • Given a level, when it loads, then the minimap fits its bounds with padding and a click pans the camera. Evidence: CursoryClient, PresentationTests.
  • S3.1.2 Tether camera — UC-T34 — built As a player, I want the camera to follow me and my anchor while I'm tethered, so that I see both ends of my rope. Acceptance:
    • Given a tether, when I move, then the camera eases to the midpoint and zooms out just enough to show both. Evidence: e6b3db3.
  • S3.1.3 Tethers drawn and per-player settings — UC-T8 — built As a player, I want every rope drawn in its player's colour and my own cursor-collision switch, so that I see who holds what and choose how my cursor behaves. Acceptance:
    • Given a grab, when it is held, then its rope is drawn on every peer in the player's colour. Evidence: TetherRenderer, PlayerSettingsItems, TetherAvatarTests.

F3.2 Launch and deploy — UC-T87 — built

  • S3.2.1 Project skeleton — UC-T3 — built As a developer, I want a Unity 6 URP 2D project wired to its sibling packages, so that the game builds anywhere the workspace is checked out. Acceptance:
    • Given a clean checkout beside its sibling packages, when it opens in batch mode, then it compiles with no errors. Evidence: Packages/manifest.json.
  • S3.2.2 Muted launch — UC-T43 — built As a player, I want -muted to silence one run, so that a CLI or test session makes no sound. Acceptance:
    • Given -muted, when the game runs, then it is silent and the saved settings are unchanged. Evidence: 8646ab9.
  • S3.2.3 Headless launch — UC-T51 — built As the owner, I want tools/play.ps1 -Headless to run the player with no window, so that automation can play it. Acceptance:
    • Given -Headless, when the player starts, then it runs without a window and without the menu. Evidence: cb8d5f8.
  • S3.2.4 Windows build pipeline — UC-T27 — built As the owner, I want a run menu that builds and starts the Windows player, so that one click gives me the latest game. Acceptance:
    • Given run.bat, when I pick Deploy & Run, then the player is built and started. Evidence: f3b29b7 (shared run menu).

E4. Media.Capture adoption — UC-T65 — built

The game uses com.mindattic.media.capture locally and in CI (UC-T66, 7a797c9).

E5. Playable online — UC-T70 — MS-34

Friends join from anywhere, and the players are deployed where the owner runs them.

F5.1 Join by code over Relay — UC-T72 — MS-34

  • S5.1.1 Relay join codes for a home host — UC-T39 — MS-34 As a host at home, I want a join code that works from another network without port forwarding, so that friends anywhere can join. Acceptance:
    • Given a linked Unity Cloud project with Relay on, when I host, then the lobby shows a code a friend on another network can join with. Owner step first: create the Unity Cloud project with Relay and supply its project and organization ids.

F5.2 Installed Windows players — UC-T73 — MS-34

  • S5.2.1 Installed Windows players — UC-T68 — MS-34 As the owner, I want Debug and Release players at R:\MindAttic\Apps\Unity.Cursory, so that I run the game from the standard place. Acceptance:
    • Given run.ps1 -Redeploy, when it finishes, then R:\MindAttic\Apps\Unity.Cursory\Release\Unity.Cursory.exe exists.
  • S5.2.2 Retire the C: copy — UC-T69 — MS-34 (requires UC-T68) As the owner, I want the old C:\Apps\Unity.Cursory removed once R: works, so that there is one copy. Acceptance:
    • Given the R: players run, when cleanup runs, then C:\Apps\Unity.Cursory is gone.

E6. Stable 1.0 — UC-T71 — MS-34

Unity.Cursory 1.0 is bug-hunted and documented as the maintained Cursory. This epic is the release's polish and release step.

F6.1 Faithful, bug-free play — UC-T74 — MS-34

  • S6.1.1 Exhaustive bug hunt — UC-T64 — MS-34 As a player, I want the port's real bugs found and fixed, so that 1.0 plays cleanly. Acceptance:
    • Given the whole repo, when the hunt ends, then every confirmed bug is fixed under its own ticket.

F6.2 Known as the maintained Cursory — UC-T75 — MS-34

  • S6.2.1 Name the successor — UC-T76 — MS-34 As a reader, I want docs/overview.md and docs/BIBLE.md to say this is the maintained Cursory, so that nobody works on the archived Blazor version. Acceptance:
    • Given the docs, when read, then they name Unity.Cursory as the maintained Cursory and the Blazor repo as an archive candidate.

5. Non-functional requirements

  • Platforms: Windows players; a Linux x86_64 dedicated server in Docker.
  • Authority: the server owns the simulation; clients send intents only (UC-LAW-1).
  • Feel: Cursory's constants carry over; one cursor moves Mass 1.0 but not 2.0, two move 2.0 (UC-LAW-2).
  • Network: server ticks at 1/30 s; static geometry sent once per level (UC-LAW-4).
  • Testing: engine-free Core tested by dotnet test; PlayMode suites for everything networked.
  • Secrets: Unity Cloud ids and CI secrets live in the Vault and GitHub secrets, never in the repo.

6. Interfaces and dependencies

  • Platform repos used, by concern (docs/ECOSYSTEM.md §2.1): engine kits: Unity.Shared (profiles, settings, headless mode) and Unity.Multiplayer (online host and join); shipping: the shared run menu. Installed players require Unity.Shared's stable package (MAU-T25); online play requires Unity.Multiplayer release 3 (UM-T98).
  • Uses: Unity.Multiplayer (sessions, RPCs, front end, votes, bots, mp-host), Unity.Shared (profile name and colour, mute, headless), MindAttic.Components (every menu and HUD widget), MindAttic.Media.Capture.
  • Used by: Unity.Multiplayer's milestone sign-off (host, join by code, play a level) and its Cursory case study.
  • Outside services: Unity Relay and Unity Authentication for join codes from home.

7. Release sequence

  1. MS-34 — Unity.Cursory 1.0: the faithful port, playable online with friends (active). Epics UC-T70 Playable online (900) and UC-T71 Stable 1.0 (800), which is its polish-and-release step. Reaching it finishes the product: the port is complete, and anything more would be a different game.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from the BIBLE, RELEASE, overview, design notes, code and the ticket history; MS-34 is the finished product; docs/design/puzzles.md ideas recorded as never in the product MAT-T395
2026-11-30 MAT-T462 single-source pass: 3 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 2 requires added (2 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
Part of Unity.Cursory.
From Unity.Cursory/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.