diff --git a/AGENTS.md b/AGENTS.md index 856a174..34feeac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,6 +42,6 @@ Read [[🧠 Philosophy]] before changing the vault. The Bookshelf Principle, Pre 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 rewrite the overlay as a `Screen` unless the HUD path fails. +Do not start EMI/JEI/REI. Recipe source is `RecipeManager` (ADR-016). Persistence and Project wait until settled. 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/build.gradle b/build.gradle index 516389f..b5e63d1 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,9 @@ runs { client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id + // Skip the title/accessibility screens; this ARM OpenGL path often presents black there. + argument '--quickPlaySingleplayer' + argument 'Test' } server { @@ -101,13 +104,6 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter:5.10.2" testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.10.2" - // Example optional mod dependency with JEI - // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime - // compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}" - // compileOnly "mezz.jei:jei-${mc_version}-neoforge-api:${jei_version}" - // We add the full version to localRuntime, not runtimeOnly, so that we do not publish a dependency on it - // localRuntime "mezz.jei:jei-${mc_version}-neoforge:${jei_version}" - // Example mod dependency using a mod jar from ./libs with a flat dir repository // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" diff --git a/docs/03-Architecture/πŸ›οΈ Architecture.md b/docs/03-Architecture/πŸ›οΈ Architecture.md index f0198f3..9567306 100644 --- a/docs/03-Architecture/πŸ›οΈ Architecture.md +++ b/docs/03-Architecture/πŸ›οΈ Architecture.md @@ -115,13 +115,11 @@ Infrastructure may be replaced. Examples: - NeoForge -- EMI -- JEI -- REI +- `RecipeManager` (vanilla + mod-registered recipes) - Save data storage - Inventory scanning -Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet. +Shipped this slice: `StubRecipeProvider`, player-inventory snapshot, HUD overlay, tooltip+key capture. No save adapter yet. EMI/JEI/REI are not dependencies. Infrastructure is never the source of domain truth. @@ -129,13 +127,11 @@ Infrastructure is never the source of domain truth. ## Recipe abstraction -The domain should never directly depend on a recipe mod. +The domain should never import a recipe viewer. 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. +Shipped: `StubRecipeProvider`. Next: `VanillaRecipeProvider` on `RecipeManager`. EMI/JEI/REI are not required. See ADR-016. Recipe viewing is out of scope. This port exists so the domain can resolve requirements, not so Satistaskory can become a recipe browser. @@ -199,7 +195,7 @@ Progressive disclosure is a UI concern guided by the domain: the materials regio ## Success criteria -If EMI, JEI, REI, or another recipe mod disappears tomorrow, Satistaskory should require only an adapter replacement and not a domain rewrite. +If the recipe source changes (stub β†’ `RecipeManager`, or a later viewer-only edge case), Satistaskory should require only an adapter replacement and not a domain rewrite. The domain model should survive infrastructure changes. diff --git a/docs/03-Architecture/πŸ“ Decisions.md b/docs/03-Architecture/πŸ“ Decisions.md index 73b9e8d..149f829 100644 --- a/docs/03-Architecture/πŸ“ Decisions.md +++ b/docs/03-Architecture/πŸ“ Decisions.md @@ -258,6 +258,28 @@ A button next to the slot vanishes when the cursor leaves the item. A `Screen` r --- +### ADR-016 β€” Vanilla RecipeManager is the recipe source + +**Date:** 2026-09-08 + +**Decision:** Satistaskory does **not** depend on EMI, JEI, or REI. + +Recipe lookup for [[πŸ”Œ Recipe Provider]] is Minecraft’s `RecipeManager` (vanilla + every mod that registers recipes through that API). Next implementation after the stub: `VanillaRecipeProvider`. + +EMI / JEI / REI are recipe **viewers**. They are not a lookup dependency. An adapter to a viewer is only justified if a real recipe exists *only* in that viewer and never in `RecipeManager`. That has not been observed. + +**Reason:** + +The domain question is ingredients, not β€œwhat does EMI draw.” Most modded crafting, smelting, and machine recipes on NeoForge 1.21 are `RecipeType` + JSON/serializer in `RecipeManager`. ADR-003 named EMI/JEI/REI first without a domain reason. + +The port remains. The **order** was wrong. + +**Status:** βœ… Accepted + +**Supersedes:** ADR-003’s implementation list (EMI/JEI/REI first, vanilla later) + +--- + ## Related Documents [[πŸ›οΈ Architecture]] diff --git a/docs/03-Architecture/πŸ“¦ Packages.md b/docs/03-Architecture/πŸ“¦ Packages.md index 3e9ff97..c736246 100644 --- a/docs/03-Architecture/πŸ“¦ Packages.md +++ b/docs/03-Architecture/πŸ“¦ Packages.md @@ -49,7 +49,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain |---------|-----| | `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 | +| `VanillaRecipeProvider` | Next recipe impl; `RecipeManager` | | Persistence | In-memory goals. ADR-004 still holds; no save adapter yet | | Full-screen planner | Not discovered | diff --git a/docs/03-Architecture/πŸ”Œ Recipe Provider.md b/docs/03-Architecture/πŸ”Œ Recipe Provider.md index d3f0fce..ba1c2b3 100644 --- a/docs/03-Architecture/πŸ”Œ Recipe Provider.md +++ b/docs/03-Architecture/πŸ”Œ Recipe Provider.md @@ -3,7 +3,7 @@ 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. +Infrastructure answers. The domain never imports a recipe **viewer** (EMI/JEI/REI). Lookup is Minecraft’s `RecipeManager`. --- @@ -37,13 +37,11 @@ Not a recipe tree. Not a recipe browser. Dependency chains are an expanded view, ## First implementation: stub -`StubRecipeProvider` in `infrastructure.recipe`. +`StubRecipeProvider` in `infrastructure.recipe` β€” three shaped recipes plus gather. Shipped. -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. +Next: `VanillaRecipeProvider` over `RecipeManager` (vanilla and modded recipes registered with Minecraft). See ADR-016. -Later implementations (not this slice): `EmiRecipeProvider`, `JeiRecipeProvider`, `ReiRecipeProvider`, `VanillaRecipeProvider`. - -If a recipe mod disappears, only the adapter changes. See ADR-003, ADR-014. +EMI / JEI / REI are not implementations and not Gradle dependencies. --- diff --git a/docs/04-Planning/🎯 Success Metrics.md b/docs/04-Planning/🎯 Success Metrics.md index 6ade162..aea589b 100644 --- a/docs/04-Planning/🎯 Success Metrics.md +++ b/docs/04-Planning/🎯 Success Metrics.md @@ -19,7 +19,7 @@ - βœ… 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 +- βœ… Recipe lookup is `RecipeManager`. EMI/JEI/REI are not required. If the adapter changes, the domain does not. - βœ… The domain model survives infrastructure changes - βœ… Future Me can navigate the vault after six months (Philosophy Rule #7) diff --git a/docs/04-Planning/πŸ—ΊοΈ Roadmap.md b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md index 364654d..19c7de7 100644 --- a/docs/04-Planning/πŸ—ΊοΈ Roadmap.md +++ b/docs/04-Planning/πŸ—ΊοΈ Roadmap.md @@ -21,9 +21,9 @@ First slice **code exists** and has been played: domain, stub `RecipeProvider` ( The walk is real. 1. World-save persistence -2. Vanilla `RecipeProvider` (one crafting level). Still not EMI. +2. Vanilla `RecipeProvider` on `RecipeManager` (one crafting level). No EMI/JEI/REI. -Do not start EMI because the port exists. +EMI is not a dependency. See ADR-016. --- @@ -37,8 +37,7 @@ Do not start EMI because the port exists. Not a queue. See [[🚧 Future Ideas]]. -- EMI / JEI / REI recipe adapters -- Vanilla recipe provider (beyond the stub table) +- Viewer-only recipe adapter if `RecipeManager` is not enough - Persistence (world / server / cloud) - Projects packaged - Completion diff --git a/docs/04-Planning/🧭 Notes for the Wayfinder.md b/docs/04-Planning/🧭 Notes for the Wayfinder.md index 0e7a7bb..80264bb 100644 --- a/docs/04-Planning/🧭 Notes for the Wayfinder.md +++ b/docs/04-Planning/🧭 Notes for the Wayfinder.md @@ -316,6 +316,18 @@ Next: world save, then vanilla RecipeProvider. Not EMI. Not a Screen rewrite. --- +## πŸ“œ 2026-09-08 (no recipe-viewer dependency) + +Greetings, Wayfinder. + +EMI / JEI / REI were never in Gradle. They were named as RecipeProvider implementations without a domain reason. + +ADR-016: lookup is `RecipeManager`. Modded recipes that register a `RecipeType` / serializer / JSON land there. Viewers only display them. + +Next recipe impl: `VanillaRecipeProvider`. A viewer adapter only if a recipe exists solely in EMI and never in `RecipeManager`. + +--- + ## Related Documents [[🌟 Project Vision]] diff --git a/docs/99-backlog/🚧 Future Ideas.md b/docs/99-backlog/🚧 Future Ideas.md index f21ee93..5391573 100644 --- a/docs/99-backlog/🚧 Future Ideas.md +++ b/docs/99-backlog/🚧 Future Ideas.md @@ -6,8 +6,8 @@ Not a build queue. --- -- EMI / JEI / REI `RecipeProvider` adapters -- Vanilla `RecipeProvider` beyond the stub table +- Vanilla `RecipeProvider` on `RecipeManager` (next after world save) +- Viewer-only recipe adapter (EMI/JEI/REI) **if** a recipe never appears in `RecipeManager` - Persistence (world save / server / cloud) - Inventory-detection completion (alongside manual) - Ender chest / later storage in the inventory snapshot