rea/tests/boundary/process
David Lee 5c2956587a
fix(apple): preserve slice identity and macOS boundary diagnostics (#1772)
* fix(artifacts): name CPU_SUBTYPE_ARM64E_X1 Mach-O slices arm64e

macOS 27 system binaries such as /bin/ls carry a third FAT slice with
cpusubtype 0x8000000c. The SDK defines subtype 12 as
CPU_SUBTYPE_ARM64E_X1, and CPU_SUBTYPE_HAS_ARM64E puts it in the arm64e
family. architectureName knew only subtype 2, so it named the slice
arm64, lipoNameMatches rejected lipo's arm64e.x1 name, and
inspect-artifact /bin/ls failed with integrity_mismatch.

The arm64e.x1 test fixture now uses the real subtype. It fails without
this change.

Refs #1168, #1765

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(artifacts): classify en-GB hdiutil verify refusals as format failures

hdiutil follows AppleLanguages. With en-GB it writes "image not
recognised", and verifyFailureReason matched only the US spelling, so a
file that is not a disk image got the reason unavailable. Both spellings
now give format. Other languages still give unavailable.

Refs #1765

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(process): read the full process table in the lifecycle cleanup check

The check ran ps -axo command= with the Node default maxBuffer of 1 MiB.
On a host with 1905 processes, the output is 1.52 MB, and the test failed
with "stdout maxBuffer length exceeded".

Refs #1765

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(process): bound cleanup observations to sampled descendants

* fix(apple): retain CPU subtype identity during dylib resolution

* test(process): retain OS PIDs for descendant observations

---------

Co-authored-by: David Lee <davidlee@Dav3Book-Pro-M4-Max.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-10-13 06:06:37 +09:00
..
ProcessEvidence.host.test.ts refactor: remove forwarding exports and redundant aliases 2026-10-09 22:46:09 +08:00
ProcessEvidence.test.ts refactor(captures)!: require canonical producer metadata 2026-10-09 23:35:19 +08:00
adbDirectoryListing.test.ts fix(adb): preserve directory identities and share byte capture 2026-10-12 13:06:51 +08:00
androidAnalysisMcp.test.ts test(android): allow provider readiness under load 2026-10-10 03:52:35 +08:00
androidSearchEvidenceBudget.test.ts fix(android): bound inline search Evidence with retained inventory provenance (#1890) 2026-10-12 01:07:22 +08:00
applicationWorkflowVerifier.test.ts test: classify application scenarios by their actual boundaries 2026-10-09 02:58:03 +08:00
binarySessionCleanupRetry.test.ts test: strengthen archive and resource cleanup assertions 2026-10-12 04:53:27 +08:00
browserScenarioProbeLifecycle.test.ts fix(mcp): keep shared optional providers open across discarded probes (#2205) 2026-10-12 06:56:45 -07:00
cliEnvironmentSeam.test.ts refactor: use canonical implementations and types directly 2026-10-09 23:35:19 +08:00
darwinProcessRunTokenReader.test.ts fix(electron): attribute unresolved paths to selected inputs 2026-10-13 04:12:40 +08:00
directAnalysisSignals.test.ts fix(cli): complete cleanup after relayed interrupts (#1202) 2026-10-09 12:45:23 +08:00
filesystemSnapshotFifoRace.test.ts refactor: prune obsolete provider and verification code 2026-10-12 08:59:14 +08:00
jadxIntegration.test.ts fix(analysis)!: scope call-graph caveats to their observed relationships 2026-10-12 09:29:07 +08:00
javascriptRuntimeReconciliationAmbiguity.test.ts fix(ci): share runtime fixtures and allow modest duplication headroom 2026-10-11 06:53:20 +08:00
ownedCommand.test.ts fix(process): retain owned command cleanup diagnostics (#1907) 2026-10-12 01:00:08 +08:00
packagePackIsolation.test.ts refactor: prune obsolete provider and verification code 2026-10-12 08:59:14 +08:00
processCaptureCancellationAdapters.test.ts test(process): report cleanup details on cancellation failures 2026-10-10 03:52:35 +08:00
processCaptureCapability.test.ts fix(process): preserve partial evidence and verify detached cleanup (#1011) 2026-10-08 04:46:46 +08:00
processCaptureCapability.ts refactor(process): separate capture implementation from analyst workflows (#988) 2026-10-08 00:46:21 +08:00
processCaptureLifecycle.test.ts fix(apple): preserve slice identity and macOS boundary diagnostics (#1772) 2026-10-13 06:06:37 +09:00
processCaptureNormalization.test.ts fix(process)!: version literal scenario replacement semantics 2026-10-10 16:57:06 +08:00
processCaptureProgress.test.ts test(process): prepare SDK validation before cancellation timing 2026-10-10 18:54:57 +08:00
processCaptureTerminal.test.ts refactor: remove forwarding exports and redundant aliases 2026-10-09 22:46:09 +08:00
processCli.test.ts test(process): use owned CLI and workspace fixtures 2026-10-10 01:45:01 +08:00
processFilesystemCoverageAdapters.test.ts feat(process): bound a finalization interval before forced capture timeout 2026-10-11 09:55:43 +08:00
processHostIdentity.test.ts fix(process): preserve partial evidence and verify detached cleanup (#1011) 2026-10-08 04:46:46 +08:00
processPreparation.test.ts refactor(captures)!: require canonical producer metadata 2026-10-09 23:35:19 +08:00
processSessionMcp.test.ts fix(process)!: bound terminal buffers before capture 2026-10-11 03:19:29 +08:00
processSettlementDeadline.test.ts fix(process): report single empty settlement observation as unverifiable (#2232) 2026-10-13 00:15:12 +08:00
processTruncationAdapters.test.ts perf(tests): remove timed output and synchronize browser fixtures 2026-10-11 13:20:16 +08:00
providerProcess.test.ts fix(process): return private runtime ownership at allocation 2026-10-12 16:30:53 +08:00
providerProcessOutput.test.ts fix(providers): bound launcher diagnostics without losing byte counts 2026-10-11 02:50:06 +08:00
runtimeBundle.test.ts fix(cli): preserve failure semantics across full-output formats 2026-10-13 03:33:27 +08:00
scanTodos.test.ts test: classify filesystem and process workflows by boundary 2026-10-12 04:44:13 +08:00
selectedExecutableCancellation.test.ts feat(browser): inspect historical web network captures (#992) 2026-10-08 07:53:41 +08:00
sourceMapUncHosts.test.ts fix(javascript): decline source-map UNC references with an unusable host (#1372) 2026-10-10 06:38:47 +08:00