fix(javascript): isolate source analysis and retain bounded partial evidence (#1651)
* refactor(javascript): validate transferable file projections * test(javascript): consume decoded module and static facts * fix(javascript): isolate source analysis and retain bounded partial evidence * test(javascript): verify cleanup retention and repeated source paths
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { jsonValueSchema, type JsonValue } from "./jsonValue.js";
|
||||
import { isImmutableJsonSnapshot } from "./immutableJson.js";
|
||||
|
||||
import {
|
||||
analysisErrorCategory,
|
||||
@@ -71,7 +72,9 @@ export const projectAnalysisError = (
|
||||
...(error.partialObservation === undefined
|
||||
? {}
|
||||
: {
|
||||
partial_observation: jsonValueSchema.parse(error.partialObservation),
|
||||
partial_observation: isImmutableJsonSnapshot(error.partialObservation)
|
||||
? error.partialObservation
|
||||
: jsonValueSchema.parse(error.partialObservation),
|
||||
}),
|
||||
};
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user