Resources / Research / Agent Memory

AI Agent Memory: 8 Designs Tested on a Firm's EBITDA Rules

We tested 8 ways to give an AI agent memory of a credit firm's EBITDA rules. A skill written from 14 corrections scored F1 82% on 36 new cases; no memory, 64%.

East River Labs ·

We tested eight ways to give an AI agent memory of a firm's EBITDA convention, then asked it to apply the convention to new cases. Leaving aside a hand-written reference skill whose author had seen the test cases, the best was a skill file written in one pass from the firm's raw corrections. It reached an F1 of 81.6% on a held-out test set, against 63.6% for the same agent with no memory. Our own memory graph came next, at 73.0%. Rules learned one correction at a time did not clearly beat no memory, however they were selected, and Anthropic's memory tool scored about the same as no memory.

The eval asks a question every team deploying agents runs into: when a person corrects the agent, what should be kept, and how should it come back the next time? Many of the failures we examined were not in the model's reasoning. The lesson was in memory, and it was either never shown to the model or written down in a form too generic to use.

One-pass skill, F181.6%
Memory graph, F173.0%
No memory (baseline), F163.6%
Held-out test trials per configuration108

The task: a convention no filing states

Credit analysts rarely take a company's reported EBITDA as given. Each firm has its own convention for which adjustments it accepts, and analysts usually learn it on the job, by having their work corrected, rather than from a manual. For an AI agent doing the same work, the convention is exactly what a general-purpose model cannot know: it is private to the firm and appears in no filing. It is a clear example of tribal knowledge.

We wrote one such convention down before the experiment began. The agent could learn it only from corrections:

  • One-time gains. Only tariff refunds under the International Emergency Economic Powers Act (IEEPA) and gains from legal settlements come out of Adjusted EBITDA, and only the part the period's income statement recognized. Management's other adjustments stand.
  • Rent. Adjusted EBITDAR adds back property rent, and for airlines only aircraft rent. A rent line on the face of the income statement is added back whole. A lease-cost line that mixes property with other leases is not, and payments on failed sale-leasebacks never are.
  • Operating costs that look like financing. A car dealer's floor-plan interest and a rental-car company's fleet costs stay in EBITDA.
  • Subsidiaries. Level 3 Parent, a Lumen subsidiary, is built up from its own 10-Q, and its revenue and costs with affiliates stay in.

Every configuration saw the same 151-word prompt with the firm's general definitions: start from management's reconciliation if there is one, otherwise build up from operating income, and keep rent in EBITDA. The prompt did not state the convention itself.

The eval set: 50 cases from public filings

The eval set has 50 cases built from public 8-K earnings releases and 10-Q filings on SEC EDGAR. Each case asks for one company's Adjusted EBITDA or Adjusted EBITDAR for one 10-Q period, in millions of dollars. Each expected figure is computed from verbatim quotes of the filings, and the script that builds the cases refuses to write one if any quote is not word for word in its source.

Fourteen cases form the train set, the only cases any configuration learned from. The other 36 form a held-out test set that no configuration saw before testing. Of the 36 test cases, 24 are positive cases, where a lesson from training should change the answer, and 12 are negative cases, where a lesson must not fire.

A team member acted as the person at the firm who owns the convention and settled 13 labeling questions. Three cases (Cracker Barrel, ARKO and Burlington) were left with two accepted figures each.

The 36 held-out test cases

RoleCase typeCasesTrials per configuration
RepeatA training company, another periodPositive618
NearThe same kind of item at a new companyPositive1133
HarderMixed accounting, or a refund to convert to dollarsPositive721
NegativeA training lesson must not change the answerNegative1236
Source: East River Labs eval, run October 6, 2026. Of the 36 cases, 23 start from management's reconciliation and 13 are built up from operating income; 22 ask for Adjusted EBITDA and 14 for Adjusted EBITDAR.

Eight memory configurations

Each configuration ran through the same harness, with the same prompt, the same model and the same four read-only EDGAR tools: find a company, list its filings, read a filing, and find a phrase in one. Filings made after a case's date were hidden. Only the memory changed.

Three outside tools need a word of introduction. Anthropic's memory tool gives Claude a /memories directory that it checks before a task and writes to as it works, with the files stored by the application.1 A skill, in Anthropic's design, is a markdown file whose name and description the model always sees and whose body it loads only when it judges the skill relevant. Anthropic calls this progressive disclosure.2 The rules configuration uses Jev, a decision model from TypeSafe AI that returns probabilities over a fixed set of answers instead of generated text,3 to judge which learned rules apply each time the agent states a figure.

