GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(evaluation): unpack all five init_memmachine_params values at the four stale call sites by Yoel-qin · Pull Request #1914 · MemMachine/MemMachine

Conversation

@Yoel-qin

@Yoel-qin Yoel-qin commented Nov 3, 2026

Copy link
Copy Markdown

Purpose of the change

Four evaluation scripts crash before doing any work: they unpack three names from init_memmachine_params, which has returned five values since #1376 (evaluation/utils/agent_utils.py:523 returns memory, answer_model, query_agent, agent_model_id, answer_model_id). Each of these sites raises ValueError: too many values to unpack (expected 3):

  • evaluation/episodic_memory/locomo_ingest.py:61
  • evaluation/episodic_memory/locomo_search.py:177
  • evaluation/episodic_memory/locomo_delete.py:52
  • evaluation/retrieval_agent/longmemeval_test.py:260 (longmemeval_delete)

Description

Each of the four call sites now unpacks the five values the function returns, binding the unused ones to _. No other change: the call sites under evaluation/retrieval_agent/ and evaluation/retrieval_agent/beam/ already unpack all five.

Fixes/Closes

Fixes #1911

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Test Script (please provide)
    • An ast-based check that derives the function's arity from its return statement and compares it with the tuple target at every call site under evaluation/ (18 sites), run in a python:3.12-slim container: before the change it reports the four mismatches above; after, call sites scanned: 18, mismatches: 0.
    • ruff check evaluation/ and ruff format --check on the four changed files with the pinned 0.16.8: clean.
    • A full run of the LoCoMo scripts needs a configured server and model access, and evaluation/ has no test suite and is outside what CI type-checks, so no unit test is added.

Checklist

  • I have signed the commit(s) within this pull request
  • My code follows the style guidelines of this project (See STYLE_GUIDE.md)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

Screenshots/Gifs

N/A

Further comments

None

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Yoel-qin
fix(evaluation): unpack all five init_memmachine_params values at the…
b3167c3
… four stale call sites

Signed-off-by: qyy <[email protected]>
edwinyyyu
edwinyyyu approved these changes Nov 3, 2026
View reviewed changes
@edwinyyyu
edwinyyyu requested a review from marvinyu-memverge November 3, 2026 16:57
marvinyu-memverge
marvinyu-memverge approved these changes Nov 3, 2026
View reviewed changes

@marvinyu-memverge marvinyu-memverge left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Approving at b3167c3.

Verified: init_memmachine_params returns five values (memory, answer_model, query_agent, agent_model_id, answer_model_id), and at this head all 18 call sites under evaluation/ bind five targets. The four you changed keep the right positions: three use only memory, and locomo_search.py keeps memory, answer_model, which is what its process_question takes. I also checked the calls those three LoCoMo scripts make right after the unpack (query_memory with limit/expand_context, add_memory_episodes, delete_session_episodes, close, generate_response), and they all match the current API, so nothing else should trip once they get past setup.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@edwinyyyu

edwinyyyu commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for the fix! Please ensure your commits have verified signatures.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Yoel-qin
Yoel-qin requested review from edwinyyyu and marvinyu-memverge November 9, 2026 02:51
marvinyu-memverge
marvinyu-memverge approved these changes Nov 10, 2026
View reviewed changes

@marvinyu-memverge marvinyu-memverge left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Still approving at b3167c3; nothing has changed since my review on 11-03, so there's nothing new to look at.

The merge looks blocked on the commit signature Edwin mentioned rather than on reviews: the commit shows as unsigned on GitHub, and both approvals are already in.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@marvinyu-memverge marvinyu-memverge marvinyu-memverge approved these changes
@edwinyyyu edwinyyyu Awaiting requested review from edwinyyyu

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Four evaluation scripts unpack init_memmachine_params's five return values into three names

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Yoel-qin @edwinyyyu @marvinyu-memverge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.