What If AI Agents Need a Past, a Present, and a Future?

2026-12-02来源 dev.toEnglish
What If AI Agents Need a Past, a Present, and a Future?

Maybe the next step in AI isn't a bigger brain. Maybe it's learning not to forget what happened five minutes ago.

Verdict
Sponsor Sentinel IR development here: https://github.com/sponsors/jakcmencz?o=syg&sc=r
Source (GitLab, Apache-2.0): https://gitlab.com/jakubrojicek11/sentinel-ir
npm: https://www.npmjs.com/package/sentinel-ir
Playground (runs in your browser): https://sentinel-ir-playground-dc30c8.gitlab.io/
MCP Server on npm: npmjs.com
https://glama.ai/mcp/servers/jakcmencz/sentinel-ir-mcp
Sentinel-IR-MCP on Agensi
https://www.agensi.io/skills/sentinel-ir-vet-code-before-your-agent-runs-it

Let's start with something very human.

Imagine you're driving a car.

You have a rear-view mirror. You have a windshield. And you have a dashboard.

Each one tells you something different.

  • The rear-view mirror tells you where you've been.
  • The windshield shows you what's happening now and what's coming up.
  • The dashboard helps you understand the current state of the vehicle.

Now imagine driving without one of them.

Without the rear-view mirror, you lose important context about what happened behind you.

Without the windshield, well... let's not test that architecture.

And without the dashboard, you might not notice that your engine is overheating until it starts expressing its opinion rather loudly.

Humans combine all three almost automatically.

But what about AI agents?

The problem with thinking one step ahead

Many AI agents follow a relatively straightforward pattern:

Receive task
|
v
Choose action
|
v
Execute action
|
v
Check result
|
v
Choose next action

This can work surprisingly well.

But there's an interesting question:

What if an agent needs more than the next action? What if it needs a model of its own decisions across time?

Consider a simple example.

An agent needs to deploy an application.

It chooses the fastest route. The deployment succeeds, but the decision introduces a configuration problem that appears several hours later.

A basic agent might see the deployment as a success.

A more sophisticated system should ask:

  • Why did I choose this approach?
  • What assumptions did I make?
  • What happened after the deployment?
  • Was the immediate success hiding a longer-term problem?
  • Would another approach have produced a better outcome?

The difference is important.

A successful action isn't necessarily a successful decision.

Sometimes the bill arrives later.

Three dimensions of intelligent decision-making

I started thinking about human perception of time and how it might translate into an AI architecture.

Not as an attempt to give AI human consciousness, but as a practical model for better decision-making.

  1. The past: Memory is more than storage

An agent should not simply remember that it performed an action.

It should preserve the relationship between:

  • The situation it encountered.
  • The information available at the time.
  • The decision it made.
  • The reason behind that decision.
  • The actual consequences.

There is a big difference between storing:

"Deployment completed successfully."

And storing:

"Deployment succeeded, but the selected configuration caused increased latency two hours later."

The second record can improve future decisions.

The past becomes useful when it changes how the system evaluates the present.

A database full of old mistakes isn't intelligence.

It's just a very expensive museum.

  1. The present: Reality must be allowed to disagree

An agent makes predictions based on available information.

But the real world doesn't have to cooperate.

A plan that looked perfect ten minutes ago might already be outdated.

A useful agent should continuously compare:

What did I expect to happen?

with:

What is actually happening?

This is where monitoring, feedback, uncertainty estimation and self-evaluation become important.

The agent shouldn't defend its original decision just because it made that decision.

It should be able to say:

"My assumptions were wrong. I need to reconsider."

That's not failure.

That's a functioning feedback loop.

  1. The future: Don't look at just one road

Here's where things get especially interesting.

An agent shouldn't evaluate only the most probable outcome.

It should consider multiple possible futures.

For example:

 CURRENT SITUATION | +-----------+-----------+ | | | v v v PATH A PATH B PATH C Fastest Safer Reversible | | | v v v High speed More time Easy recovery Higher risk Lower risk Lower commitment 

The fastest option might be attractive.

But what happens if it fails?

Can the agent recover?

Does it create consequences that are difficult to reverse?

Is there a less likely alternative that prevents a much larger problem?

Probability matters, but probability isn't the entire decision.

A 90% chance of success doesn't automatically make an option sensible if the remaining 10% means losing everything.

And sometimes doing nothing is also a decision.

An agent should ask:

What happens if I act?

But also:

What happens if I don't?

Inaction has consequences too.

The interesting part: These three dimensions must communicate

The real idea isn't to build three separate modules called Past, Present and Future.

