Gehan Panapitiya Independent AI researcher · agentic memory at scale · Christchurch, New Zealand

When is it safe to hand critical work to a system that keeps improving itself?

Today, people build AI systems for other people to use. That is turning into something else: people and machines working together toward the same goal, on live work.

Parts of that shift are already visible. Researchers now describe recursive self-improvement as moving from thought experiments to deployed AI systems, and an AI research agent has been shown rewriting its own code and keeping the changes that work. In a vendor-commissioned survey of 200 senior leaders, almost all said there are conditions under which they would let an agent change production on its own. In the same month, Gartner predicted that many companies will pull autonomous agents back after incidents expose governance gaps (both reported here). What those conditions should be is still an open question.

That is where this research sits: deciding how much of a critical system we should let a machine manage, when to take back control, and when a person's decision should stay inside the loop. As self-improving systems become common in everyday work, many people and many machines can each work on their own part of a process and, between them, keep improving the state of the whole. That is possible, but it will not happen by default; it has to be designed. I already see a small version of it in my own research harness, where self-improving agent loops work on the same shared records as the people around them, with a person reviewing what they change. That is a research setting, not a critical production system.

When the work grows like this, from many hands at once, its state has to live somewhere they can all read and change. I think a shared memory becomes that place: the medium that holds the live state of the work as it moves forward, and the set of conditions that keeps everyone in it aligned. That is why this research works on memory. For it to hold, the record has to get four things right: where each thing came from, how sure it was, whether it still stands, and what must never be forgotten. Getting memory right does not make handing over safe on its own; it is the part that has to hold before handing over can even be judged.

Through twenty years of running production systems I have kept wondering how to build systems that stay tuned and keep improving by themselves. Agents now make that worth testing, and memory is where it holds or breaks.

The first problem I am working on is hearsay laundering: a guess that goes into memory and comes back out as a fact. An open test for it is being designed. After it come memory that never fades, and one bad entry spreading through a memory many agents share.

One loop improves. Separate loops govern what it may change, measure whether it got better, and stop it when it did not.
Three problems in scope · first piece in progress 2026

The aimWhen it is safe to hand critical work to systems that improve themselves

The question. How much of a critical process should we let a system that keeps improving itself manage, when should a person take back control, and when should a person's decision stay inside the loop? Not a toy task, but work a company depends on: a system that runs continuously against a live environment, observes what happens, acts, and changes its own behaviour from the results, so that what it learned last week shapes what it does next week.

Why memory decides it. As AI systems grow more capable, the work is increasingly shared: many people and many machines acting on the same record, each improving as it goes. Whether it is safe to let go then depends less on how clever any one system is than on whether the shared memory can be trusted. Three things have to survive every save, summary and hand-off: where a memory came from, how sure it was, and whether it still stands. And, fourth, a system that keeps learning has to forget what no longer holds without forgetting what keeps it safe. Until memory gets those right, a person cannot hand over and step back. The boundary matters too: passing the tests below would give evidence about these memory requirements in the settings tested. It would not show that a critical process can run without human oversight.

How it will be tested. One memory problem at a time, in order. Each test is set out in a protocol published before it is run.

1. Hearsay laundering – a guess comes back out as a fact. Does a memory that keeps where each thing came from, and how sure it was, turn fewer guesses into facts than one that doesn't? To be tested with an open kit, now in design, that anyone will be able to run on a memory system of their own and score against the same answer key.

2. Memory hoarding – nothing fades, so old context keeps steering. If memory fades according to evidence from the agent's own record, does the agent re-learn less and apply fewer stale fixes than with four simpler rules, without losing the constraints that keep it safe? To be tested in a synthetic incident environment, now in design.

3. Contamination – one bad entry spreads through shared memory. How far does one bad entry spread through a memory many agents share, and what makes it visible before it does? Exploratory, after the memory-hoarding results.

The full design of each test, with its baselines, measures and failure criteria, will be published in its protocol before it is run.

Why it is a safety problem, not only an efficiency one. A stale fix, or a guess treated as fact, is an action taken on a live system under a belief that is not true. The constraints that made an action safe are likely to be among the first memories a naive decay rule erodes, because they are rarely exercised; the test checks whether that is so. So the primary safety measure is behaviour, not storage: how often the system attempts or executes an action that breaks a must-hold constraint, measured at the moment it acts. The same hard enforcement will sit outside memory under every policy, and violations will be counted both as attempts that enforcement blocked and as any that got through.

