Deadline-Compiled Narrative Obligations with Anytime Bounds

Long stories written by language models rarely fall apart one sentence at a time. They fall apart over chapters. A character who died in chapter two speaks in chapter five. A secret that one character never learned shapes that character's decisions. A mystery set up early is never resolved. Current long-story systems catch these failures with soft checks: a learned discriminator, a trained reranker, or another model asked "is this consistent?" None of these checks says how confident it is or what it has actually ruled out. Formal verification offers the missing ingredient in the form of anytime bounds, meaning checkers that can be stopped at any moment and still return a valid interval on the quantity of interest, with the interval narrowing as more compute is spent. So far these bounds have only been applied to outputs a few dozen tokens long, and only to properties where a bad prefix can never be repaired.

This note proposes a way across that gap. Most global coherence properties of a story split into two kinds. The first kind is contradictions, which can never be undone once written. The second kind is obligations: things that must eventually happen, such as a planted clue paying off. An obligation becomes checkable once the story's outline gives it a deadline. After the deadline scene has passed, an undischarged obligation is as permanent as a contradiction. Before the deadline, a symbolic planner can sometimes prove that the obligation can no longer be met in the scenes that remain. With these two conversions, a story prefix can be declared dead for sound, stated reasons. We then run a branch-and-bound search over scenes rather than tokens, and each open branch carries an anytime-valid interval on how likely the generator is to keep it alive. The resulting certificate holds relative to a symbolic abstraction of the text. We measure the error of that abstraction directly instead of hiding it.

Core Claim

The claim is that non-prefix-closed narrative properties can be made prunable without giving up soundness at the level of the abstraction. Deadlines taken from the outline do most of the work, and planner infeasibility proofs catch doomed prefixes earlier. Under an equal compute budget, a scene-level search driven by these certificates should produce fewer long-range contradictions and unmet obligations than best-of-N scene reranking by a model judge. It should also avoid homogenizing the prose, because it prunes only on hard violations and never on style.

Relation to Prior Work

The verification side supplies the method and also defines the limit we have to get past. BEAVER keeps running lower and upper bounds on the probability that an autoregressive model's completions satisfy a constraint. It does this by expanding a trie of token prefixes and pruning any prefix that already violates the constraint. It relies explicitly on prefix-closed constraints, where every continuation of a bad prefix is also bad, and it leaves non-prefix-closed properties to future work. It also needs access to model logits, and it verifies passively rather than steering generation. We keep its core loop: select a node, expand it, update the bounds. We change three things. The unit of branching is a scene rather than a token, because token tries cannot survive vocabularies of tens of thousands over thousands of tokens. Liveness is handled through deadlines and planner proofs. And the bounds come from sampling rather than logits, so the method works with black-box models.

Two further works shape the design. Versatile Verification of Tree Ensembles sandwiches the true answer between an optimistic heuristic bound and concrete counterexamples. In our setting the planner's feasibility check plays the optimistic role and fully verified stories play the concrete role. The PAC statistical model checking line (Ashok et al., Agarwal et al.) shows that probability bounds estimated from samples can still carry formal confidence guarantees. We rely on that fact when deterministic bounds are out of reach.

RvLLM turns text into ground facts with a "perception" model and then checks domain rules by deterministic forward chaining. That design raised true-positive rates for catching legal violations by 15.7% to 50.2% over model judges. It motivates our choice to separate perception from reasoning. RvLLM, however, checks one snapshot at a time and returns a yes or no; it has no bounds and no notion of story time. SEM-CTRL uses tree search with logic grammars to reach 100% validity on puzzles. It states plainly that its binary-validity design does not suit open-ended text. We take this as a constraint: we never formalize the prose itself, only a small set of events.

On the narrative side, Re3, DOC and StoryWriter provide the generation scaffolding: plans, detailed outlines, event graphs and compressed working memory. Their consistency mechanisms are all heuristic, whether a reranker, a FUDGE-style discriminator, or an EventValidator agent. These systems motivate the work by showing that outlines help, and DOC's outlines are exactly where our deadlines come from. The Story So Far on Narrative Planning supplies the planner. It describes compiling narrative constraints into PDDL, a standard planning language, so that ordinary A* search can find plans quickly. It also warns, through its "Space Worm" discussion, that the shortest valid plan tends to be the most boring one. That is why the planner here is used only to prove infeasibility and never to choose what happens next.

ExploreToM shows frontier models scoring 0 to 9% on stories that involve asymmetric knowledge. This finding motivates the design and also constrains it. Belief tracking must be done by a symbolic program, and the language model's only job should be to extract actions from text: who moved what, and who was present.

Research Program

The system has four parts. The first is an event extractor: a language model prompted or fine-tuned to turn each generated scene into a short list of typed actions, such as a character entering or leaving, an object moving, a character being told a fact, or a character dying. These actions use a vocabulary modeled on the action language of ExploreToM. The second is a state program that executes the actions to maintain the physical world state and each character's beliefs. The third is a specification. It contains safety rules checked on the state, such as "a dead character does not act" or "a character does not act on knowledge they never received." It also contains obligations, each attached to a deadline scene given by the DOC-style outline, such as "the planted clue is used by scene 14." The fourth is a domain model in PDDL that tells the planner how scenes can change the state.

Write $s$ for a story prefix made of the scenes committed so far, and $H(s)$ for the number of scenes left in the budget. The prefix $s$ is declared dead in three cases. The first is that a safety rule fails on the state produced by $s$. The second is that some obligation's deadline has passed without it being discharged. The third is that the planner proves no sequence of at most $H(s)$ abstract actions can discharge all open obligations before their deadlines. All three conditions persist under any continuation of the story, so pruning on them is sound relative to the abstraction.

