fix(inspector): preserve discovery uncertainty and correction paths

This commit is contained in:
morluto committed 2026-10-24 02:41:17 +08:00
1 parent e0da397dee
commit 3602cc851f
20 files changed
+443 -52

No files matched your search

@@ -292,14 +292,18 @@ const assertV8RuntimeParameters = (
evidence.parameters,
[...path, "parameters"],
);
if (
parameters.target_id !== result.target.target_id ||
(parameters.runtime_kind !== undefined &&
parameters.runtime_kind !== result.target.runtime_kind)
)
if (parameters.target_id !== result.target.target_id)
throw invalidInput(
[...path, "parameters", "target_id"],
"Runtime Evidence target or declared role disagrees with its result",
"Runtime Evidence target disagrees with its result",
);
if (
parameters.runtime_kind !== undefined &&
parameters.runtime_kind !== result.target.runtime_kind
)
throw invalidInput(
[...path, "parameters", "runtime_kind"],
"Runtime Evidence declared role disagrees with its result",
);
if (
result.target.location.kind === "builtin" &&