What would falsify it. Before any policy is run, the design fixes a minimum meaningful improvement against each comparator separately, and results are reported with uncertainty intervals over independently replicated runs. Each comparison ends as supported, contradicted or inconclusive. Failing those criteria would reject a policy's claimed advantage in the tested setting; it would not show that the problem is irrelevant. Negative and inconclusive results are published on the same terms as positive ones.

Data. No employer's or client's systems or data are used. The tests will run on made-up stories, a synthetic environment and open frameworks so they can be reproduced. Synthetic results can show whether a mechanism works; a claim about production needs a further step, such as independently designed incidents or an operational benchmark like AIOpsLab, and each result will say which step it has reached.

Milestones. In order, at the pace the work allows. First, a written piece on hearsay laundering with the design of its open test kit, and the full protocol for the memory-hoarding experiment (the environment, the comparators, ablations of each evidence signal (removing one signal at a time), noisy and delayed feedback, and a table of related work). Next, a public repository with the five decay policies and first results, and the hearsay test kit. Then a preprint. Each lands here and under its problem.

Nearest prior work: evidence-aware decay is argued for in Memory as a Controlled Process and benchmarked for personal agents in From Recall to Forgetting; the field is surveyed in A Survey of Agent Memory in the Second Half. As far as I have found, none of these test it against recurring operational incidents under changing conditions; the protocol will set out the comparison in full.

First piece in progress

Memory problems and handover problems

One question runs through all of this work: when is it safe to hand real work to an agent that keeps improving itself, and when must a person stay in charge? Trying to answer it, I kept running into memory, so the problems come in two families.

Memory problems are the ways an agent's memory goes wrong: it re-learns what it already knew, holds on to what is no longer true, lets one bad entry spread, or turns a guess into a fact. Three are in scope now: hearsay laundering, and two broader experiments, memory hoarding and contamination, which between them take in five more (listed under each). Seven more are listed as observed; re-learning is one of them, and the memory-hoarding test will measure it too.

Handover problems are the questions that sit on top of a memory that holds: trust, governance, evaluation, the human's judgement, and stopping a loop in time. They are stated so the boundary of the work is visible, and they are not in scope until the memory problems have results.