For prefixes that are still open, let $p(s)$ be the probability that one scene drawn from the generator, conditioned on $s$, leaves the prefix alive. After $n$ sampled scenes with $k$ survivors, we maintain an interval that is valid at every stopping time:

$$ \hat p_n - r_n(\delta) \;\le\; p(s) \;\le\; \hat p_n + r_n(\delta), \qquad \hat p_n = k/n, $$

Here $r_n(\delta)$ is a confidence-sequence radius, shrinking roughly as $\sqrt{\log(\log n/\delta)/n}$, which is the standard price of allowing the check to stop at any time. The parameter $\delta$ is the allowed error probability. Search then works the way branch-and-bound does in network verification. More samples go to branches with high upper bounds, and a branch is abandoned when its upper bound falls below a threshold. The run can be stopped at any point, and it reports two things: the best surviving story and its certificate. The certificate lists which safety rules and obligations were checked exactly on the abstraction, and gives the interval on the probability of survival.

This certificate is only as good as the extractor. Because ExploreToM stories are generated by a program, their action traces are known exactly, which lets us measure the extractor's miss rate and false-alarm rate. We also collect a human-annotated sample of generated scenes for the same purpose. The reported guarantee is always the pair (abstraction-level bound, measured extraction error), and never the bound on its own.

Baselines

The naive reference point is DOC-style outline-conditioned generation with a single sample per scene and no checking. It shows how much drift occurs when nothing intervenes. It uses the same generator, outline and scene count as every other condition.

The strongest existing method is DOC's detailed outline control. On WritingPrompts premises, DOC reports a 22.5% absolute gain in plot coherence and a 28.2% gain in outline relevance over Re3 (DOC). For stories of about 8,000 words, StoryWriter reports a human score of 4.2 out of 5 against DOC's 3.7 on LONGSTORY (StoryWriter). We will run StoryWriter's pipeline with the same generator. It is the strongest competitor on long horizons because its EventValidator and Coordinator already target consistency. Neither paper reports an explicit contradiction count, and no reported result was found on Lacuna for long-range contradiction or unmet-obligation rates on these benchmarks. We will therefore measure those rates ourselves for every system. Beating StoryWriter means a lower contradiction and unmet-obligation rate at matched generator tokens, with human plot-coherence ratings no worse than StoryWriter's.

The competitor most likely to match us is compute-matched best-of-N scene reranking. For each scene, it samples the same total number of candidates our search consumes. A strong model judge scores the candidates, and the judge is given the running event log and the specification written in plain language. This is Re3's reranking idea, strengthened with our own state information.

Two ablations isolate the key ingredients. The first keeps the extractor, the state program and exact safety checking, but uses greedy rejection: it resamples a scene until it passes, with no deadlines, no planner, and no bound-based allocation. This measures what the symbolic checker achieves on its own. The second adds deadlines but removes the planner's infeasibility proofs, which measures how much earlier pruning those proofs buy.

All conditions share the generator, the outlines, the premises, and a fixed budget of generated tokens per story. Every method with tunable parameters gets the same hyperparameter search budget.

Why not just…?

Why not just rerank scenes with a strong model judge? This is the real threat. ExploreToM's 0 to 9% results and RvLLM's gains over judges suggest judges miss belief and state errors. Those results, however, come from question answering and legal checking, not story scenes. The compute-matched best-of-N baseline above settles the question directly. If it matches our contradiction rate, then the anytime bounds add nothing beyond the extractor. In that case we would report the symbolic state program as the contribution and drop the claim about bounds.

Why not just keep the whole draft in a million-token context? StoryWriter reports that raw long histories add noise, and that compressed working memory does better. Beyond a Million Tokens finds that memory reasoning fails even when models have large context windows. We still include a full-context single-sample condition, so this claim is tested on our own data rather than assumed.

Why not just extend BEAVER's token-level bounds? At scene length, the token frontier grows exponentially, and BEAVER was only shown converging on outputs a few dozen tokens long, in about 25 forward passes on GSM-Symbolic (BEAVER). Its logit access also rules out API models. We accept that sampling-based intervals are looser; BEAVER reports its intervals as 6 to 8 times tighter than sampling at 100 forward passes. In exchange, we get tractability at the scale of whole stories.

Why not just fix contradictions afterwards with Re3's edit step? Post-hoc editing cannot rescue an obligation whose deadline has already passed without surgery on the plot, and repairs made late tend to cascade through later chapters. We will run Re3-style editing applied to the naive baseline and count the contradictions that remain.

Proposed Experiments

The premises come from WritingPrompts, MoPS-Curated and LONGSTORY. Target lengths are about 3,500 words, following DOC, and about 8,000 words, following StoryWriter. Each premise gets an outline that includes deadlines for its obligations.

We run two kinds of test. The first is a controlled stress test built from ExploreToM action programs. Adversarial belief structures, such as secret witnesses and private conversations, are embedded into the outlines, so we know exactly where a violation can occur.

The metrics are as follows. Humans count contradictions and unmet obligations, blind to which system produced each story. Plot coherence and outline relevance are judged on the DOC protocol. Diversity is measured with the valence and arousal comparison from GPT-WritingPrompts, which detects whether pruning pushes stories further toward flat, homogeneous prose. Compute is measured in generated tokens.

Three checks decide whether the idea holds up. The first is calibration. Among branches the search abandoned because their upper bound fell below the threshold, we force-complete a sample and confirm that the fraction surviving stays within the stated bound, once extraction error is accounted for. The second is the head-to-head comparison with compute-matched best-of-N at equal tokens. The third is a sweep over deadline slack, to see whether tighter deadlines reduce unmet obligations at the cost of diversity. The proposal succeeds if the certified search beats best-of-N on contradictions and obligations at matched compute, and diversity does not drop.