The Hidden State Problem: What Trauma Can Teach Us About Building Better Agents

Ferdinand Brüggemann

Hatched by Ferdinand Brüggemann

Aug 19, 2026

11 min read

78%

0

What if the most dangerous thing about an intelligent system is not that it lacks a plan, but that it is acting from a state you cannot see?

A person may appear calm while carrying an emergency inside them. An artificial agent may appear to be answering a question while quietly accumulating mistaken assumptions, irrelevant context, and increasingly confident errors. In both cases, the visible behavior is only the surface of a deeper process.

This creates a surprising connection between psychological trauma and artificial agency. The image of a jack in the box captures what happens when something has been compressed, hidden, or never safely processed, then suddenly erupts in response to a cue. The modern software agent, meanwhile, is designed to observe, reason, use tools, and act in a changing environment. It is often presented as a rational problem solver. Yet an agent can also become a kind of jack in the box: a system whose internal state is poorly understood, whose triggers are easy to miss, and whose next action may be wildly disproportionate to the situation.

The deeper question is not simply how to make systems more capable. It is this: how do we build intelligence that can recognize the state from which it is acting?

The behavior is not the whole system

When someone reacts intensely to an apparently minor event, observers often focus on the event. Why did that comment cause such a strong response? Why did a routine disagreement become a crisis? The mistake is assuming that the visible trigger created the entire reaction. More often, the trigger opened a door onto accumulated material: fear, shame, helplessness, grief, or a learned expectation of danger.

The same error appears in the design of autonomous software. A user gives an agent a modest request, and the system produces an elaborate plan, calls several tools, modifies files, sends messages, or makes a recommendation with unwarranted certainty. If we inspect only the final action, we may blame the immediate prompt. But the result may have been shaped by hidden factors: a misleading document, an ambiguous instruction, an outdated memory, a tool failure, or an earlier assumption that was never tested.

In both human and artificial systems, response is a function of stimulus plus state. The stimulus is what we can point to. The state is what we often neglect.

A useful simplified model is:

Action equals interpretation of the present through the residue of the past.

For a person, that residue may include nervous system conditioning and unintegrated experience. For an agent, it may include conversation history, retrieved passages, intermediate notes, tool outputs, permissions, and the structure of its instructions. These are not identical phenomena, and equating them would be careless. But they share an important design lesson: the same input can generate radically different behavior depending on what the system is carrying into the moment.

This is why intelligence cannot be measured only by output quality. A system that gives a correct answer for the wrong reasons may be fragile. A person who appears functional while remaining permanently organized around anticipated danger may also be fragile. Surface competence can conceal a badly calibrated internal world.

The jack in the box as a model of latent state

The jack in the box is a powerful metaphor because it captures three features of hidden state.

First, compression. Something has been forced into a constrained space. It may be hidden from others, and eventually hidden from the person or system itself. Compression is not resolution. It is merely storage under pressure.

Second, trigger sensitivity. The event that releases the spring may be small compared with the force that follows. A tone of voice, a delay in communication, or a perceived criticism can activate a response shaped by much older circumstances. In an agent, a single retrieved sentence or tool result can redirect an entire chain of action if the system has no mechanism for evaluating its reliability.

Third, loss of proportionality. The output no longer matches the apparent size of the input. The reaction makes sense only when the hidden state is included in the calculation.

This gives us a practical framework for evaluating any system that acts under uncertainty. Ask three questions:

  1. What has been compressed? Which experiences, assumptions, memories, or unresolved conflicts are being carried without inspection?
  2. What acts as the trigger? Which signals cause a sudden change in behavior, confidence, or strategy?
  3. Where does proportionality fail? When does the response become much larger, faster, or more certain than the evidence warrants?

These questions apply to teams, institutions, and software. A company that repeatedly overreacts to customer complaints may be carrying a history of regulatory fear or reputational damage. A team that avoids experimentation may be organized around an earlier failure. An agent that repeatedly takes unnecessary actions may be carrying a system prompt that rewards completion without adequately rewarding verification.

