firstStepWhere method
The first recorded step whose own path's value satisfies test, or
null if none ever did — ls-i-02's own "an engineer... scrubs the
timeline to the moment the lesson named," the same shape
DigestTrace.divergenceFrom already answers for a checkpoint
mismatch, here for a reading crossing a threshold rather than two
runs disagreeing.
Implementation
int? firstStepWhere(String path, bool Function(Object? value) test) {
for (var i = 0; i < _steps.length; i++) {
if (test(_values[i][path])) return _steps[i];
}
return null;
}