import { z } from "zod"; import { type NolArtifactStore } from "../_types/execution/nol/artifacts.js"; import type { NolStore } from "../_types/orchestrator/nol/store.js"; import { type NolPeftValidationPlan } from "./peft-validation.js"; import type { NolPeftLoadInput } from "./transformers-peft.js"; import type { NolModelWorkerHost } from "./model-subject-adapter.js"; import type { NolSandboxContext } from "./model-serving.js"; import type { NolPeftModelConformanceResolver } from "./peft-model-profile.js"; export declare const NOL_PEFT_MODEL_PROFILE_JOB_KIND: "nol_peft_model_profile"; /** A planned native observation is data, not achieved authority. It becomes a * registered capability only after this service runs the genuine producer. */ export interface NolPeftProducerProfile { id: string; pythonPath: string; workerPath: string; plan: NolPeftValidationPlan; load: NolPeftLoadInput; workerLimits: { maxFrameBytes: number; maxStdoutBytes: number; maxStderrBytes: number; requestTimeoutMs: number; killGraceMs: number; }; gpu: { requestedMiB: number; expectedDurationSeconds: number; }; budgets: { maxArtifactBytes: number; maxDurationMs: number; requestTimeoutMs: number; maxMetadataBytes: number; }; } export declare const NolPeftProducerProfileSchema: z.ZodObject<{ id: z.ZodString; pythonPath: z.ZodString; workerPath: z.ZodString; plan: z.ZodPipe, unknown>>; load: z.ZodObject<{ checkpointRoot: z.ZodString; artifactRoot: z.ZodString; gpuUuid: z.ZodString; dtype: z.ZodEnum<{ float32: "float32"; float16: "float16"; bfloat16: "bfloat16"; }>; dependencyLockPath: z.ZodString; runtimeBuild: z.ZodRecord; limits: z.ZodObject<{ maxInputTokens: z.ZodNumber; maxOutputTokens: z.ZodNumber; maxTensorBytes: z.ZodNumber; maxWorkingBytes: z.ZodNumber; maxMultiplyAdds: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; workerLimits: z.ZodObject<{ maxFrameBytes: z.ZodNumber; maxStdoutBytes: z.ZodNumber; maxStderrBytes: z.ZodNumber; requestTimeoutMs: z.ZodNumber; killGraceMs: z.ZodNumber; }, z.core.$strict>; gpu: z.ZodObject<{ requestedMiB: z.ZodNumber; expectedDurationSeconds: z.ZodNumber; }, z.core.$strict>; budgets: z.ZodObject<{ maxArtifactBytes: z.ZodNumber; maxDurationMs: z.ZodNumber; requestTimeoutMs: z.ZodNumber; maxMetadataBytes: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; export interface NolPeftModelAuthorityOptions { id: string; projectRoot: string; stateRoot: string; workRoot: string; ownerId: string; store: NolStore; artifacts: NolArtifactStore; host: NolModelWorkerHost; profiles: readonly NolPeftProducerProfile[]; limits: { maxJobs: number; maxTotalReservedBytes: number; maxParentArtifactBytes: number; maxRegistryEntries: number; maxRegistryEntryBytes: number; }; leaseMs?: number; } /** Durable authenticated producer + read-only resolver. There is intentionally * no import/accept(JSONproof) method. Config cannot sign an issuance record. */ export declare class NolPeftModelAuthorityService { readonly id: string; private readonly options; private readonly profiles; private registry?; private initializing?; private closed; private readonly active; private readonly children; private readonly dirty; private readonly sourceStamps; constructor(options: NolPeftModelAuthorityOptions); private initialize; private sourceCurrent; submit(input: { profileId: string; }, context: NolSandboxContext): Promise; run(jobId: string, context: NolSandboxContext): Promise; private execute; provider(context: NolSandboxContext): NolPeftModelConformanceResolver; status(jobId: string, context: NolSandboxContext): Promise<{ conformance?: { authorityId: string; recordId: string; artifact: any; } | undefined; jobId: string; profileId: any; status: import("../_types/orchestrator/nol/store.js").NolJobStatus; generation: number; cleanupGeneration: number | null; active: boolean; }>; verify(input: Parameters[0], context: NolSandboxContext): Promise<{ authorityId: string; recordId: string; artifact: any; plan: Readonly; verification: import("./peft-conformance.js").NolPeftConformanceVerification; assertCurrent: () => void; }>; cancel(jobId: string, context: NolSandboxContext, reason?: string): Promise; recoverCleanup(jobId: string, context: NolSandboxContext): Promise; stopOwned(context: NolSandboxContext): Promise; shutdown(): Promise; close(): Promise; get ownedJobIds(): string[]; }