perf(evidence): inspect retained records without building a bundle (#15219)

* perf(evidence): inspect retained records without building a bundle

* perf(evidence): reuse ordered inspection records across pages

* docs(evidence): clarify sealed inspection records

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
ShuaixinHuangandVincent Koc authored and GitHub committed 2026-11-30 19:43:40 +08:00
1 parent f5055cd2ed
commit 5f15fdf457
8 files changed
+127 -15

No files matched your search

@@ -1,4 +1,5 @@
import type { Evidence } from "../../domain/evidence.js";
import type { EvidenceInspectionRecords } from "../../domain/evidenceRecordSummary.js";
import type { EspFlashSelection } from "../../domain/firmware/espFlashLocation.js";
import type { InvestigationRecordPort } from "../investigation/InvestigationRecordPort.js";
import type { RecoveryAdmission } from "../investigation/InvestigationRetention.js";
@@ -65,6 +66,7 @@ export interface BinarySessionPort
extends AnalysisOperationPort, InvestigationRecordPort {
/** Borrow the current immutable Evidence records without constructing a bundle. */
recordsForAnalysis(): readonly Evidence[];
evidenceInspectionRecords(): EvidenceInspectionRecords;
readonly admitRecoveryObservation: RecoveryAdmission;
/** Execute only against a positively ready, already-created provider client. */
executeIfProviderReady(
@@ -1,3 +1,4 @@
import type { EvidenceInspectionRecords } from "../../domain/evidenceRecordSummary.js";
import { bindSnapshotReplayExecution } from "./SessionEvidenceReuse.js";
import type { AnalysisProfileCommitment } from "../../domain/analysisProfile.js";
import { analysisProfilesEqual } from "../../domain/analysisProfile.js";
@@ -172,6 +173,10 @@ export abstract class BinarySessionRecords {
return this.#records.exportEvidenceBundle();
}
evidenceInspectionRecords(): EvidenceInspectionRecords {
return this.#records.evidenceInspectionRecords();
}
/** Borrow the record owner's immutable bundle for read-only workflows. */
immutableEvidenceBundle(): EvidenceBundle {
return this.#records.immutableEvidenceBundle();