It would be nice if there could be an automatic way (writing a test program) to bisect for a commit that triggered a change in the test program result, for a given branch.

Or you think that should be a task for a script that uses fossil?

Thank you.