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:
Ysopwnable
2026-10-09 12:09:24 +00:00
committed by GitHub
parent 4578647c59
commit c8544b1574
11 changed files with 402 additions and 29 deletions
+13
View File
@@ -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", [