This paper introduces a hierarchical two-layer coding scheme for collaborative problem-solving dialogue, integrating cognitive and non-cognitive problem solving with metacognitive regulatory mechanisms. Validation across nine datasets from different domains shows that metacognitive regulation is a key indicator of successful collaboration between human and artificial agents.