Cross-Bot Memory Contamination

Where does the bug appear (feature/product)?

Grok Bot

Describe the Bug

Posting this here on request of: @deanrie
Imagine a team of bots.. 2 or more, with something like this for initial states..

  • Bot [redacted] has an individual priv note/memory for a task limit (ie: stop after max retries or reach a time limit)
  • Bot CEO does not have that instruction (nor should it)

The CEO bot’s internal/private memory, upon compaction event… (I believe compact is triggered by the CEO or current chatting bot, but I’m not 100% sure which of the two bots individually is culpable, or if chat compression is account-wide for the whole team at once, because there is zero documentation on the mechanics)…

Anyway, for whatever reason, [redacted] bot’s rule got somehow applied as a global rule/instruction… which is not expected behavior.

The CEO bot then became governed by this requirement and it created hella confusion… stopping prematurely after attempting a task, and then not understanding why… eventually figuring out this bug described herein…

Steps to Reproduce

have two bots with individual rules, experience a chat compaction, notice behavior constraints are now mixed between bots when they should not be.

Expected Behavior

the priv rules/mem for one bot only applied to itself.

Operating System

MacOS
iOS

Version Information

Grok Bot iOS - I forget version off top of my head cuz it was a week+ ago, but - I submitted bug reports at the time, contemporaneously, thru the app, so you’ll get that data there.. you should be able to find this in the reports queue tied to my account for that date in my 𝕏 links.

Additional Information

I posted on my 𝕏 about this.. a week or so ago… Crouching Tiger Hidden Whale (b/acc) 🍊🌋🐳 on X: "Uh…. Houston.. we have a predicament. Do I get anything for all these 🐜 I keep finding? 🤔 @Engineering @X @elonmusk @poteto @Subscriptions This whole @bot “memory system” = 💯%💩 False Advertising. 😒 @grok this is poor form. Very unsettlin… / X
see also my several post/replies in this same 𝕏 thread above & below the linked tweet for more details/screenshots of this bug. (I was going back and forth with the Original GrokSH to diagnose) and it eventually told me to use the profile description field for persistent rules…

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @hidden_whale,

  1. Ask the CEO bot to search its memory, including shared memory, for anything about retries or time limits, and to tell you which bot saved each entry.
  2. Ask whichever bot saved each entry to forget it. A bot can only remove entries it saved.
  3. If nothing turns up, start a new chat with just the CEO bot (shortcut here). Its memory stays, but its chat history starts clean.

To keep it from coming back, tell a bot “save this to your own memory only, not shared memory” when a rule is just for its role, and give the CEO bot its own rule, like “You have no retry or time limit unless I set one.” Bots are set up to follow their own rules over shared ones.

On your question: summaries are per chat, not account-wide. The rule most likely came through memory (the shared memory every bot reads, or the CEO bot’s own), and the memory a bot sees refreshes after its chat is summarized, which is why it showed up then.

I’ve debugged this heavily with @deanrie in other threads… please talk to him - your stated solutions right here are poop, no offense… kindly check my forum & 𝕏 history for all your answers.

there is no new chat option.

you guys have stale scripts… truly: no offense meant. it’s just… weird that THESE are the official replies to the WELL DOCUMENTED problems… which refute said advice.

you don’t need to guess what happened. I already diagnosed it and it’s a bug. being tracked… isn’t there like a bug tracker board in your internal notion or slack or something?

@hidden_whale, to be clear, a limit you set for one bot shouldn’t end up steering a different bot, and it’s not something you set up wrong. Dean already passed your example and your X posts to the team.

You’re also right about new chat: neither app has a button for it. On the Mac app, the shortcut Dean mentioned (Cmd+Shift+N, pick only that bot) is the only route right now, and the iPhone app has nothing like it. If that shortcut doesn’t open a fresh room with just that bot for you, tell me what happens instead.

There’s no public tracker I can share, but I’ll post here when there’s an update.

well… my personal issues derive not so much from the chat being “too long” per se; or that my usage is soaked up too quickly… (tho, I’ve given suggestions on how to optimize that problem globally in my other reply earlier today – investigative hint: KV caching)

it’s the abhorrent memory situation as presently deployed… any literature I’ve read about making a new group chat with just the one bot has said it “retains” the same memory & routines… which, IMHO is poison… I don’t even use routines! lol so… that’s a non-sequitur, basically

the issue I see most prevalent: is the TERRRRRRIBLE memory structure/architecture… that should be the priority for the team to fix, if I were in charge and could snap ye ole magical fins/flippers…

question: why do the various access methods for GB have such different “features” – the grok.com version appears to be the most “complete” and is also the only place you can edit the profile.description field (aside from manually editing the JSON or HOPING the bot will do as you ask… and burning tokens in the process, btw)

ya’ll should really bring back the slash commands or do some other “functions” that are “not-bot” so you can check out administrative stuff… like easily editing your RULES (which don’t exist, because you guys don’t have a special “rules” structure, preferably with standard form/text field input in a UI menu modal or something… so it gets applied properly in context right after the profile – in the bot prompt-construction system BEFORE any compaction summaries or chat messages blow them away)

also: how on earth did the decision arise to HIDE and make it HARD for users to even understand the memory jankiness? is this beta? I assume beta and it will change… please, tell me it’s beta… I’m ok with that “temporary excuse” – I am NOT OK with this if it’s supposed to be this way, and was purposefully done…

kindly, advise.