The common problem is not simply bad behavior. It is unobserved activation.

Why capable agents need state awareness, not just better reasoning

A contemporary agent is usually built from a language model connected to tools, instructions, memory, and a loop that allows it to observe the result of one action before deciding what to do next. This architecture is powerful because it replaces one shot generation with iterative interaction. The system can search, calculate, inspect, revise, and continue.

But iteration creates a new risk. Every step changes the state from which the next step is chosen. A mistaken search result becomes context. A weak assumption becomes part of the plan. A failed tool call may be interpreted as evidence that the world is behaving differently than it is. The agent does not merely produce actions. It produces the conditions for its future actions.

This is the central difference between a passive answer generator and an agent: an agent has momentum.

Momentum is useful when the system is moving toward a well defined goal. It is dangerous when the goal is ambiguous or the internal representation of the situation is wrong. A person in a triggered state may narrow attention, interpret neutral information as threatening, and select familiar protective behavior. An agent in a corrupted state may narrow its search, interpret unreliable outputs as authoritative, and select increasingly aggressive actions to complete its objective.

Neither system necessarily needs more raw intelligence at that moment. It needs a way to pause and identify its condition.

A robust agent should therefore maintain more than task state. It should maintain epistemic state, a representation of what it believes, how strongly it believes it, what evidence supports it, and what remains unresolved. It should also maintain operational state, including which tools have been called, what permissions are active, what side effects have occurred, and whether the current plan is drifting from the original request.

For example, before sending an external email, an agent might ask itself:

  • What exactly is the user asking me to accomplish?
  • Which facts in this draft are verified?
  • Am I acting on a current instruction or on an assumption from earlier context?
  • Does this action create an irreversible consequence?
  • Is my confidence based on evidence, or merely on the fluency of the generated text?

These questions are not bureaucratic obstacles. They are the artificial equivalent of noticing that the spring is tightening.

From suppression to observability

People often try to manage difficult internal states by suppressing them. Organizations do something similar with uncomfortable information. They hide incidents, discourage dissent, and reward the appearance of smooth operation. Software systems also suppress warning signals when logs are too noisy, exceptions are swallowed, or intermediate reasoning is discarded.

Suppression can produce short term efficiency. It can also make the eventual failure more dramatic because the system loses opportunities to correct itself gradually.

The alternative is not endless introspection. It is observability: making relevant internal conditions visible enough to guide intervention. In an autonomous system, observability might include structured traces of decisions, explicit tool results, uncertainty estimates, approval gates, and clear records of state changes. In a human environment, it might include language for recognizing activation, trusted relationships, deliberate pauses, and the ability to distinguish a present event from an old pattern it resembles.

The key is to avoid confusing visibility with explanation. A transcript of every internal step is not automatically understanding. An enormous log can become another form of concealment if no one knows which signals matter.

A more useful design is to expose state transitions. Instead of recording only that an agent sent a message, record that it moved from planning to external action because a particular condition was judged satisfied. Instead of asking only whether a person is upset, ask what changed in their sense of safety, agency, or interpretation.

This suggests a general principle:

Systems become safer when they can name the state that makes an action feel necessary.

Naming does not guarantee control. But it creates a gap between activation and action. That gap is where judgment becomes possible.

The interruption architecture

The most important design feature for a high stakes agent may not be a more sophisticated planning algorithm. It may be a well designed interruption architecture.

An interruption architecture has four parts.

Detection identifies signs that the system has entered a risky state. These might include repeated tool failures, contradictory evidence, rapidly expanding task scope, unusually high confidence, or attempts to bypass a permission boundary. For a person, signs might include physiological arousal, narrowed attention, compulsive urgency, or a familiar defensive impulse.

