Implement a function that computes the Proximal Policy Optimization (PPO) clipped surrogate loss along with a diagnostic clip fraction metric.
In PPO, the policy is updated by optimizing a clipped surrogate objective that prevents the new policy from deviating too far from the old policy. The function should:
Both values should be rounded to 4 decimal places.
The clip_fraction is a commonly monitored training diagnostic: values near 0 suggest the policy barely changed, while values near 1 indicate the clipping constraint was heavily active.