Skip to content

[OMEGA-352] Bug 18 Memory Retrieval via query() Does Not Function #311

Description

@olegryabchikov-dot

Describe the bug

The memory retrieval mechanism (query) does not return data stored via remember(). When a user asks the bot to recall previously stored information by key, query() enters an indefinite no_action loop and never returns a result. Additionally, remember() is called before tool data is available, storing placeholder text instead of actual values. While self-correction overwrites the placeholder with correct data, this ordering issue is currently irrelevant because retrieval fails regardless of stored data correctness.

To Reproduce

Steps to reproduce the behavior:

  1.  Send 'Find the current Bitcoin price via websearch and remember the result via remember with key "btc-price". Then show me what you remembered.' to agent
    
  2.  Wait for confirmation response (~1 minute)
    
  3.  Send 'What exactly is stored in memory under key btc-price? Show the exact contents via query-memory.' to agent
    
  4.  Wait indefinitely — no response is received
    

Expected behavior

query("btc-price") should return the value previously stored by remember("btc-price", ...). The bot should display the stored price data to the user.

Actual behavior

  1.  First remember() call stores placeholder text "CURRENT_BTC_PRICE_PLACEHOLDER" because it executes simultaneously with websearch before data is available
    
  2.  Second remember() call ~40 seconds later correctly stores real price data (self-correction)
    
  3.  query("btc-price") enters indefinite no_action loop: "still waiting for query result for btc-price key"
    
  4.  After 4+ minutes with no result, bot acknowledges hang: "The query command for key btc-price is still waiting for a result"
    
  5.  Retry of query("btc-price") also hangs indefinitely
    
  6.  Filesystem inspection confirms no separate key-value store exists; remember() only writes log entries to history.metta; workflow_space directory is empty
    

Additional context

· OmegaClaw version: v0.1.18
· Communication channel: Telegram
· Model provider: M3
· Primary actionable bug: query() failure — memory retrieval does not function
· Secondary observation: Premature remember() with placeholder text is a reasoning/ordering issue, but has no functional impact given that retrieval fails independently of stored data correctness
· Self-correction mechanism observed: model issues second remember() with correct data after tool completes, partially mitigating the ordering issue
· Memory architecture appears to be write-only log (history.metta) without functional key-value retrieval

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-jiraThe issue has been accepted for fixing

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions