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
@@ -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.