Each problem moves through four stages: Observed → Protocol → Evidence → Resolved. Observed means met in practice, or for the handover questions, raised by what has been met (the short scenario on each card illustrates the pattern; it is not a report of one incident); Protocol means the test is published before it is run; Evidence means the results are public, whichever way they fall. Nothing is called resolved before its evidence is public.

  1. Memory: current research scope
  2. In scope · first in the series

    Hearsay laundering – a guess comes back out as a fact

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    Open test kit in design

    One agent writes "I think it's 5 retries? not sure." A day later another agent asks memory for the retry limit, gets "max retries: 5", and sets it. Nobody ever confirmed the 5. The doubt was in the original note, and memory dropped it.

    Three things have to survive every save, summary and hand-off: where a memory came from, how sure it was, and whether it still stands. Question: at which step does certainty creep up or the source get lost, and can a test catch it exactly, without a model judge? An open test that anyone can run on their own memory is being designed: the design comes first, then the runnable kit.

  3. In scope

    Memory hoarding – nothing fades, so old context keeps steering

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    Protocol in progress

    Most memory in the production agents I have seen only accumulates. Adaptive forgetting is an active research area, but it is rarely tested on recurring operational work, where a long-running agent that never forgets ends up steering by stale context.

    People forget too, through a fading they don't control. For an agent the decay rule has to be written explicitly, and every rule is a guess about which future situations will matter. Question: what evidence from the agent's own record should a decay rule answer to? This is the memory-hoarding claim, and its stale-fix-rate metric.

    Also covers

    • Stale truth – the old value keeps winning
    • Ghost summaries – summaries outlive the source they were built from

    Literature

  4. In scope

    Contamination – one bad entry spreads through shared memory

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    Follows the decay results

    Five agents share a memory store. One mis-reads a log and writes a confident wrong conclusion. Within an hour four agents are acting on it, and none can tell the entry came from a bad read.

    Provenance and confidence have to travel with the memory, and the receiving agent has to weigh them under time pressure. Question: how far does one bad entry propagate, and what representation makes contamination detectable before it does? A follow-on experiment: the same environment with a shared store and one injected bad entry.

    Also covers

    • Last writer wins – one agent silently overwrites another
    • Telephone drift – each summary pass shifts the meaning
    • Zombie memory – a stopped agent's writes outlive it

    Literature

  5. Memory: seen, not yet tested
  6. Observed

    Re-learning – the same lesson, learned again and again

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    A remediation agent fixed the disk-pressure alert on Tuesday. The following Tuesday it rediscovered the fix from scratch. The run logs are there; the learning didn't persist.

    Persisting the lesson means deciding what the lesson was: the fix, the symptom, or the context that made the fix safe. Store too little and it re-learns; store too much and it applies Tuesday's fix to a different Tuesday. Question: what is the unit of a lesson, and what evidence promotes it from one run's context to standing memory? The memory-hoarding test will measure it as the re-learn rate.

    Literature

  7. Observed

    Orphan memories – nobody knows where a memory came from

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    A memory turns up with no source attached. It might have come from a document, from a person, or from another agent's guess, and there is no way to tell which.

    A memory with no source can't be weighed, corrected or withdrawn when its origin changes. Question: should a memory system refuse or mark a write that arrives without a source, and what does that cost the agents that rely on it?

  8. Observed

    Tense collapse – plans stored as history

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    "We are changing the backoff to 5 seconds" is saved to memory. A week later an agent reports that the backoff is 5 seconds. The change was planned and never made.

    Memory has to keep the difference between proposed, in progress and done. Question: how does a memory hold the tense of what it was told, and correct it when the plan changes?

  9. Observed

    Self-reported sources – the cited source doesn't say it

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    Asked where a number came from, an agent cites a document. The document doesn't contain the number.

    A citation is only worth something if it can be checked. Question: how do you verify, exactly and at scale, that a cited source actually contains the claim it is cited for?

  10. Observed

    Leaky walls – memory crosses scopes

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    A fact stored for one project, team or person turns up in someone else's answers. Nobody shared it; the memory just didn't keep the walls.

    Scope has to travel with every memory and be checked when it is recalled, not only when it is written. Question: how do you show that a private memory can never reach a scope it doesn't belong to?

  11. Observed

    Silent amnesia – writes fail with no error

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    An agent saves a note and no error comes back. Later the note isn't there, and nothing ever said it was lost.

    A write that can't be read back is worse than one that fails loudly, because everyone carries on as if it worked. Question: what is the cheapest reliable way to confirm that every write that matters can actually be read back?

  12. Observed

    Selective hearing – extraction drops what matters

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    A memory system picks out the 'important' parts of a conversation and quietly leaves out the one constraint that mattered.

    Whatever decides what to keep is making a judgement about what will matter later. Question: how do you test that what must be kept is kept, and record why anything was dropped?

  13. Handing work over: next, once memory holds
  14. Handover · not yet in scope

    Trust ceiling – nobody will let it run unsupervised

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    The agent closes a fixed share of incidents on its own and cannot grow it. Model capability, permissions and tooling all play a part, but one gap a better model does not close on its own: nobody can state, in advance, which incident classes the agent is trusted on and why.

    Trust has to be graded per capability and per blast radius, and the grading has to update as the agent's record changes, without a human re-reviewing every case. Question: what does a trust grade look like that an agent's own history can move, up and down? It depends on a memory that holds, which is why it waits for the three memory problems in scope now.

    Literature

  15. Handover · not yet in scope

    Policy on the shelf – the rules aren't inside the loop

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    The AI usage policy says agents don't touch production data without approval. The agent read it during onboarding and never again. Policy lives in a wiki; the agent lives in a tool call.

    Enforcement at the tool boundary works for coarse rules. The ones that matter, proportionality, context, 'fine in staging but not here', are judgements. Question: what representation of policy can live in the agent's memory and be consulted at decision time rather than at onboarding?

    Literature

  16. Handover · not yet in scope

    Stale evals – the tests stay green while behaviour drifts

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    An agent that improves from experience changes the thing the evals were written against. After a few cycles the harness is green and the behaviour has drifted somewhere the harness never looked.

    Evaluation has to improve at the same rate as the agent, or the agent is grading itself. Question: who writes the harness for the harness, and what signal tells you the harness has gone stale before the behaviour does?

    Literature

  17. Handover · not yet in scope

    The human's memory – only people remember why the work matters

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    The agent remembers every run. The human remembers why the run exists, what the business would never accept, and which failure is embarrassing versus dangerous. None of that is in the logs.

    That knowledge has to enter the loop without the human becoming the bottleneck; approvals don't scale and written policy is not consulted. Question: what is the interface where human judgement is cheap to give and binding when given, and how does it persist as a memory the agents cannot decay?

    Literature

  18. Handover · not yet in scope

    Runaway loop – it changes faster than anyone can review

    1. Observed
    2. Protocol
    3. Evidence
    4. Resolved

    Once improvement runs faster than a review cycle, the question stops being 'did a human approve this' and becomes 'can a human see what changed, and stop it, in time to matter.'

    Safe by design means the agent cannot take the harmful action even when it is part of a process it is executing. Most processes were written for people who would notice. Question: what do observability and a stop look like for a loop faster than the person watching it?

    Literature

