One millisecond past fresh
Replay five synthetic timestamps against a frozen clock to inspect the exact boundary between eligible, stale, future and invalid.
Try the experiment ↓- Format
- Interactive experiment
- Reading time
- 3 minutes
- Level
- beginner
Synthetic boundary replay · v1.0.0
Where does fresh become stale?
Clock held at 2026-12-05T12:00:00.000Z. Compare elapsed milliseconds with 86,400,000 ms (24 hours), before rounding.
Build-time replay: all five observed labels match the separate expectations.
- Example 1
2026-12-04T12:00:00.001Z- Elapsed ms
- 86,399,999
- Observed label
- eligible
- Expected label
- eligible
- Example 2
2026-12-04T12:00:00.000Z- Elapsed ms
- 86,400,000
- Observed label
- eligible
- Expected label
- eligible
- Example 3
2026-12-04T11:59:59.999Z- Elapsed ms
- 86,400,001
- Observed label
- stale
- Expected label
- stale
- Example 4
2026-12-05T12:00:00.001Z- Elapsed ms
- -1
- Observed label
- future
- Expected label
- future
- Example 5
not-a-date- Elapsed ms
- Not a date
- Observed label
- invalid
- Expected label
- invalid
Eligible only passes the time check. It does not authorize a suggestion or establish that the rest of a queue is ready. Stale, future and invalid timestamps suppress suggestions.
Replay locally or inspect the source
Download these three files into the same folder. With Node.js installed, run node run.mjs. No account, credentials or network access is needed to run the downloaded replay.
The page, browser replay and local runner share one policy implementation. The JSON output keeps computed observations separate from the owner-supplied expected labels.
What changes at 24 hours?
A suggestion workflow should stop when its source is too old. A rounded age can hide the difference between exactly 24 hours and 24 hours plus one millisecond. This small experiment makes that boundary visible without reading a real queue.
The rule we replay
The owner’s saved suggestion rule, clarified on December 5, 2026, says to skip suggestions when the snapshot is missing or unreadable, or its first timestamp is invalid, in the future, or older than 24 hours. Exactly 24 hours passes the time check. Compare elapsed milliseconds before rounding.
The replay implements that owner-stated configuration; it does not import an executable production classifier. Expected labels were supplied separately by the owner. The observed labels are computed from each timestamp.
Five examples, one clock
Subtract each parsed timestamp from the frozen UTC clock. Invalid dates receive an invalid label; negative elapsed time is future; elapsed time above 86,400,000 milliseconds is stale; the remaining examples are eligible. No rounded hours enter the decision. Replaying in this browser leaves the clock and examples fixed.
What this does not establish
This is a synthetic boundary demonstration, not a test of a live queue or scheduler. Missing and unreadable snapshots are outside these five timestamp cases. The first scheduled live read remains unverified. Eligible does not establish source accuracy, complete records, a useful suggestion, or permission to act. No real queue contents are used, read or changed.