yes i was utterly wrong, duh. system.state will be overwritten on SLEEP - it’s whole purpose is to cache the state at that point.
i don’t know about the clean boot flag, that does seem odd and maybe there is bug in how the flag is managed.
in any case, as regards this particular issue with the tape counters, my inclination is to cut the gordian knot by programatically incrementing the counter based on the current file contents instead of a data field. (proposed solution #2 in the GH issue.)
i gotta sign off for the night. @tehn is visiting and we will be doing some concentrated norns issue triage.