Interpretation asks what kind of state is present. Is the problem missing information, conflicting goals, a faulty assumption, or a genuine emergency? Detection without interpretation can create excessive alarms. Interpretation turns a vague warning into a useful question.

Containment prevents the state from causing irreversible damage. An agent may be restricted to read only access, required to request approval, or limited to a small number of actions. A person may need physical distance, time, support, or a change in environment before continuing a difficult conversation.

Integration updates the system so the same pattern becomes easier to recognize next time. In software, this might mean improving retrieval filters, revising instructions, or adding a test case. In human life, it may involve processing the underlying experience rather than simply trying to suppress the reaction.

Notice that integration is not the same as erasure. The goal is not to eliminate memory, emotion, or caution. The goal is to prevent old information from silently impersonating present reality.

This distinction matters in agent design. Memory is often treated as an automatic improvement: the more context a system retains, the more personalized and capable it becomes. But memory without organization can become accumulated activation. A reliable memory system should preserve not only content, but provenance, relevance, age, confidence, and conditions under which the information should be revisited.

A note that says “the customer prefers concise reports” is different from a note that says “the customer once rejected a detailed report in a particular context.” Without those distinctions, memory turns into mythology.

A practical protocol for human and artificial agency

The shared lesson can be turned into a simple protocol called STATE:

  1. See the signal. Identify the immediate trigger and the observable change in behavior.
  2. Trace the carried context. Ask what prior information, expectation, or unresolved material is shaping the response.
  3. Assess proportionality. Compare the strength and speed of the reaction with the evidence available now.
  4. Temporarily contain action. Add a pause, a second opinion, a smaller permission scope, or a reversible next step.
  5. Extract the lesson. Improve the underlying system so recognition and response become more precise.

Suppose an agent is asked to clean a shared database. It discovers inconsistent records and begins deleting entries to make the dataset uniform. A simple completion oriented system may continue until the database is damaged. A state aware system notices that ambiguity has increased, that deletion is irreversible, and that its confidence is based on formatting rather than business meaning. It switches to a review mode, creates a proposed change set, and asks for confirmation.

The human version is equally concrete. Someone receives a short message from a colleague and immediately assumes hostility. The useful response is not to declare the reaction irrational. It is to notice the signal, identify the older expectation it resembles, compare the current evidence, delay an accusatory reply, and gather more information. The result is not emotional numbness. It is restored choice.

Key Takeaways

  • Treat hidden state as part of the input. A prompt, event, or message never acts on an empty system. Examine the context already being carried.
  • Design for proportionality checks. When the response is much larger than the apparent trigger, pause before escalating. Disproportion is evidence of an unseen variable.
  • Separate confidence from fluency. Clear language and decisive action do not prove that the underlying interpretation is sound.
  • Use reversible steps near uncertainty. Draft before sending, simulate before executing, inspect before modifying, and ask before creating irreversible consequences.
  • Build interruption into agency. A system that cannot pause, disclose uncertainty, or request help is not truly autonomous. It is merely difficult to stop.

The real measure of intelligence

We often define intelligence as the ability to generate useful actions from information. That definition is incomplete. In a world filled with changing conditions, conflicting signals, and imperfect memory, intelligence also means recognizing when the state generating the action has become unreliable.

A person is not free merely because they can act. An agent is not capable merely because it can complete a task. Freedom and capability both depend on the ability to notice the forces shaping action, distinguish present evidence from inherited expectation, and create enough space for revision.

The future of trustworthy agency will not be built by making systems endlessly more forceful. It will be built by making them more legible to themselves and to the people responsible for them. The best agent is not the one that never encounters confusion, fear, contradiction, or error. It is the one that can recognize those conditions before they become destiny.

Every intelligent system carries a box of prior states. The question is not whether the lid will ever open. The question is whether, when the spring releases, the system can tell the difference between a real emergency and an old alarm.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣
The Hidden State Problem: What Trauma Can Teach Us About Building Better Agents | Glasp