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.
This commit is contained in:
@@ -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]]
|
||||
Reference in New Issue
Block a user