Tracking Time in AI Stories and Where It Slips
Tracking time in AI stories fails when the clock lives only in prose. What a story record must hold for dusk to arrive once, and how to spot drift.
Tracking time in AI stories is a storage problem before it is a writing problem. A narrator handed only the last few pages of prose has to infer the hour from description, and description is ambiguous, so dusk can arrive twice in one evening and nothing in the system objects. The repair is to keep the clock as a stored fact, revised by the same step that revises everything else the story knows.
- Time is usually the first continuity to break, because it is implied by prose rather than stated as a fact.
- A usable story clock needs three fields: which day it is, where in that day you are, and how long the last scene took.
- Parser interactive fiction settled this decades ago by holding the clock and its timed events outside the narration.
- Drift announces itself through repeated evenings, meals an hour apart, and injuries that close in a scene.
- One sentence from the reader, stating the hour or the gap, is usually enough to set the clock straight.
Why tracking time in AI stories is harder than tracking people
People survive in a story record because they are nouns. A character has a name, a description and a row of their own, and a row is easy to carry forward. Time has no noun to attach to. It lives in adverbs and in the gaps between paragraphs — later, by morning, after a while — and when a record stores facts about things, a phrase like after a while has nothing to be a fact about.
So the hour gets left in the prose, and prose is the part that eventually gets trimmed. Twenty scenes in, the narrator can see a summary saying that you crossed the river and made camp. It cannot see whether the camp was last night or last week. Both readings fit the summary, and the model will pick whichever one the next sentence makes easiest to write.
Why the error compounds
A dropped character comes back wrong once and is usually obvious. A dropped hour compounds quietly. Each scene infers the time from the scene before it, so one wrong inference becomes the premise for the next, and by the fourth scene the story has an internally consistent evening that never existed. That is why time errors feel less like a glitch and more like a different book.
What a story record has to hold for time to stay put
Tracking time in AI stories takes three fields, and none of them are complicated. The point is not precision — most stories do not need minutes — but monotonicity: a stored value that only ever moves forward, so the narrator is reading the clock instead of guessing it.
| Field | What it stores | What it prevents |
|---|---|---|
| Day ordinal | An integer, incremented when night passes | Three consecutive mornings, a week collapsing into an afternoon |
| Phase of day | Dawn, morning, afternoon, dusk, night | Dusk arriving twice, lamps lit at noon |
| Elapsed since last scene | Minutes, hours or days, written per scene | A journey of days narrated as if it took one breath |
Two more are worth adding once those hold. Scheduled events — the tide, the shift change, the thing that happens in three days — need a due time, so they can fire on their own rather than when the narrative remembers them. And durable facts need durations: a broken wrist should carry six weeks with it, or it will heal at the speed of the plot.
How older interactive fiction kept its clock
It kept the clock outside the text, which is the whole lesson for tracking time in AI stories. Inform’s manual is blunt about it. The documentation states that “Inform keeps track of the time of day automatically: play ordinarily begins at 9 AM and each turn takes one minute”, and adds that Inform does nothing to act upon that time, or to reveal it to the player, without instruction — nevertheless it is there. The clock runs whether or not a sentence mentions it.
Ink counts moves instead of minutes. Its documentation describes TURNS_SINCE(-> knot) as returning “the number of moves (formally, player inputs) since a particular knot/stitch was last visited”, with −1 meaning never seen. An author can then write a line that only appears ten moves after you last slept. Nothing is inferred from the prose; the count is simply there to be read.
Zork went further and attached decay to the count. Its source keeps a lamp table of turn thresholds — 100, 70, 15, 0 — each paired with a line of narration, so the lantern reports that it “appears a bit dimmer”, then dimmer again, then nearly out, at fixed distances from when you switched it on. The dread is produced by an integer counting down.
What the AI version changes
The arithmetic is the easy part; a stored day counter works the same whoever reads it. What changes is that the narration is no longer written in advance, so the clock has to be handed to the writer rather than consulted by the author. That makes the record the authority and the prose the output, which is the opposite of how most chat-based story tools arrange things.
| Form | Where the clock lives | How the reader sees it |
|---|---|---|
| Parser interactive fiction | A time-of-day variable advanced one minute per turn | Status line, or events firing at set times |
| Choice-based fiction | Turn and visit counts since a passage | Lines that unlock after N moves |
| AI narrator | A field in the story record, sent with every scene | Prose only: failing light, a second night |
How to tell when the clock has slipped
Four symptoms cover most of it, and all four are visible from the page without opening anything. Once you can name them you stop rereading to check whether you imagined it, which is the real cost of drift.
- The evening repeats. Lamps are lit twice, or the sun sets in two consecutive scenes.
- Meals cluster. Breakfast, then a meal an hour later, because eating reads as a scene beat rather than a time of day.
- Wounds heal at narrative speed. An injury that mattered three scenes ago is unmentioned in the fourth.
- Journeys cost nothing. A ride described as three days ends with everyone fresh and the same errand still urgent.
The second lane of that figure is what a structured record buys you: not realism, but direction. In Fabledrift, an interactive fiction app for Android where every scene is written live from the story’s structured memory, the intent is that the hour, like every other fact, arrives already decided rather than reconstructed from the paragraph above. If you want to see what has been written down, the story journal in AI stories is where a reader can check it.
Correcting it from inside the story
State the time in your own move and keep it in the fiction. “I wait until the lamps are lit.” “Three days later, I come back to the door.” A duration written into a move is part of the scene being answered, not a note stuck to the outside of it, and it is far cheaper than backing up. Deliberate time-passing is a move in its own right, which is the argument in waiting in interactive fiction.
What to do when dusk arrives twice
Say so, in a sentence, inside the story: it is full dark by now, and has been for hours. Then carry on. Tracking time in AI stories is the rare continuity problem a reader can fix from the page. The clock is the one thing you can repair without losing a page, because unlike a misremembered name it does not need to be unwritten — it only needs to be pointed forward again. Everything else the record holds depends on that direction, which is why what counts as one scene is also the unit on which the hour should move.
Frequently asked questions
Why do AI narrators lose track of time?
Because the hour is almost never written down as a fact. It is implied by words like dusk, later and after a while, and an implication has to be re-derived from the text every turn, which is exactly the kind of inference that goes wrong when the text is summarized or trimmed.
How do I tell the narrator how much time has passed?
Write it into your move as plainly as you would write an action, such as "I wait until the lamps are lit" or "three days later, I go back to the door." A stated duration becomes part of the scene the narrator is answering, rather than something it has to guess.
Should an AI story show a clock on the page?
It does not need to. A clock on the page is a game HUD, and most readers would rather have the hour carried by the prose. What matters is that the hour exists in the record behind the page, so the prose stays consistent with it.
Does tracking time make an AI story feel like a simulation?
Not if the record stays behind the page. The reader sees sentences about failing light; the stored day counter is only there so the light fails once and keeps failing in the same direction.