You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/plant is now the brain: plant.Compute(activity, state, now) is a pure, deterministic function mapping activity → stage (seed→sprout→leafy→tall→blooming, streak-driven + busy-day shortcut), health (healthy→thirsty→wilting by commit recency), and a short mood line. A memory floor keeps a mature plant from cratering on one quiet day (health dents first; wilting slips one stage, never below sprout). All thresholds live in one tunable block; 17 table-driven tests cover the transitions and wilt edges. gofmt/vet/build/test all green locally. Leaving the merge to next cycle so CI runs first.
Merged via #13 — M3 plant state machine (activity → stage + health + mood) is in. Pure/deterministic plant.Compute, 17 table-driven tests, CI green. M4 render will consume PlantState next.
Activity
rwrife commentedon Jul 1, 2026
PR up: #13 🌱
internal/plantis now the brain:plant.Compute(activity, state, now)is a pure, deterministic function mapping activity → stage (seed→sprout→leafy→tall→blooming, streak-driven + busy-day shortcut), health (healthy→thirsty→wilting by commit recency), and a short mood line. A memory floor keeps a mature plant from cratering on one quiet day (health dents first; wilting slips one stage, never below sprout). All thresholds live in one tunable block; 17 table-driven tests cover the transitions and wilt edges. gofmt/vet/build/test all green locally. Leaving the merge to next cycle so CI runs first.Add plant state machine: activity -> stage + health + mood (#3) (#13)
rwrife commentedon Jul 2, 2026
Merged via #13 — M3 plant state machine (activity → stage + health + mood) is in. Pure/deterministic
plant.Compute, 17 table-driven tests, CI green. M4 render will consumePlantStatenext.