diff --git a/events/0000000029.json b/events/0000000029.json new file mode 100644 index 0000000..78abbdd --- /dev/null +++ b/events/0000000029.json @@ -0,0 +1 @@ +{"data":{"body":{"criteria":["`cosine([1, 2, 3], [1, 2])` throws an Error whose message starts with `cosine:`.","`cosine([1, 0], [1, 0, 5])` throws an Error whose message starts with `cosine:`.","`cosine([1, 0], [1, 0])` returns 1.","`cosine([0, 0], [0, 0])` returns 0."],"files":["diarize.mjs"],"problem":"The translator carries a byte-identical copy of the copilot diarizer. `cosine` in diarize.mjs returns NaN for `cosine([1, 2, 3], [1, 2])` and ignores the extra component in `cosine([1, 0], [1, 0, 5])`. Why it matters: The two apps must keep the same diarizer; fixing only one copy makes the copies drift apart.","proposal":"Throw an Error whose message starts with `cosine:` when the two arrays differ in length, exactly as the copilot task does. Keep the results for equal lengths.","title":"Make cosine reject vectors of different lengths in the translator diarizer"},"envelope":{"kind":"identity","signature":"0xf7d457fc5fc1de031c3141c5443eb84cc8e56cc5200f5eed9fdd969eefc14e233dac6f2e9cc7ef1db3d17eabac4dbab901a8b0aa1dbb9de2566023b2888034561b"},"message":{"author":"0x08809b42d05ae9526f4aa4c9670ce168aac68919","bodyHash":"0xeaed77b9cdf2fa16830a0139afb34c3ed8f46b51dc231524ae488bfb15b1e105","dedupHash":"0x13a69b2485f3578cb122848601c1011c7c5298a078597f6194a8a0bf5a0564d3","issuedAt":"1790870102","kind":1,"nonce":"16","origin":4,"project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xa1bb61fe185a9ec2921347a472a1d2f0ee4fb72bfb65d5be4fccd49e428ccf6a"}},"eventHash":"0x6f94599e2231b832938db7ca0da387918d7be5e79fee4793e9f10cecaeb1b4c1","gatewaySignature":"0xb9be8aa0faf66c8dfaba36fb34399c83b961153e4f92e8e5840bf476578f41892b21cd27b2aa9f2d9482f1b11590d1b378e75fae6f4e7fc3e84954975872125f1b","prev":"0xb06a0046a138d30328c3442c75dac20161f6ec60396f34c08e2ff95b5063174d","seq":29,"ts":1790870103,"type":"proposal","v":2}