I just joined up on this forum to make a post over just this issue... On a Pixel 7 Pro.
This is a persistent problem I've been facing, every once in a while, apps that would stay on for a long time, silently collecting their data in the background (think AccuBattery or the like), are killed off, only to start back up again right away. This normally wouldn't be an issue, except when that app's job is to collect a long history of uninterrupted data in a single session, and does this best when it isn't interrupted.
These same apps were not killed off in this manner in the stock OS, and setting them to Unrestricted battery usage doesn't seem to help much... I even notice Google Play Services killed off and restarting every so often, as I get the silent notification "Sandboxed Google Play is running" again.
What trickery is GrapheneOS up to, and can I do anything about it? It's frustrating. AccuBattery pops up with messages saying it has detected a task killer, even when it hasn't been killed off in a while, so whatever huristics it's running in this manner are detecting something that is killing off tasks. Maybe someone knowledge with GrapheneOS can elaborate?
Edit: added phone model.