From a045281f7613026c58b86097f94273bcba61b2bf Mon Sep 17 00:00:00 2001 From: Stephen Fasciani Date: Tue, 8 Sep 2026 01:47:06 -0400 Subject: [PATCH] Document the domain vault and first-slice design. Replace the empty flat docs with the Media Farm shelf layout: vision, philosophy, language, architecture (including packages, RecipeProvider, and Create Goal), player day, and prototype freezes. The NeoForge example code is still not the architecture. --- AGENTS.md | 47 +++ README.md | 75 +++++ docs/00-Vision/🌟 Project Vision.md | 112 +++++++ docs/01-Philosophy/🧠 Philosophy.md | 175 +++++++++++ docs/02-Domain/βœ… Completed Goal.md | 29 ++ docs/02-Domain/βž• Material Aggregation.md | 41 +++ docs/02-Domain/πŸŽ’ Inventory State.md | 39 +++ docs/02-Domain/🎯 Goal.md | 101 ++++++ docs/02-Domain/πŸ“ Project.md | 31 ++ docs/02-Domain/πŸ“ˆ Progress Calculation.md | 59 ++++ docs/02-Domain/πŸ“‰ Missing Material.md | 50 +++ docs/02-Domain/πŸ“¦ Bounded Contexts.md | 41 +++ docs/02-Domain/πŸ—£οΈ Ubiquitous Language.md | 133 ++++++++ docs/02-Domain/πŸ› οΈ Ready To Craft.md | 25 ++ docs/02-Domain/🧱 Material Requirement.md | 43 +++ docs/02-Domain/🧾 Recipe Resolution.md | 46 +++ docs/03-Architecture/▢️ Create Goal.md | 85 +++++ docs/03-Architecture/πŸ›οΈ Architecture.md | 232 ++++++++++++++ docs/03-Architecture/πŸ“ Decisions.md | 265 ++++++++++++++++ docs/03-Architecture/πŸ“¦ Packages.md | 73 +++++ docs/03-Architecture/πŸ”Œ Recipe Provider.md | 79 +++++ docs/04-Planning/🎯 Success Metrics.md | 44 +++ docs/04-Planning/πŸ—ΊοΈ Roadmap.md | 76 +++++ .../04-Planning/🧭 Notes for the Wayfinder.md | 294 ++++++++++++++++++ docs/05-Experience/πŸ“– User Stories.md | 99 ++++++ docs/05-Experience/πŸ–₯️ Experience.md | 116 +++++++ docs/05-Experience/πŸ–ΌοΈ Wireframes.md | 136 ++++++++ docs/05-Experience/🚢 Day in the Life.md | 131 ++++++++ docs/99-backlog/🚧 Future Ideas.md | 50 +++ docs/achitecture.md | 0 docs/domain.md | 0 31 files changed, 2727 insertions(+) create mode 100644 AGENTS.md create mode 100644 docs/00-Vision/🌟 Project Vision.md create mode 100644 docs/01-Philosophy/🧠 Philosophy.md create mode 100644 docs/02-Domain/βœ… Completed Goal.md create mode 100644 docs/02-Domain/βž• Material Aggregation.md create mode 100644 docs/02-Domain/πŸŽ’ Inventory State.md create mode 100644 docs/02-Domain/🎯 Goal.md create mode 100644 docs/02-Domain/πŸ“ Project.md create mode 100644 docs/02-Domain/πŸ“ˆ Progress Calculation.md create mode 100644 docs/02-Domain/πŸ“‰ Missing Material.md create mode 100644 docs/02-Domain/πŸ“¦ Bounded Contexts.md create mode 100644 docs/02-Domain/πŸ—£οΈ Ubiquitous Language.md create mode 100644 docs/02-Domain/πŸ› οΈ Ready To Craft.md create mode 100644 docs/02-Domain/🧱 Material Requirement.md create mode 100644 docs/02-Domain/🧾 Recipe Resolution.md create mode 100644 docs/03-Architecture/▢️ Create Goal.md create mode 100644 docs/03-Architecture/πŸ›οΈ Architecture.md create mode 100644 docs/03-Architecture/πŸ“ Decisions.md create mode 100644 docs/03-Architecture/πŸ“¦ Packages.md create mode 100644 docs/03-Architecture/πŸ”Œ Recipe Provider.md create mode 100644 docs/04-Planning/🎯 Success Metrics.md create mode 100644 docs/04-Planning/πŸ—ΊοΈ Roadmap.md create mode 100644 docs/04-Planning/🧭 Notes for the Wayfinder.md create mode 100644 docs/05-Experience/πŸ“– User Stories.md create mode 100644 docs/05-Experience/πŸ–₯️ Experience.md create mode 100644 docs/05-Experience/πŸ–ΌοΈ Wireframes.md create mode 100644 docs/05-Experience/🚢 Day in the Life.md create mode 100644 docs/99-backlog/🚧 Future Ideas.md delete mode 100644 docs/achitecture.md delete mode 100644 docs/domain.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..334ac61 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,47 @@ +# Satistaskory + +Minecraft NeoForge 1.21.1 mod. Domain-driven design. + +## Design documentation + +All design documentation lives in `docs/` and follows the **Media Farm vault** template: + +`C:\Users\Stephen\OneDrive\Documents\Media-Pipeline\docs` + +When adding or changing design docs, match that vault. Do not go back to flat `docs/*.md` files. + +### Shelves + +```text +docs/ + 00-Vision/ + 01-Philosophy/ + 02-Domain/ + 03-Architecture/ + 04-Planning/ + 05-Experience/ # open: capture in place, play overlay. Do not invent screens. + 99-backlog/ +``` + +### Conventions + +- Numbered shelves, same names as Media Farm +- Filenames: emoji + space + Title (e.g. `🎯 Goal.md`) +- Heading matches the filename (`# 🎯 Goal`) +- One concept per file (Bookshelf Principle) +- Wiki links: `[[🎯 Goal]]` β€” no paths, no `.md` +- End every file with a **Related Documents** list of wiki links +- Language in `02-Domain`. Structure in `03-Architecture`. Do not mix. +- [[🧭 Notes for the Wayfinder]] is append-only. Do not rewrite history; add a dated entry. +- Do not invent content for shelves that have not been discovered (no fake wireframes, no implementation plan before code). +- ADRs go in `docs/03-Architecture/πŸ“ Decisions.md` + +Read [[🧠 Philosophy]] before changing the vault. The Bookshelf Principle, Preverbal Architecture Principle, and Wayfinder are in force. + +## Code + +The first slice is settled (ADRs 012–014): [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], player inventory, play overlay. + +Domain code for that slice may start. Do not start EMI, persistence, or Project until those are settled in the vault. + +The NeoForge template example block/item is not the architecture. Remove it when domain types land. diff --git a/README.md b/README.md index 8b13789..c34e58d 100644 --- a/README.md +++ b/README.md @@ -1 +1,76 @@ +# Satistaskory +> What am I trying to build and what materials do I still need? + +Satistaskory is a goal-tracking and material-planning system for Minecraft. + +It is a cognitive prosthetic. The player makes decisions. The mod remembers them. + +It does not craft. It does not gather. It does not replace a recipe viewer. + +Minecraft 1.21.1 / NeoForge. Designed with Domain-Driven Design. + +--- + +## What it is + +Name a goal. See what is still missing. + +```text +Goal + β†’ Recipe Resolution + β†’ Material Requirements + β†’ Material Aggregation + β†’ Inventory State + β†’ Missing Materials / Ready To Craft + β†’ Completed Goal +``` + +Projects group goals for organization. They do not change material math. + +Ready To Craft means the materials are available. It does not mean the goal is finished. + +--- + +## What it is not + +- An auto-crafter +- A recipe viewer +- An AE2 job submitter +- Storage, routing, or factory automation +- A quest manager +- An inventory sorter + +Those may be integrated with later. They are not owned by Satistaskory. + +--- + +## Status + +The domain, architecture, player day, packages, RecipeProvider port, and **Create Goal** use case are documented. Domain code is not written. + +The NeoForge template example block and item in `src/` are not the architecture. + +Next: write the first slice β€” domain types, stub RecipeProvider, Create Goal, player inventory, play overlay. Not EMI. + +--- + +## Docs + +Design documentation lives in `docs/`. Start at `docs/00-Vision/🌟 Project Vision.md`. + +| Shelf | What | +|-------|------| +| `00-Vision` | Why this exists | +| `01-Philosophy` | Rules the code must obey | +| `02-Domain` | Language and concepts | +| `03-Architecture` | Layers, ports, ADRs | +| `04-Planning` | Roadmap, success, Wayfinder journal | +| `05-Experience` | Player day, capture, play overlay | +| `99-backlog` | Ideas that are not a queue | + +--- + +## License + +All Rights Reserved. See `LICENSE`. diff --git a/docs/00-Vision/🌟 Project Vision.md b/docs/00-Vision/🌟 Project Vision.md new file mode 100644 index 0000000..df5712f --- /dev/null +++ b/docs/00-Vision/🌟 Project Vision.md @@ -0,0 +1,112 @@ +# 🌟 Satistaskory Vision + +> What am I trying to build and what materials do I still need? + +--- + +## Origin + +Satistaskory is a goal-tracking and material-planning system for Minecraft. + +The purpose is to reduce cognitive load by allowing players to externalize project planning and resource tracking into the game. + +A more important realization: + +**Satistaskory is not a crafting mod.** +**Satistaskory is a cognitive prosthetic for planning and remembering.** + +EMI, JEI, REI, NeoForge, and inventory APIs are infrastructure. +**The domain is goals.** + +--- + +## ❌ What this is NOT + +- An auto-crafter +- A recipe viewer +- An AE2 job submitter +- A storage or routing system +- A quest manager +- A factory automation layer +- An inventory sorter + +These may be integrated with. They are not owned by Satistaskory. + +--- + +## βœ… What this IS + +Satistaskory helps the player remember decisions and see what is still missing. + +| Capability | Purpose | +|------------|---------| +| 🎯 Goal | Name a thing to obtain, and how many | +| πŸ“ Project | Optional grouping for organization | +| 🧱 Require | Resolve a goal into material requirements | +| βž• Aggregate | Combine requirements across active goals | +| πŸ“‰ Missing | Required minus available | +| πŸ› οΈ Ready | All materials for a goal are available | +| βœ… Complete | The player considers the goal finished | + +### Core domain chain + +```text +Goal + ↓ +Recipe Resolution + ↓ +Material Requirements + ↓ +Material Aggregation + ↓ +Inventory State (available quantities) + ↓ +Missing Materials / Ready To Craft + ↓ +Completed Goal +``` + +--- + +## Today + +The kingdom has borders. + +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 settled in the vault: [[▢️ Create Goal]], stub [[πŸ”Œ Recipe Provider]], play overlay. Domain code is not written yet. + +See [[πŸ—ΊοΈ Roadmap]]. + +--- + +## 🎯 Long-Term Goal + +The player should not have to hold a factory plan in working memory. + +Satistaskory remembers the plan. +The player still does the work. + +--- + +## Related Documents + +[[🧠 Philosophy]] + +[[πŸ—£οΈ Ubiquitous Language]] + +[[πŸ“¦ Bounded Contexts]] + +[[πŸ›οΈ Architecture]] + +[[πŸ—ΊοΈ Roadmap]] + +[[🎯 Success Metrics]] + +[[🚢 Day in the Life]] + +[[πŸ–₯️ Experience]] + +[[▢️ Create Goal]] diff --git a/docs/01-Philosophy/🧠 Philosophy.md b/docs/01-Philosophy/🧠 Philosophy.md new file mode 100644 index 0000000..b3e8f77 --- /dev/null +++ b/docs/01-Philosophy/🧠 Philosophy.md @@ -0,0 +1,175 @@ +# 🧠 Philosophy + +--- + +## Rule #1 β€” Domain First + +Domain first. Infrastructure second. + +The domain must not know about EMI, JEI, REI, NeoForge APIs, UI frameworks, or save formats. + +Infrastructure serves the domain. Not the other way around. + +Goals are the domain. Recipes are implementation details. + +--- + +## Rule #2 β€” Cognitive Prosthetic + +The player makes decisions. + +Satistaskory remembers those decisions. + +The mod should reduce the amount of information players need to carry in working memory. + +--- + +## Rule #3 β€” Progressive Disclosure + +Show only the information required to make the next decision. + +Default: + +Missing Materials + +- Diamond x12 +- Redstone x82 +- Gold Ingot x34 + +Expanded views: + +- Which goals require a material +- Recipe breakdowns +- Dependency chains + +The detailed information exists but should not be forced on the player. + +--- + +## Rule #4 β€” Player Agency + +The mod tracks. + +The player acts. + +Satistaskory should never automate crafting, gathering, routing, storage management, or production. + +--- + +## Rule #5 β€” Ready Is Not Complete + +[[πŸ› οΈ Ready To Craft]] means the materials are available. + +It does not mean the [[🎯 Goal]] is finished. + +Completion is a separate, configurable decision. See [[βœ… Completed Goal]]. + +--- + +## Rule #6 β€” Inventory Is a Quantity + +[[πŸŽ’ Inventory State]] is available quantities. + +How those quantities are gathered is infrastructure. + +The domain does not scan inventories. + +--- + +## Rule #7 β€” Future Me Is a User + +> Will Future Me understand this after ignoring the project for 6 months? + +--- + +## Rule #8 β€” Externalize Memory + +Documentation is not paperwork. Documentation is assistive technology. + +--- + +## Rule #9 β€” Abstractions on Demand + +> Never create an abstraction because you think you'll need it. +> Create it when the domain demands it. + +--- + +## Rule #10 β€” Infrastructure Adapters Are Real Contracts + +Recipe, inventory, and persistence adapters are allowed. They can be **production-grade**. + +Hate **sloppy wrappers**, not process boundaries. + +The domain never imports EMI, JEI, REI, or NeoForge. + +If a recipe mod disappears tomorrow, Satistaskory should require only an adapter replacement β€” not a domain rewrite. + +--- + +## πŸ“š The Bookshelf Principle + +Pick up each concept, identify it, place it where it belongs immediately. + +> Good architecture helps people know where things belong. + +--- + +## 🧭 The Preverbal Architecture Principle + +Architecture should be **navigated**, not memorized. Reduce cognitive overhead. + +--- + +## 🧭 The Wayfinder + +The future maintainer. Append-only journal: [[🧭 Notes for the Wayfinder]] + +--- + +## πŸ“š Documentation Vault + +Design documentation follows the Media Farm vault. + +Template: `C:\Users\Stephen\OneDrive\Documents\Media-Pipeline\docs` + +```text +docs/ + 00-Vision/ + 01-Philosophy/ + 02-Domain/ + 03-Architecture/ + 04-Planning/ + 05-Experience/ # opened: capture in place, play overlay. Do not invent screens. + 99-backlog/ +``` + +Conventions: + +- Numbered shelves +- Emoji + title filenames +- One concept per file +- Wiki links: `[[🌟 Project Vision]]` +- Related Documents at the end of each file +- The Wayfinder is append-only β€” do not rewrite history +- Do not invent content for shelves that have not been discovered + +Language lives in `02-Domain`. Structure lives in `03-Architecture`. Do not mix. + +--- + +## Related Documents + +[[🌟 Project Vision]] + +[[πŸ—£οΈ Ubiquitous Language]] + +[[πŸ›οΈ Architecture]] + +[[πŸ“ Decisions]] + +[[🧭 Notes for the Wayfinder]] + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] diff --git a/docs/02-Domain/βœ… Completed Goal.md b/docs/02-Domain/βœ… Completed Goal.md new file mode 100644 index 0000000..4111bd3 --- /dev/null +++ b/docs/02-Domain/βœ… Completed Goal.md @@ -0,0 +1,29 @@ +# βœ… Completed Goal + +A [[🎯 Goal]] that the player considers finished. + +--- + +## Completion strategy + +Must be configurable. + +Examples: + +- Manual completion +- Inventory detection +- Future implementations + +Ready To Craft is not completion. See [[πŸ› οΈ Ready To Craft]] and Philosophy Rule #5. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[πŸ› οΈ Ready To Craft]] + +[[πŸ“ˆ Progress Calculation]] + +[[πŸ“ Decisions]] diff --git a/docs/02-Domain/βž• Material Aggregation.md b/docs/02-Domain/βž• Material Aggregation.md new file mode 100644 index 0000000..a07607a --- /dev/null +++ b/docs/02-Domain/βž• Material Aggregation.md @@ -0,0 +1,41 @@ +# βž• Material Aggregation + +Combines requirements from multiple [[🎯 Goal|goals]]. + +--- + +## Input + +- Active Goals + +## Output + +- Aggregated Material List β€” one entry per material, with how many are needed + +Same material from two goals is one entry. Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12. + +--- + +## Rule + +Aggregation is across **active goals**. + +[[πŸ“ Project|Projects]] do not form a calculation boundary. + +[[πŸ“ˆ Progress Calculation]] turns each aggregated count into still-needed (`Missing = Required - Available`). + +--- + +## Related Documents + +[[🎯 Goal]] + +[[πŸ“ Project]] + +[[🧱 Material Requirement]] + +[[πŸ“ˆ Progress Calculation]] + +[[πŸ“‰ Missing Material]] + +[[πŸ–ΌοΈ Wireframes]] diff --git a/docs/02-Domain/πŸŽ’ Inventory State.md b/docs/02-Domain/πŸŽ’ Inventory State.md new file mode 100644 index 0000000..5475ae8 --- /dev/null +++ b/docs/02-Domain/πŸŽ’ Inventory State.md @@ -0,0 +1,39 @@ +# πŸŽ’ Inventory State + +A snapshot of materials currently available to the player. + +--- + +## Domain view + +The domain only cares about **available quantities**. + +Inventory data is infrastructure. + +How those quantities are gathered (player inventory, ender chest, later storage integrations) may change without a domain rewrite. + +First slice: **player inventory only**. Keys are ItemId. Values are available counts. + +--- + +## Used by + +[[πŸ“ˆ Progress Calculation]] compares requirements to this snapshot. + +```text +Missing = Required - Available +``` + +See [[πŸ“‰ Missing Material]]. + +--- + +## Related Documents + +[[πŸ“‰ Missing Material]] + +[[πŸ“ˆ Progress Calculation]] + +[[πŸ›οΈ Architecture]] + +[[🧠 Philosophy]] diff --git a/docs/02-Domain/🎯 Goal.md b/docs/02-Domain/🎯 Goal.md new file mode 100644 index 0000000..663f608 --- /dev/null +++ b/docs/02-Domain/🎯 Goal.md @@ -0,0 +1,101 @@ +# 🎯 Goal + +A **Goal** is a thing the player wishes to obtain. + +--- + +## Contains + +- Target Item β€” an **ItemId** (`namespace:path`, e.g. `minecraft:furnace`). Not a Minecraft `Item` class. +- Target Quantity β€” integer **β‰₯ 1** + +Examples: + +- 4 Ender Chests +- 1 AE2 Controller +- 64 Export Buses + +--- + +## Identity + +One Goal per Target Item in the plan. + +Adding an item that is already a goal **increments** that goal’s quantity. It does not create a second row. + +[[πŸ“ Project|Projects]] are not in the first slice. This identity is for the single plan. + +--- + +## Quantity + +Target Quantity is required and is never 0. + +| Action | Result | +|--------|--------| +| [[▢️ Create Goal]] | Quantity **1** if new; **+1** if that ItemId already exists | +| `[+]` on the overlay | Quantity + 1 | +| `[-]` when quantity > 1 | Quantity βˆ’ 1 | +| `[-]` when quantity is 1 | Goal is **removed** | +| `X Clear Items` | All goals removed | + +There is no quantity picker on capture. See [[πŸ–₯️ Experience]]. + +--- + +## How a goal starts + +A goal starts when the player names a target item. + +How they point at the item is experience. See [[🚢 Day in the Life]] and [[▢️ Create Goal]]. + +--- + +## Lifecycle + +```text +Created + ↓ +Requirements Calculated + ↓ +Missing Materials + ↓ +Ready To Craft + ↓ +Completed +``` + +A goal is created with a target item and quantity. [[🧾 Recipe Resolution]] produces its [[🧱 Material Requirement|material requirements]] for **how many are still to obtain** (target quantity minus how many of that item are already available). [[πŸ“ˆ Progress Calculation]] compares those requirements to [[πŸŽ’ Inventory State]], yielding [[πŸ“‰ Missing Material|missing materials]] and eventually [[πŸ› οΈ Ready To Craft]]. + +[[βœ… Completed Goal|Completion]] is a separate decision from readiness. It is **not in the first slice**. + +--- + +## Relationships + +- May belong to a [[πŸ“ Project]] (optional). Projects are not packaged in the first slice. +- Material calculations ignore project boundaries and aggregate across active goals + +--- + +## Related Documents + +[[▢️ Create Goal]] + +[[🚢 Day in the Life]] + +[[πŸ–₯️ Experience]] + +[[πŸ“ Project]] + +[[🧱 Material Requirement]] + +[[πŸ› οΈ Ready To Craft]] + +[[βœ… Completed Goal]] + +[[πŸ—£οΈ Ubiquitous Language]] + +[[πŸ–ΌοΈ Wireframes]] + +[[πŸ“ Decisions]] diff --git a/docs/02-Domain/πŸ“ Project.md b/docs/02-Domain/πŸ“ Project.md new file mode 100644 index 0000000..8f00f81 --- /dev/null +++ b/docs/02-Domain/πŸ“ Project.md @@ -0,0 +1,31 @@ +# πŸ“ Project + +An optional grouping of [[🎯 Goal|goals]]. + +--- + +## Examples + +- AE2 Setup +- Reactor Project +- Factory Expansion + +--- + +## Role + +Projects exist purely for organization. + +They are not a calculation boundary. + +Material calculations aggregate across projects. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[βž• Material Aggregation]] + +[[πŸ—£οΈ Ubiquitous Language]] diff --git a/docs/02-Domain/πŸ“ˆ Progress Calculation.md b/docs/02-Domain/πŸ“ˆ Progress Calculation.md new file mode 100644 index 0000000..64bf0af --- /dev/null +++ b/docs/02-Domain/πŸ“ˆ Progress Calculation.md @@ -0,0 +1,59 @@ +# πŸ“ˆ Progress Calculation + +Calculates progress from goals, requirements, and inventory. + +--- + +## Calculates + +- [[πŸ“‰ Missing Material|Missing Materials]] +- [[πŸ› οΈ Ready To Craft|Ready-To-Craft Status]] + +[[βœ… Completed Goal|Completion]] is named. It is not in the first slice. + +## Using + +- [[🎯 Goal|Goals]] +- [[🧱 Material Requirement|Material Requirements]] +- [[πŸŽ’ Inventory State]] +- [[πŸ”Œ Recipe Provider]] (via [[🧾 Recipe Resolution]]) + +--- + +## Formula (first slice) + +```text +for each active goal: + remaining = max(0, target quantity βˆ’ available(target item)) + requirements += resolve(target item, remaining) + +aggregate requirements + (same material β†’ one row) + +for each material: + missing = max(0, required βˆ’ available) +``` + +Owned finished goods reduce **how many to resolve**. They are not subtracted again from ingredients. + +A goal is [[πŸ› οΈ Ready To Craft]] when its remaining-to-obtain is 0, or every material required for that remaining is available. + +`resolve` is one crafting level. No recipe β†’ the remaining target items *are* the requirements (gather). + +--- + +## Related Documents + +[[🧾 Recipe Resolution]] + +[[πŸ”Œ Recipe Provider]] + +[[βž• Material Aggregation]] + +[[πŸ› οΈ Ready To Craft]] + +[[βœ… Completed Goal]] + +[[▢️ Create Goal]] + +[[πŸŽ’ Inventory State]] diff --git a/docs/02-Domain/πŸ“‰ Missing Material.md b/docs/02-Domain/πŸ“‰ Missing Material.md new file mode 100644 index 0000000..3227e66 --- /dev/null +++ b/docs/02-Domain/πŸ“‰ Missing Material.md @@ -0,0 +1,50 @@ +# πŸ“‰ Missing Material + +A [[🧱 Material Requirement]] that has not yet been fulfilled. + +--- + +## Formula + +```text +Missing = Required - Available +``` + +Required comes from goals (after resolution and aggregation). +Available comes from [[πŸŽ’ Inventory State]]. + +--- + +## Progressive disclosure + +Missing materials are the **default** materials view. On the golden day they live in the **lower region** of the play overlay, under the goal list. See [[🚢 Day in the Life]] and [[πŸ–ΌοΈ Wireframes]]. + +The player should see this first β€” one row per material, with how many are still needed: + +- Diamond x12 +- Redstone x82 +- Gold Ingot x34 + +Same material from two goals is one row. See [[βž• Material Aggregation]]. + +Which goals require a material, recipe breakdowns, and dependency chains are expanded views. They exist. They are not forced. + +See Philosophy Rule #3. + +--- + +## Related Documents + +[[🧱 Material Requirement]] + +[[πŸŽ’ Inventory State]] + +[[πŸ“ˆ Progress Calculation]] + +[[🧠 Philosophy]] + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[βž• Material Aggregation]] diff --git a/docs/02-Domain/πŸ“¦ Bounded Contexts.md b/docs/02-Domain/πŸ“¦ Bounded Contexts.md new file mode 100644 index 0000000..8cfd9e9 --- /dev/null +++ b/docs/02-Domain/πŸ“¦ Bounded Contexts.md @@ -0,0 +1,41 @@ +# πŸ“¦ Bounded Contexts + +--- + +Today Satistaskory is **one** bounded context. + +Do not split until the domain demands it. See Philosophy Rule #9. + +--- + +## 🎯 Goal Planning Context + +The player names goals. The system remembers them, resolves materials, and reports what is still missing. + +Key concepts: + +- [[🎯 Goal]] +- [[πŸ“ Project]] +- [[🧱 Material Requirement]] +- [[πŸŽ’ Inventory State]] +- [[πŸ“‰ Missing Material]] +- [[πŸ› οΈ Ready To Craft]] +- [[βœ… Completed Goal]] + +Services: + +- [[🧾 Recipe Resolution]] +- [[βž• Material Aggregation]] +- [[πŸ“ˆ Progress Calculation]] + +Recipe mods, inventory scanning, persistence, and UI are **infrastructure**. They are not contexts. + +--- + +## Related Documents + +[[πŸ—£οΈ Ubiquitous Language]] + +[[πŸ›οΈ Architecture]] + +[[🌟 Project Vision]] diff --git a/docs/02-Domain/πŸ—£οΈ Ubiquitous Language.md b/docs/02-Domain/πŸ—£οΈ Ubiquitous Language.md new file mode 100644 index 0000000..1773734 --- /dev/null +++ b/docs/02-Domain/πŸ—£οΈ Ubiquitous Language.md @@ -0,0 +1,133 @@ +# πŸ—£οΈ Ubiquitous Language + +> These terms have **ONE** meaning across the entire project. + +--- + +## Core chain + +```text +Goal β†’ Recipe Resolution β†’ Material Requirements + β†’ Material Aggregation β†’ Inventory State + β†’ Missing Materials / Ready To Craft + β†’ Completed Goal +``` + +[[πŸ“ Project]] is optional grouping. It is not a step in the chain. + +Material calculations aggregate across projects. + +--- + +## [[🎯 Goal]] + +A thing the player wishes to obtain. + +Contains: Target Item (**ItemId**, `namespace:path`), Target Quantity (β‰₯ 1). + +One Goal per ItemId in the plan. Create at 1, or +1 if that item is already a goal. `[-]` at 1 removes it. + +Examples: 4 Ender Chests. 1 AE2 Controller. 64 Export Buses. + +Player copy **Crafting Goals** means this. Code and docs say Goal. See [[πŸ–₯️ Experience]]. + +--- + +## [[πŸ“ Project]] + +An optional grouping of goals. + +Examples: AE2 Setup. Reactor Project. Factory Expansion. + +Projects exist purely for organization. + +--- + +## [[🧱 Material Requirement]] + +A quantity of a material required to complete a goal. + +Example: Diamond x12 + +--- + +## Aggregated Material Requirement + +The combined [[🧱 Material Requirement|material requirements]] of all active goals. + +Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12. + +--- + +## [[πŸŽ’ Inventory State]] + +A snapshot of materials currently available to the player. + +The domain only cares about available quantities. + +--- + +## [[πŸ“‰ Missing Material]] + +A material requirement that has not yet been fulfilled. + +```text +Missing = Required - Available +``` + +--- + +## [[πŸ› οΈ Ready To Craft]] + +All materials required for a goal are available. + +Ready To Craft does not imply completion. + +--- + +## [[βœ… Completed Goal]] + +A goal the player considers finished. + +Completion strategy is configurable (manual, inventory detection, future implementations). + +--- + +## Domain services + +| Service | Meaning | +|---------|---------| +| [[🧾 Recipe Resolution]] | Goal β†’ material requirements | +| [[βž• Material Aggregation]] | Active goals β†’ aggregated material list | +| [[πŸ“ˆ Progress Calculation]] | Missing, ready-to-craft, completion status | + +--- + +## Rejected (not in the language) + +Not owned by this domain. May be integrated with later. + +- Auto Crafting +- AE2 Job Submission +- Storage Automation +- Item Routing +- Quest Management +- Factory Automation +- Inventory Sorting +- Recipe Viewing + +--- + +## Related Documents + +[[πŸ“¦ Bounded Contexts]] + +[[🌟 Project Vision]] + +[[🧭 Notes for the Wayfinder]] + +[[πŸ–₯️ Experience]] + +[[▢️ Create Goal]] + +[[πŸ”Œ Recipe Provider]] diff --git a/docs/02-Domain/πŸ› οΈ Ready To Craft.md b/docs/02-Domain/πŸ› οΈ Ready To Craft.md new file mode 100644 index 0000000..30c8432 --- /dev/null +++ b/docs/02-Domain/πŸ› οΈ Ready To Craft.md @@ -0,0 +1,25 @@ +# πŸ› οΈ Ready To Craft + +A state indicating that all materials required for a [[🎯 Goal]] are available. + +--- + +## Meaning + +Ready To Craft does **not** imply completion. + +Materials being present is not the same as the player considering the work finished. + +See Philosophy Rule #5 and [[βœ… Completed Goal]]. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[πŸ“‰ Missing Material]] + +[[βœ… Completed Goal]] + +[[πŸ“ˆ Progress Calculation]] diff --git a/docs/02-Domain/🧱 Material Requirement.md b/docs/02-Domain/🧱 Material Requirement.md new file mode 100644 index 0000000..d3592c6 --- /dev/null +++ b/docs/02-Domain/🧱 Material Requirement.md @@ -0,0 +1,43 @@ +# 🧱 Material Requirement + +A quantity of a material required to complete a [[🎯 Goal]]. + +Identified by the same **ItemId** as Target Item (`namespace:path`). Quantity β‰₯ 1. + +--- + +## Example + +Diamond x12 + +--- + +## Aggregation + +The combined material requirements of all **active** goals. + +Goal A requires: + +Diamond x4 + +Goal B requires: + +Diamond x8 + +Aggregated requirement: + +Diamond x12 + +Projects do not change this. See [[πŸ“ Project]] and [[βž• Material Aggregation]]. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[βž• Material Aggregation]] + +[[πŸ“‰ Missing Material]] + +[[🧾 Recipe Resolution]] diff --git a/docs/02-Domain/🧾 Recipe Resolution.md b/docs/02-Domain/🧾 Recipe Resolution.md new file mode 100644 index 0000000..fa2b22f --- /dev/null +++ b/docs/02-Domain/🧾 Recipe Resolution.md @@ -0,0 +1,46 @@ +# 🧾 Recipe Resolution + +Converts a [[🎯 Goal]] into [[🧱 Material Requirement|material requirements]]. + +--- + +## Input + +- Target Item +- Quantity + +## Output + +- Material Requirements + +--- + +## Boundary + +This is a **domain service**. + +Looking up recipes is **infrastructure**. + +The domain calls a `RecipeProvider` port. It does not call EMI, JEI, or REI. + +**One crafting level.** Not a tree. No recipe β†’ the target item is the requirement. See [[πŸ”Œ Recipe Provider]]. + +Recipe **viewing** is out of scope. This service exists so the domain can resolve requirements, not so Satistaskory can become a recipe browser. + +See [[πŸ›οΈ Architecture]]. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[🧱 Material Requirement]] + +[[βž• Material Aggregation]] + +[[πŸ›οΈ Architecture]] + +[[πŸ”Œ Recipe Provider]] + +[[πŸ“ˆ Progress Calculation]] diff --git a/docs/03-Architecture/▢️ Create Goal.md b/docs/03-Architecture/▢️ Create Goal.md new file mode 100644 index 0000000..18829e3 --- /dev/null +++ b/docs/03-Architecture/▢️ Create Goal.md @@ -0,0 +1,85 @@ +# ▢️ Create Goal + +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. + +--- + +## Input + +- `ItemId` (the item the player pointed at) + +## Output + +- The plan’s goals +- Refresh of missing materials (via [[πŸ“ˆ Progress Calculation]]) + +## Quantity + +Always **1** on this path. New goal: quantity 1. Existing goal: quantity + 1. + +--- + +## Flow + +```text +CreateGoal(item) + ↓ +Goal exists for this ItemId? + yes β†’ quantity += 1 + no β†’ add Goal(item, 1) + ↓ +RefreshProgress + remaining per goal = qty βˆ’ available(item) + resolve remaining through RecipeProvider + aggregate + missing = required βˆ’ available +``` + +Persistence: none in this slice. The list lives in memory. + +--- + +## Sibling use cases (same slice) + +Needed so Screen 2’s `[+]`, `[-]`, and Clear are not invented in the UI. + +| Use case | Input | Result | +|----------|-------|--------| +| **Adjust Goal Quantity** | ItemId, delta +1 | Quantity + 1, then RefreshProgress | +| **Remove Goal** | ItemId | Goal gone, then RefreshProgress | +| **Clear Goals** | β€” | All goals gone, then RefreshProgress | +| **Refresh Progress** | β€” | Recompute missing list from current goals + inventory | + +`[-]` on the overlay: if quantity > 1, Adjust βˆ’1; if quantity is 1, Remove Goal. The overlay does not keep a 0. + +No confirm on Clear. + +--- + +## First wiring + +The three capture hosts are the experience target. The first adapter that can call `CreateGoal(ItemId)` is enough to prove the use case. Overlay on the **right** of the play screen. + +Do not start EMI. Do not start a planner menu. + +--- + +## Related Documents + +[[🎯 Goal]] + +[[πŸ“¦ Packages]] + +[[πŸ”Œ Recipe Provider]] + +[[πŸ“ˆ Progress Calculation]] + +[[πŸ–₯️ Experience]] + +[[πŸ–ΌοΈ Wireframes]] + +[[πŸ“ Decisions]] + +[[πŸ›οΈ Architecture]] diff --git a/docs/03-Architecture/πŸ›οΈ Architecture.md b/docs/03-Architecture/πŸ›οΈ Architecture.md new file mode 100644 index 0000000..1d6ce3e --- /dev/null +++ b/docs/03-Architecture/πŸ›οΈ Architecture.md @@ -0,0 +1,232 @@ +# πŸ›οΈ Architecture + +This is a living scaffold. It will change as we iterate. + +Language lives in [[πŸ—£οΈ Ubiquitous Language]]. This document describes how that domain is structured in code. + +Satistaskory is designed with Domain-Driven Design. + +--- + +## πŸ“œ Golden Rule + +The Domain Layer must not know about EMI, JEI, REI, NeoForge APIs, UI frameworks, or save formats. + +Infrastructure serves the domain. Never the other way around. + +Goals are the domain. Recipes are implementation details. + +--- + +## Core domain chain + +```text +Goal + ↓ +Recipe Resolution + ↓ +Material Requirements + ↓ +Material Aggregation + ↓ +Inventory State (available quantities) + ↓ +Missing Materials / Ready To Craft + ↓ +Completed Goal +``` + +--- + +## Layers + +Dependencies point inward. The domain does not depend on infrastructure. + +```text ++--------------------------+ +| UI Layer | ++--------------------------+ + | + v ++--------------------------+ +| Application Layer | ++--------------------------+ + | + v ++--------------------------+ +| Domain Layer | <-----+ ++--------------------------+ | + | + +--------------------------+ + | Infrastructure Layer | + +--------------------------+ +``` + +The UI and application layers call the domain. + +Infrastructure implements interfaces defined by the domain (and used by the application). It is not below the domain in a dependency sense; it sits outside and plugs in. + +--- + +## Domain + +This layer contains the actual business logic. + +Primary objects: + +- `Goal` β€” [[🎯 Goal]] +- `MaterialRequirement` β€” [[🧱 Material Requirement]] +- `ProgressState` β€” [[πŸ“‰ Missing Material]], [[πŸ› οΈ Ready To Craft]] + +`Project` and [[βœ… Completed Goal]] exist in the language. They are not packaged in the first slice. See [[πŸ“¦ Packages]]. + +`InventoryState` is a value the domain consumes (available quantities). How that snapshot is collected is infrastructure. See [[πŸŽ’ Inventory State]]. + +Domain services: + +- [[🧾 Recipe Resolution]] β€” goal β†’ material requirements +- [[βž• Material Aggregation]] β€” active goals β†’ aggregated list +- [[πŸ“ˆ Progress Calculation]] β€” missing, ready-to-craft, completion + +Recipe resolution uses a `RecipeProvider` port. It does not call a recipe mod. + +--- + +## Application + +Coordinates use cases. + +First use case: [[▢️ Create Goal]]. + +Same slice: Adjust Goal Quantity, Remove Goal, Clear Goals, Refresh Progress. + +Mark Goal Complete is named. It is not in the first slice. + +The application layer calls infrastructure through ports (`RecipeProvider`, inventory snapshot). It does not contain domain rules. It loads what the use case needs, asks the domain to decide, and presents the result. Persistence is in-memory for this slice. + +Packages: [[πŸ“¦ Packages]]. + +--- + +## Infrastructure + +Infrastructure exists to satisfy domain requirements. + +Infrastructure may be replaced. + +Examples: + +- NeoForge +- EMI +- JEI +- REI +- Save data storage +- Inventory scanning + +Infrastructure is never the source of domain truth. + +--- + +## Recipe abstraction + +The domain should never directly depend on a recipe mod. + +Port: [[πŸ”Œ Recipe Provider]] β€” `resolve(ItemId, quantity) β†’ list of MaterialRequirement`. + +First implementation: `StubRecipeProvider`. Later: EMI, JEI, REI, vanilla. + +The rest of the system should not care which provider is active. + +Recipe viewing is out of scope. This port exists so the domain can resolve requirements, not so Satistaskory can become a recipe browser. + +--- + +## Persistence abstraction + +The domain should not know where data is stored. + +Possible implementations: + +- World Save +- Server Save +- Future Cloud Sync + +First slice: in-memory. No save adapter yet. + +--- + +## Inventory abstraction + +The domain should not know how inventory is read. + +It receives available quantities (`InventoryState`). + +How those quantities are gathered (player inventory, ender chest, later storage integrations) is infrastructure and may change without a domain rewrite. + +First slice: player inventory only. + +--- + +## UI philosophy + +The UI should be replaceable. It renders domain information. It does not contain domain logic. + +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. + +Not discovered: + +- Full-screen planner +- Row selection / per-goal filter of the missing list + +Progressive disclosure is a UI concern guided by the domain: the materials region defaults to missing materials; expand into per-goal breakdowns, recipe trees, and dependency chains only on demand. Those expansions are not this panel’s first drawing. + +--- + +## Architectural rules + +1. Goals are the domain. +2. Recipes are infrastructure. +3. UI is infrastructure. +4. Storage is infrastructure. +5. Integrations are infrastructure. +6. The domain layer must not depend on infrastructure. +7. Infrastructure may depend on the domain. + +--- + +## Success criteria + +If EMI, JEI, REI, or another recipe mod disappears tomorrow, Satistaskory should require only an adapter replacement and not a domain rewrite. + +The domain model should survive infrastructure changes. + +See [[🎯 Success Metrics]]. + +--- + +## Related Documents + +[[🧠 Philosophy]] + +[[πŸ“¦ Bounded Contexts]] + +[[πŸ“ Decisions]] + +[[πŸ—£οΈ Ubiquitous Language]] + +[[🧾 Recipe Resolution]] + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[πŸ“¦ Packages]] + +[[πŸ”Œ Recipe Provider]] + +[[▢️ Create Goal]] diff --git a/docs/03-Architecture/πŸ“ Decisions.md b/docs/03-Architecture/πŸ“ Decisions.md new file mode 100644 index 0000000..cfa3f4e --- /dev/null +++ b/docs/03-Architecture/πŸ“ Decisions.md @@ -0,0 +1,265 @@ +# πŸ“ Architectural Decision Log + +--- + +### ADR-001 β€” Domain first; recipes, UI, storage, and integrations are infrastructure + +**Date:** 2026-09-07 + +**Decision:** Goals are the domain. EMI, JEI, REI, NeoForge, UI, and save formats are infrastructure. + +**Reason:** + +Satistaskory exists to remember what the player is building and what is still missing. Centering a recipe mod or a GUI would make the tool the domain. + +**Status:** βœ… Accepted + +--- + +### ADR-002 β€” Layered DDD; domain does not depend on infrastructure + +**Date:** 2026-09-07 + +**Decision:** UI and Application depend on Domain. Infrastructure implements domain ports and depends inward. + +**Reason:** + +The domain model must survive infrastructure changes. A downward Domain β†’ Infrastructure dependency would make adapters the source of truth. + +**Status:** βœ… Accepted + +--- + +### ADR-003 β€” RecipeProvider port + +**Date:** 2026-09-07 + +**Decision:** Recipe lookup goes through a `RecipeProvider` interface. + +Implementations: EMI, JEI, REI. Future: vanilla. + +The rest of the system does not care which provider is active. + +**Reason:** + +If a recipe mod disappears, only an adapter should change. + +Recipe viewing is out of scope. The port exists for [[🧾 Recipe Resolution]], not for browsing recipes. + +**Status:** βœ… Accepted + +--- + +### ADR-004 β€” Persistence is replaceable + +**Date:** 2026-09-07 + +**Decision:** The domain does not know where data is stored. + +Possible implementations: world save, server save, future cloud sync. + +**Status:** βœ… Accepted + +--- + +### ADR-005 β€” Inventory is infrastructure; domain consumes quantities + +**Date:** 2026-09-07 + +**Decision:** [[πŸŽ’ Inventory State]] is available quantities. Scanning inventories is infrastructure. + +**Reason:** + +Player inventory, ender chest, and later storage integrations are collection strategies. The domain formula is `Missing = Required - Available`. + +**Status:** βœ… Accepted + +--- + +### ADR-006 β€” UI is replaceable infrastructure + +**Date:** 2026-09-07 + +**Decision:** Sidebar, full-screen planner, HUD, and future integrations are consumers of domain information. They do not contain domain logic. + +**Reason:** + +Progressive disclosure is a UI concern guided by the domain. Default: missing materials. + +**Status:** βœ… Accepted + +--- + +### ADR-007 β€” Three domain services, not one recipe-aggregation blob + +**Date:** 2026-09-07 + +**Decision:** Domain services are [[🧾 Recipe Resolution]], [[βž• Material Aggregation]], and [[πŸ“ˆ Progress Calculation]]. + +**Reason:** + +Resolution converts one goal into requirements. Aggregation combines active goals. Progress compares requirements to inventory. Those are different questions. + +**Status:** βœ… Accepted + +--- + +### ADR-008 β€” Ready To Craft is not completion + +**Date:** 2026-09-07 + +**Decision:** [[πŸ› οΈ Ready To Craft]] means materials are available. [[βœ… Completed Goal]] follows a configurable completion strategy (manual, inventory detection, future implementations). + +**Reason:** + +Having the diamonds is not the same as considering the work finished. + +**Status:** βœ… Accepted + +--- + +### ADR-009 β€” Projects are organizational only + +**Date:** 2026-09-07 + +**Decision:** [[πŸ“ Project]] groups [[🎯 Goal|goals]] for the player. Material calculations aggregate across projects, from active goals. + +**Status:** βœ… Accepted + +--- + +### ADR-010 β€” Play overlay is the living surface; capture is in-place + +**Date:** 2026-09-07 + +**Decision:** The daily consumer is a play overlay (HUD / sidebar family) showing [[πŸ“‰ Missing Material|missing materials]] while the player walks. + +A [[🎯 Goal]] is named in place: hover an item in inventory, the crafting bench craft pane, or the craft book, then `+ Add to Crafting Goals`. + +Satistaskory does not own those host views. It does not use a pause menu or planner pane as the daily desk. + +**Reason:** + +The product is a cognitive prosthetic during play. A dedicated menu would make the tool the desk. Capture should happen where the player already noticed the item. + +Player copy "Crafting Goals" means [[🎯 Goal]]. Code and docs say Goal. + +**Status:** βœ… Accepted + +--- + +### ADR-011 β€” Play overlay has two regions: Goals and Missing Materials + +**Date:** 2026-09-07 + +**Decision:** The living overlay (player concept art, [[πŸ–ΌοΈ Wireframes]] Screen 2) has two regions: + +1. Active [[🎯 Goal|goals]] with Target Quantity, adjusted by `[+]` / `[-]` +2. Aggregated materials still needed β€” one row per material, with a count (`Missing = Required - Available`) + +The concept art’s lower region was unfinished (a material name, no counts). The finished drawing is [[βž• Material Aggregation]] plus [[πŸ“ˆ Progress Calculation]], not a recipe tree. + +`X Clear Items` is on this overlay. + +The overlay remains on the play screen. It is not a pause menu. No row selection is drawn: aggregation stays across active goals. Same material from two goals is one row. + +Initial quantity at capture is not decided. + +**Reason:** + +The vision asks two questions. The concept art is the chrome. Philosophy Rule #3 still forbids recipe breakdowns as the first drawing of the materials region. + +**Status:** βœ… Accepted + +**Refines:** ADR-010 (the overlay is not missing-materials-only) + +--- + +### ADR-012 β€” Goal identity and quantity + +**Date:** 2026-09-08 + +**Decision:** + +- One [[🎯 Goal]] per Target Item (`ItemId`) in the plan +- Target Quantity β‰₯ 1 always +- [[▢️ Create Goal]] uses quantity **1** (new) or **+1** (already present) +- `[-]` at quantity 1 **removes** the goal +- `ItemId` is `namespace:path`, not a Minecraft `Item` class + +**Reason:** + +Hover-add has no picker. Two rows for the same furnace would split aggregation for no gain. Quantity 0 is not a goal. + +**Status:** βœ… Accepted + +**Settles:** the open quantity questions left by ADR-011 + +--- + +### ADR-013 β€” First slice freezes + +**Date:** 2026-09-08 + +**Decision:** The first code slice is Create Goal β†’ stub recipes β†’ player inventory β†’ play overlay. Frozen for that slice only: + +| Topic | Freeze | +|-------|--------| +| Persistence | In-memory. ADR-004 still holds | +| Inventory | Player inventory only | +| Recipes | `StubRecipeProvider`. Not EMI/JEI/REI | +| Overlay placement | Right side of the play screen | +| Clear | No confirm | +| Projects | Not packaged | +| Completion | Not in the slice | +| Capture hosts | Experience still names three; first wiring may be one caller of Create Goal | + +**Reason:** + +A prototype that starts with EMI or a save format is an adapter project. This slice proves the domain chain. + +**Status:** βœ… Accepted + +--- + +### ADR-014 β€” RecipeProvider shape; stub first + +**Date:** 2026-09-08 + +**Decision:** See [[πŸ”Œ Recipe Provider]]. + +`resolve(ItemId, quantity) β†’ list of MaterialRequirement` + +One crafting level. No recipe β†’ `(target, quantity)` (gather). `quantity < 1` β†’ empty. Provider picks one recipe and returns concrete items. + +First impl: `StubRecipeProvider`. Production EMI/JEI/REI adapters come after the port is proven. + +**Status:** βœ… Accepted + +**Refines:** ADR-003 (named the port; this is the shape and the first impl) + +--- + +## Related Documents + +[[πŸ›οΈ Architecture]] + +[[🌟 Project Vision]] + +[[🧠 Philosophy]] + +[[🎯 Goal]] + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[▢️ Create Goal]] + +[[πŸ”Œ Recipe Provider]] + +[[πŸ“¦ Packages]] + +[[βž• Material Aggregation]] diff --git a/docs/03-Architecture/πŸ“¦ Packages.md b/docs/03-Architecture/πŸ“¦ Packages.md new file mode 100644 index 0000000..54833b5 --- /dev/null +++ b/docs/03-Architecture/πŸ“¦ Packages.md @@ -0,0 +1,73 @@ +# πŸ“¦ Packages + +Java packages for the first slice. Root: `com.sufficient.satistaskory`. + +Rule #9: do not add a package until the slice needs it. No `project`, `emi`, or `persistence` until those are in the slice. + +--- + +## Layout + +```text +com.sufficient.satistaskory + Satistaskory.java # NeoForge entry. Wiring only. Not the domain. + + domain/ + ItemId + Goal + MaterialRequirement + InventoryState + MissingMaterial + RecipeProvider # port (interface) + RecipeResolution # domain service + MaterialAggregation # domain service + ProgressCalculation # domain service + + application/ + CreateGoal + AdjustGoalQuantity + RemoveGoal + ClearGoals + RefreshProgress + + infrastructure/ + recipe/ + StubRecipeProvider # first impl. Not EMI/JEI/REI. + inventory/ + PlayerInventoryAdapter # player inventory β†’ InventoryState + client/ + PlayOverlay # Screen 2 + CaptureHook # Screen 1 β€” one host is enough to start +``` + +Dependencies point inward: `infrastructure` and `application` may import `domain`. `domain` imports nothing from NeoForge, EMI, JEI, REI, or `infrastructure`. + +--- + +## What is not packaged yet + +| Omitted | Why | +|---------|-----| +| `Project` | Organizational only; not in the slice | +| Completion strategy | Ready β‰  complete; complete is not in the slice | +| `EmiRecipeProvider` / JEI / REI | Adapters after the stub proves the port | +| 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. + +--- + +## Related Documents + +[[πŸ›οΈ Architecture]] + +[[▢️ Create Goal]] + +[[πŸ”Œ Recipe Provider]] + +[[🎯 Goal]] + +[[πŸ“ Decisions]] + +[[🧠 Philosophy]] diff --git a/docs/03-Architecture/πŸ”Œ Recipe Provider.md b/docs/03-Architecture/πŸ”Œ Recipe Provider.md new file mode 100644 index 0000000..d3f0fce --- /dev/null +++ b/docs/03-Architecture/πŸ”Œ Recipe Provider.md @@ -0,0 +1,79 @@ +# πŸ”Œ Recipe Provider + +Port used by [[🧾 Recipe Resolution]]. + +The domain asks: *what materials produce this many of this item?* +Infrastructure answers. The domain never imports a recipe mod. + +--- + +## Shape + +```text +RecipeProvider + resolve(ItemId target, int quantity) + β†’ list of MaterialRequirement +``` + +`ItemId` is `namespace:path` (e.g. `minecraft:furnace`). Not `net.minecraft.world.item.Item`. + +`MaterialRequirement` is `(ItemId, quantity)`. + +--- + +## Contract + +| Case | Result | +|------|--------| +| `quantity < 1` | Empty list | +| Item has a recipe | **One crafting level** of ingredients, already scaled for `quantity` (including recipe output count) | +| Item has no recipe | One requirement: `(target, quantity)` β€” a gather | +| Several recipes exist | Provider picks **one**. Recipe choice is not in the slice | +| Ingredient is a tag | Provider returns **concrete** ItemIds. Tags are not a domain type yet | + +Not a recipe tree. Not a recipe browser. Dependency chains are an expanded view, not this port. + +--- + +## First implementation: stub + +`StubRecipeProvider` in `infrastructure.recipe`. + +In-memory table of a few shaped recipes plus the identity fallback. Enough to drive Furnace / Crafting Bench / Chest in the overlay. Not vanilla-complete. Not EMI. + +Later implementations (not this slice): `EmiRecipeProvider`, `JeiRecipeProvider`, `ReiRecipeProvider`, `VanillaRecipeProvider`. + +If a recipe mod disappears, only the adapter changes. See ADR-003, ADR-014. + +--- + +## Who calls it + +[[πŸ“ˆ Progress Calculation]] (via [[🧾 Recipe Resolution]]): + +```text +remaining = max(0, goal.quantity βˆ’ available(goal.item)) +requirements = RecipeProvider.resolve(goal.item, remaining) +``` + +Then aggregate. Then `Missing = Required βˆ’ Available`. + +Owned finished goods reduce **how many to resolve**. They are not subtracted again from ingredients. + +--- + +## Related Documents + +[[🧾 Recipe Resolution]] + +[[🧱 Material Requirement]] + +[[πŸ“ˆ Progress Calculation]] + +[[πŸ›οΈ Architecture]] + +[[πŸ“¦ Packages]] + +[[πŸ“ Decisions]] + +[[🎯 Goal]] diff --git a/docs/04-Planning/🎯 Success Metrics.md b/docs/04-Planning/🎯 Success Metrics.md new file mode 100644 index 0000000..6ade162 --- /dev/null +++ b/docs/04-Planning/🎯 Success Metrics.md @@ -0,0 +1,44 @@ +# 🎯 Success Metrics + +--- + +## Success is NOT + +- ❌ Auto-crafting +- ❌ Replacing EMI / JEI / REI +- ❌ AE2 job submission +- ❌ How many goals exist +- ❌ How busy the UI looks +- ❌ Automating gathering, routing, storage, or production + +--- + +## Success IS + +- βœ… The player can answer: *what am I trying to build, and what materials do I still need?* +- βœ… Play overlay shows [[🎯 Goal|goals]] (upper) and [[πŸ“‰ Missing Material|missing materials]] (lower) +- βœ… A goal can be named by pointing at an item (hover β†’ add), not by opening a Satistaskory menu +- βœ… The player still does the work (Philosophy Rule #4) +- βœ… If EMI, JEI, or REI disappears, only an adapter changes +- βœ… The domain model survives infrastructure changes +- βœ… Future Me can navigate the vault after six months (Philosophy Rule #7) + +--- + +## Related Documents + +[[🌟 Project Vision]] + +[[🧠 Philosophy]] + +[[πŸ›οΈ Architecture]] + +[[πŸ—ΊοΈ Roadmap]] + +[[🚢 Day in the Life]] + +[[πŸ–₯️ Experience]] + +[[πŸ–ΌοΈ Wireframes]] + +[[▢️ Create Goal]] diff --git a/docs/04-Planning/πŸ—ΊοΈ Roadmap.md b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md new file mode 100644 index 0000000..6844293 --- /dev/null +++ b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md @@ -0,0 +1,76 @@ +# πŸ—ΊοΈ Roadmap + +What exists, and what is next. Implementation detail will live in an Implementation Plan when code starts β€” that file does not exist yet. + +--- + +## βœ… Now (docs) + +- Philosophy Rules #1–#10; ADRs **001–014** +- Vision, ubiquitous language, bounded context (one: Goal Planning) +- Goal invariants: one per ItemId, quantity β‰₯ 1, create at 1 / +1, `[-]` at 1 removes +- Packages named; [[πŸ”Œ Recipe Provider]] sketched; [[▢️ Create Goal]] written +- Experience: capture in place; overlay on the right (goals + aggregated needed counts) + +Domain code does not exist. The NeoForge template example block/item is not the architecture. + +--- + +## πŸ”² Next + +The first slice is settled. **Write the code** for that slice. Do not start EMI. + +1. Packages + domain types (`ItemId`, `Goal`, `MaterialRequirement`, `InventoryState`) +2. `RecipeProvider` + `StubRecipeProvider` +3. **Create Goal** (and Adjust / Remove / Clear / Refresh Progress) +4. Player-inventory snapshot +5. Play overlay (right side) + +`🌾 Implementation Plan` opens when that code starts β€” not before. + +--- + +## ⏸ Not opened + +- `🌾 Implementation Plan` β€” nothing is shipped to map + +--- + +## πŸ”² Parked + +Not a queue. See [[🚧 Future Ideas]]. + +- EMI / JEI / REI recipe adapters +- Vanilla recipe provider (beyond the stub table) +- Persistence (world / server / cloud) +- Projects packaged +- Completion +- Full-screen planner +- Overlay pixel metrics +- Integrations that are out of scope for the domain (AE2 jobs, auto-craft, storage) + +--- + +## Related Documents + +[[🧭 Notes for the Wayfinder]] + +[[πŸ“ Decisions]] + +[[🧠 Philosophy]] + +[[🎯 Success Metrics]] + +[[🌟 Project Vision]] + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[▢️ Create Goal]] + +[[πŸ“¦ Packages]] + +[[πŸ”Œ Recipe Provider]] diff --git a/docs/04-Planning/🧭 Notes for the Wayfinder.md b/docs/04-Planning/🧭 Notes for the Wayfinder.md new file mode 100644 index 0000000..349f408 --- /dev/null +++ b/docs/04-Planning/🧭 Notes for the Wayfinder.md @@ -0,0 +1,294 @@ +# 🧭 Notes for the Wayfinder + +> Append-only journal for the future maintainer. +> Do not rewrite history β€” add a new dated entry. + +--- + +## πŸ“œ 2026-09-07 + +Greetings, Wayfinder. + +Today the foundations were laid. + +The project is now documented as a domain-driven goal-tracking and material-planning system rather than a crafting helper. + +A home exists for: + +- Vision +- Philosophy +- Language +- Architecture +- Planning + +The kingdom has borders. + +Its inhabitants do not yet exist. + +Next destination: + +Define the core domain entities. + +Begin with Goal. + +Avoid: + +Implementation details. + +The dragons of EMI, JEI, REI, and NeoForge GUIs remain beyond the mountains. + +--- + +## πŸ“œ 2026-09-07 (architecture scaffold) + +Greetings, Wayfinder. + +An architecture scaffold was recorded. It is allowed to change as we iterate. + +### Guiding principle + +Goals are the domain. Recipes are implementation details. + +### Layers + +UI β†’ Application β†’ Domain. Infrastructure implements ports and depends inward. + +The first diagram had Domain pointing at Infrastructure. That contradicted the golden rule. The map was corrected. + +### Ports named, not designed + +- `RecipeProvider` (EMI / JEI / REI; later vanilla) +- Persistence (world save / server save / future cloud) +- Inventory (available quantities only) + +### Domain services (three, not one) + +- Recipe Resolution +- Material Aggregation +- Progress Calculation + +A combined β€œRecipeAggregationService” was rejected. Those are different questions. + +### Remember + +- Ready To Craft is not completion +- Projects are organizational; aggregation is across active goals +- Inventory is a quantity; scanning is infrastructure +- UI is replaceable and must not contain domain logic + +### Next destination + +Still not code. + +Deepen Goal until it is boring. Then package layout, then the RecipeProvider port shape, then Create Goal. + +--- + +## πŸ“œ 2026-09-07 (the vault) + +Greetings, Wayfinder. + +Design documentation now follows the Media Farm vault. + +Template: `C:\Users\Stephen\OneDrive\Documents\Media-Pipeline\docs` + +```text +docs/ + 00-Vision/ + 01-Philosophy/ + 02-Domain/ + 03-Architecture/ + 04-Planning/ + 05-Experience/ # not opened + 99-backlog/ +``` + +The old flat files `docs/domain.md` and `docs/architecture.md` were the first draft. Their content lives on the shelves now. + +### Today's lesson + +The goal is not to remember where things are. + +The goal is to build a world where their location is obvious. + +### Avoid + +- Opening the Experience shelf before the domain can describe a player day without mentioning EMI +- Writing an Implementation Plan for code that does not exist +- Inventing bounded contexts because other projects have several +- Treating the NeoForge example block as architecture + +The map exists. +The territory is still empty β€” but the borders match the discovery. + +--- + +## πŸ“œ 2026-09-07 (a player day) + +Greetings, Wayfinder. + +The domain can describe a player day without naming a recipe mod. The Experience shelf is open. + +### The walk + +Golden day: the player is **in the world**. A play overlay shows missing materials. They gather. The list shrinks. Ready is not complete. They still do the work. + +Interrupt: they are already looking at an item in inventory, the crafting bench craft pane, or the craft book. Hover. `+ Add to Crafting Goals`. That is Create Goal. Then back to play. + +There is no daily menu. Capture is in-place. We do not own those host views. + +ADR-010 records this. Player copy "Crafting Goals" means Goal. + +### What we did not invent + +- Target Quantity at capture +- Overlay pixel placement +- A full-screen planner +- Confirmations (no such rule here) +- Fake screens beyond those two + +### Next destination + +Still not code. + +Quantity at capture is now a live Goal question. Deepen Goal until it is boring. Then package layout, RecipeProvider, Create Goal. + +Avoid: + +- Treating inventory / bench / craft book as Satistaskory screens +- Opening an Implementation Plan +- Drawing a planner pane because other mods have one + +--- + +## πŸ“œ 2026-09-07 (concept art β†’ Screen 2) + +Greetings, Wayfinder. + +The player had already drawn the living overlay. We merged it with the domain instead of treating it as a second product. + +### The drawing + +Title `SATISTASKORY`. Upper list: Furnace 3, Crafting Bench 5, Chest 8, each with `[+]` `[-]`. Lower list: Wooden Planks. Footer: `X Clear Items`. + +### The merge + +| Art | Domain | +|-----|--------| +| Upper rows | [[🎯 Goal]] + Target Quantity | +| `[+]` / `[-]` | Quantity on the living surface | +| Lower region | [[πŸ“‰ Missing Material]], aggregated | +| Clear Items | Drop the tracked goals | + +ADR-011 records this. It refines ADR-010: the overlay is not missing-materials-only. Both vision questions live on one play-screen panel. + +Capture is unchanged: hover β†’ add β†’ new row in the upper list. + +### What we did not invent + +- Initial quantity at hover-add +- Quantity reaching 0 +- Row selection (lower list is not a per-goal recipe pane) +- Confirm-before-clear +- Pixel placement +- A third screen + +Rule #3 still holds: the lower region is missing materials, not a recipe tree. + +### Next destination + +Still not code. + +Initial quantity at capture, and what `[+]` / `[-]` means at 0, are live Goal questions. + +--- + +## πŸ“œ 2026-09-07 (the lower list was unfinished) + +Greetings, Wayfinder. + +The concept art’s lower region was a stub: β€œWooden Planks,” no counts, empty space. + +The player’s intent: **aggregate** the materials, and show **how many of each** are needed. + +That is already in the domain. Screen 2 is now finished: + +- One row per material +- Count = still needed (`Missing = Required - Available`) +- Same material from two goals is one row (benches and chests both need planks β†’ one Wooden Planks line) +- Counts shrink as the player gathers +- `[+]` / `[-]` on a goal recalculates the list + +The numbers in the wireframe (Planks 84, Cobblestone 24) are an illustration of aggregation, not a recipe table. No β€œ8 cobble per furnace” on this panel. + +ADR-011 updated to match. Rule #3 still holds. + +--- + +## πŸ“œ 2026-09-08 (the short sit) + +Greetings, Wayfinder. + +The first slice is settled in the vault. Not an Implementation Plan. Not code. + +### Goal + +- `ItemId` = `namespace:path` +- One Goal per ItemId +- Quantity β‰₯ 1 +- Create = 1, or +1 if present +- `[-]` at 1 removes + +### Packages + +`domain` / `application` / `infrastructure.recipe` / `infrastructure.inventory` / `infrastructure.client` + +No Project, EMI, or persistence packages yet. Stub first. + +### Port + +`RecipeProvider.resolve(ItemId, quantity) β†’ list of MaterialRequirement` + +One level. No recipe β†’ gather (the item itself). First impl: `StubRecipeProvider`. + +Progress: remaining = qty βˆ’ owned(target), then resolve, then missing = required βˆ’ available. + +### Create Goal + +Application use case. Capture is a caller, not the use case. Overlay on the right. + +ADRs **012–014**. + +### Next destination + +Write the Java for that slice. Remove the example block when domain types land. + +Avoid: + +- Starting EMI because the port exists +- Opening Implementation Plan as a fiction before a line of domain code +- Packaging Project β€œwhile we’re here” + +--- + +## Related Documents + +[[🌟 Project Vision]] + +[[🧠 Philosophy]] + +[[πŸ—ΊοΈ Roadmap]] + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[βž• Material Aggregation]] + +[[▢️ Create Goal]] + +[[πŸ”Œ Recipe Provider]] + +[[πŸ“¦ Packages]] diff --git a/docs/05-Experience/πŸ“– User Stories.md b/docs/05-Experience/πŸ“– User Stories.md new file mode 100644 index 0000000..acdc1e4 --- /dev/null +++ b/docs/05-Experience/πŸ“– User Stories.md @@ -0,0 +1,99 @@ +# πŸ“– User Stories + +Derived from [[🚢 Day in the Life]]. Not a second backlog. + +Player is the only actor. Do not write recipe-browser stories. Do not write auto-craft stories. + +The golden-day stories are the product. Capture stories are how a [[🎯 Goal]] enters. + +--- + +## Golden day β€” play with the plan in view + +### US-1 β€” Missing materials while walking + +As a player +I want each needed material on the play overlay, with how many I still need +so I do not hold the plan in working memory. + +Screen 2, lower region. One row per material. Counts are aggregated across goals. +*What materials do I still need?* + +### US-2 β€” Goals while walking + +As a player +I want the goals I named on the same overlay +so I can see what I am trying to build without a menu. + +Screen 2, upper region. +*What am I trying to build?* + +### US-3 β€” The missing list follows what I have + +As a player +I want the missing list to shrink as I gather +so I can see progress without opening a menu. + +[[πŸŽ’ Inventory State]] changes. [[πŸ“ˆ Progress Calculation]] updates the living surface. + +### US-4 β€” Ready is visible, work is still mine + +As a player +I want to know when a goal is [[πŸ› οΈ Ready To Craft]] +so I can do the crafting. The overlay does not craft for me. + +### US-5 β€” Change how many I want + +As a player +I want `[+]` / `[-]` on a goal +so I can set Target Quantity while I play. + +Screen 2. Capture starts at 1 (or +1). `[-]` at 1 removes the goal. + +### US-6 β€” Clear the plan + +As a player +I want `X Clear Items` +so I can drop the tracked goals from the overlay. + +No confirm. No quantity 0. + +--- + +## Interrupt β€” name a goal + +### 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. + +Screen 1 β†’ [[▢️ Create Goal]] β†’ Screen 2 (new row, or quantity +1). + +### 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 +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. + +--- + +## Related Documents + +[[🚢 Day in the Life]] + +[[πŸ–ΌοΈ Wireframes]] + +[[πŸ–₯️ Experience]] + +[[🎯 Goal]] + +[[🌟 Project Vision]] + +[[▢️ Create Goal]] diff --git a/docs/05-Experience/πŸ–₯️ Experience.md b/docs/05-Experience/πŸ–₯️ Experience.md new file mode 100644 index 0000000..a0287db --- /dev/null +++ b/docs/05-Experience/πŸ–₯️ Experience.md @@ -0,0 +1,116 @@ +# πŸ–₯️ Experience + +The living surface is the **play screen**. Capture happens **in place** on item views Minecraft already owns. + +Satistaskory does not own a daily menu. The overlay panel sits on the world. The player is not inside it. + +--- + +## Two surfaces + +| Surface | When | What Satistaskory adds | +|---------|------|------------------------| +| **Capture** | Inventory, crafting bench craft pane, craft book | On hover: `+ Add to Crafting Goals` | +| **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. + +Chrome and the two-region layout come from the player’s concept art. The lower region was unfinished; it is the aggregated needed-counts list. See [[πŸ–ΌοΈ Wireframes]] Screen 2. + +First slice: overlay on the **right** of the play screen. + +--- + +## Capture + +We do not own these views. We attach one control to an item the player is already looking at. + +Places: + +- Player inventory +- Crafting bench craft pane +- Craft book + +Interaction: + +1. Hover the item +2. `+ Add to Crafting Goals` appears +3. That is [[▢️ Create Goal]] β€” quantity **1**, or **+1** if that item is already a goal +4. Player closes the view and is back in the world +5. The item is a row on the overlay’s goal list + +Player copy: **Crafting Goals**. Domain: **Goal**. Do not fork the language in code or docs. + +--- + +## Living + +The overlay answers both halves of the vision question: + +> What am I trying to build, and what materials do I still need? + +| Region | Answers | +|--------|---------| +| Upper β€” goal list | What I am trying to build. Target Quantity via `[+]` / `[-]` | +| Lower β€” needed list | What I still need. One row per material. Count is aggregated (`Missing = Required - Available`) | + +`X Clear Items` clears the tracked goals. No confirm in this slice. + +`[-]` at quantity 1 removes that goal. + +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. + +A full-screen planner is not this surface. It is not discovered. + +--- + +## Quantity + +Capture always applies **1** (new goal) or **+1** (existing). No picker on Screen 1. + +`[+]` / `[-]` on the overlay change quantity. `[-]` at 1 removes the goal. There is no 0. + +--- + +## What we do not own + +- Inventory +- Crafting bench +- Craft book +- A pause menu or planner pane as the daily desk +- Crafting, gathering, or routing + +--- + +## Not discovered + +- Row selection / per-goal filter of the missing list +- Full-screen planner +- Expanded disclosure chrome +- Pixel-perfect overlay metrics (right side is the freeze; padding/size is not) + +--- + +## Related Documents + +[[🚢 Day in the Life]] + +[[πŸ“– User Stories]] + +[[πŸ–ΌοΈ Wireframes]] + +[[🎯 Goal]] + +[[πŸ“‰ Missing Material]] + +[[βž• Material Aggregation]] + +[[πŸ›οΈ Architecture]] + +[[πŸ“ Decisions]] + +[[🌟 Project Vision]] + +[[▢️ Create Goal]] diff --git a/docs/05-Experience/πŸ–ΌοΈ Wireframes.md b/docs/05-Experience/πŸ–ΌοΈ Wireframes.md new file mode 100644 index 0000000..bca6a1a --- /dev/null +++ b/docs/05-Experience/πŸ–ΌοΈ Wireframes.md @@ -0,0 +1,136 @@ +# πŸ–ΌοΈ Wireframes + +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. + +The world is the shell. The overlay has chrome. The player is not inside a pause menu. + +Screen 2 is the player’s concept art, finished with the domain: goals on top; below, each aggregated material and how many are needed. + +--- + +## Screen 1 β€” Capture (in place) + +The player is already in inventory, the crafting bench craft pane, or the craft book. + +Satistaskory draws only the hover control. + +```text + (host view we do not own) + + [ item ] + + β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” + β”‚ + Add to Crafting Goals β”‚ + β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +``` + +**Primary action:** Add β†’ [[▢️ Create Goal]] (quantity 1, or +1 if present) β†’ player closes the host view β†’ the item appears in Screen 2’s goal list. + +Same button in all three hosts. We do not restyle the inventory, the bench, or the book. + +Target Quantity is not drawn here. First quantity is 1. Further edits are `[+]` / `[-]` on Screen 2. + +--- + +## Screen 2 β€” Play overlay (golden day) + +The player is walking. This panel sits on the **right** of the play screen. + +Concept art supplies the chrome. The lower region was unfinished (a material name, no counts). Finished: [[βž• Material Aggregation]] β€” one row per material, with how many are needed. + +```text + (the world β€” player is walking) + + β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” + β”‚ SATISTASKORY β”‚ + β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ + β”‚ [+] [-] FURNACE 3 β”‚ + β”‚ [+] [-] CRAFTING BENCH 5 β”‚ + β”‚ [+] [-] CHEST 8 β”‚ + β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ + β”‚ Wooden Planks 84 β”‚ + β”‚ Cobblestone 24 β”‚ + β”‚ β”‚ + β”‚ β”‚ + β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ + β”‚ [ X Clear Items ] β”‚ + β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +``` + +Annotations (not on-screen labels): + +| Region | What it is | +|--------|------------| +| Title `SATISTASKORY` | Overlay chrome | +| Upper list | [[🎯 Goal\|Goals]] the player named. Number is Target Quantity. `[+]` / `[-]` adjust it | +| Lower list | Aggregated materials. One row per material. Number is how many are still needed (`Missing = Required - Available`) | +| `X Clear Items` | Clears the tracked goals on this overlay | + +Example reading: three goals (3 furnaces, 5 crafting benches, 8 chests). [[🧾 Recipe Resolution]] then [[βž• Material Aggregation]] fold those into one list β€” planks from benches and chests become one Wooden Planks row, not two. Counts in this drawing are illustrative, not a recipe table. + +The lower list is not a recipe tree. No β€œ8 cobble per furnace.” Just the individual materials and how many are needed. + +As the player gathers, the needed counts shrink. A material at 0 leaves the list. Changing a goal’s `[+]` / `[-]` recalculates the lower list. + +**While playing:** the lists are memory. The player mines and crafts. + +**On this chrome:** + +- `[+]` / `[-]` change that goal’s Target Quantity +- `X Clear Items` clears the goal list (missing list follows) + +No row selection is drawn. The lower list is aggregated across active goals, not a per-goal recipe pane. + +Placement: **right** side (first-slice freeze). Exact pixels are not specified. + +`[-]` at 1 removes the row. `X Clear Items` does not ask first. + +--- + +## Roads + +**Golden day:** the player is already on Screen 2. + +```text +2 Play overlay (goals + missing materials) + player gathers / crafts + missing list shrinks + +/- if the target count was wrong +``` + +**Interrupt (name a goal):** + +```text +1 Capture (hover + add) + β†’ 2 Play overlay (new row in the goal list) +``` + +There is no Screen 3. A full-screen planner is not on this road. Recipe breakdowns and β€œwhich goals need this” are expanded views. They are not this panel’s first drawing. + +--- + +## Related Documents + +[[πŸ–₯️ Experience]] + +[[🚢 Day in the Life]] + +[[πŸ“– User Stories]] + +[[🎯 Goal]] + +[[πŸ“‰ Missing Material]] + +[[βž• Material Aggregation]] + +[[🧾 Recipe Resolution]] + +[[🌟 Project Vision]] + +[[πŸ“ Decisions]] + +[[▢️ Create Goal]] + +[[πŸ”Œ Recipe Provider]] diff --git a/docs/05-Experience/🚢 Day in the Life.md b/docs/05-Experience/🚢 Day in the Life.md new file mode 100644 index 0000000..af21288 --- /dev/null +++ b/docs/05-Experience/🚢 Day in the Life.md @@ -0,0 +1,131 @@ +# 🚢 Day in the Life + +The spine of the product. If this walk is boring, the UI is a rendering problem. + +Player language. Recipe mods, save formats, and NeoForge do not appear here. + +The golden day is **playing**. Naming a [[🎯 Goal]] is an interrupt, not a desk. + +Screens: [[πŸ–ΌοΈ Wireframes]]. + +--- + +## Golden day β€” walk with the plan in view + +A [[🎯 Goal]] already exists. The player is in the world. + +The job is two questions, one overlay: + +> What am I trying to build, and what materials do I still need? + +```text +Player is walking, mining, fighting, building + ↓ +Play overlay shows goals (with quantities) + and [[πŸ“‰ Missing Material|missing materials]] + ↓ +Player gathers and crafts + ↓ +[[πŸŽ’ Inventory State]] changes + ↓ +Missing list shrinks + ↓ +[[πŸ› οΈ Ready To Craft]] when nothing is missing for that goal + ↓ +Player still does the work + ↓ +[[βœ… Completed Goal]] when they consider it finished +``` + +### 1. Playing + +The world stays the screen. The overlay panel sits on it. The player is not inside a Satistaskory menu. + +### 2. The plan in view + +**Where:** Screen 2 β€” Play overlay. + +**Sees:** + +- Goals they named β€” e.g. Furnace 3, Crafting Bench 5, Chest 8 +- Aggregated materials still needed β€” e.g. Wooden Planks 84, Cobblestone 24 (one row per material, counts combined across goals) + +Not a quest log. Not a recipe tree. + +`[+]` / `[-]` on a goal changes how many they want, without opening a menu. + +### 3. The player acts + +They mine, pick up, craft. Satistaskory does not. + +As [[πŸŽ’ Inventory State]] changes, [[πŸ“ˆ Progress Calculation]] updates the missing list. + +### 4. Ready is not done + +When the missing list is empty for a goal, that goal is [[πŸ› οΈ Ready To Craft]]. + +The player still crafts it, places it, or otherwise finishes the work. Then it is a [[βœ… Completed Goal]]. + +--- + +## Interrupt β€” name a goal (not the product loop) + +This is how a [[🎯 Goal]] **enters** the plan. It can happen many times. It is not the golden day. + +The player already has Minecraft's own item views open. Satistaskory does not replace those views. + +```text +Looking at an item + in inventory + or the crafting bench craft pane + or the craft book + ↓ +Hover the item Screen 1 + ↓ ++ Add to Crafting Goals + ↓ +A [[🎯 Goal]] is created for that item + ↓ +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 not:** Type a goal name into a Satistaskory menu. Open a planner pane to start tracking. + +The button label is player copy. The domain name is [[🎯 Goal]]. See [[πŸ–₯️ Experience]]. + +### Quantity + +A goal has a Target Quantity. Hover-add starts at **1**, or **+1** if that item is already a goal. The overlay changes it with `[+]` / `[-]`. `[-]` at 1 removes the goal. + +--- + +## What this walk is not + +- A pause-menu planner as the daily desk +- A recipe browser +- Auto-craft after Ready To Craft +- Satistaskory owning inventory, the crafting bench, or the craft book + +--- + +## Related Documents + +[[πŸ–₯️ Experience]] + +[[πŸ“– User Stories]] + +[[πŸ–ΌοΈ Wireframes]] + +[[🎯 Goal]] + +[[πŸ“‰ Missing Material]] + +[[βž• Material Aggregation]] + +[[🌟 Project Vision]] + +[[▢️ Create Goal]] diff --git a/docs/99-backlog/🚧 Future Ideas.md b/docs/99-backlog/🚧 Future Ideas.md new file mode 100644 index 0000000..f21ee93 --- /dev/null +++ b/docs/99-backlog/🚧 Future Ideas.md @@ -0,0 +1,50 @@ +# 🚧 Future Ideas + +Things that are cool. + +Not a build queue. + +--- + +- EMI / JEI / REI `RecipeProvider` adapters +- Vanilla `RecipeProvider` beyond the stub table +- Persistence (world save / server / cloud) +- Inventory-detection completion (alongside manual) +- Ender chest / later storage in the inventory snapshot +- Projects packaged +- Full-screen planner +- Overlay pixel metrics (right side is frozen; size/padding is not) +- Which-goals-need-this expanded view +- Recipe breakdowns and dependency chains as disclosure, not as a recipe browser + +Integrations that are **not domain** (may be wired later, never owned): + +- Auto crafting +- AE2 job submission +- Storage automation +- Item routing +- Quest management +- Factory automation +- Inventory sorting +- Recipe viewing + +--- + +Reminder: + +Just because an idea is cool doesn't mean it needs to be built this week. + +Goals first. +Do not invent a second bounded context unless Goal Planning fails a real domain problem. + +--- + +## Related Documents + +[[πŸ—ΊοΈ Roadmap]] + +[[🌟 Project Vision]] + +[[πŸ—£οΈ Ubiquitous Language]] + +[[πŸ–₯️ Experience]] diff --git a/docs/achitecture.md b/docs/achitecture.md deleted file mode 100644 index e69de29..0000000 diff --git a/docs/domain.md b/docs/domain.md deleted file mode 100644 index e69de29..0000000