What each configuration keeps, and how it reaches the agent

ConfigurationWhat it keepsHow memory reaches the agent
No memoryBaselineNothingNothing
Memory toolAnthropic's memory toolMarkdown notes the agent chooses to write after each correctionThe agent browses its notes by file name
Memory graphOur graph memoryEntities and dated facts extracted from each correction, plus the raw messagesA briefing before the question, and search tools that fuse keyword and embedding rankings
Rules (Jev)Rules chosen by a decision modelOne candidate rule per correction, written by a reflection stepJev judges which rules apply each time the agent states a figure
Rules (search)The same rules, rankedThe same rulesHybrid search lists the three rules nearest the stated figure
PlaybookThe same rules, no selectionThe same rules, as one skill fileThe agent loads the whole file on demand
One-pass skillWritten from the raw correctionsA skill a fresh model wrote from all 14 questions and corrections at onceThe agent loads it on demand
Hand-written skillReference onlyA skill a team member wrote from the conventionThe agent loads it on demand
Source: East River Labs eval, run October 6, 2026. The hand-written skill's author had read the test cases, so it is a contaminated reference ceiling, not a fair configuration. The one-pass skill's writer saw only the train set, and a test checks that its prompt contains nothing from the test cases. It wrote three drafts, one for each trial of a case, so variation between drafts is part of the result.

How trials were run and graded

The agent was claude-sonnet-5 with adaptive thinking, up to 128,000 output tokens, 40 tool turns and $5 per trial. In training, the memory tool, memory graph and rules (Jev) configurations answered the 14 training cases once, in a fixed order, and received a correction after each: the right figure followed by the reason, as in "Adjusted EBITDAR should be $X million …". The rules (search) and playbook configurations reused the rules learned that way, and the one-pass skill was written from the same 14 questions and corrections. Whatever a configuration kept was then frozen. Each of the 36 held-out cases ran three times, for 108 test trials per configuration. The memory tool is the only configuration that writes during a trial, so each of its test trials started from a fresh copy of its training memory.

The grader is code-based. It reads the FIGURE line of the agent's final answer and passes the trial if that figure is within $0.2 million of an accepted figure.

Each trial is counted the usual way. A passed positive case is a true positive, and a failed one a false negative. A failed negative case is a false positive, and a passed one a true negative. Every configuration has 72 positive and 36 negative test trials. For the main comparisons we give 95% intervals from a paired bootstrap over the 36 test cases, with 20,000 resamples and each case's three trials resampled together. The intervals are for the difference in passed trials, in percentage points.

Results: F1, precision and recall

The one-pass skill had the highest F1 of the configurations that learned only from the train set, 81.6%, with recall of 70.8% and precision of 96.2%. It passed 15.7 percentage points more test trials than the baseline (95% CI 6.5 to 25.9). Our memory graph was the only other learning configuration whose interval excluded zero, at +8.3 points (0.9 to 16.7) and an F1 of 73.0%. Overall, the baseline passed 68 of 108 test trials, the memory graph 77 and the one-pass skill 85.

Precision was high everywhere, from 90.6% to 97.7%, because most configurations left the negative cases alone. The differences between configurations are almost all in recall: whether a lesson that should have changed the answer did. The hand-written skill had the highest recall and the most false positives, 6 of 36 negative trials, which suggests that a skill that says more also fires more often.

F1 on the held-out test set

F1
Hand-written skill*85.3%
One-pass skill81.6%
Memory graph73.0%
Playbook71.2%
Rules (Jev)69.0%
Rules (search)67.9%
No memory63.6%
Memory tool62.4%
Source: East River Labs eval, run October 6, 2026. 108 test trials per configuration (72 positive, 36 negative). *Contaminated reference: its author had read the test cases.

Precision, recall and F1 by configuration

ConfigurationF1PrecisionRecallvs baseline [95% CI]
Hand-written skill*Contaminated reference85.3%90.6%80.6%+18.5 [5.6, 32.4]
One-pass skill81.6%96.2%70.8%+15.7 [6.5, 25.9]
Memory graph73.0%97.7%58.3%+8.3 [0.9, 16.7]
Playbook71.2%91.3%58.3%+5.6 [−5.6, 17.6]
Rules (Jev)69.0%90.9%55.6%+3.7 [−6.5, 13.9]
Rules (search)67.9%95.0%52.8%+3.7 [−6.5, 13.9]
No memoryBaseline63.6%92.1%48.6%Baseline
Memory tool62.4%91.9%47.2%−0.9 [−11.1, 7.4]
Source: East River Labs eval, run October 6, 2026. 24 positive and 12 negative cases, 3 trials each: 72 positive and 36 negative trials per configuration. Counts as TP / FN / FP / TN: hand-written skill 58 / 14 / 6 / 30; one-pass skill 51 / 21 / 2 / 34; memory graph 42 / 30 / 1 / 35; playbook 42 / 30 / 4 / 32; rules (Jev) 40 / 32 / 4 / 32; rules (search) 38 / 34 / 2 / 34; no memory 35 / 37 / 3 / 33; memory tool 34 / 38 / 3 / 33. The last column is the difference in passed test trials from the baseline, in percentage points, with a paired-bootstrap interval over the 36 cases.

Cost per trial

The one-pass skill was also one of the cheapest configurations to run, at $0.135 per test trial against $0.131 for the baseline. Costs are the agent model's token usage at list prices. Training is counted separately, because a configuration trains once and then answers many cases.

The rules (Jev) configuration cost the most per trial, $0.201, for a reason that has little to do with Jev itself: each candidate rule first asks whether it should apply, and the agent then has to state the figure again, which nearly doubled the number of figures it stated (2.16 per trial against 1.15 with search). Swapping Jev for hybrid search left passed trials unchanged, at 72 and 72, and cut the test-phase cost by 12%. Jev's own calls cost $0.106 for the whole run.

F1 against cost per test trial

F1 against cost per test trial: F1 by Agent cost per test trialBaselineMemory storesLearned rulesSkill files60%70%80%90%$0.12$0.15$0.18$0.21Agent cost per test trialF1One-pass skill: $0.135 per test trial, F1 81.6%One-pass skillHand-written skill, contaminated reference: $0.129 per test trial, F1 85.3%Hand-written skill*Memory graph: $0.150 per test trial, F1 73.0%Memory graphMemory tool: $0.182 per test trial, F1 62.4%Memory toolPlaybook: $0.140 per test trial, F1 71.2%PlaybookRules (Jev): $0.201 per test trial, F1 69.0%Rules (Jev)Rules (search): $0.176 per test trial, F1 67.9%Rules (search)No memory: $0.131 per test trial, F1 63.6%No memory
Source: East River Labs eval, run October 6, 2026. Test-phase agent cost divided by 108 trials. Training, counted separately: memory tool $3.31; memory graph $3.23, plus $0.316 for extracting facts from the corrections; rules (Jev) $2.94, plus $0.874 for the reflection step; three one-pass skill drafts, about $0.22. Rules (search) and the playbook reused the rules (Jev) configuration's rules. *Contaminated reference.

Where memory failed: lessons stored but never shown

We read the transcripts of the failed trials. The most instructive case is AutoNation, a car dealer, in the first half of 2025. It is a repeat case: AutoNation was in the train set, and its correction taught that floor-plan interest is an operating cost that stays in EBITDA. Every configuration that stores corrections had the lesson, but only the two that put every lesson in front of the agent used it. The playbook passed 2 of 3 trials and the one-pass skill 3 of 3; the hand-written reference skill passed 1. Every configuration that chooses what to show passed none. In three of them, the transcripts show exactly how the lesson was lost.

Stored where the lookup does not look

The memory graph filed the lesson as a fact about "Floorplan Interest Expense", which it stores as a value node, and its pre-question briefing skips value nodes. Its search tools returned AutoNation facts that mention floor-plan interest, but not the lesson. The three trials answered $816.3 million, $816.3 million and $820.6 million, against an accepted $724.5 million.

Filtered out by a period check

In the rules (Jev) configuration, the reflection step had limited the floor-plan rule, and three others, to the "latest" period. A rule passes only when Jev's reading of the question's period matches, and it never did: all 932 checks of those four rules were filtered out. On AutoNation, Jev gave the floor-plan rule probabilities of 0.38, 0.38 and 0.35, above the 0.3 needed to show it, and the period check removed it each time.

Outranked by rules that share the question's words

