mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
fix(process): preserve partial evidence and verify detached cleanup (#1011)
* test(ci): allow transport delivery in source identity regression * fix(process): preserve partial evidence and verify detached cleanup * fix(process): scope Linux token sweeps by stable process identity * fix(process): retain environment permission failure codes * fix(process): wait for signaled processes before verifying cleanup * fix(process): verify sampled detached groups during cleanup * fix(electron): preserve prelaunch identities through cleanup * fix(process): retry growing Darwin process table snapshots * fix(process): retain compatibility with saved v3 capture evidence * fix(process): migrate saved v3 captures during reconstruction verification * fix(process): preserve cancellation during Darwin helper compilation * fix(process): propagate cancellation through ownership baselines * perf(javascript): cache canonical export comparison sort keys * fix(process): cancel provider ownership preparation before spawn * fix(process): isolate native compiler waiter cancellation
This commit is contained in:
@@ -7,7 +7,7 @@ import type { BinarySessionPort } from "../application/binary/BinarySession.js";
|
||||
import type { PromptCompletionKind } from "../contracts/promptContracts.js";
|
||||
import { artifactInventoryResultSchema } from "../domain/artifactGraph.js";
|
||||
import { artifactInspectionResultSchema } from "../domain/artifactInspection.js";
|
||||
import { processCaptureSchema } from "../domain/process/processCapture.js";
|
||||
import { parseProcessCapture } from "../domain/process/processCapture.js";
|
||||
|
||||
const documentListSchema = z.array(z.string().min(1));
|
||||
const providerStatusSchema = z.object({
|
||||
@@ -171,8 +171,13 @@ const evidenceValues = (
|
||||
|
||||
const isProcessCaptureEvidence = (evidence: LedgerEvidence): boolean => {
|
||||
if (evidence.operation !== "capture_process_scenario") return false;
|
||||
const capture = processCaptureSchema.safeParse(evidence.normalized_result);
|
||||
return capture.success;
|
||||
try {
|
||||
parseProcessCapture(evidence.normalized_result);
|
||||
return true;
|
||||
} catch (cause: unknown) {
|
||||
if (cause instanceof TypeError || cause instanceof z.ZodError) return false;
|
||||
throw cause;
|
||||
}
|
||||
};
|
||||
|
||||
const unknownCandidates = (
|
||||
|
||||
Reference in New Issue
Block a user