fix(domain): preserve derived byte counts and uncertain identity

This commit is contained in:
morluto
2026-10-13 13:12:06 +08:00
parent 8b181716ac
commit 7a2cd1ea0a
4 changed files with 59 additions and 13 deletions
+2 -1
View File
@@ -204,7 +204,8 @@ const buildReconstructionSummary = (
({ reconstruction }) => reconstruction.kind === "semantic-pseudocode",
).length,
total_text_bytes: methods.reduce(
(total, { reconstruction }) => total + reconstruction.text_length,
(total, { reconstruction }) =>
total + Buffer.byteLength(reconstruction.text, "utf8"),
0,
),
});