diff --git a/AGENTS.md b/AGENTS.md index b459d77..856a174 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -40,8 +40,8 @@ Read [[🧠 Philosophy]] before changing the vault. The Bookshelf Principle, Pre ## Code -The first slice is in code (ADRs 012–014): [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], player inventory, play overlay. +The first slice is in code and has been played (ADRs 012–015): [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], overlay HUD, capture = tooltip + rebindable Add key. -Do not start EMI, persistence, or Project until those are settled in the vault. +Do not start EMI, persistence, or Project until those are settled in the vault. Do not rewrite the overlay as a `Screen` unless the HUD path fails. The NeoForge template example block/item is gone. Do not put it back. diff --git a/README.md b/README.md index 2b5985d..01c8416 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,9 @@ Those may be integrated with later. They are not owned by Satistaskory. ## Status -First slice is in `src/`: domain types, stub recipes, in-memory Create Goal, player inventory, play overlay on the right. +First slice is in `src/` and has been played: domain, stub recipes, in-memory plan, overlay on the right, hover + Add key (default `=`). -Add a goal with `/satistaskory add minecraft:furnace`. The plan is RAM-only. Not EMI. Template example block/item is gone. +`/satistaskory add minecraft:furnace` is a debug command. The plan is RAM-only. Not EMI. Template example block/item is gone. --- diff --git a/docs/00-Vision/🌟 Project Vision.md b/docs/00-Vision/🌟 Project Vision.md index bdecc91..478ac57 100644 --- a/docs/00-Vision/🌟 Project Vision.md +++ b/docs/00-Vision/🌟 Project Vision.md @@ -76,7 +76,7 @@ Vision, philosophy, language, and an architecture scaffold exist. A player day exists: name a goal by pointing at an item; walk with missing materials on the play screen. See [[🚢 Day in the Life]]. -The first slice is in code: [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], play overlay. Capture is `/satistaskory add`. RAM only. +The first slice is in code and has been played: [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], play overlay. Capture is hover + Add key. `/satistaskory add` is debug. RAM only. See [[πŸ—ΊοΈ Roadmap]]. diff --git a/docs/03-Architecture/▢️ Create Goal.md b/docs/03-Architecture/▢️ Create Goal.md index fdf9474..1f48105 100644 --- a/docs/03-Architecture/▢️ Create Goal.md +++ b/docs/03-Architecture/▢️ Create Goal.md @@ -2,7 +2,7 @@ First use case. Application layer. It does not contain domain rules; it uses [[🎯 Goal]] invariants. -Capture (hover β†’ `+ Add to Crafting Goals`) is one caller. The use case does not know about inventory screens. +Capture (hover item β†’ Add key) is one caller. The use case does not know about inventory screens. --- @@ -60,9 +60,9 @@ No confirm on Clear. ## First wiring -Capture: hover an item in inventory, the crafting bench craft pane, or the craft book, then `+ Add to Crafting Goals`. That calls this use case. +Capture: hover an item in inventory, the crafting bench craft pane, or the craft book; tooltip shows the bound key; press it. That calls this use case. -`/satistaskory add` remains a debug caller. Overlay on the **right** of the play screen. +`/satistaskory add` remains a debug caller (unknown ids are rejected). Overlay on the **right** of the play screen. Do not start EMI. Do not start a planner menu. diff --git a/docs/03-Architecture/πŸ›οΈ Architecture.md b/docs/03-Architecture/πŸ›οΈ Architecture.md index 1d6ce3e..f0198f3 100644 --- a/docs/03-Architecture/πŸ›οΈ Architecture.md +++ b/docs/03-Architecture/πŸ›οΈ Architecture.md @@ -96,9 +96,7 @@ Recipe resolution uses a `RecipeProvider` port. It does not call a recipe mod. Coordinates use cases. -First use case: [[▢️ Create Goal]]. - -Same slice: Adjust Goal Quantity, Remove Goal, Clear Goals, Refresh Progress. +First use case: [[▢️ Create Goal]]. In code this slice is one `Planner` facade (create / increment / decrement / clear / snapshot), not one class per use case. Mark Goal Complete is named. It is not in the first slice. @@ -123,6 +121,8 @@ Examples: - Save data storage - Inventory scanning +Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet. + Infrastructure is never the source of domain truth. --- @@ -173,8 +173,8 @@ The UI should be replaceable. It renders domain information. It does not contain Discovered consumers (see [[πŸ–₯️ Experience]]): -- **Capture** β€” in-place on inventory, crafting bench craft pane, and craft book. Hover β†’ `+ Add to Crafting Goals`. We do not own those views. -- **Living** β€” play overlay panel on the **right** of the play screen (not a pause menu). Two regions: [[🎯 Goal|goals]] with quantity `[+]` / `[-]`, then aggregated materials still needed (one row per material, with a count). `X Clear Items` clears the goal list. See [[πŸ–ΌοΈ Wireframes]] Screen 2. +- **Capture** β€” in-place on inventory, crafting bench craft pane, and craft book. Tooltip + rebindable Add key (default `=`). We do not own those views. Not a clickable chip beside the slot. +- **Living** β€” play overlay HUD on the **right** of the play screen (not a `Screen`). Two regions: [[🎯 Goal|goals]] with quantity `[+]` / `[-]`, then aggregated materials still needed (one row per material, with a count). `X Clear Items` clears the goal list. Vanilla button sprites + click sound; cursor via chat. See [[πŸ–ΌοΈ Wireframes]] Screen 2. Not discovered: diff --git a/docs/03-Architecture/πŸ“ Decisions.md b/docs/03-Architecture/πŸ“ Decisions.md index cfa3f4e..73b9e8d 100644 --- a/docs/03-Architecture/πŸ“ Decisions.md +++ b/docs/03-Architecture/πŸ“ Decisions.md @@ -240,6 +240,24 @@ First impl: `StubRecipeProvider`. Production EMI/JEI/REI adapters come after the --- +### ADR-015 β€” Capture is tooltip + key; overlay is a HUD + +**Date:** 2026-09-08 + +**Decision:** Capture is a tooltip line plus a rebindable `KeyMapping` (default `=`, Controls β†’ Satistaskory). The mouse stays on the item. There is no clickable chip beside the slot. + +The play overlay stays a HUD layer, not a `Screen`. `[+]` / `[-]` / Clear use vanilla `widget/button` sprites and `UI_BUTTON_CLICK`. A cursor is required (chat). Walking does not unlock the mouse. + +**Reason:** + +A button next to the slot vanishes when the cursor leaves the item. A `Screen` rewrite would replace a working HUD. Vanilla `Button` widgets belong on screens we do not own. + +**Status:** βœ… Accepted + +**Refines:** ADR-010 (in-place capture; the control is a key, not a click-off button). **Supersedes** ADR-013’s β€œfirst wiring may be one caller” β€” inventory, craft pane, and craft book all call [[▢️ Create Goal]]. + +--- + ## Related Documents [[πŸ›οΈ Architecture]] diff --git a/docs/03-Architecture/πŸ“¦ Packages.md b/docs/03-Architecture/πŸ“¦ Packages.md index e804f3e..3e9ff97 100644 --- a/docs/03-Architecture/πŸ“¦ Packages.md +++ b/docs/03-Architecture/πŸ“¦ Packages.md @@ -24,20 +24,19 @@ com.sufficient.satistaskory ProgressCalculation # domain service application/ - CreateGoal - AdjustGoalQuantity - RemoveGoal - ClearGoals - RefreshProgress + Planner # create / increment / decrement / clear / snapshot + InMemoryGoalStore infrastructure/ recipe/ - StubRecipeProvider # first impl. Not EMI/JEI/REI. + StubRecipeProvider # furnace, crafting_table, chest; else gather inventory/ PlayerInventoryAdapter # player inventory β†’ InventoryState client/ - PlayOverlay # Screen 2 - CaptureHook # Screen 1 β€” hover add on inventory, craft pane, craft book + PlayOverlay # Screen 2 HUD (not a Screen) + CaptureHook # tooltip + KeyMapping ADD_GOAL + PlannerSession + ClientCommands # debug /satistaskory add|clear ``` Dependencies point inward: `infrastructure` and `application` may import `domain`. `domain` imports nothing from NeoForge, EMI, JEI, REI, or `infrastructure`. @@ -54,7 +53,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain | Persistence | In-memory goals. ADR-004 still holds; no save adapter yet | | Full-screen planner | Not discovered | -The example block/item in the NeoForge template is not a package. Remove it when domain types land; do not put Goal next to it as if they were peers. +The NeoForge template example block/item is gone. Do not put it back. --- diff --git a/docs/04-Planning/πŸ—ΊοΈ Roadmap.md b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md index 2e6a49a..364654d 100644 --- a/docs/04-Planning/πŸ—ΊοΈ Roadmap.md +++ b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md @@ -12,17 +12,16 @@ What exists, and what is next. Implementation detail will live in an Implementat - Packages named; [[πŸ”Œ Recipe Provider]] sketched; [[▢️ Create Goal]] written - Experience: capture in place; overlay on the right (goals + aggregated needed counts) -First slice **code exists**: domain, stub `RecipeProvider`, in-memory Create Goal, player inventory, play overlay. Capture is `/satistaskory add `. Plan does not survive restart. +First slice **code exists** and has been played: domain, stub `RecipeProvider` (furnace / crafting table / chest; else gather), in-memory `Planner`, player inventory, play overlay on the right. Capture is hover + rebindable Add key (default `=`). `/satistaskory add` is a debug caller. Plan does not survive restart. --- ## πŸ”² Next -Play the slice. Then, only if the walk is real: +The walk is real. -1. Hover-add on one inventory host (the other two later) -2. World-save persistence -3. Real recipe adapter (still not required to start with EMI) +1. World-save persistence +2. Vanilla `RecipeProvider` (one crafting level). Still not EMI. Do not start EMI because the port exists. @@ -30,7 +29,6 @@ Do not start EMI because the port exists. ## ⏸ Not opened -- Hover-add on inventory / bench / craft book - World save --- diff --git a/docs/04-Planning/🧭 Notes for the Wayfinder.md b/docs/04-Planning/🧭 Notes for the Wayfinder.md index 1d9fd2b..0e7a7bb 100644 --- a/docs/04-Planning/🧭 Notes for the Wayfinder.md +++ b/docs/04-Planning/🧭 Notes for the Wayfinder.md @@ -296,6 +296,26 @@ Avoid: EMI next β€œbecause we can.” --- +## πŸ“œ 2026-09-08 (prose caught up) + +Greetings, Wayfinder. + +The walk is real. The vault had drifted. + +What the code actually does: + +- Capture: tooltip + rebindable Add key (`=`). Inventory, craft pane, craft book. Not a click-off-the-slot chip. +- Overlay: HUD, not a `Screen`. Vanilla `widget/button` sprites + `UI_BUTTON_CLICK`. Cursor via chat. +- Application: one `Planner`, not five use-case classes. +- Stub: three recipes. Oak planks as a goal is gather, not logs. +- Command add is debug. Unknown ids fail. + +ADR-015 records capture-as-key and HUD-not-Screen. + +Next: world save, then vanilla RecipeProvider. Not EMI. Not a Screen rewrite. + +--- + ## Related Documents [[🌟 Project Vision]] diff --git a/docs/05-Experience/πŸ“– User Stories.md b/docs/05-Experience/πŸ“– User Stories.md index acdc1e4..295ef87 100644 --- a/docs/05-Experience/πŸ“– User Stories.md +++ b/docs/05-Experience/πŸ“– User Stories.md @@ -65,22 +65,23 @@ No confirm. No quantity 0. ### US-7 β€” Add from an item I am looking at As a player -I want to hover an item and press `+ Add to Crafting Goals` -so I can name a [[🎯 Goal]] without a Satistaskory menu. +I want to hover an item and press the Add key (shown on the tooltip, default `=`) +so I can name a [[🎯 Goal]] without a Satistaskory menu and without moving off the item. -Screen 1 β†’ [[▢️ Create Goal]] β†’ Screen 2 (new row, or quantity +1). +Screen 1 β†’ [[▢️ Create Goal]] β†’ Screen 2 (new row, or quantity +1). +Rebind under Controls β†’ Satistaskory. ### US-8 β€” Same add, three places I already use As a player -I want that button in inventory, the crafting bench craft pane, and the craft book +I want that key in inventory, the crafting bench craft pane, and the craft book so I can capture the item wherever I noticed it. One control. Three hosts we do not own. --- -Not stories (yet): full-screen planner, which-goals-need-this, recipe trees as a browser, all three capture hosts in the first wiring. +Not stories (yet): full-screen planner, which-goals-need-this, recipe trees as a browser. --- diff --git a/docs/05-Experience/πŸ–₯️ Experience.md b/docs/05-Experience/πŸ–₯️ Experience.md index 984f713..5429b1b 100644 --- a/docs/05-Experience/πŸ–₯️ Experience.md +++ b/docs/05-Experience/πŸ–₯️ Experience.md @@ -10,7 +10,7 @@ Satistaskory does not own a daily menu. The overlay panel sits on the world. The | Surface | When | What Satistaskory adds | |---------|------|------------------------| -| **Capture** | Inventory, crafting bench craft pane, craft book | On hover: `+ Add to Crafting Goals` | +| **Capture** | Inventory, crafting bench craft pane, craft book | Tooltip line + rebindable Add key (default `=`) | | **Living** | Walking around, playing | Overlay panel: [[🎯 Goal\|goals]] with quantity, then [[πŸ“‰ Missing Material\|missing materials]] | Capture is an interrupt. The living surface is the product. @@ -58,6 +58,8 @@ The overlay answers both halves of the vision question: `[-]` at quantity 1 removes that goal. +Walking has no cursor. Overlay `[+]` / `[-]` / Clear are HUD hit-tests (vanilla button sprites + click sound), not a `Screen`. Open chat (`T` or `/`) to click them. Capture does not use a clickable chip you leave the item to hit. + Same material from two goals is one row. Changing a goal quantity recalculates the lower list. As inventory fills, counts shrink. Expanded views (which goals need a material, recipe breakdowns, dependency chains) exist as disclosure. They are not this panel’s first drawing. The lower region is not a recipe browser. diff --git a/docs/05-Experience/πŸ–ΌοΈ Wireframes.md b/docs/05-Experience/πŸ–ΌοΈ Wireframes.md index e714683..975d78d 100644 --- a/docs/05-Experience/πŸ–ΌοΈ Wireframes.md +++ b/docs/05-Experience/πŸ–ΌοΈ Wireframes.md @@ -2,7 +2,7 @@ Boxes and arrows. Not pixels. Not components. -Two screens. Capture is not a Satistaskory window β€” it is a button on views we do not own. The living screen is play. +Two screens. Capture is not a Satistaskory window β€” it is a tooltip line and a key on views we do not own. The living screen is play. The world is the shell. The overlay has chrome. The player is not inside a pause menu. @@ -86,6 +86,8 @@ Placement: **right** side (first-slice freeze). Exact pixels are not specified. `[-]` at 1 removes the row. `X Clear Items` does not ask first. +Overlay controls are HUD hit-tests with vanilla button sprites and click sound. They are not `Button` widgets on a `Screen`. Open chat for a cursor. + --- ## Roads diff --git a/docs/05-Experience/🚢 Day in the Life.md b/docs/05-Experience/🚢 Day in the Life.md index af21288..ece1de6 100644 --- a/docs/05-Experience/🚢 Day in the Life.md +++ b/docs/05-Experience/🚢 Day in the Life.md @@ -52,7 +52,7 @@ The world stays the screen. The overlay panel sits on it. The player is not insi Not a quest log. Not a recipe tree. -`[+]` / `[-]` on a goal changes how many they want, without opening a menu. +`[+]` / `[-]` on a goal changes how many they want. A cursor is required (chat). The overlay is not a pause menu. ### 3. The player acts @@ -82,7 +82,9 @@ Looking at an item ↓ Hover the item Screen 1 ↓ -+ Add to Crafting Goals +Tooltip: [bound key] Add to Crafting Goals + ↓ +Press that key (default `=`) ↓ A [[🎯 Goal]] is created for that item ↓ @@ -91,11 +93,11 @@ Close the view The item is a row on the overlay Screen 2 ``` -**Does:** Points at the thing they want. Presses the button. Returns to play. +**Does:** Points at the thing they want. Presses the Add key. Returns to play. -**Does not:** Type a goal name into a Satistaskory menu. Open a planner pane to start tracking. +**Does not:** Type a goal name into a Satistaskory menu. Open a planner pane to start tracking. Chase a button off the item. -The button label is player copy. The domain name is [[🎯 Goal]]. See [[πŸ–₯️ Experience]]. +Player copy **Crafting Goals**. Domain: [[🎯 Goal]]. See [[πŸ–₯️ Experience]]. ### Quantity