import type { NolArtifactRef, NolModelManifest } from "../_types/schemas/nol.js"; import type { NolPytorchControlInventory, NolPytorchControlReaderRuntime } from "../_types/execution/nol/pytorch-control-reader.js"; /** Trusted host port, implemented by the durable CPU reader service. JSON * manifests, model text and serialized success flags cannot implement it. * These facts describe physical storage; they grant no numerical, scientific, * native-inference or promotion authority. */ export interface NolPersistentParameterInventoryProvider { open(input: { profileId: string; model: NolModelManifest; signal: AbortSignal; assertCurrent(): void; }): Promise; } export interface NolPersistentParameterInventoryHandle { readonly format: "pytorch"; readonly jobId: string; readonly inventory: Readonly; readonly runtime: Readonly; readonly readinessProof: NolArtifactRef; assertCurrent(): void; /** Every arm receives the ACTUAL candidate-derived changed names. */ assertNoChangedAliases(names: Iterable): void; streamTensor(name: string, signal?: AbortSignal): AsyncGenerator; /** Must settle the real helper and descriptors before resolving. Its proof * remains separate from stable numerical facts; the fence is valid after * close and checks the immutable completed reader journal/source custody. */ close(): Promise<{ archiveProof: NolArtifactRef; assertCurrent(): void; }>; }