Drop EMI/JEI/REI as recipe dependencies.
Build / build (push) Failing after 29s

ADR-016: RecipeManager is the lookup source. Viewers are optional only if a recipe never registers with Minecraft.
This commit is contained in:
Stephen Fasciani
2026-09-08 05:16:29 -04:00
parent a66043915e
commit b56403388c
10 changed files with 54 additions and 31 deletions
+1 -1
View File
@@ -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. 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. The NeoForge template example block/item is gone. Do not put it back.
+3 -7
View File
@@ -64,6 +64,9 @@ runs {
client { client {
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces. // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id
// Skip the title/accessibility screens; this ARM OpenGL path often presents black there.
argument '--quickPlaySingleplayer'
argument 'Test'
} }
server { server {
@@ -101,13 +104,6 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:5.10.2" testImplementation "org.junit.jupiter:junit-jupiter:5.10.2"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.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 // Example mod dependency using a mod jar from ./libs with a flat dir repository
// This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar
// The group id is ignored when searching -- in this case, it is "blank" // The group id is ignored when searching -- in this case, it is "blank"
+5 -9
View File
@@ -115,13 +115,11 @@ Infrastructure may be replaced.
Examples: Examples:
- NeoForge - NeoForge
- EMI - `RecipeManager` (vanilla + mod-registered recipes)
- JEI
- REI
- Save data storage - Save data storage
- Inventory scanning - 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. Infrastructure is never the source of domain truth.
@@ -129,13 +127,11 @@ Infrastructure is never the source of domain truth.
## Recipe abstraction ## 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`. Port: [[🔌 Recipe Provider]] — `resolve(ItemId, quantity) → list of MaterialRequirement`.
First implementation: `StubRecipeProvider`. Later: EMI, JEI, REI, vanilla. Shipped: `StubRecipeProvider`. Next: `VanillaRecipeProvider` on `RecipeManager`. EMI/JEI/REI are not required. See ADR-016.
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. 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 ## 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. The domain model should survive infrastructure changes.
+22
View File
@@ -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 ## Related Documents
[[🏛️ Architecture]] [[🏛️ Architecture]]
+1 -1
View File
@@ -49,7 +49,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain
|---------|-----| |---------|-----|
| `Project` | Organizational only; not in the slice | | `Project` | Organizational only; not in the slice |
| Completion strategy | Ready ≠ complete; complete is 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 | | Persistence | In-memory goals. ADR-004 still holds; no save adapter yet |
| Full-screen planner | Not discovered | | Full-screen planner | Not discovered |
+4 -6
View File
@@ -3,7 +3,7 @@
Port used by [[🧾 Recipe Resolution]]. Port used by [[🧾 Recipe Resolution]].
The domain asks: *what materials produce this many of this item?* 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 ## 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`. EMI / JEI / REI are not implementations and not Gradle dependencies.
If a recipe mod disappears, only the adapter changes. See ADR-003, ADR-014.
--- ---
+1 -1
View File
@@ -19,7 +19,7 @@
- ✅ Play overlay shows [[🎯 Goal|goals]] (upper) and [[📉 Missing Material|missing materials]] (lower) - ✅ 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 - ✅ 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) - ✅ 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 - ✅ The domain model survives infrastructure changes
- ✅ Future Me can navigate the vault after six months (Philosophy Rule #7) - ✅ Future Me can navigate the vault after six months (Philosophy Rule #7)
+3 -4
View File
@@ -21,9 +21,9 @@ First slice **code exists** and has been played: domain, stub `RecipeProvider` (
The walk is real. The walk is real.
1. World-save persistence 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]]. Not a queue. See [[🚧 Future Ideas]].
- EMI / JEI / REI recipe adapters - Viewer-only recipe adapter if `RecipeManager` is not enough
- Vanilla recipe provider (beyond the stub table)
- Persistence (world / server / cloud) - Persistence (world / server / cloud)
- Projects packaged - Projects packaged
- Completion - Completion
@@ -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 ## Related Documents
[[🌟 Project Vision]] [[🌟 Project Vision]]
+2 -2
View File
@@ -6,8 +6,8 @@ Not a build queue.
--- ---
- EMI / JEI / REI `RecipeProvider` adapters - Vanilla `RecipeProvider` on `RecipeManager` (next after world save)
- Vanilla `RecipeProvider` beyond the stub table - Viewer-only recipe adapter (EMI/JEI/REI) **if** a recipe never appears in `RecipeManager`
- Persistence (world save / server / cloud) - Persistence (world save / server / cloud)
- Inventory-detection completion (alongside manual) - Inventory-detection completion (alongside manual)
- Ender chest / later storage in the inventory snapshot - Ender chest / later storage in the inventory snapshot