refactor!: simplify runtime tools and remove replay engines (#572)
* fix(hopper): report unavailable procedure body coverage * refactor!: simplify runtime tools and remove replay engines Keep direct inspection, capture, and comparison tools. Bind handlers to named contracts and let agents compose experiments with commands and local fixture servers. BREAKING CHANGE: Remove controlled replay, Node characterization, finite replay-machine, managed runtime planning, and redundant string-tracing tools. Retire process replay, shims, reactive scenarios, custom checkpoints, and active browser replay and origin-scope inputs.
This commit is contained in:
@@ -11,10 +11,6 @@ export const processObservationSourceSchema = z.enum([
|
||||
"lifecycle",
|
||||
"process",
|
||||
"filesystem",
|
||||
"http",
|
||||
"websocket",
|
||||
"shim",
|
||||
"replay_transition",
|
||||
]);
|
||||
export type ProcessObservationSource = z.infer<
|
||||
typeof processObservationSourceSchema
|
||||
@@ -29,9 +25,6 @@ export const processObservationLocationSchema = z.strictObject({
|
||||
"lifecycle",
|
||||
"process_samples",
|
||||
"filesystem_checkpoints",
|
||||
"shim_events",
|
||||
"protocol_events",
|
||||
"replay_transitions",
|
||||
]),
|
||||
index: z.number().int().nonnegative(),
|
||||
capture_order: z.number().int().nonnegative(),
|
||||
@@ -40,7 +33,7 @@ export type ProcessObservationLocation = z.infer<
|
||||
typeof processObservationLocationSchema
|
||||
>;
|
||||
|
||||
/** Provider-neutral event offered to a reactive scenario or offline assertion. */
|
||||
/** Provider-neutral event projected into an offline trace assertion. */
|
||||
export interface ProcessObservation {
|
||||
readonly event_id: string;
|
||||
readonly source: ProcessObservationSource;
|
||||
@@ -124,14 +117,6 @@ export const processObservationSubject = (
|
||||
typeof value.name === "string"
|
||||
)
|
||||
return `checkpoint:${value.name}`;
|
||||
if (
|
||||
source === "shim" &&
|
||||
"command" in value &&
|
||||
typeof value.command === "string"
|
||||
)
|
||||
return "route_index" in value && typeof value.route_index === "number"
|
||||
? `shim:${value.command}:route:${String(value.route_index)}`
|
||||
: `shim:${value.command}:unmatched`;
|
||||
return null;
|
||||
};
|
||||
|
||||
@@ -178,22 +163,6 @@ const projectedRecord = (
|
||||
source: "filesystem" as const,
|
||||
value: capture.filesystem_checkpoints[location.index],
|
||||
};
|
||||
case "shim_events":
|
||||
return {
|
||||
source: "shim" as const,
|
||||
value: capture.shim_events[location.index],
|
||||
};
|
||||
case "protocol_events": {
|
||||
const event = capture.protocol_events[location.index];
|
||||
return event === undefined
|
||||
? null
|
||||
: { source: event.protocol, value: event };
|
||||
}
|
||||
case "replay_transitions":
|
||||
return {
|
||||
source: "replay_transition" as const,
|
||||
value: capture.replay_transitions[location.index],
|
||||
};
|
||||
}
|
||||
})();
|
||||
if (projected === null || projected.value === undefined) return null;
|
||||
|
||||
Reference in New Issue
Block a user