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
Owner

Each demo problem's start now varies by up to an eighth of its period and its length by 70-130%, and half the periods have none (four in five at night in Phoenix), all seeded by spell and period so the simulator still agrees with itself. 30 days of history drop from about 3,700 incidents to about 1,400 with a working day's shape; in the Phoenix day there's never an hour with nothing going on (tested over three days). Docs: demo.md.

Closes #57.

Each demo problem's start now varies by up to an eighth of its period and its length by 70-130%, and half the periods have none (four in five at night in Phoenix), all seeded by spell and period so the simulator still agrees with itself. 30 days of history drop from about 3,700 incidents to about 1,400 with a working day's shape; in the Phoenix day there's never an hour with nothing going on (tested over three days). Docs: demo.md. Closes #57.
jcoffey-dev added 1 commit 2026-11-16 07:14:52 +00:00
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
cba12cb2f3
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.
jcoffey-dev merged commit d89e344b02 into main 2026-11-16 07:24:56 +00:00
jcoffey-dev deleted branch fix/demo-spells 2026-11-16 07:24:56 +00:00
Sign in to join this conversation.