It's to connect them.

 +----------------------+ | PAST | | Memory and outcomes | +----------+-----------+ | v +----------------------+ | PRESENT | | Current state | | Reality vs prediction| +----------+-----------+ | v +----------------------+ | FUTURE | | Scenarios and risks | | Alternative actions | +----------+-----------+ | v DECISION | v ACTION | v OUTCOME | +-------> Update memory 

This creates a continuous cycle.

The future eventually becomes the present.

The present eventually becomes the past.

And the past changes how the next future is evaluated.

That's the part I find fascinating.

The agent doesn't just collect more information. Its previous decisions become part of the context for its next decisions.

What about changing the original goal?

There is another question worth considering.

What if an agent discovers that achieving the assigned goal could create a much bigger problem?

Should it blindly continue?

I don't think it should silently replace the human's objective with its own.

But it should be able to identify conflicts, explain risks, suggest alternatives and ask for approval when the consequences matter.

For example:

A human asks an agent to optimize a system for maximum speed.

The agent discovers that the proposed optimization significantly increases the risk of data loss.

A simplistic system might optimize the requested metric.

A better system might respond:

"I can make it faster. But here's what we're risking. Would you still like to proceed?"

That is not disobedience.

It's responsible decision support.

There should be boundaries: low-risk, reversible actions can be automated, while high-impact or irreversible decisions may require human approval.

Is this metacognition?

There is a useful term for part of this idea: metacognition.

In humans, it refers broadly to thinking about our own thinking.

For an AI agent, a technical approximation could involve:

  • Tracking its previous decisions.
  • Evaluating whether its predictions were accurate.
  • Identifying recurring reasoning failures.
  • Comparing alternative strategies.
  • Updating its confidence.
  • Recognizing when its original assumptions no longer hold.

We should be careful with terminology, though.

A system that stores memories and evaluates its decisions isn't automatically conscious.

It doesn't suddenly acquire human experiences, emotions or a soul because someone added a reflection loop.

But it could become significantly better at making decisions.

And that's already an interesting engineering challenge.

A small experiment instead of another giant promise

I wouldn't start by building an enormous autonomous system.

I'd start with one narrow experiment.

Take an existing agent and give it an additional decision record:

{
"situation": "Current task state",
"assumptions": ["Expected conditions"],
"chosen_action": "Action A",
"alternative_actions": ["Action B", "Action C"],
"predicted_outcome": "Expected result",
"actual_outcome": "Observed result",
"reversible": true,
"lessons": ["What should change next time"]
}

Then compare two versions:

Agent A: Chooses and executes actions using its current context.

Agent B: Also tracks predictions, outcomes, alternatives and lessons from previous decisions.

Give both the same tasks.

Measure:

  • Successful task completion.
  • Repeated mistakes.
  • Unnecessary actions.
  • Recovery after failure.
  • Time and token consumption.
  • Whether the agent makes better decisions after receiving feedback.

If Agent B performs no better, that's useful information too.

No need to build a digital philosopher just to discover that a notebook would have been enough.

One final thought

Humans don't make decisions using the present alone.

We carry our past into the present, and we imagine possible futures before choosing what to do.

Our decisions also change us.

The person making tomorrow's decision isn't necessarily the same person who made today's decision. Experience has changed their knowledge, expectations and priorities.

Could an AI agent benefit from a similar decision architecture?

I think that's a question worth exploring.

Not because it would make AI human.

But because an intelligent system should understand that its actions have consequences beyond the moment in which they are executed.

Maybe the next step isn't simply teaching agents to think faster.

Maybe it's teaching them to think across time.

And perhaps, before giving an agent a bigger brain, we should give it a decent rear-view mirror.

Just make sure it also has brakes.

What do you think?

Should future AI agents maintain a continuous model of their past decisions, present reality and possible futures?

And should they be allowed to challenge the original goal when they discover that achieving it could cause a greater problem?

Independent Engineering Projects

Built as independent engineering experiments across AI, software analysis, security, and autonomous systems.

Evaluated by reproducible evidence, not by the number of layers.

Explore the projects:

Sentinel Ecosystem: AutoDoc-Sentinel, Sentinel-IR, Sentinel-IR-MCP and related tools.
Agentix Lite: Independent security and system-observation project.
Find the projects: GitLab repositories | NPM packages

Support the work: ⭐ Star the repositories on GitLab.

Connect: Follow me here on DEV Community or explore the Playground.

Each project is distributed under its own license. Check the corresponding repository or NPM package for licensing terms.

Copyright © 2026 jackymenCZ. All rights reserved. Written for the community.

原文:https://www.a8q9.cn/en/article/what-if-ai-agents-need-a-past-a-present-and-a-future-005233.html

相关文章