Files
satistaskory/docs/02-Domain/🗣️ Ubiquitous Language.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

2.5 KiB
Raw Blame History

🗣️ Ubiquitous Language

These terms have ONE meaning across the entire project.


Core chain

Goal → Recipe Resolution → Material Requirements
  → Material Aggregation → Inventory State
  → Missing Materials / Ready To Craft
  → Completed Goal

📁 Project is optional grouping. It is not a step in the chain.

Material calculations aggregate across projects.


🎯 Goal

A thing the player wishes to obtain.

Contains: Target Item (ItemId, namespace:path), Target Quantity (≥ 1).

One Goal per ItemId in the plan. Create at 1, or +1 if that item is already a goal. [-] at 1 removes it.

Examples: 4 Ender Chests. 1 AE2 Controller. 64 Export Buses.

Player copy Crafting Goals means this. Code and docs say Goal. See 🖥️ Experience.


📁 Project

An optional grouping of goals.

Examples: AE2 Setup. Reactor Project. Factory Expansion.

Projects exist purely for organization.


🧱 Material Requirement

A quantity of a material required to complete a goal.

Example: Diamond x12


Aggregated Material Requirement

The combined 🧱 Material Requirement of all active goals.

Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12.


🎒 Inventory State

A snapshot of materials currently available to the player.

The domain only cares about available quantities.


📉 Missing Material

A material requirement that has not yet been fulfilled.

Missing = Required - Available

🛠️ Ready To Craft

All materials required for a goal are available.

Ready To Craft does not imply completion.


✅ Completed Goal

A goal the player considers finished.

Completion strategy is configurable (manual, inventory detection, future implementations).


Domain services

Service Meaning
🧾 Recipe Resolution Goal → material requirements
➕ Material Aggregation Active goals → aggregated material list
📈 Progress Calculation Missing, ready-to-craft, completion status

Rejected (not in the language)

Not owned by this domain. May be integrated with later.

  • Auto Crafting
  • AE2 Job Submission
  • Storage Automation
  • Item Routing
  • Quest Management
  • Factory Automation
  • Inventory Sorting
  • Recipe Viewing

📦 Bounded Contexts

🌟 Project Vision

🧭 Notes for the Wayfinder

🖥️ Experience

▶️ Create Goal

🔌 Recipe Provider