fix(process): preserve unknown filesystem absence in partial captures
Separate exhausted path enumeration from hash coverage and preserve known effects outside incomplete roots or unfollowed symlink subtrees. Return explicit unknown effects through capture Evidence and comparison workflows. Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This commit is contained in:
@@ -85,6 +85,12 @@ type FileEffect = FileEffectIdentity &
|
||||
readonly before: FileState;
|
||||
readonly after: FileState;
|
||||
}
|
||||
| {
|
||||
readonly status: "unknown";
|
||||
readonly before: FileState | null;
|
||||
readonly after: FileState | null;
|
||||
readonly reason: string;
|
||||
}
|
||||
);
|
||||
|
||||
/** A sampled owned-process observation; sampling cannot prove syscall completeness. */
|
||||
@@ -348,6 +354,13 @@ const fileEffectSchema = z.discriminatedUnion("status", [
|
||||
before: fileStateSchema,
|
||||
after: fileStateSchema,
|
||||
}),
|
||||
z.object({
|
||||
path: z.string(),
|
||||
status: z.literal("unknown"),
|
||||
before: fileStateSchema.nullable(),
|
||||
after: fileStateSchema.nullable(),
|
||||
reason: z.string().min(1),
|
||||
}),
|
||||
]);
|
||||
/** Exact serialized shape of a process capture. */
|
||||
const processSettlementSchema = z.discriminatedUnion("state", [
|
||||
|
||||
Reference in New Issue
Block a user