mirror of
https://github.com/morluto/rea.git
synced 2026-10-28 10:25:42 +00:00
fix(inspector): preserve discovery uncertainty and correction paths
This commit is contained in:
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" &&
|
||||
|
||||
Reference in new issue
Block a user