Repository navigation
feat(eval): add memprobe offline adapter scaffold - #101
autohub-claude[bot] wants to merge 3 commits into
Conversation
Pin-verified, loopback-only AutoMem reader for MEMPROBE/MemAudit (arXiv:2606.24595): isolated per-user tags, full-store (by-tag) and top-k (/recall) access, separate recovery/answer/abstention metrics, and not_scored reports whenever no judge ran. No upstream code or data is vendored and no model is called. Tracked in #100. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 395c60c0b8
ℹ️ 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".
urllib follows redirects without re-running assert_loopback and forwards the X-Api-Key header, so a loopback endpoint that answered with a redirect could send the API key to a non-loopback host. AutoMem never redirects, so the transport now raises ProtocolError on any redirect instead of following. Tests run real loopback servers: the redirect target is never contacted and never receives the key (fails against the previous transport), and the happy path still returns JSON with the key attached. Addresses the Codex review finding on runners/memprobe/adapter.py (P2). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 527a492356
ℹ️ 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".
build_opener installs a default ProxyHandler that reads http(s)_proxy. With a
proxy configured and no_proxy not covering loopback, requests that
assert_loopback had accepted were routed through that proxy, carrying the
X-Api-Key header and the recall query off loopback. The opener now installs
ProxyHandler({}) so the environment cannot reroute this transport.
The regression test points http_proxy at a recording loopback server and
asserts the proxy never sees the request or the key (fails against the
previous transport).
Addresses the second Codex review finding on runners/memprobe/adapter.py (P2).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Babysit: ready for you to merge. The agent did not merge. Verified green at
Implementation harness: Claude Code ( |
|
Closed in the pre-launch backlog sweep. This item has no AutoMem score and no product decision waiting on it. The branch is kept, and the lead is carried in the benchmark watchlist ( Comes back when: a judge budget is approved and the replay arm is seeded. Reopening is fine at any time. |
|
Acknowledged. #101 is closed with no code action needed. The branch Resume trigger: a judge budget is approved and the replay arm is seeded. #100 stays the tracking issue for that. I'm not dispatching any work now. |
Summary
Adds an offline adapter scaffold for MEMPROBE / MemAudit (arXiv:2606.24595, v3 HTML), tracked in #100. It pins and verifies the upstream release, builds isolated per-user tags, reads one user's store through the paper's two access modes against a loopback AutoMem, and defines the recovery / answer / abstention metrics. It produces no AutoMem score: every report it can emit is
not_scored.Refs #100 (does not close it: the run itself, judge access and the AutoMem seeding step are still open there). Deliberately not folded into #62, and DynamicMem (2606.22877) is out of scope.
What changed
runners/memprobe/adapter.py(new, stdlib only)sora1998/MEMAUDIT-benchat0c20cf72…(CC BY 4.0);verify_checkoutrefuses any otherHEAD. No upstream code or data is vendored.load_bankchecks the bank SHA-256 and the 50 users x 31 dimensions shape (7/7/7/5/5 by category) before use.Target.probe()/probe_query()can never carry the reference value or explanation.assert_loopbackrejects non-loopback endpoints (including127.0.0.1@eviluserinfo tricks);user_tagbuildsmemprobe:<run>:<user>and rejects unsafe ids.http_transportkeeps the key on loopback after the endpoint check: it refuses every HTTP redirect (ProtocolError) and ignoreshttp(s)_proxyfrom the environment (ProxyHandler({})). Both were Codex review findings, fixed in527a4923andd5358af1with regression tests.AutoMemReader.full_storepagesGET /memory/by-tagto exhaustion and fails closed on a malformed or non-terminating envelope;top_kisGET /recallwithtag_match=exact,tag_mode=all,limit=5.footprintcounts records carryingt_invalid(superseded but still enumerable).summarizekeepsrecovery(category-balanced),answer_rate,abstention_rateandanswered_recoveryseparate; any missing judge score or no judge returnsnot_scoredwith null metrics.build_reportalways setspaper_comparable: false.runners/memprobe/__init__.py(new)runners/test_memprobe_adapter.py(new, 21 tests, synthetic bank; the transport tests use real loopback servers only, nothing leaves 127.0.0.1)Review Contract
Invariants a reviewer can hold this PR to:
status: not_scoredand null metrics.Out of scope here: seeding AutoMem from the bank, the reader/judge calls, and any published number.
Verification
Python 3.12 (the default macOS
python33.9.6 fails the existing suites for unrelated reasons):The adapter's API assumptions were cross-checked against the sibling
automemserver source:/memory/by-tagclampslimitto 200, returnsmemories/has_more, and matches exact lowercased tags;/recallacceptstag_match=exactandtag_mode=all(its defaulttag_matchisprefix, hence the explicitexact).Risk
Low. New files only, nothing imports them, no existing behavior changes. One known server-side nuance:
GET /memory/by-tagruns the server'son_accesshook, so enumeration touches access metadata. That matters only if a later run reuses a store.Implementation harness: Claude Code (
claude-sonnet-5-5) via the AutoHub kernel workerGitHub identity:
autohub-claude[bot]GitHub App🤖 Generated with Claude Code