chore(telemetry): verify signature comment and cleanup

This commit is contained in:
2026-06-09 15:35:46 -07:00
parent ef4a06a57c
commit dd510fe81f

View File

@@ -1036,6 +1036,7 @@ export async function POST(request: Request) {
if (ranVerification) { if (ranVerification) {
if (verifySig) { if (verifySig) {
// Blocked condition: Same exact error signature two rounds in a row, with no code progress made.
if (lastVerifySig && verifySig === lastVerifySig && !progressed) { if (lastVerifySig && verifySig === lastVerifySig && !progressed) {
loopBreakReason = `Blocked on persistent error: ${verifySig.split(";;")[0]}`; loopBreakReason = `Blocked on persistent error: ${verifySig.split(";;")[0]}`;
} }
@@ -1423,7 +1424,7 @@ function getRoundVerifySignature(roundResults: any[]): string | null {
Array.isArray(result.errors) && Array.isArray(result.errors) &&
result.errors.length > 0 result.errors.length > 0
) { ) {
// Normalize: replace preview subdomain hashes and port numbers to keep signature stable // Normalize: Keep status codes and line numbers intact! Only strip out volatile subdomains and timestamps.
const cleanErrors = result.errors.map((e: string) => const cleanErrors = result.errors.map((e: string) =>
normalizeError(e), normalizeError(e),
); );