Files
rea/tests/support/analysis-efficiency
gensokyo-dev f72638f6b1 feat(investigation)!: retain records across engine cleanup (#8361)
Separate engine cleanup, investigation reset and terminal disposal in the shared application owner. Keep stable Evidence IDs and full Unknown revision history through engine close and target changes; serialize reset with all record writers and cleanup owners, optionally acknowledging a complete checkpoint before clearing. Bound retained representation without eviction.

Validation: 43 focused files / 533 distinct tests, source/type/lint/schema/documentation checks, nine genuine source cases across eight families, real Ghidra session identity and cleanup, and nine actual local Codex CLI terra/high runs with independent full-result and checkpoint audits. See docs/verification/investigation-lifecycle.md for measurements, partial attempts and verification limits.

Fixes #8347.

BREAKING CHANGE: close_binary retains investigation records. Use reset_investigation to clear them. Cross-process recovery requires an explicitly acknowledged Evidence bundle checkpoint.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
2026-10-31 21:34:45 +00:00
..

Analysis verification test support

These files support the existing comparison, independent-oracle, receipt and cleanup regressions. The TypeScript consumers live in tests/boundary/, tests/evaluation/ and tests/conformance/; npm run test:python discovers the Python checks here. Build first for checks that use the compiled runtime.

The agent-harness tests inject command outcomes and own temporary workspaces. They do not invoke a real model or establish real-provider behavior. The retained resource observer keeps its process-family CPU, memory and cleanup guards. Public corpus identities and original receipt provenance stay intact.

The historical allocation report and receipt JSON belong to documentation. Their numerical sections are produced and checked by:

node tests/support/analysis-efficiency/mcp-integer-report.mjs --check

The full experiment suite was retired. For historical reproduction, use the recorded runtime and producer revisions; the archived source tree preserves the former layout. Current deterministic checks do not requalify those historical measurements.