The State Ledger Under the Text

Dynamic semantics had the theory. LLMs may finally give us the executor.

Large language models are very good at continuing text.

That is both their power and their trap.

They can produce the next paragraph. They can summarize a conversation. They can continue a scene. They can sound as if they understand what has been decided, rejected, renamed, superseded, promised, or left open.

But long work exposes a failure that does not look like bad prose.

The answer may be fluent.

The summary may sound right.

The continuation may be plausible.

And yet the model has not really tracked what changed.

That is the problem this post is about.

Not language as text.

Language as state update.

Not text in, text out.

Text as observation.

State as memory.

Inference as the work.


1. The old idea

The core idea is not new.

Formal semantics has had versions of it for decades. Dynamic semantics, discourse representation theory, update semantics, belief revision, common ground theory, and situation models all approach meaning as something that changes a context.

A sentence does not merely describe the world.

It updates an information state.

In simple terms:

State₀
  + sentence
  = State₁

A conversation is a sequence of those updates.

A novel is a sequence of those updates.

A quarterly report is a sequence of those updates.

A political speech is a sequence of those updates.

So the theory is old.

The opportunity is new.

Older symbolic systems could describe the theory, but they struggled to run it at scale. They needed structured state, but natural language was too ambiguous, too implicit, too context-dependent, and too expensive to compile into that state.

Modern LLMs may change that.

Not because they magically understand everything.

Because they may be good enough to act as noisy state-update extractors.

That changes the question.

Not:

Can an LLM continue the text?

But:

Can an LLM help maintain an explicit, inspectable state ledger from long text?


2. The State Ledger

A state ledger is not a summary.

A summary compresses what was said.

A ledger tracks what changed.

It records claims, decisions, assumptions, definitions, tasks, constraints, contradictions, dependencies, supersessions, and open obligations.

It asks:

What was added?
What was rejected?
What was renamed?
What was superseded?
What still holds?
What depends on what?
What remains unresolved?
What future states became more likely?

The ledger is not truth.

It is an inspectable belief state.

Every entry needs provenance.

entry_id: L042
type: decision
content: "Use State Ledger rather than Novel Transformer as the main framing."
status: active
confidence: medium
source_span: turn_37
created_at: turn_37

supersedes:
  - L019

depends_on:
  - L033

constraints:
  - "The framing must remain empirically testable."

invalidated_if:
  - L033 becomes false

The important point is that supersedes and depends_on are not the same.

supersedes means:

This entry replaced that one.

depends_on means:

This entry rests on that one.

Without dependency edges, the ledger can answer simple history questions.

With dependency edges, it can answer harder questions:

Which active decision depends on an assumption that was later rejected?

Which open obligation conflicts with a current constraint?

Which conclusion is no longer safe because one of its premises changed?

That is where retrieval starts to struggle.

Retrieval can find the old claim.

It cannot always know whether the old claim is still active.


3. Why raw context is not enough

A transcript contains everything that was said.

But the transcript is not the current position.

In a long conversation, ideas change.

We propose something.

Then we reject it.

We rename it.

Then we revive part of it.

Then we discover that a newer decision depends on an older assumption that no longer holds.

The final state is not the whole transcript.

The final state is the result of applying all the updates in the transcript.

That is the gap.

Long context gives the model access to more text.

A state ledger gives the model access to maintained state.

Those are not the same thing.


4. Why retrieval is not enough

Retrieval is excellent at finding relevant text.

But relevance is not currentness.

Suppose a conversation contains:

Turn 12: Let's call this the Novel Transformer.
Turn 37: Actually, Novel Transformer is the wrong framing. Use State Ledger.
Turn 52: State Delta Ledger sounds too clunky. Keep State Ledger.

A retrieval system may return all three.

But the hard part is not finding the names.

The hard part is knowing which name survived.

The ledger records:

Novel Transformer → superseded
State Delta Ledger → rejected
State Ledger → active

That is a different kind of memory.

Retrieval finds evidence.

The ledger maintains state over evidence.


5. The fair baseline

The State Ledger should not be compared against a weak baseline.

A fair experiment needs five systems.

A. Full transcript + LLM

