Skip to main content

Type Alias: PatchJob

type PatchJob = object;

Defined in: packages/shared/lib/types.d.ts:220

A one-shot job carried by a patch (ADR-0044): preApply massages data so the patch's model can validate, postApply backfills what needs the model landed. Never persisted as a ~Job - a migration is not a schedulable job, and replicable executable content keeps its one existing surface.

Properties

PropertyTypeDescriptionDefined in
contentstringJob body, ~Job-style: must define execute(stack, params, job).packages/shared/lib/types.d.ts:223
namestring-packages/shared/lib/types.d.ts:221
params?object-packages/shared/lib/types.d.ts:224
requiresKey?booleanWhether the job needs the document key. Defaults to true: an undeclared job defers while the stack is locked, which can cost latency but never correctness. false opts into locked execution - the author's explicit claim that the job touches no encrypted data (ADR-0044).packages/shared/lib/types.d.ts:233