/** The parent passes the pinned `provider/id` here; only the worker sets it. */ export declare const MODEL_PIN_ENV = "PI_FABRIC_MODEL_PIN"; /** Exit status of a child that stopped itself because the model was not the pin. */ export declare const MODEL_PIN_EXIT_CODE = 71; /** Prefix of the single stderr line that names the violation for the worker. */ export declare const MODEL_PIN_MARKER = "[pi-fabric] model-pin-violation "; export interface ModelPinViolation { pinned: string; /** `provider/id` of the model that was about to run, `payload model ""` for a rewritten request, or "none". */ actual: string; } /** * Whether a run ended on a pin violation. Such a run is never retried or resumed, * whatever else its error text says: a model id can spell `missing credentials`. * Decided from the child's exit status and the fixed prefix, not from free text. */ export declare const isModelPinFailure: (record: { exitCode?: number | null; error?: string; }) => boolean; /** Fixed run error; the worker builds it from the stderr marker. */ export declare const modelPinFailure: (violation: ModelPinViolation) => string; /** Parse the marker line out of a child's stderr; undefined when absent or malformed. */ export declare const parseModelPinViolation: (stderr: string) => ModelPinViolation | undefined; //# sourceMappingURL=model-pin.d.ts.map