A lightbulb came on yesterday when I was trying to pull something from AI 🤖 mem...

@teriradichel@infosec.exchange

A lightbulb came on yesterday when I was trying to pull something from AI 🤖 memory yesterday. It kept pulling back bits and pieces and corrupted memory and finally it admitted that the data it had created in a prior response just wasn’t there. And that’s when it hit me.

💡It’s not saving things into memory exactly as I’m seeing them on the screen or not maintaining them that way for any length of time. So when I am referring back to things and trying to get things fixed it’s making up the missing parts and that why I’m getting junk for answers sometimes.

So thinking about this…is there some kind of memory corruption going on? Am I not actually getting the context I am supposed to be getting? Is it auto-summarizing when overloaded and not telling me?

Whatever the case I was having a heck of a time trying to just get it to pull something records accurately from files in different projects so I could analyze time tracking data to see if there were any trends. If the memory was mangled after each run that explains a lot. It was probably too much data to process effectively that way for one thing.

And that’s when something clicked with me someone else told me about writing to files. I’ve written to files so one agent can analyze another’s work but this is different. Storing outputs of prompts for further analysis.

You can turn on telemetry and logs but then you can’t see if things are actually getting logged correctly if you’re not staring at it.

I tried another approach, mildly successful. I need to play around with it more. The logging is ok but not consistent enough.

One other thing I did was revamp how I’m trying to get agents to consistently log time and mistakes. It works better. But what I notice is that it starts of great but then degrades over time.

You know how you’re supposed to be able to inject a prompt with every Kiro promot by putting a global prompt in your Kiro agent file? Not sure that is working consistently. I have a fix for that too long term but right now I want to finish other things.

Found more menus not implemented according to the global menu rules. *sigh*

In this case there was some issue implementing it related to some limitation in the menu project and req conflicts and instead of telling me the problem the agent went off and wrote duplicate code to compensate.

Results were ok yesterday but not as good as sometimes in the past. The agent went completely off the rails at one point changing a whole bunch of code unrelated to my request.

Later in the eve, the agent became very verbose and I could not get it to stop.

Now for the good stuff. I created a time and mistake analyzer project that reviews all my mistake and time logs and summarizes them with some deterministic code. Hopefully that will be useful to help pinpoint issues and maybe if anyone is developing tools they can get some insights. I’ll put the links in next comments.

The mistake log is so long now. The agents are doing a better job of logging all mistakes with this new setup but I still have to remind them so still incomplete. The time tracking is better too.

Beyond that I added functionality to add and remove dependencies like this needs to be deployed before that or this needs to be deleted before that in my types project. Plan to use that to help order resources and do some parallel processing.

While fixing deploy menus I aligned them with my organizational configuration diagrams so now I can basically walk the diagram and deploy some or all of the resources.

The organizational resources and ous can be deployed. I need to break some “deploy all the things of this type” apart do I can manage each one as a separate type, and add some code to automatically create or help a user walk through creating missing AWS CLI profiles (that require MFA) and test all the things.

For that reason a whole bunch of things on the ai tracker home page turned yellow ⚠️ again but will hopefully be back to green today. ✅

github.com/2ndSightLab/ai-trac