Repository navigation
feat(mem2actbench): port AutoMem evidence-retrieval pilot - #34
jack-arturo wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Port the Mem2ActBench parameter-grounding pilot, first run in a private automation repo, into runners/mem2actbench/ as dependency-free Node: index.mjs (runner), lib.mjs (pure payload/association/scoring helpers), harness.test.mjs (node --test) and a README with the metric contract. Results: data/results/SUMMARY-mem2actbench-pilot-2026-09-18.md plus the aggregate JSON in data/results/mem2actbench/. Full split, 400 tasks, k=5: 77.81% evidence F1, 75.67% labelled-parameter accuracy, L4 conflict resolution weakest (48.72% F1). This is a retrieval-evidence score, not comparable to the paper's end-to-end 53.8 oracle F1. Key facts from the earlier fit assessment (paper provenance, untagged upstream repo with unconfirmed license, next-pass control arms) are folded into the SUMMARY. Port changes: .js -> .mjs imports; defaults resolve from the repo root; the dataset clone (data/benchmarks/) and raw run reports (data/results/mem2actbench/runs/) are gitignored; reports record a repo-relative dataset path instead of an absolute one. Storage, recall and scoring logic are unchanged. Sanitized: dropped the package.json script and its .env loading, local absolute and /tmp paths, the private repo's issue links and eslint evidence, and internal run ids. Tracking is now #24. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
246ff50 to
5d23e29
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 246ff501ac
ℹ️ 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".
| function headers(config) { | ||
| return { | ||
| Authorization: `Bearer ${config.token}`, | ||
| 'Content-Type': 'application/json', | ||
| }; |
There was a problem hiding this comment.
Authenticate AutoMem with X-Api-Key
The documented local AutoMem /recall surface requires the X-Api-Key header (docs/session_2026-04-28_hook_replay.md:60-66), whereas this sends only a bearer token. A normal non-dry run can therefore store memories—POST /memory has accepted bearer auth—but then fail at recall authentication and produce no report; use X-Api-Key consistently for the AutoMem requests.
Useful? React with 👍 / 👎.
| const precision = | ||
| totals.supported + totals.falsePositiveEvidence === 0 | ||
| ? 0 | ||
| : totals.supported / (totals.supported + totals.falsePositiveEvidence); |
There was a problem hiding this comment.
Compute evidence precision from evidence counts
When one recalled fact grounds multiple parameters, totals.supported counts parameters while falsePositiveEvidence counts recalled memories, so this precision divides incompatible units. For example, one fact supporting three parameters plus one irrelevant fact is reported as 75% precision instead of 50% evidence precision; this distorts the committed F1 and complexity aggregates, so the numerator must be the number of supporting evidence items rather than supported parameters.
Useful? React with 👍 / 👎.
| return null; | ||
| } catch (error) { | ||
| return error.message; | ||
| } |
There was a problem hiding this comment.
Fail the run when per-case cleanup fails
If any DELETE returns an error or encounters a network failure, this converts it into a resolved string and the caller discards the result. Because every case recalls under the same runId tag, leaked facts remain eligible for subsequent cases, silently corrupting their scores while the final report still says deleted after each task; propagate or explicitly check cleanup failures before continuing.
Useful? React with 👍 / 👎.
| Tracking: #24. Runner: [`runners/mem2actbench/`](../../runners/mem2actbench/README.md). | ||
| Aggregate: [`mem2actbench/pilot-results-2026-09-18.json`](mem2actbench/pilot-results-2026-09-18.json). |
There was a problem hiding this comment.
Register the Mem2ActBench experiment
This adds a full 400-task experiment summary and aggregate without an entry in docs/experiments/registry.json, so the generated experiment dashboard will not surface this work or its decision state. Add the experiment record and regenerate the index before landing this substantial experiment session, as required by the repository workflow.
AGENTS.md reference: AGENTS.md:L97-L97
Useful? React with 👍 / 👎.
|
Merge review completed at |
|
Backlog triage (2026-09-28): rechecked current head |
|
Added a MemDelta-style controlled-baselines execution tracker in #48. Once this adapter is merged or pinned, its Mem2ActBench runs should use the shared result metadata (embedding, reader family, judge, and write-path cost) and keep the current evidence-retrieval proxy explicitly separate from end-to-end tool-call scores. |
Refs #24
Summary
This ports the Mem2ActBench evidence-retrieval pilot into
runners/mem2actbench/. The work was first done in a private automation repo and landed there by mistake. This is its home.runners/mem2actbench/index.mjs: the runner. Per task it stores the labelledevolution_chainfacts under a unique run tag, links consecutive facts withRELATES_TO, recalls k facts for the task query, scores them, then deletes them.runners/mem2actbench/lib.mjs: pure helpers for the payload, associations, batch selection and parameter-grounding scoring.runners/mem2actbench/harness.test.mjs:node --testunit tests.runners/mem2actbench/README.md: the metric contract, dataset notes, env vars and run commands.data/results/SUMMARY-mem2actbench-pilot-2026-09-18.mdanddata/results/mem2actbench/pilot-results-2026-09-18.json: the pilot writeup and its aggregate..gitignoregets two new rules.data/benchmarks/covers the upstream dataset clone: the license is unconfirmed, so it must never be committed.data/results/mem2actbench/runs/covers raw per-run reports.The Node code is dependency-free, matching
runners/aml/in #29: nopackage.json, no install step.Results (exploratory, not a benchmark claim)
Full split, all 400 tasks, k=5:
Caveats:
Port and sanitization
.js→.mjs. Imports now point at./lib.mjs.package.jsonscript entry and its.envloading. The README documentsAUTOMEM_API_URL/AUTOMEM_API_KEYinstead./tmppaths, the private repo's issue links, its eslint evidence, and internal run ids. Tracking now points at feat(automem): Evaluate against Mem2ActBench — proactive tool-calling memory (arXiv:2601.19935) #24.docs/experiments/registry.jsonand the generated files are untouched).Verification
--dry-runstill reads a dataset, so it ran against a 3-task synthetic JSONL fixture (not committed, no download):I also ran the full non-dry path against a throwaway in-process HTTP stub, not AutoMem, on the same fixture. The stub implements
POST /memory,POST /associate,GET /recallandDELETE /memory/:id. The run covered store, associate, recall, scoring, cleanup and report write:git check-ignore -von the SUMMARY, the results JSON and the README reports nothing ignored.data/results/mem2actbench/runs/*.jsonanddata/benchmarks/**are ignored by the new rules.Sanitize check: a grep over the new files for local absolute paths, private-repo names,
.envreferences and internal run ids hits onlyprocess.envinindex.mjs.Not verified in this port:
🤖 Generated with Claude Code