Skip to content

Memory eval: one command for decision 7, checked with no model - #126

Merged
lydakis merged 5 commits into
mainfrom
claude/project-thread-k9p3ok
Oct 10, 2026
Merged

lydakis merged 5 commits into
mainfrom
claude/project-thread-k9p3ok

Conversation

@lydakis

@lydakis lydakis commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Before: plan decision 7 (run the memory eval on real models) had nothing to run. The research only described the test.

After: once George says yes, one build and one command on his Mac run it:

cargo build --release --locked -p agent-runtime -p agent-app
.local/venv/bin/python -m bench.memory_eval --model chatgpt/MODEL --out .local/memory-eval/MODEL.json

Each bot gets one task in a fresh git worktree of a small synthetic project, the way a coordinator's task starts. The worktree is in the system temp folder, outside this checkout. Every bot has its own HOME, so it also has its own daemon and its own ~/.agents/memory. Bots are made by the real agent run --new --agents, so their instructions are what the composer gives today, memory indexes included.

There are two conditions:

  • none: the control.
  • memory: facts saved through the checkout's own agent-app --memory, with the same checkout's memory skill installed.

And three scenarios:

  • decision: API timestamps end in Z, in whole seconds.
  • preference: error messages start with a bracketed code.
  • stale: memory names a money.py that is gone, and a rounding rule the code contradicts.

Hidden checks score the worktree after the turn. For each bot, the script also records:

  • the daemon's token and round totals;
  • the shell commands that touched memory;
  • the facts saved or removed;
  • for stale, the wrong fact's final text, for a person to judge.

The result records when it ran, the revision, and the hashes of both binaries. Only the selected provider's key reaches the daemons.

docs/MEMORY_EVAL.md has the instructions and the cost estimate. A full run is 18 bots. That comes to about 1 to 2 million input tokens (mostly cached) and 50,000 to 180,000 output tokens. The ceiling at the per-task cap is 7.2 million tokens. On the ChatGPT plan it uses quota, not API money. These figures are estimates, not measurements.

The research's third condition (the skill without composed indexes) is left out: M2 composes the indexes, so that path no longer exists.

Review findings declined under the merge rule are logged in #108.

Checks, no model calls

  • python3 -m bench.memory_eval --self-check applies a right and a wrong reference answer to each scenario. The right one passes and the wrong one fails, the untouched project fails, and the visible tests pass.
  • AGENT_TEST_RUNTIME=1 python3 -m unittest tests.test_memory_eval runs the whole path against the synthetic model. That covers the worktree, the per-bot HOME, facts saved through the real script, run --new --agents, the daemon's totals and the scoring. It also unit-tests which provider keys are passed on. It passes on this branch.
  • I ran the full main() against the synthetic model, 2 trials per cell. All 12 bots completed. None was scored correct, which is expected because the model uses no tools. The instructions were about 1,300 characters for none and about 2,100 for memory.

🤖 Generated with Claude Code

bench/memory_eval.py gives each bot one task in a fresh worktree of a
synthetic project, with its own HOME and daemon, made by `agent run
--new --agents`. Conditions `none` and `memory`; scenarios `decision`,
`preference` and `stale`; hidden checks score the worktree.
`--self-check` scores reference answers, and tests/test_memory_eval.py
runs the whole path against the synthetic model. docs/MEMORY_EVAL.md
has the run instructions and a cost estimate.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T10:08:37.073470Z 3090bdf Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 10ee181267

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Pass on only the key the selected provider reads, so the daemon keeps it out
of the bots' shells. Put the bots' folders in a temporary directory outside
this checkout, so their instructions don't pick up this repository's
AGENTS.md. Wait for an interrupted turn to settle before reading its totals,
count the stale fact corrected only when it says half up, and give the
decision check a time with microseconds.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f44f3b3491

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread docs/MEMORY_EVAL.md Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Build the daemon and agent-app from the same checkout and use that app for
the memory script, so it matches the skill copied from the checkout. Record
the run's time, revision and both binaries' hashes. Report the stale fact's
final text and whether it changed instead of a keyword guess at a
correction. A custom provider URL with no key field gets no key, a hidden
check that hangs scores as wrong instead of ending the run, and the cost
ceiling is priced at the output rate.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019xtP72bEUJnpaJshaUzKwG
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9349bb8b09

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved

lydakis commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3090bdf027

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread bench/memory_eval.py Resolved
Comment thread docs/MEMORY_EVAL.md Resolved
@lydakis
lydakis merged commit fefef85 into main Oct 10, 2026
1 check passed
@lydakis lydakis mentioned this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants