refactor(process): split trace comparison helpers
This commit is contained in:
+168
-44
@@ -3,6 +3,12 @@ import { z } from "zod";
|
|||||||
import type { ProcessCapture } from "./processCapture.js";
|
import type { ProcessCapture } from "./processCapture.js";
|
||||||
import { validateProcessCapture } from "./processCapture.js";
|
import { validateProcessCapture } from "./processCapture.js";
|
||||||
import { jsonValueSchema } from "./jsonValue.js";
|
import { jsonValueSchema } from "./jsonValue.js";
|
||||||
|
import {
|
||||||
|
compareProcessTraces,
|
||||||
|
processTraceComparisonResultSchema,
|
||||||
|
type ProcessTraceSource,
|
||||||
|
type ProcessTraceSpecification,
|
||||||
|
} from "./processTraceComparison.js";
|
||||||
|
|
||||||
/** Comparison classification that never equates incomplete evidence. */
|
/** Comparison classification that never equates incomplete evidence. */
|
||||||
export const comparisonStatusSchema = z.enum([
|
export const comparisonStatusSchema = z.enum([
|
||||||
@@ -73,6 +79,7 @@ export const processCaptureComparisonSchema = z
|
|||||||
right: jsonValueSchema.nullable(),
|
right: jsonValueSchema.nullable(),
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
|
trace: processTraceComparisonResultSchema.optional(),
|
||||||
limitations: z.array(z.string()),
|
limitations: z.array(z.string()),
|
||||||
})
|
})
|
||||||
.superRefine((comparison, context) => {
|
.superRefine((comparison, context) => {
|
||||||
@@ -269,6 +276,115 @@ const truncatedComparison = (): ProcessCaptureComparison => ({
|
|||||||
limitations: ["At least one capture is truncated."],
|
limitations: ["At least one capture is truncated."],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const dimensionsForTraceSources = (
|
||||||
|
sources: ReadonlySet<ProcessTraceSource>,
|
||||||
|
): ReadonlySet<(typeof PROCESS_COMPARISON_DIMENSIONS)[number]> => {
|
||||||
|
const dimensions = new Set<(typeof PROCESS_COMPARISON_DIMENSIONS)[number]>();
|
||||||
|
for (const source of sources) {
|
||||||
|
if (source.startsWith("terminal_")) dimensions.add("terminal");
|
||||||
|
else if (source === "interaction") dimensions.add("interaction");
|
||||||
|
else if (source === "lifecycle") dimensions.add("exit");
|
||||||
|
else if (source === "filesystem") dimensions.add("filesystem");
|
||||||
|
else if (
|
||||||
|
source === "http" ||
|
||||||
|
source === "websocket" ||
|
||||||
|
source === "replay_transition"
|
||||||
|
)
|
||||||
|
dimensions.add("protocol");
|
||||||
|
else if (source === "process") dimensions.add("process");
|
||||||
|
else if (source === "shim") dimensions.add("shim");
|
||||||
|
}
|
||||||
|
return dimensions;
|
||||||
|
};
|
||||||
|
|
||||||
|
const traceCoversObservedDimension = (
|
||||||
|
dimension: (typeof PROCESS_COMPARISON_DIMENSIONS)[number],
|
||||||
|
sources: ReadonlySet<ProcessTraceSource>,
|
||||||
|
left: ProcessCapture,
|
||||||
|
right: ProcessCapture,
|
||||||
|
): boolean => {
|
||||||
|
const any = <Value>(
|
||||||
|
leftValues: readonly Value[],
|
||||||
|
rightValues: readonly Value[],
|
||||||
|
): boolean => leftValues.length > 0 || rightValues.length > 0;
|
||||||
|
switch (dimension) {
|
||||||
|
case "terminal":
|
||||||
|
return (
|
||||||
|
(!any(left.frames, right.frames) || sources.has("terminal_raw")) &&
|
||||||
|
(!any(left.rendered_frames, right.rendered_frames) ||
|
||||||
|
sources.has("terminal_rendered"))
|
||||||
|
);
|
||||||
|
case "interaction":
|
||||||
|
return sources.has("interaction");
|
||||||
|
case "exit":
|
||||||
|
return sources.has("lifecycle");
|
||||||
|
case "filesystem":
|
||||||
|
return false;
|
||||||
|
case "protocol":
|
||||||
|
return (
|
||||||
|
(![...left.protocol_events, ...right.protocol_events].some(
|
||||||
|
({ protocol }) => protocol === "http",
|
||||||
|
) ||
|
||||||
|
sources.has("http")) &&
|
||||||
|
(![...left.protocol_events, ...right.protocol_events].some(
|
||||||
|
({ protocol }) => protocol === "websocket",
|
||||||
|
) ||
|
||||||
|
sources.has("websocket")) &&
|
||||||
|
(!any(left.replay_transitions, right.replay_transitions) ||
|
||||||
|
sources.has("replay_transition"))
|
||||||
|
);
|
||||||
|
case "process":
|
||||||
|
return sources.has("process");
|
||||||
|
case "shim":
|
||||||
|
return sources.has("shim");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const applyTraceVerdict = (
|
||||||
|
dimensions: ComparisonDimensions,
|
||||||
|
specification: ProcessTraceSpecification,
|
||||||
|
trace: ReturnType<typeof compareProcessTraces>,
|
||||||
|
captures: readonly [left: ProcessCapture, right: ProcessCapture],
|
||||||
|
): ComparisonDimensions => {
|
||||||
|
const traceStatus: ComparisonStatus =
|
||||||
|
trace.verdict === "equivalent"
|
||||||
|
? "unchanged"
|
||||||
|
: trace.verdict === "different"
|
||||||
|
? "changed"
|
||||||
|
: "unknown";
|
||||||
|
const sources = new Set(specification.events.map(({ source }) => source));
|
||||||
|
const covered = dimensionsForTraceSources(sources);
|
||||||
|
const statusFor = (
|
||||||
|
dimension: (typeof PROCESS_COMPARISON_DIMENSIONS)[number],
|
||||||
|
): ComparisonStatus => {
|
||||||
|
const exact = dimensions[dimension];
|
||||||
|
if (!covered.has(dimension)) return exact;
|
||||||
|
if (trace.verdict === "different") return "changed";
|
||||||
|
if (
|
||||||
|
trace.verdict === "unknown" &&
|
||||||
|
["changed", "added", "removed"].includes(exact)
|
||||||
|
)
|
||||||
|
return exact;
|
||||||
|
return traceCoversObservedDimension(
|
||||||
|
dimension,
|
||||||
|
sources,
|
||||||
|
captures[0],
|
||||||
|
captures[1],
|
||||||
|
)
|
||||||
|
? traceStatus
|
||||||
|
: exact;
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
terminal: statusFor("terminal"),
|
||||||
|
interaction: statusFor("interaction"),
|
||||||
|
exit: statusFor("exit"),
|
||||||
|
filesystem: statusFor("filesystem"),
|
||||||
|
protocol: statusFor("protocol"),
|
||||||
|
process: statusFor("process"),
|
||||||
|
shim: statusFor("shim"),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
type ComparisonDimensions = Pick<
|
type ComparisonDimensions = Pick<
|
||||||
ProcessCaptureComparison,
|
ProcessCaptureComparison,
|
||||||
| "terminal"
|
| "terminal"
|
||||||
@@ -326,7 +442,6 @@ const compareDimensions = (
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Compare bounded captures without equating missing or incompatible evidence. */
|
|
||||||
/**
|
/**
|
||||||
* Compare two Process Capture v4 observations without treating absence as proof.
|
* Compare two Process Capture v4 observations without treating absence as proof.
|
||||||
*
|
*
|
||||||
@@ -339,64 +454,73 @@ export const compareProcessCaptures = (
|
|||||||
options: {
|
options: {
|
||||||
readonly maxCaptureAgeMs?: number;
|
readonly maxCaptureAgeMs?: number;
|
||||||
readonly now?: () => number;
|
readonly now?: () => number;
|
||||||
|
readonly traceSpecification?: ProcessTraceSpecification;
|
||||||
} = {},
|
} = {},
|
||||||
): ProcessCaptureComparison => {
|
): ProcessCaptureComparison => {
|
||||||
assertComparable(left, right, options);
|
assertComparable(left, right, options);
|
||||||
if (left.truncated || right.truncated) return truncatedComparison();
|
if (left.truncated || right.truncated) {
|
||||||
|
const truncated = truncatedComparison();
|
||||||
|
return options.traceSpecification === undefined
|
||||||
|
? truncated
|
||||||
|
: {
|
||||||
|
...truncated,
|
||||||
|
trace: compareProcessTraces(left, right, options.traceSpecification),
|
||||||
|
};
|
||||||
|
}
|
||||||
const sameNormalization =
|
const sameNormalization =
|
||||||
JSON.stringify(left.normalization) === JSON.stringify(right.normalization);
|
JSON.stringify(left.normalization) === JSON.stringify(right.normalization);
|
||||||
const dimensions = compareDimensions(left, right, sameNormalization);
|
const exactDimensions = compareDimensions(left, right, sameNormalization);
|
||||||
const observedFirstDivergence = chooseFirstDivergence([
|
const trace =
|
||||||
|
options.traceSpecification === undefined
|
||||||
|
? undefined
|
||||||
|
: compareProcessTraces(left, right, options.traceSpecification);
|
||||||
|
const dimensions =
|
||||||
|
trace === undefined || options.traceSpecification === undefined
|
||||||
|
? exactDimensions
|
||||||
|
: applyTraceVerdict(exactDimensions, options.traceSpecification, trace, [
|
||||||
|
left,
|
||||||
|
right,
|
||||||
|
]);
|
||||||
|
const divergenceCandidates = PROCESS_COMPARISON_DIMENSIONS.map((dimension) =>
|
||||||
firstCollectionDivergence(
|
firstCollectionDivergence(
|
||||||
"terminal",
|
dimension,
|
||||||
terminalObservations(left),
|
processDimensionObservations(left, dimension),
|
||||||
terminalObservations(right),
|
processDimensionObservations(right, dimension),
|
||||||
),
|
),
|
||||||
firstCollectionDivergence(
|
);
|
||||||
"interaction",
|
const observedFirstDivergence = chooseFirstDivergence(
|
||||||
left.interaction_events,
|
divergenceCandidates.map((candidate) =>
|
||||||
right.interaction_events,
|
candidate !== null &&
|
||||||
|
trace?.verdict === "equivalent" &&
|
||||||
|
dimensions[candidate.dimension] === "unchanged"
|
||||||
|
? null
|
||||||
|
: candidate,
|
||||||
),
|
),
|
||||||
firstCollectionDivergence(
|
);
|
||||||
"exit",
|
|
||||||
[{ ...left.exit, settlement: left.settlement }],
|
|
||||||
[{ ...right.exit, settlement: right.settlement }],
|
|
||||||
),
|
|
||||||
firstCollectionDivergence(
|
|
||||||
"filesystem",
|
|
||||||
filesystemObservations(left),
|
|
||||||
filesystemObservations(right),
|
|
||||||
),
|
|
||||||
firstCollectionDivergence(
|
|
||||||
"protocol",
|
|
||||||
[...left.protocol_events, ...left.replay_transitions],
|
|
||||||
[...right.protocol_events, ...right.replay_transitions],
|
|
||||||
),
|
|
||||||
firstCollectionDivergence(
|
|
||||||
"process",
|
|
||||||
left.process_samples,
|
|
||||||
right.process_samples,
|
|
||||||
),
|
|
||||||
firstCollectionDivergence("shim", left.shim_events, right.shim_events),
|
|
||||||
]);
|
|
||||||
const firstDivergence =
|
const firstDivergence =
|
||||||
observedFirstDivergence.status === "found"
|
trace?.verdict === "equivalent" &&
|
||||||
? observedFirstDivergence
|
deriveProcessComparisonStatus(
|
||||||
: !sameNormalization ||
|
PROCESS_COMPARISON_DIMENSIONS.map((dimension) => dimensions[dimension]),
|
||||||
left.residual_unknowns.length > 0 ||
|
) === "unchanged"
|
||||||
right.residual_unknowns.length > 0
|
? ({ status: "none" } as const)
|
||||||
? ({
|
: observedFirstDivergence.status === "found"
|
||||||
status: "unknown",
|
? observedFirstDivergence
|
||||||
reason:
|
: !sameNormalization ||
|
||||||
"Residual unknowns prevent proving that no divergence occurred.",
|
left.residual_unknowns.length > 0 ||
|
||||||
} as const)
|
right.residual_unknowns.length > 0
|
||||||
: observedFirstDivergence;
|
? ({
|
||||||
|
status: "unknown",
|
||||||
|
reason:
|
||||||
|
"Residual unknowns prevent proving that no divergence occurred.",
|
||||||
|
} as const)
|
||||||
|
: observedFirstDivergence;
|
||||||
return {
|
return {
|
||||||
status: deriveProcessComparisonStatus(
|
status: deriveProcessComparisonStatus(
|
||||||
PROCESS_COMPARISON_DIMENSIONS.map((dimension) => dimensions[dimension]),
|
PROCESS_COMPARISON_DIMENSIONS.map((dimension) => dimensions[dimension]),
|
||||||
),
|
),
|
||||||
...dimensions,
|
...dimensions,
|
||||||
first_divergence: firstDivergence,
|
first_divergence: firstDivergence,
|
||||||
|
...(trace === undefined ? {} : { trace }),
|
||||||
limitations: [
|
limitations: [
|
||||||
...left.limitations,
|
...left.limitations,
|
||||||
...right.limitations,
|
...right.limitations,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { jsonValueSchema, type JsonValue } from "./jsonValue.js";
|
|||||||
import type { ProcessCapture } from "./processCapture.js";
|
import type { ProcessCapture } from "./processCapture.js";
|
||||||
import {
|
import {
|
||||||
canonicalTraceJson,
|
canonicalTraceJson,
|
||||||
|
comparableTracePayload,
|
||||||
processTraceCardinalityBounds,
|
processTraceCardinalityBounds,
|
||||||
type ProcessTraceSource,
|
type ProcessTraceSource,
|
||||||
type ProcessTraceSpecification,
|
type ProcessTraceSpecification,
|
||||||
@@ -260,7 +261,12 @@ const matchRecords = (
|
|||||||
const matches = specification.events.filter(
|
const matches = specification.events.filter(
|
||||||
(event) =>
|
(event) =>
|
||||||
event.source === record.source &&
|
event.source === record.source &&
|
||||||
canonicalTraceJson(event.exact) === canonicalTraceJson(record.payload),
|
canonicalTraceJson(
|
||||||
|
comparableTracePayload(event.exact, event.ignore_fields),
|
||||||
|
) ===
|
||||||
|
canonicalTraceJson(
|
||||||
|
comparableTracePayload(record.payload, event.ignore_fields),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (matches.length !== 1)
|
if (matches.length !== 1)
|
||||||
return failure({
|
return failure({
|
||||||
@@ -303,68 +309,131 @@ const cardinalityFailure = (
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const evaluatePartialOrder = (
|
type PartialOrderLanguage = Extract<
|
||||||
|
ProcessTraceSpecification["language"],
|
||||||
|
{ readonly kind: "partial_order" }
|
||||||
|
>;
|
||||||
|
|
||||||
|
const evaluateOrderingConstraints = (
|
||||||
trace: MatchedTrace,
|
trace: MatchedTrace,
|
||||||
specification: ProcessTraceSpecification,
|
language: PartialOrderLanguage,
|
||||||
): EvaluatedSide => {
|
): { readonly failure: EvaluatedSide | null; readonly satisfied: string[] } => {
|
||||||
if (specification.language.kind !== "partial_order")
|
|
||||||
throw new TypeError("Expected a partial-order trace specification");
|
|
||||||
const satisfied: string[] = [];
|
const satisfied: string[] = [];
|
||||||
for (const edge of specification.language.happens_before) {
|
for (const edge of language.happens_before) {
|
||||||
const before = trace.locationsById.get(edge.before) ?? [];
|
const before = trace.locationsById.get(edge.before) ?? [];
|
||||||
const after = trace.locationsById.get(edge.after) ?? [];
|
const after = trace.locationsById.get(edge.after) ?? [];
|
||||||
const lastBefore = before.at(-1);
|
const lastBefore = before.at(-1);
|
||||||
const firstAfter = after[0];
|
const firstAfter = after[0];
|
||||||
|
if (lastBefore === undefined && firstAfter !== undefined)
|
||||||
|
return {
|
||||||
|
failure: failure({
|
||||||
|
kind: "edge",
|
||||||
|
message: `${edge.before} is required when ${edge.after} occurs.`,
|
||||||
|
eventIds: [edge.before, edge.after],
|
||||||
|
locations: [firstAfter],
|
||||||
|
rawTrace: trace.rawTrace,
|
||||||
|
}),
|
||||||
|
satisfied,
|
||||||
|
};
|
||||||
if (
|
if (
|
||||||
lastBefore !== undefined &&
|
lastBefore !== undefined &&
|
||||||
firstAfter !== undefined &&
|
firstAfter !== undefined &&
|
||||||
lastBefore.capture_order >= firstAfter.capture_order
|
lastBefore.capture_order >= firstAfter.capture_order
|
||||||
)
|
)
|
||||||
return failure({
|
return {
|
||||||
kind: "edge",
|
failure: failure({
|
||||||
message: `${edge.before} must happen before ${edge.after}.`,
|
kind: "edge",
|
||||||
eventIds: [edge.before, edge.after],
|
message: `${edge.before} must happen before ${edge.after}.`,
|
||||||
locations: [lastBefore, firstAfter],
|
eventIds: [edge.before, edge.after],
|
||||||
rawTrace: trace.rawTrace,
|
locations: [lastBefore, firstAfter],
|
||||||
});
|
rawTrace: trace.rawTrace,
|
||||||
|
}),
|
||||||
|
satisfied,
|
||||||
|
};
|
||||||
satisfied.push(`happens_before:${edge.before}:${edge.after}`);
|
satisfied.push(`happens_before:${edge.before}:${edge.after}`);
|
||||||
}
|
}
|
||||||
|
for (const constraint of language.not_before) {
|
||||||
|
const events = trace.locationsById.get(constraint.event) ?? [];
|
||||||
|
const anchors = trace.locationsById.get(constraint.anchor) ?? [];
|
||||||
|
const firstEvent = events[0];
|
||||||
|
const firstAnchor = anchors[0];
|
||||||
|
if (firstEvent !== undefined && firstAnchor === undefined)
|
||||||
|
return {
|
||||||
|
failure: failure({
|
||||||
|
kind: "edge",
|
||||||
|
message: `${constraint.anchor} is required when ${constraint.event} occurs.`,
|
||||||
|
eventIds: [constraint.event, constraint.anchor],
|
||||||
|
locations: [firstEvent],
|
||||||
|
rawTrace: trace.rawTrace,
|
||||||
|
}),
|
||||||
|
satisfied,
|
||||||
|
};
|
||||||
|
if (
|
||||||
|
firstEvent !== undefined &&
|
||||||
|
firstAnchor !== undefined &&
|
||||||
|
firstEvent.capture_order < firstAnchor.capture_order
|
||||||
|
)
|
||||||
|
return {
|
||||||
|
failure: failure({
|
||||||
|
kind: "edge",
|
||||||
|
message: `${constraint.event} must not occur before ${constraint.anchor}.`,
|
||||||
|
eventIds: [constraint.event, constraint.anchor],
|
||||||
|
locations: [firstEvent, firstAnchor],
|
||||||
|
rawTrace: trace.rawTrace,
|
||||||
|
}),
|
||||||
|
satisfied,
|
||||||
|
};
|
||||||
|
satisfied.push(`not_before:${constraint.event}:${constraint.anchor}`);
|
||||||
|
}
|
||||||
|
return { failure: null, satisfied };
|
||||||
|
};
|
||||||
|
|
||||||
|
const boundaryFailure = (
|
||||||
|
trace: MatchedTrace,
|
||||||
|
kind: "prefix" | "suffix",
|
||||||
|
expected: readonly string[],
|
||||||
|
): EvaluatedSide | null => {
|
||||||
const ids = trace.rawTrace.map(({ event_id }) => event_id);
|
const ids = trace.rawTrace.map(({ event_id }) => event_id);
|
||||||
const prefix = specification.language.prefix;
|
const actual =
|
||||||
if (
|
kind === "prefix"
|
||||||
canonicalTraceJson(ids.slice(0, prefix.length)) !==
|
? ids.slice(0, expected.length)
|
||||||
canonicalTraceJson(prefix)
|
: expected.length === 0
|
||||||
)
|
? []
|
||||||
return failure({
|
: ids.slice(-expected.length);
|
||||||
kind: "prefix",
|
if (canonicalTraceJson(actual) === canonicalTraceJson(expected)) return null;
|
||||||
message: "Observed trace does not satisfy the declared prefix.",
|
const locations =
|
||||||
eventIds: prefix,
|
kind === "prefix"
|
||||||
locations: trace.rawTrace
|
? trace.rawTrace.slice(0, expected.length)
|
||||||
.slice(0, prefix.length)
|
: trace.rawTrace.slice(-expected.length);
|
||||||
.map(({ location }) => location),
|
return failure({
|
||||||
rawTrace: trace.rawTrace,
|
kind,
|
||||||
});
|
message: `Observed trace does not satisfy the declared ${kind}.`,
|
||||||
const suffix = specification.language.suffix;
|
eventIds: expected,
|
||||||
if (
|
locations: locations.map(({ location }) => location),
|
||||||
canonicalTraceJson(suffix.length === 0 ? [] : ids.slice(-suffix.length)) !==
|
rawTrace: trace.rawTrace,
|
||||||
canonicalTraceJson(suffix)
|
});
|
||||||
)
|
};
|
||||||
return failure({
|
|
||||||
kind: "suffix",
|
const evaluatePartialOrder = (
|
||||||
message: "Observed trace does not satisfy the declared suffix.",
|
trace: MatchedTrace,
|
||||||
eventIds: suffix,
|
language: PartialOrderLanguage,
|
||||||
locations: trace.rawTrace
|
): EvaluatedSide => {
|
||||||
.slice(-suffix.length)
|
const ordering = evaluateOrderingConstraints(trace, language);
|
||||||
.map(({ location }) => location),
|
if (ordering.failure !== null) return ordering.failure;
|
||||||
rawTrace: trace.rawTrace,
|
const prefixFailure = boundaryFailure(trace, "prefix", language.prefix);
|
||||||
});
|
if (prefixFailure !== null) return prefixFailure;
|
||||||
|
const suffixFailure = boundaryFailure(trace, "suffix", language.suffix);
|
||||||
|
if (suffixFailure !== null) return suffixFailure;
|
||||||
|
const satisfied = ordering.satisfied;
|
||||||
satisfied.push(
|
satisfied.push(
|
||||||
...specification.language.unordered_groups.map(
|
...language.unordered_groups.map(
|
||||||
({ events }) => `unordered:${events.join(":")}`,
|
({ events }) => `unordered:${events.join(":")}`,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (prefix.length > 0) satisfied.push(`prefix:${prefix.join(":")}`);
|
if (language.prefix.length > 0)
|
||||||
if (suffix.length > 0) satisfied.push(`suffix:${suffix.join(":")}`);
|
satisfied.push(`prefix:${language.prefix.join(":")}`);
|
||||||
|
if (language.suffix.length > 0)
|
||||||
|
satisfied.push(`suffix:${language.suffix.join(":")}`);
|
||||||
return {
|
return {
|
||||||
result: {
|
result: {
|
||||||
status: "pass",
|
status: "pass",
|
||||||
@@ -383,7 +452,7 @@ const evaluateMatchedTrace = (
|
|||||||
const invalidCardinality = cardinalityFailure(trace, specification);
|
const invalidCardinality = cardinalityFailure(trace, specification);
|
||||||
if (invalidCardinality !== null) return invalidCardinality;
|
if (invalidCardinality !== null) return invalidCardinality;
|
||||||
if (specification.language.kind === "partial_order")
|
if (specification.language.kind === "partial_order")
|
||||||
return evaluatePartialOrder(trace, specification);
|
return evaluatePartialOrder(trace, specification.language);
|
||||||
const ids = trace.rawTrace.map(({ event_id }) => event_id);
|
const ids = trace.rawTrace.map(({ event_id }) => event_id);
|
||||||
const variant = evaluateFiniteTrace(ids, specification);
|
const variant = evaluateFiniteTrace(ids, specification);
|
||||||
return variant === null
|
return variant === null
|
||||||
|
|||||||
Reference in New Issue
Block a user