Neural-symbolic MS agent (experimental, OFF by default, shelved) - #26
Conversation
…shelved) Built a focused-extraction + deterministic-compute agent for the LongMemEval MS count/sum/arithmetic failures (neural_symbolic.py, --neural-symbolic default OFF). Two paid A/B smokes + a full-MS static projection show it is NOT net-positive at full scale (collateral surface 47 = 1.6x the 29 win opportunities; projected ~68-76% <= 75.9% baseline at the measured ~0.3-0.4 collateral rate), so it is kept OFF as a tagged, reversible scaffold. Kept (correct, $0-tested): 5-family compute; classifier exclusions (_NOT_ENUM_RE: elapsed-duration / age / requirement / left / exceed / recurring-rate -> blast radius 89->76); to_number "10 minutes"->1e7 bug + sign; SUM dedup sum() not max(); _norm_label over-merge; compare vs->Yes/No; lower-bound-floor render (reverted after the post-review two-directional change net-regressed the count wins). Adds $0 harnesses: neural_symbolic_selftest.py (39 fixtures incl. adversarial mis-route guards), ns_static_analysis.py, ns_smoke_compare.py, neural_symbolic_replay.py. Rule documented in CLAUDE.md Critical Operational Rules + ITER33_MS_STATUS.md; rollback tag iter33-ms-pre-symbolic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Code Review — Neural-symbolic MS agent (#26)TL;DR: Cleanly isolated to What this doesA new The PR's own verdict is honest: two paid A/B smokes + a full-MS static projection show it is not net-positive (fires on 76/133; collateral surface 47 ≈ 1.6× the 29 win opportunities; projected 68–76% ≤ the 75.9% baseline), so it lands shelved/OFF as a reversible scaffold (rollback tag Strengths
Worth addressing
Notes (low risk, benchmark context)
Verdict: Approve to merge as a default-OFF, tagged, reversible scaffold. Items 1 and 2 are the most worthwhile to clean up first. 🤖 Generated with Claude Code Generated by Claude Code |
The benchmark docs had drifted badly from the technical report — most notably LongMemEval was still listed as "0% (retrieval returns empty context)" when the paper reports 93.0% J-Score overall (N=500). Align all headline numbers to the paper as the source of truth: - LongMemEval: 0% -> 93.0% overall, with per-category J-Scores and the build/answer/judge stack; cross-ref PR #26/#27 for the MS lever. - LoCoMo: 82.8% (gpt-4.1-mini) -> 81.23% overall (paper Table 4 stack, gpt-4o-mini) vs ENGRAM / MemOS / Zep. - MuSiQue F1 -> 58.7 vs HippoRAG 2 49.3. - BABILong -> 85.0 vs ARMT (fine-tuned) 83.8. - ToMi -> 83.5 vs AutoToM 80.2. - Add a canonical "Paper results" section (Tables 3-5 + Fig. 4) to BENCHMARK.md and note that the reported stack is the proactive-substrate configuration, not a per-benchmark tuned ceiling. Claude-Session: https://claude.ai/code/session_01HCToJStvPhZbWGY2ZcBfy7 Co-authored-by: Claude <noreply@anthropic.com>
Summary
Adds the LongMemEval MS count/sum/arithmetic neural-symbolic agent — built, validated, and deliberately shelved (OFF by default). A focused structured-extraction LLM call reads the raw retrieved turns, enumerates operands for 5 families (count / sum / diff / date / age), computes the answer deterministically, and injects it as a
RECALL_HINTfor the reader to verify.Gated behind
--neural-symbolic(default OFF) / launcher envNEURAL_SYMBOLIC_FLAG— zero effect on any existing run unless explicitly enabled.Status: shelved OFF pending further tuning
The agent's mechanism works (the reader adopts a concrete enumerated hint; raw-turn reading recovers writer-gap operands), but its blast radius (it fires on a large fraction of count/sum questions, many currently-correct) means the net effect is not yet favorable. It is kept OFF as a tagged, reversible scaffold while the count/sum approach is refined. No MS scores are asserted here.
What's kept (correct, offline-tested)
to_numbermultiplier/sign bugs, SUM dedup,_norm_labelover-merge, compare vs→Yes/No).$0harnesses:neural_symbolic_selftest.py,ns_static_analysis.py,ns_smoke_compare.py,neural_symbolic_replay.py.Safety / docs
CLAUDE.md(Critical Operational Rules): do NOT enable for benchmark/paper runs without re-validation.iter33-ms-pre-symbolic.🤖 Generated with Claude Code