Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
test(process): distinguish native startup from producer verification
morluto9a70fb482c97
diff --git a/docs/testing.md b/docs/testing.mdindex afca62054..96fb27a7b 100644--- a/docs/testing.md+++ b/docs/testing.md@@ -174,6 +174,12 @@ case. Real capture tests preserve actual descendant and cleanup checks.The existing Apple job also exercises the relocated filesystem snapshot identity,cancellation and descriptor cleanup regressions on macOS.+Prepare the native inspector before cases that measure producer output or exit+behavior; keep startup deadlines and cancellation in distinct cases. Run real+process-capture verification separately from package or build checks. On macOS,+new npm processes can become token-unreadable after changing their display+title and prevent verified cleanup during a capture's ownership sweep.+MCP SDK transport tests with recording providers remain integration tests.They are useful for schema drift and failure projection but do not prove thatHopper, Ghidra or another substituted engine works. `verify:package` provesdiff --git a/tests/boundary/process/ownedCommand.test.ts b/tests/boundary/process/ownedCommand.test.tsindex c40e5fd57..e64726331 100644--- a/tests/boundary/process/ownedCommand.test.ts+++ b/tests/boundary/process/ownedCommand.test.ts@@ -1,12 +1,13 @@import { randomUUID } from "node:crypto";import { setTimeout as delay } from "node:timers/promises";-import { expect, it } from "vitest";+import { beforeAll, expect, it } from "vitest";import {OwnedCommandFailure,runOwnedCommand,} from "../../../src/process/OwnedCommand.js";import { spawnOwnedProviderProcess } from "../../../src/process/ProviderProcess.js";import { cleanupOwnedProcessGroup } from "../../../src/process/ProcessOwnership.js";+import { prepareProcessOwnershipInspection } from "../../../src/process/ProcessOwnershipObservation.js";import { waitForProviderProcessReady } from "../../fixtures/providerProcess.js";const command = (script: string) => ({@@ -15,6 +16,10 @@ const command = (script: string) => ({runId: `rea-owned-command-test-${randomUUID()}`,});+// Output/exit cases start with a prepared inspector; startup deadline cases+// below inject their own preparation so they remain independent of compiler speed.+beforeAll(() => prepareProcessOwnershipInspection());+it("includes ownership preparation in the command deadline before provider creation", async () => {let prepared = false;await expect(diff --git a/tests/boundary/process/processCaptureTerminal.test.ts b/tests/boundary/process/processCaptureTerminal.test.tsindex 6fe449b6e..355f41683 100644--- a/tests/boundary/process/processCaptureTerminal.test.ts+++ b/tests/boundary/process/processCaptureTerminal.test.ts@@ -43,7 +43,7 @@ itWithCaptureCapability(path: "root_0:state.txt",}),);- expect(result.value.cleanup).toEqual({+ expect(result.value.cleanup).toMatchObject({owned_process_group: "verified",temporary_root: "removed",});