A job result can be success, failure, skipped or cancelled. A downstream diagnostic may need to run after a failure that would normally skip it. Use an explicit status function and retain needs so the evidence exists before diagnosis begins. A successful diagnostic doesn't repair the failed prerequisite. Keep mandatory validation red until its cause is resolved; changing status conditions only changes which work runs afterward.
The browser runner evaluates a bounded model of the workflow. It doesn't start a hosted machine, contact GitHub or execute arbitrary shell programs. Use the event and run details to check the result. Saving valid YAML alone doesn't prove that the intended job ran.
A diagnostic job can use failure() with needs. Running diagnostics doesn't erase the failed prerequisite or turn the whole run green.