The conclusion seems somewhat unsurprising: it's more effective to keep unedited logs and let agents search those than compress/compact/summarize.
As ever, many companies will be happy to store your data and sell access back to you. The good news is it's easier than ever to retain ownership of your data in sqlite or markdown files.
You can back up your own codex/claude code logs.
In fact, you probably should be, if we get to the point where we can more easily customize open models of fully create our own you'll absolutely kick yourself if you don't.
We're apparently not allowed to generate sessions for this purpose but keeping the ones you generate organically...well... Fuck you I won't do what you tell me.