Maybe the information is being lost in translation, but I'm trying to understand where the "chlorine gas" is being talked about. The articles I found just say "too much chlorine", which is hazardous but not the same as chlorine gas. Can anyone shed some light here?
I don't think "chlorine gas" but rather chloramine. In pools when chlorine binds to contaminates, it forms chloramine, which is a gas that sits on the surface of the pool.
There are a couple of pathways by which free chlorine (hypochlorous acid / hypochlorite) can turn into chlorine gas. The kinetics are complicated, and I’m not sure a fantastic model exists. In general it seems to be faster in acidic conditions and also faster if air is bubbled through the water.
High chlorine levels tend to reduce chloramines, so gasses like nitrogen trichloride seem unlikely to be the problem. You need a nitrogen source to make any large amount.
You favorite AI will happily model it, and I wouldn’t trust it to get the right answer :)