B. Retrieval + LLM

C. Full transcript + LLM asked to derive current state inline

D. Explicit state ledger + LLM

E. Explicit state ledger + full transcript + LLM

The dangerous baseline is C.

If an LLM can read the transcript, derive the current state inside the prompt, and answer as well as an external ledger, then the ledger may not be needed.

But that comparison must be length-aware.

On a short transcript, C should do well.

That does not kill the ledger.

The reason to externalize state is persistence.

State survives when the transcript becomes too long, too fragmented, too noisy, or too expensive to reread every time.

So the real question is:

At what length and complexity does inline state derivation degrade while the external ledger holds?

If there is no crossover point, the ledger is dead weight.


6. The questions that matter

The benchmark should not reward simple lookup.

It should scale by reasoning depth.

Level 1:
What is the current name of the system?

Level 2:
Which names were superseded?

Level 3:
Which active decision depends on a rejected assumption?

Level 4:
Which open obligation conflicts with a current constraint?

Level 5:
What changed between checkpoint A and checkpoint B, and which earlier conclusions are no longer safe?

Retrieval should do well at Level 1.

It may survive Level 2.

The ledger has to earn itself at Levels 3, 4, and 5.

If it does not, it is not worth the machinery.


7. The first experiment

The first proof domain should be long conversation.

Not fiction.

Not finance.

Not politics.

Long conversations are the cleanest test because they naturally contain:

decisions
reversals
renamings
superseded claims
open tasks
abandoned ideas
revived ideas
unresolved questions
contradictions
dependencies

The first run should be small.

Take one long conversation with:

a rename
a reversal
a rejected assumption
a revived idea
an open obligation
a contradiction
a dependency edge

Annotate the state at checkpoints.

Then run the five systems.

Measure:

state F1
supersession accuracy
dependency accuracy
open-obligation accuracy
contradiction localization
query consistency
cost per answer

The result does not need to be grand.

It needs to be honest.

If the ledger wins only on dependency-heavy questions, say that.

If inline derivation wins on short conversations, say that.

If retrieval beats the ledger on simple name questions, say that.

The claim is not that ledgers beat everything everywhere.

The claim is narrower:

Explicit state helps when the task depends on persistent, revisable, evidence-backed state.

That is the thing to prove.


8. The delta extraction bottleneck

Everything depends on extraction.

If the system cannot reliably extract state deltas, the ledger becomes a beautifully formatted hallucination.

So the first micro-experiment is not the full benchmark.

It is delta extraction.

Take a short transcript.

Manually annotate the ground-truth delta.

Then ask the extractor to produce:

added entries
modified entries
superseded entries
rejected entries
completed tasks
new dependencies
new contradictions

Measure precision and recall.

If delta extraction is poor, stop.

Do not build the inference engine.

Do not build the forecasting layer.

Do not build the fiction diagnostic.

Fix extraction first.

The ledger is only as good as the deltas written into it.


9. Why confidence must be coarse

A ledger entry may include confidence.

But fake precision is dangerous.

confidence: 0.82

That looks scientific.

But unless the number is calibrated, it is just a vibe with decimals.

So the first version should use coarse labels:

low
medium
high

Only use numeric confidence after calibration.

The ledger’s job is not to pretend uncertainty has disappeared.

Its job is to make uncertainty inspectable.


10. Why this matters for Writer

My immediate interest is Writer, a fiction compiler.

But Writer is not the whole idea.

Writer is one application of the ledger.

In fiction, a passage may be beautifully written and still fail to move the story.

That gives us the phrase:

Linguistically active, narratively inert.

But the first version of that diagnostic was too crude.

It is not enough to ask:

Did the fictional world change?

A quiet paragraph may not change the physical world, but it may change what the reader knows, expects, fears, suspects, or waits for.

So Writer needs two ledgers.

World Ledger:
  facts
  locations
  actions
  relationships
  promises
  threats
  obligations

Reader Ledger:
  revealed information
  hidden information
  dramatic irony
  open questions
  expectations
  salience
  setup/payoff pressure

Now we can separate four cases:

world-active / reader-active:
  strong scene movement

world-active / reader-inert:
  plot moves, but the reader may not care

