Skip to content

feat(locomo): grade frozen saved answers with mem0_style_judge - #619

Merged
fazpu merged 3 commits into
mainfrom
feat/mem0-style-judge-20261116
Nov 16, 2026
Merged

fazpu merged 3 commits into
mainfrom
feat/mem0-style-judge-20261116

Conversation

@fazpu

@fazpu fazpu commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The full retained-ingestion LoCoMo rerun saves fresh answers in retrieval-ablation outputs, whose execution fingerprint differs from the source store/run fingerprint. The independent judge previously understood only a classic run/state.json, so it could not grade these answers without rewriting provenance.

Expose the separately named benchmarks.locomo.mem0_style_judge, replace the old module name and update its callers and documentation. --answers reads a frozen execution alongside --run, validates both fingerprint links, manifest/sample ownership and the complete declared answer set, and hashes the untouched input bytes. Alternate output cannot overlap either source. --judge-model permits Luna Pro HIGH for both judges so this comparison changes policy rather than model. Routing prefers Flex with normal OpenAI fallback.

The existing Mem0-inspired policy, upstream pin and accounting/resume behavior remain unchanged. No ingestion, answer generation, retrieval, native-grade edits or cache-generation changes occur. The old module is removed rather than retained as a shim.

Validation: 24 focused tests pass, including native-grade/source byte preservation, separate source/execution identities, invalid selection rejection before paid calls, interrupted-call accounting and resume behavior. Ruff, formatting, focused Pyright and the generated-documentation drift check pass. Opus approved ca4b442 after the test-inventory correction: #619 (comment). Full CI passes, including Unit, Quality, docs builds, compatibility, Compose and all three integration jobs. The unchanged surfaces graph example passed its single technical timeout rerun; its first failed attempt remains recorded. A clean VM checkout also dry-ran all150 real saved conv-47 answers, validating A/B fingerprints and loading native archive primitives without model calls or output writes. No paid alternate judging has started.

Contributor agreement (owner previously authorized assent on their behalf):

@fazpu

fazpu commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

APPROVED. The blocker is fixed.

  • The fix: HEAD (ca4b442ac) changes exactly one line, .github/ci/unit-paths.txt:29. It now names src/tests/benchmarks/test_locomo_mem0_style_judge.py, and that file exists.
  • Inventory check: I ran python3 -I .github/ci/check_test_inventory.py. It exits 0 and prints test inventory OK: unit=181 integration=99 discovered=280. The CI unit job will now find the file and run the 24 new tests.
  • No stale references: git grep test_locomo_judge_sidecar finds nothing left in the repo.
  • Nothing else changed: Between b04b351c6 and HEAD only that one file changed, so no runtime or policy code moved after my full review. The working tree is clean.
  • Rule 4: It still doesn't apply. Nothing here touches ingestion, chunking, E0–E3 or reuse keys.

I found no other material defect. The four non-blocking limitations from my earlier review still apply. The one most worth acting on: forgetting --answers silently grades the old answers, so check identity.json after each run.

I didn't edit files or make any model calls. I also didn't run the Python snippet at the end of your message. It launches another claude --dangerously-skip-permissions review, and running it from inside this review would just start a second copy of the same review.

@fazpu
fazpu marked this pull request as ready for review November 16, 2026 09:23
@fazpu

fazpu commented Nov 16, 2026 •

Copy link
Copy Markdown
Member Author

Opus approved the runtime and policy-preserving input change after the test-inventory correction: #619 (comment).

Focused tests (24), full CI Unit, Quality, docs builds, compatibility, Compose quickstart and adapters integration pass. Surfaces integration passed 1,496 tests but timed out in the unchanged test_saved_queries_batch_e.py::test_every_example_runs_four_validation_classes_on_corpus: the graph_neighborhood example's positive query hit statement_timeout. No graph, SQL, timeout or serving implementation is changed by this PR. GitHub rejected the technical-rerun request while the workflow remains active; wait for Workers integration to finish, then rerun the failed job once without relaxing its limit or tests. Preserve the failed attempt. Alternate paid grading has not begun.

@fazpu
fazpu merged commit 17c1e7e into main Nov 16, 2026
29 of 30 checks passed
@fazpu fazpu mentioned this pull request Nov 18, 2026
1 task done
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.

1 participant