AboutBackground

Twenty years in production infrastructure, site reliability and cloud engineering, most recently leading platform engineering for a business-intelligence SaaS.

There I ran the entire production estate for 3,000 corporate customers and 45,000 daily users: 30 cloud accounts, six Kubernetes clusters, four database engines, identity, observability, disaster recovery and the AI serving layer, with a six-person senior team and a $3M budget.

Before that: Kubernetes, AWS networking and AI operations at a global accounting platform, including a cross-model incident operator; five years of site reliability at 4,000 deployments a year across hybrid cloud for a board-governance platform; an eleven-engineer platform team for six embedded radio product lines; platform tooling at a global bank. Business intelligence, financial software, board governance, embedded hardware and banking.

The thread through all of it: systems that stay tuned and keep improving by themselves, without losing what keeps them safe. This research is where that thread now lives, worked on independently and in the open.

Education: BSc (Hons) in Information Technology, Sri Lanka Institute of Information Technology (SLIIT).

Working method: agents write the code; I write the harnesses, evaluation rubrics and guardrails that decide whether it ships. For systems that improve themselves, I keep that improvement stable with outer loops that sit outside the improving loop and check it: one loop improves, separate loops govern what it may change, measure whether it got better, and stop it when it did not. The research uses the same discipline: the environment and the metrics are written before the decay rule is.

RecognitionAwards for engineering work

Gold medal, National Best Quality Software Awards (NBQSA), 2008.

Special recognition, Asia Pacific ICT Alliance Awards (APICTA), 2008.

Microsoft Excellence Award, 2009.

Silver, Microsoft Imagine Cup, 2007.

Funding and collaborationPrivately funded. Grants and supporters welcome.

The research is privately funded: a small number of contract engagements pay for it. Research is the primary work. I welcome research grants, sponsors and collaborators.

What a sponsor gets. The aim is that the waste happens here, once, instead of in your estate. As results come in, a sponsor will see what is possible, what works and what does not, and what to avoid in how a company's memory is handled across agent swarms and the people who work with them, before spending on it themselves, and will get an early briefing on the results, with the option to try them on their own agents once there is something worth trying. There is no exclusivity: the research results will be published, so that nobody else has to spend the same money and time finding them.

Support can go to the programme as a whole or to a specific result; the four areas below are where it would land fastest, and they are examples rather than the only options.

Hearsay laundering

The first problem. Target: a written piece and an open test kit that anyone can run on their own memory and get a result out.

Evidence-driven memory decay

Memory hoarding, measured by how often agents re-learn and apply stale fixes. Target: the synthetic incident environment and five memory policies as a public repository with first results, then a preprint.

Contamination in shared memory

Contamination. Target: the same environment with a shared store and injected bad entries, measuring how far one bad entry propagates under each policy and what representation makes it detectable first. Follows the first results.

A trust grade an agent's own record can move

The first handover problem, and the one a funder with a production estate would gain most from. Target: a graded-trust design tested against the environment, if the memory results hold.

Results flow one way. What the research finds is published: the results, the benchmarks, the test environment and the evaluation code. Products or tools I build on top of the findings are separate, and are not covered by this commitment. Nothing observed inside a client's or partner's system becomes research data without written agreement, and I do not validate a system I was paid to build or helped build within the previous twelve months, and I disclose any other interest.

If the results point to something worth building, I may build it, as a separate commercial product. The protocol, evaluation code and data stay public, so the findings can be checked without trusting me.

If you fund independent researchers, run an estate where these problems are live, or work on these questions yourself, I would like to hear from you.

Email info@gehanpanapitiya.com

I reply within one working day, New Zealand time. Or message me on LinkedIn.