Hybrid search ranked the floor-plan rule outside the top three in all four AutoNation lookups. Keyword ranking rewards shared words, and every question carries the same boilerplate about earnings releases, 10-Qs and operating income. The rule for the Level 3 subsidiary happened to use that vocabulary, so it was listed in 112 of 124 lookups and ranked first in 80, whether or not it applied.

Lessons never written down, or written too broadly

With Anthropic's default memory instructions, the memory tool saved 4 of the 6 corrections it received for wrong answers. Its note on Frontier Airlines still recommended the answer from before the correction, and all three Frontier test trials followed it to $293.0 million against an accepted $511.0 million. The baseline passed that case 3 times out of 3.

Generic rules caused the opposite failure. HCA Healthcare's second quarter of 2026 is a negative case. In all three rules (Jev) trials, the agent first stated the correct $4,027.0 million. Once two generic one-time-gain rules were listed, it restated $3,604.0 million, removing $423 million of prior-period Florida Medicaid payments that the convention leaves in.

Why the one-pass skill worked

The one-pass skill differed from the other configurations in two ways. First, a fresh model wrote it from all 14 raw questions and corrections at once, so it kept the specifics. Its three drafts, 8.7 to 10.2 KB each, name the training companies and carry 8 to 37 dollar amounts. The learned rules came from the same corrections but were written one correction at a time, 13 rules in all. Rendered as the playbook, they were a 5.6 KB file of generic statements with no amounts and no company names. A 2025 paper from researchers at Stanford, SambaNova and UC Berkeley on agentic context engineering (ACE) names this failure brevity bias: summarized contexts tend to drop the domain details that the task depends on.4

Second, once a skill is loaded, every lesson is in front of the agent, so nothing depends on a retrieval step picking the right one. Loading is not guaranteed. The agent loaded the one-pass skill in 81 of 108 test trials, and the three cases where it never did were cases the baseline passed every time.

The memory graph's gains came mostly from text search over stored corrections. The agent called a memory tool in 107 of 108 trials, and 159 of its 160 searches returned something. On JetBlue, for example, a search for "JetBlue Adjusted EBITDAR" turned up the corrections for Frontier and American, two other airlines. The tools that follow the graph's links found little: 15 of 54 entity lookups and none of 49 decision lookups returned anything.

A smaller eval set ranked the designs differently

Before the final run, the same configurations ran on an earlier eval set of 27 cases, with 11 for training and 16 for testing. It ranked them differently. There, scored with the final labels, the playbook led every configuration that learns, passing 44 of 48 test trials against the baseline's 28, a gain of 33.3 points (95% CI 14.6 to 54.2). On the 50-case set, its lead fell to 5.6 points. On the 16 test cases the two sets share, the playbook lost 7 trials while the baseline did not move, because retraining with three more training cases had produced a different set of rules.

Even the final set is small where it matters: 13 of the 36 test cases were passed in every trial by every configuration, so 23 cases carry all the comparisons. An eval of agent memory needs more cases than it first seems, and more than one training run per configuration, before a ranking can be trusted.

What this means for building agent memory

Firms teach their conventions the way this eval did, by correcting work, and the results point to two steps where an agent's memory of those corrections succeeds or fails. The first is what gets written. Lessons kept with their specifics, close to the words of the corrections, scored higher than the same lessons compressed into generic rules or extracted as facts. The second is what gets shown. Every configuration that chose which lessons to show missed the AutoNation lesson, though it was already in memory. A memory layer has to get both right, and the way to know whether it does is to test it on held-out cases, positive and negative, as here.

That is the problem East River Labs works on. We build the memory layer for business AI: a context graph of a firm's people, systems, documents and decisions that learns the rules and exceptions from the corrections people already make, so any model or agent plugged into it works the way the firm does. We test it with evals like this one, and we can walk you through them. Read more on the product page, or in Building Organizational Memory for AI.

Sources

1 Anthropic, “Memory tool,” Claude Developer Platform documentation. platform.claude.com

2 Anthropic, “Agent Skills overview,” Claude documentation. docs.anthropic.com

3 TypeSafe AI, “Introducing System One Models & Jev,” September 15, 2026. typesafe.ai

4 “Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models,” arXiv:2510.04618, 2025. arxiv.org

All eval figures on this page are from East River Labs' eval of eight memory configurations, run October 6, 2026, on claude-sonnet-5.

Want to see how a memory layer would learn your firm's conventions?