Opt-in auto-remove: picking up the goal item counts it done.
Build / build (push) Failing after 27s

/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.
This commit is contained in:
Stephen Fasciani
2026-09-08 06:48:57 -04:00
parent bac020f335
commit d63f1aa745
20 changed files with 311 additions and 17 deletions
+4 -5
View File
@@ -8,13 +8,12 @@ A [[🎯 Goal]] that the player considers finished.
Must be configurable.
Examples:
Shipped:
- Manual completion
- Inventory detection
- Future implementations
- Manual: `[−]` at 1, or Clear
- Inventory detection (opt-in): `/satistaskory auto-remove` — picking up the goal item counts that many as done. Player inventory only. Dumping the item in a chest does not restore the quantity. Turning it on (or joining a world) baselines what you already hold; it does not wipe the list for items already on you.
Ready To Craft is not completion. See [[🛠️ Ready To Craft]] and Philosophy Rule #5.
Ready To Craft is not completion. Auto-remove is off until the player turns it on. See [[🛠️ Ready To Craft]] and Philosophy Rule #5.
---
+1 -1
View File
@@ -67,7 +67,7 @@ Completed
A goal is created with a target item and quantity. [[🧾 Recipe Resolution]] produces its [[🧱 Material Requirement|material requirements]] for **how many are still to obtain** (target quantity minus how many of that item are already available). [[📈 Progress Calculation]] compares those requirements to [[🎒 Inventory State]], yielding [[📉 Missing Material|missing materials]] and eventually [[🛠️ Ready To Craft]].
[[✅ Completed Goal|Completion]] is a separate decision from readiness. It is **not in the first slice**.
[[✅ Completed Goal|Completion]] is a separate decision from readiness. Manual `[−]` / Clear always. Inventory detection is opt-in (`/satistaskory auto-remove`): a gain in held target items reduces quantity and removes the goal at 0.
---
@@ -51,6 +51,7 @@ Needed so Screen 2’s `[+]`, `[-]`, and Clear are not invented in the UI.
| **Remove Goal** | ItemId | Goal gone, then RefreshProgress |
| **Clear Goals** | — | All goals gone, then RefreshProgress |
| **Refresh Progress** | — | Recompute missing list from current goals + inventory |
| **Auto-remove (opt-in)** | Pickup of the goal item | Quantity down by the gain; gone at 0. `/satistaskory auto-remove` |
`[-]` on the overlay: if quantity > 1, Adjust −1; if quantity is 1, Remove Goal. The overlay does not keep a 0.
+21 -1
View File
@@ -114,7 +114,7 @@ Resolution converts one goal into requirements. Aggregation combines active goal
Having the diamonds is not the same as considering the work finished.
**Status:** ✅ Accepted
**Status:** ✅ Accepted. Opt-in inventory detection: ADR-020.
---
@@ -348,6 +348,26 @@ A chest crafts from any `#minecraft:planks`. Picking `getItems()[0]` made spruce
---
### ADR-020 — Opt-in: picking up the goal item can complete it
**Date:** 2026-09-08
**Decision:** Inventory-detection completion is a **player toggle**: `/satistaskory auto-remove` `[on|off]`. Default **off**.
When on, an **increase** in how many of the goal item the player is holding counts that many toward the goal. Quantity drops. At 0 the goal is removed. Player inventory only. Putting the item in a chest does not restore quantity. Enabling the toggle, or joining a world, baselines current holdings so already-held stacks do not wipe the list.
Manual `[−]` / Clear remain. Ready is still not complete.
**Reason:**
The walk: finished items stayed on the overlay until a click. For a prosthetic that is extra working memory. Auto-removing whenever `held >= target` would also delete a new goal the moment they add it while carrying any of that item. Counting **gains** avoids that.
**Status:** ✅ Accepted
**Refines:** ADR-008 (completion is configurable; this is the inventory-detection option)
---
## Related Documents
[[🏛️ Architecture]]
+4 -2
View File
@@ -27,6 +27,7 @@ com.sufficient.satistaskory
Planner # create / increment / decrement / clear / snapshot
GoalStore # port
InMemoryGoalStore # unit tests; inner store for persist
ObtainedCompletion # opt-in: pickup counts as done
infrastructure/
recipe/
@@ -43,7 +44,8 @@ com.sufficient.satistaskory
PlayOverlay # Screen 2 HUD (not a Screen)
CaptureHook # tooltip + KeyMapping ADD_GOAL
PlannerSession
ClientCommands # debug /satistaskory add|clear
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`.
@@ -55,7 +57,7 @@ Dependencies point inward: `infrastructure` and `application` may import `domain
| Omitted | Why |
|---------|-----|
| `Project` | Organizational only; not in the slice |
| Completion strategy | Ready ≠ complete; complete is 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.
+1 -2
View File
@@ -6,7 +6,7 @@ What exists, and what is next. Implementation detail will live in an Implementat
## ✅ Now (docs)
- Philosophy Rules #1–#10; ADRs **001–019**
- Philosophy Rules #1–#10; ADRs **001–020**
- Vision, ubiquitous language, bounded context (one: Goal Planning)
- Goal invariants: one per ItemId, quantity ≥ 1, create at 1 / +1, `[-]` at 1 removes
- Packages named; [[🔌 Recipe Provider]] sketched; [[▶️ Create Goal]] written
@@ -27,7 +27,6 @@ EMI is not a dependency. See ADR-016.
## ⏸ Not opened
- Project
- Completion
- Full-screen planner
---
@@ -435,6 +435,16 @@ ADR-019: a tag ingredient is one requirement, every member counts. Overlay names
---
## 📜 2026-09-08 (auto-remove)
Greetings, Wayfinder.
The walk: completed items stayed on the overlay.
ADR-020: `/satistaskory auto-remove`. Off by default. When on, a **gain** in held goal items reduces quantity and removes at 0. Not “held >= target” (that would eat a new goal while they are carrying the item). Not storage. Baseline on join/enable.
---
## Related Documents
[[🌟 Project Vision]]
+2
View File
@@ -60,6 +60,8 @@ The overlay answers both halves of the vision question:
`[-]` at quantity 1 removes that goal.
`/satistaskory auto-remove` (off by default): picking up the goal item counts it done and drops the quantity (gone at 0). Only what is on you. A chest you just filled does not count. Dumping the item does not bring the row back.
Walking has no cursor. Overlay `[+]` / `[-]` / Clear are HUD hit-tests (vanilla button sprites + click sound), not a `Screen`. Open chat (`T` or `/`) to click them. Capture does not use a clickable chip you leave the item to hit.
Same material from two goals is one row. Any-plank recipes (chest, crafting table) are one row too: spruce counts, mixed stacks count. If they hold none, the row says Planks, not Oak. Changing a goal quantity recalculates the lower list. As inventory fills, counts shrink.
+1 -1
View File
@@ -8,7 +8,7 @@ Not a build queue.
- Viewer-only recipe adapter (EMI/JEI/REI) **if** a recipe never appears in `RecipeManager`
- Persistence (server save / cloud)
- Inventory-detection completion (alongside manual)
- Other completion strategies (the opt-in pickup path is shipped: `/satistaskory auto-remove`)
- Ender chest / later storage in the inventory snapshot
- Projects packaged
- Full-screen planner