fix(javascript): preserve uncertainty after references escape to calls (#1292)
* fix(javascript): preserve uncertainty after references escape to calls * fix(javascript): track iterator root escapes and preserve static captures * fix(javascript): scope comparison unknowns to their evidence * fix(javascript): track parameter origins at function body entry --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
@@ -41,7 +41,9 @@ export const registerCompareJavaScriptExportShapesTool = (
|
||||
const comparison = javaScriptExportShapeComparisonResultSchema.parse(
|
||||
result.value.normalized_result,
|
||||
);
|
||||
const unknown = comparison.summary.unknown > 0;
|
||||
const unknown =
|
||||
comparison.summary.unknown > 0 ||
|
||||
comparison.coverage.status !== "complete-within-inputs";
|
||||
return recordResult(
|
||||
{ ...options, delivery: server.delivery },
|
||||
contract,
|
||||
|
||||
@@ -31,12 +31,14 @@ const unknownRegistration = (
|
||||
| "javascript-export-shape"
|
||||
| "source-to-bundle-comparison",
|
||||
) => ({
|
||||
question:
|
||||
// Scope unknown identity to the comparison while keeping exact replays stable.
|
||||
question: `${
|
||||
kind === "application-version-comparison"
|
||||
? "Which application entities remain unmatched or ambiguous across these versions?"
|
||||
: kind === "source-to-bundle-comparison"
|
||||
? "Which historical source files remain unmatched or ambiguously mapped to the shipped bundle?"
|
||||
: "Which selected JavaScript export return shapes remain dynamic, incomplete, or ambiguously paired?",
|
||||
: "Which selected JavaScript export return shapes remain dynamic, incomplete, or ambiguously paired?"
|
||||
} (comparison ${evidence.evidence_id})`,
|
||||
severity: "medium" as const,
|
||||
domain: kind,
|
||||
supporting_evidence_ids: [evidence.evidence_id],
|
||||
|
||||
Reference in New Issue
Block a user