Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/hash-synch-switching-machines #147

Closed
wants to merge 3 commits into from
Closed

bug/hash-synch-switching-machines #147

wants to merge 3 commits into from

Conversation

Xm0onh
Copy link
Member

@Xm0onh Xm0onh commented Jan 16, 2025

This PR should resolve #140.

@Xm0onh Xm0onh requested a review from jfrank-summit January 16, 2025 20:41
@jfrank-summit
Copy link
Member

jfrank-summit commented Jan 16, 2025

Deleting the local hash on startup could potentially cause problems in failure scenarios. Consider the following:

  1. Agent starts up
  2. Agent generates new memories/hash
  3. Update to blockchain fails (RPC down, wallet out of funds for gas, etc.)
  4. Local hash is correctly maintained
  5. Agent restarts
  6. If we delete local hash on startup
  7. Query blockchain -> get outdated state

In this case, we'd lose track of the actual last valid hash, making it impossible to maintain proper memory chain continuity.

@Xm0onh Xm0onh closed this Jan 17, 2025
@Xm0onh Xm0onh deleted the bug/hash-sync branch January 17, 2025 08:45
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.

Memory Hash Synchronization Issue When Switching Machines
2 participants