import { type NolArtifactRef, type NolModelManifest, type NolOperation, type NolRuntimeBinding } from "../_types/schemas/nol.js"; import { NolArtifactStore } from "../_types/execution/nol/artifacts.js"; import { SqliteNolStore } from "./sqlite-store.js"; import { type NolGneToolMessage, type NolGneToolsIssuedAdmission } from "./gne-tools-transport.js"; declare const SCOPE: "single_private_job_owner_no_general_multijob_atomic_quota_claim"; export interface NolGneToolsProofPlan { schema: "omnius.nol.gne-tools-profile.v1"; model: NolModelManifest; binding: NolRuntimeBinding; workerSha256: string; gpuUuid: string; messages: NolGneToolMessage[]; tools: Array<{ type: "function"; function: { name: string; description: string; parameters: Record; }; }>; cells: NolOperation[]; absoluteTolerance: number; relativeTolerance: number; budgets: { maxPromptTokens: number; maxPrefillTokens: number; maxCaptureBytes: number; maxArtifactBytes: number; maxDurationMs: number; requestTimeoutMs: number; }; } export interface NolGneToolsProofPublisher { putJson(value: unknown): Promise; } export interface NolGneToolsProofSession { workRoot: string; worker: { request(action: "profile" | "reset", payload: unknown, options?: { signal?: AbortSignal; }): Promise; }; /** Zero-token load/actual PID placement confirmation only. Publish its native * placement and driver facts through this owner-checked publisher. */ prepare(input: { signal: AbortSignal; assertCurrent(): void; artifacts: NolGneToolsProofPublisher; }): Promise; /** Retire process group, await close, settle broker, then publish exact facts. * This remains callable after publication/Stop has fenced native output. */ settle(input: { reason: string; artifacts: NolGneToolsProofPublisher; }): Promise; } export interface NolGneToolsProofHost { artifacts: NolArtifactStore; /** Immutable full source inventory, including new worker, adjacent base, * pinned GNE/decoder, host renderer and CPU column extraction implementation. */ sourceArtifacts: NolArtifactRef[]; templateArtifact: NolArtifactRef; rendererImplementationDigest: string; vectorImplementationDigest: string; /** Trusted code injection, never request JSON: independently render the exact * pinned native template without importing a model/CUDA runtime. */ renderExpected(input: { plan: NolGneToolsProofPlan; signal: AbortSignal; }): Promise; /** Independently derive full float32-LE raw residual operand from the exact * checkpoint column/native scale. No caller-provided norms or verified flag. */ expectedVector(input: { plan: NolGneToolsProofPlan; cell: NolOperation; signal: AbortSignal; }): Promise; /** Synchronous inert construction exposes cleanup BEFORE any awaited load. */ createOwnedSession(input: { plan: NolGneToolsProofPlan; ownership: { jobId: string; ownerId: string; generation: number; }; }): NolGneToolsProofSession; beforeFirstForward(input: { signal: AbortSignal; placementProof: NolArtifactRef; }): Promise; } interface IssuedCell { cell: NolOperation; expectedVector: NolArtifactRef; capture: NolArtifactRef; report: NolArtifactRef; verification: NolArtifactRef; evidence: NolArtifactRef; attemptId: string; } export interface NolGneToolsIssuedProof { schema: "omnius.nol.gne-tools-issued.v1"; scope: typeof SCOPE; jobId: string; ownerId: string; generation: number; manifestDigest: string; tokenization: NolArtifactRef; placement: NolArtifactRef; settlement: NolArtifactRef; cells: IssuedCell[]; inputTokens: number; sampledTokens: 0; } /** Explicit engineering producer, restricted to one newly-created private DB. * Its conservative admission ledger is not a general multijob quota service. * Constructors/factories do not call prepare until run() is explicitly invoked. */ export declare class NolGneToolsProofJob { readonly directory: string; readonly store: SqliteNolStore; readonly jobId: string; readonly manifestDigest: string; private readonly host; private readonly plan; private readonly manifest; private readonly controller; private active; private lease; private constructor(); static submit(input: { directory: string; host: NolGneToolsProofHost; plan: NolGneToolsProofPlan; }): Promise; cancel(reason?: string): import("../_types/orchestrator/nol/store.js").NolJob; close(): void; run(): Promise; private execute; admission(recordId: string): NolGneToolsIssuedAdmission; } /** Read-only journal verifier. The caller supplies this closure from host-owned * configuration, never from a request-body evidence URI or verified boolean. */ export declare function createNolGneToolsJournalAdmission(input: { store: SqliteNolStore; host: NolGneToolsProofHost; recordId: string; }): NolGneToolsIssuedAdmission; export {};