world-inert / reader-active:
  atmosphere, dread, foreshadowing, tension

world-inert / reader-inert:
  likely dead prose

A passage is not narratively inert merely because nobody moved, spoke, fought, or made a decision.

It is inert when neither ledger changes.

The key question becomes:

Did this passage change either the world or the reader’s model of the world?

That is a much better editorial diagnostic than asking an AI whether the prose is “good.”


11. Why finance comes later

The same architecture could apply to company reports.

A quarterly report updates a model of a company.

margin pressure
capex intensity
risk language
hiring posture
guidance tone
customer concentration
strategic direction
management confidence

But finance is a bad first proof domain.

Ground truth is noisy.

Outcomes are confounded by macro conditions.

Historical filings may be in model pretraining.

Market prices are not the same thing as company state.

So finance should come later.

The first proof should be long conversation, where ground truth can be annotated and where supersession is explicit.

Once the ledger works there, company-state tracking becomes a second or third paper.


12. What this borrows

This project does not pretend to start from nowhere.

It borrows from many traditions:

Dynamic semantics:
  meaning as context update

Discourse representation:
  structured evolving discourse state

Belief revision:
  contradiction, retraction, supersession

Dialogue state tracking:
  turn-by-turn belief state maintenance

Narrative event chains:
  event sequences and likely continuations

Fact tracking:
  atomic facts and validity intervals

Long-memory benchmarks:
  persistence over long conversations

World models:
  future-state prediction rather than next-token prediction

Database provenance:
  evidence, source spans, lineage, auditability

The contribution is not:

Language updates state.

That idea is old.

The contribution is the engineering claim:

LLMs may now be good enough to act as noisy state-update extractors, allowing explicit ledgers to improve long-horizon reasoning where raw context and retrieval fail.

That is testable.


13. What can go wrong

This can fail in several ways.

The extractor can hallucinate state.

The ledger can compound early errors.

The schema can be too rigid.

The system can over-formalize messy language.

Subtext can disappear.

Aesthetic value can be mistaken for zero delta.

Dependency extraction can be too noisy.

Long-context models may turn out to match the ledger.

Inline state derivation may be good enough.

Those are not footnotes.

They are the experiment.

A useful research programme is not one that cannot fail.

It is one whose failure tells you something.


14. The actual claim

The claim is not:

State Ledgers always beat language models.

The claim is:

Explicit state ledgers should help when the task depends on persistent, revisable, evidence-backed state across long contexts.

The kill condition is:

If raw long-context models, retrieval-augmented models, inline state-derivation prompts, or ledger-plus-transcript systems match the ledger on supersession, dependency, contradiction, open-obligation, and current-state questions across increasing length and complexity, then the external ledger is unnecessary.

That is the edge.


15. The prototype

The first implementation is deliberately small.

It uses:

a synthetic conversation
a minimal ledger schema
a rule-based extractor stub
checkpoint evaluation
state F1
supersession tests
dependency tests
open-obligation tests
contradiction tests

The rule-based extractor is not the goal.

It is a scaffold.

The real test begins when the extractor is replaced by an LLM extractor that emits the same ledger delta schema.

That lets us test the bottleneck directly:

Can an LLM extract reliable state deltas?
Can the ledger preserve those deltas?
Does the ledger answer state questions better than raw text?
At what length does external state become useful?

That is the first real run.


The Test That Would Prove It

The State Ledger only matters if it beats a fair baseline.

Not a weak baseline.

Not a raw model that was never asked to track state.

A fair baseline.

The experiment needs five systems:

A. Full transcript + LLM

B. Retrieval + LLM

C. Full transcript + LLM asked to derive current state inline

D. Explicit state ledger only + LLM

E. Explicit state ledger + full transcript + LLM

Each comparison answers a different question.

A/B vs C:
  Does deriving state at all improve over ordinary transcript or retrieval use?

C vs E:
  Does externalizing state improve over deriving state inline?

D vs E:
  Did the ledger preserve enough state to replace the transcript?

The kill condition lives mainly in C vs E.

If inline state derivation matches ledger-assisted reasoning across increasing length, complexity, noise, and multi-session use, then the external ledger may not be necessary.

