Adaptive Test-Time Compute Allocation for Reasoning LLMs via Constrained Policy Optimization - Databubble