How do parallel Object Edit/Reads resolve?

I have an Object-Type called “Research Chunk”, which is linked to a parent Object-Type called “Research Report”. A Report may have many Chunks. Very similar to the “semantic chunking” AIP Example.

I’ve written a Logic function to do some work on a single Chunk, and I run this on all the Chunks for a Report through Automate. When every Chunk has reached a “Processed” state, I’d like to change the parent Report to also have a “Processed” state.

I’d like to have this as a step at the end of the Chunk-processing Logic: Set this Chunk to “Processed”, and if all other Chunks for this Report are too, then also flip the Report to “Processed”.

What will happen if I set the Automate to run with Parellelism? Could there be a race condition where two Chunks both finish near enough to each other that they think the other is still “NEW” and therefore neither flips the Report’s status? Or does the Ontology implement some kind of Read/Write lock so that one of the Chunks will wait for the other’s Edit to be registered?