Files
satistaskory/docs/03-Architecture/📦 Packages.md
T
Stephen Fasciani d63f1aa745
Build / build (push) Failing after 27s
Opt-in auto-remove: picking up the goal item counts it done.
/satistaskory auto-remove. Off by default. A gain in held target items reduces quantity and removes the goal at 0. Player inventory only. Already-held stacks are a baseline, not a wipe.
2026-09-08 06:48:57 -04:00

2.4 KiB

📦 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 or emi until those are in the slice.


Layout

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/
        Planner                    # create / increment / decrement / clear / snapshot
        GoalStore                  # port
        InMemoryGoalStore          # unit tests; inner store for persist
        ObtainedCompletion         # opt-in: pickup counts as done

    infrastructure/
        recipe/
            VanillaRecipeProvider  # RecipeManager, all types, by output
            StubRecipeProvider     # unit tests only
        inventory/
            PlayerInventoryAdapter # player inventory → InventoryState
        persistence/
            GoalPlan               # NBT codec
            PersistingGoalStore
            ClientGoalPersistence  # client files; host does not need this mod
            ClientSaveKeys
        client/
            PlayOverlay            # Screen 2 HUD (not a Screen)
            CaptureHook            # tooltip + KeyMapping ADD_GOAL
            PlannerSession
            ClientSettings         # auto-remove preference
            ClientCommands         # debug /satistaskory add|clear|auto-remove

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
Full completion UI Ready ≠ complete. Opt-in inventory detection exists (/satistaskory auto-remove). No complete button.
Full-screen planner Not discovered

The NeoForge template example block/item is gone. Do not put it back.


🏛️ Architecture

▶️ Create Goal

🔌 Recipe Provider

💾 Persistence

🎯 Goal

📝 Decisions

🧠 Philosophy