2 lines
3.2 KiB
JSON
2 lines
3.2 KiB
JSON
{"data":{"report":{"assignmentHash":"0x67747e6eb9ccb7c58aa8a3e89be3843ae3fed88f46d130e9b1232d8377669612","claims":null,"comparison":{"base":{"passed":0,"total":6},"candidate":{"passed":6,"total":6},"detRuns":3,"existingTests":{"base":{"passed":0,"total":0},"candidate":{"passed":0,"total":0}},"harnessHash":"0x2d11dfafc8c5bb5f101c7b35c27dc1f6246f286bb3065d19787ff03fc37dd326","harnessVersion":"1.0.0","modelId":null,"n":5,"newTests":{"base":{"passed":0,"total":6},"candidate":{"passed":6,"total":6}},"results":[{"base":[{"outcome":"FAIL"},{"outcome":"FAIL"},{"outcome":"FAIL"}],"candidate":[{"outcome":"PASS"},{"outcome":"PASS"},{"outcome":"PASS"}],"llm":false,"new":true,"test":"tests/acceptance/2/criteria.test.js::criterion 1"},{"base":[{"outcome":"FAIL"},{"outcome":"FAIL"},{"outcome":"FAIL"}],"candidate":[{"outcome":"PASS"},{"outcome":"PASS"},{"outcome":"PASS"}],"llm":false,"new":true,"test":"tests/acceptance/2/criteria.test.js::criterion 2"}],"resultsHash":"0x3779671d076477a4965bb114ebb99983f910fd5ebce812b4cc43248a491554aa","weightsHash":null},"complexity":1,"contentHash":"0x3b075e6bc233bd19ba77ffc04e7f7708639effb5fbc966d7a2447cc6f8c89471","criteria":[{"index":1,"met":true,"quote":{"file":"diarize.mjs","lineEnd":28,"lineStart":28,"quote":"const cos = (a, b) => { if (a.length !== b.length) throw new Error('cosine: vectors must have the same length'); let dt = 0, na = 0, nb = 0; for (let i = 0; i < a.length; i++) { dt += a[i]*b[i]; na += a[i]*a[i]; nb += b[i]*b[i]; } return dt / (Math.sqrt(na)*Math.sqrt(nb) || 1); };"},"tests":["tests/acceptance/2/criteria.test.js::criterion 1"]},{"index":2,"met":true,"quote":{"file":"tests/acceptance/2/criteria.test.js","lineEnd":13,"lineStart":10,"quote":"test('criterion 2', () => {\n assert.throws(() => mod.cosine([1, 0], [1, 0, 5]), (err) => err instanceof Error && err.message.startsWith('cosine:'));\n assert.equal(mod.cosine([0, 0], [0, 0]), 0);\n});"},"tests":["tests/acceptance/2/criteria.test.js::criterion 2"]}],"decision":1,"findings":[{"file":"diarize.mjs","lens":"edges","lineEnd":28,"lineStart":28,"quote":"if (a.length !== b.length) throw new Error('cosine: vectors must have the same length');","severity":0,"text":"Internal callers (makeSpeakerBook.assign, diarize clustering/merge/nearest loops) all call cos() on embeddings produced by the same embedding model, so lengths are always consistent in practice; the new throw does not introduce a reachable runtime regression there."}],"flags":0,"grounds":[],"itemId":"0xe5e8732a047e9b487e856f47bfd4a96074d25264d0ab22897c8d7106fa6316da","profileHash":"0xf8fea73eaca3cfd0f26ae59781370a92f01b86375a8ca11058c8764cda43e60f","project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","quality":9,"reviewer":"0x2af7444068867ed1416d668539bd1168dfd0c36f","schema":"elffuss-t2t/verdict-report@2","severity":0},"verdictHash":"0xd00e63c523f512233db143b4d3c16b6329d331fe89aaad261628fbc3ae18198c"},"eventHash":"0xa5d542b4a7952df44036290a09473890d2b018022beb9b15c80724d31524fe15","gatewaySignature":"0xc3417f2a1e3e2dcc6a3df747099da24d76cc3ae24b0ea3affd935220bc13613632a8371e66575e624979dea737c4ea4eb987c696f9643f3d8703c81c3709ee171b","prev":"0x89a19edb70d62a29b08778433ddd4fa40941247b80d488aeb852e3c291d1a350","seq":741,"ts":1790933939,"type":"verdict_reveal","v":2}
|