Files
satistaskory/docs/03-Architecture/📦 Packages.md
T
Stephen Fasciani a045281f76
Build / build (push) Failing after 6m27s
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.
2026-09-08 01:47:06 -04:00

74 lines
2.0 KiB
Markdown

# 📦 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]]