Demo: problems come round about on a schedule, not like a clock #64

Merged
jcoffey-dev merged 1 commits from fix/demo-spells into main 2026-11-16 07:24:56 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev cba12cb2f3 Demo: problems come round about on a schedule, not like a clock
ci / check (pull_request) Successful in 4m58s
ci / postgres (pull_request) Successful in 9m49s
Every demo problem started at the same minute of each cycle and lasted
the same time, so Recently resolved read like a timetable, and 30 days
of history held about 3,700 incidents: app-04's container exiting 19
times a day for a month (#57).

Each occurrence's start now moves by up to an eighth of its period, its
length is 70% to 130% of the plan's, and half the periods have none,
four in five at night in Phoenix. All of it is seeded by the spell and
the period, so the simulator's parts still agree and a restarted demo
carries on where the clock is. The month of history now holds about
1,400 incidents with a working day's shape, and in the Phoenix day
there's never an hour with nothing going on (tested over three days).

Callers that stepped through a spell by its period or worked out its end
from its length use the occurrences instead: last, between.

Closes #57.
2026-11-15 23:40:34 -07:00