event 415 proposal

This commit is contained in:
elffuss-bot
2026-10-02 08:01:32 +00:00
parent b9a843ce23
commit 5c32964419

1
events/0000000415.json Normal file
View File

@@ -0,0 +1 @@
{"data":{"body":{"criteria":["`cosine([1, 2, 3], [1, 2])` throws an Error whose message starts with `cosine:`, and `cosine([1, 0], [1, 0])` still returns 1.","`cosine([1, 0], [1, 0, 5])` throws an Error whose message starts with `cosine:`, and `cosine([0, 0], [0, 0])` still 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 fail on vectors of different lengths in the translator diarizer"},"envelope":{"kind":"identity","signature":"0x6b6dc25a3cd083de0225edda997e50c436fd1f4a28c2d174a8d154e743072be013743c288a35d71c5263e6149e6e71662204a804e8a1946a31c2890b4cedc2671c"},"message":{"author":"0x08809b42d05ae9526f4aa4c9670ce168aac68919","bodyHash":"0x4c4a6c466103ec697953960b5185bb512107c468966d534d7fad8cf1a00fd0ee","dedupHash":"0x8a537f8830df12e5d6afc0e5d5ced8341b91cbc4c0d2cfad3b9bbc6520791b8a","issuedAt":"1790928092","kind":1,"nonce":"14","origin":4,"project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xa1bb61fe185a9ec2921347a472a1d2f0ee4fb72bfb65d5be4fccd49e428ccf6a"}},"eventHash":"0x315dc9533215e1c42d96d9e84e0f3fd3da79ff307af21160bc7112ca42acee74","gatewaySignature":"0x29495dd1f487010dce127e84c59139acb2cb26b831a9f400f18380812f3796b76c38f903131bc40626dfce797e72333546b6e9525d0ddfb6d71e11cd595c6b061c","prev":"0xe588d23ffdd5ec0532169ba44f72cda6fcf706428085073b9466993e095ec86c","seq":415,"ts":1790928092,"type":"proposal","v":2}