But if E beats C beyond some length or complexity threshold, then the ledger has earned its place.

That threshold is the crossover point.

The ledger is not expected to beat inline state derivation on short, simple transcripts. On short inputs, C should be strong. The reason to externalize state is persistence: state should survive when the transcript becomes too long, too fragmented, too noisy, or too expensive to reread.

So the real question is:

At what length and complexity does inline state derivation degrade while ledger-assisted reasoning holds?

System D answers a different question.

If D performs like E, the ledger captured enough state to discard the transcript for that task.

If D performs worse than E, the ledger may still be useful, but the schema is lossy. That does not kill the architecture. It tells us what the ledger failed to preserve.

The Questions

The benchmark should not reward simple lookup.

It should scale by reasoning depth:

Level 1:
What is the current name of the system?

Level 2:
Which names were superseded?

Level 3:
Which active decision depends on a rejected assumption?

Level 4:
Which open obligation conflicts with a current constraint?

Level 5:
What changed between checkpoint A and checkpoint B, and which earlier conclusions are no longer safe?

Retrieval should do well at Level 1.

It may survive Level 2.

The ledger has to earn itself at Levels 3, 4, and 5.

The Metrics

Do not collapse everything into one vague “state F1.”

The ledger has multiple jobs, so each job needs its own score.

content accuracy:
  Did the system recover the right claims, decisions, tasks, and assumptions?

supersession accuracy:
  Did it correctly identify which entries replaced earlier entries?

dependency accuracy:
  Did it correctly identify which decisions rest on which assumptions?

open-obligation recall:
  Did it find the tasks, promises, and questions still unresolved?

contradiction localization:
  Did it identify both sides of a contradiction and where they came from?

query consistency:
  Does it give stable answers to equivalent questions across repeated runs?

cost per answer:
  Does the ledger reduce repeated transcript processing?

The edges matter most.

A ledger that extracts content but misses dependency and supersession edges is only a structured summary.

The research claim depends on the edges.

What Synthetic Testing Can and Cannot Prove

A synthetic conversation and rule-based extractor are useful first.

They test the plumbing.

They prove that the ledger can store entries, update statuses, answer queries, and calculate metrics.

They do not prove that LLMs can extract state deltas from real text.

That is the extraction bottleneck.

The first real gate is LLM delta extraction on messy transcripts.

If an LLM cannot reliably extract additions, rejections, supersessions, dependencies, open obligations, and contradictions from real conversations, then the ledger will simply preserve errors more neatly.

So the first real experiment is not the full benchmark.

It is extraction fidelity.

Human annotators create a gold ledger from a transcript.

The LLM produces candidate deltas.

Then we score:

content accuracy
supersession edge accuracy
dependency edge accuracy
open-obligation recall
contradiction localization

If extraction fails, stop.

Fix extraction before building the larger system.

The First Honest Run

Start with one long conversation containing:

a rename
a reversal
a rejected assumption
a revived idea
an open obligation
a contradiction
a dependency edge

Annotate the state at checkpoints.

Then run the five systems.

Hold the extraction logic identical wherever extraction is used. Otherwise the experiment compares prompts rather than architecture.

When moving from synthetic to real conversations, annotate checkpoints without looking at the future of the conversation. Otherwise the gold state will be hindsight-contaminated.

The result does not need to be grand.

It needs to be honest.

If retrieval wins simple name questions, say that.

If inline derivation wins short conversations, say that.

If the ledger only wins dependency-heavy questions, say that.

The claim is not that ledgers beat everything everywhere.

The claim is narrower:

Explicit state helps when the task depends on persistent, revisable, evidence-backed state.


17. Conclusion

The future of AI writing tools is not only better prose generation.

The future of long-context AI is better state maintenance.

A long conversation is not merely a transcript.

A novel is not merely a sequence of paragraphs.

A company is not merely its last earnings call.

A political position is not merely the latest speech.

All of them are evolving states communicated through language.

The question is whether we can build systems that track those states explicitly, inspectably, and usefully.

The theory is old.

The opportunity is new.

Text is the observation.

State is the memory.

Inference is the work.

That is the State Ledger.