Identity and Matrix algorithms return incorrect values
Identity and Matrix algorithms return incorrect values: a task in harness-adapters: Agentic coding environments (Harbor dataset). The Identity and Matrix similarity algorithms are returning incorrect values. Identity algorithm returns 0 for identical sequences and 1 for different sequences, which…
The task
The Identity and Matrix similarity algorithms are returning incorrect values. Identity algorithm returns 0 for identical sequences and 1 for different sequences, which is the opposite of expected behavior. Matrix algorithm also returns inverted values when comparing sequences.
Part of harness-hub/harness-adapters.