Sanity Library Reference Docs
    Preparing search index...
    • Content fingerprint of an authored definition: the canonical JSON of its content, hashed. Stamped on the deployed document (DeployedDefinition) and pinned on every instance, so a redeploy of identical content is a no-op and a definition that drifted from what an instance pinned is detectable.

      Advisory, like every engine check (the lake is the only enforcement point): FNV-1a is a fast, deterministic, dependency-free, isomorphic digest — enough to detect honest change and drift, not a tamper-proof seal. Kept synchronous so the pure planning path needs no await.

      Parameters

      • def: {
            description?: string;
            fields?: FieldEntry[];
            groups?: Group[];
            initialStage: string;
            lifecycle?: WorkflowLifecycle;
            name: string;
            predicates?: Record<string, string>;
            roleAliases?: RoleAliases;
            semantics?: Semantic[];
            stages: Stage[];
            start?: StartBlock;
            title: string;
        }

      Returns string