Nodes/comfyui-arkennemasis/arkennemasis Recipe Compile (validate + freeze)
ComfyUI Node

arkennemasis Recipe Compile (validate + freeze)

Validate the Tier 0 model's JSON against the recipe schema, merge in the specifications resolved by the library, inject the two locks and the tolerances as constants, and hash the result. Validation failure is a hard error — an invalid recipe silently poisons every image in the run.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
arkennemasis Recipe Compile (validate + freeze)
    • recipe_json
    • report
    • needs_confirmation
    • valid
    llm_json{}
    intake_json{}
    recipe_dirvariation/recipes
    library_json
    plate_lock_json
    lock_productThe product in the output must be the identical physical object shown in the input image. Preserve exactly: its overall proportions and the ratio of every part to every other part; its silhouette and outline; the shape, curvature and edge profile of every component; the number of parts and how they join; material thickness; the size, shape and placement of any hardware, fittings or fixings; and the gauge, position and path of any visible cable. Do not redesign, restyle, re-proportion, simplify, embellish, modernise, straighten, tidy, or otherwise improve the product. Do not correct anything you perceive as a flaw or asymmetry. Do not add or remove any part or detail. Reproduce the object exactly as photographed.
    lock_sceneKeep every other aspect of the image identical to the input image: camera angle, camera distance, focal length, framing, crop, the subject's position within the frame, the subject's scale within the frame, the background, the surface it rests on, lighting direction, lighting intensity and colour temperature, and the shape, softness and position of the shadow. Change only what is explicitly named above.
    frame_tolerance0.020
    colour_tolerance_de5.0
    identity_tolerance0.060
    max_retries3
    Categoryarkennemasis/Variation

    Inputs (11)

    NameTypeDefaultDescription
    llm_jsonSTRING{}The Tier 0 model's raw answer. Code fences are stripped.
    intake_jsonSTRING{}
    recipe_dirSTRINGvariation/recipesWhere recipe.json is written. Relative paths resolve inside ComfyUI's output directory.
    library_jsonoptSTRINGFrom Spec Library. Supplies each value's cached reference path and hash, so the recipe points at frozen local files rather than at URLs that can change.
    plate_lock_jsonoptSTRINGFrom Plate Lock. Supplies the frozen plate's hash and measurements.
    lock_productoptSTRINGThe product in the output must be the identical physical object shown in the input image. Preserve exactly: its overall proportions and the ratio of every part to every other part; its silhouette and outline; the shape, curvature and edge profile of every component; the number of parts and how they join; material thickness; the size, shape and placement of any hardware, fittings or fixings; and the gauge, position and path of any visible cable. Do not redesign, restyle, re-proportion, simplify, embellish, modernise, straighten, tidy, or otherwise improve the product. Do not correct anything you perceive as a flaw or asymmetry. Do not add or remove any part or detail. Reproduce the object exactly as photographed.Lock A — product identity. A constant appended verbatim to every prompt. The anti-improvement sentences are load-bearing: image models silently 'help' by straightening and idealising, and each such improvement is a catalogue defect.
    lock_sceneoptSTRINGKeep every other aspect of the image identical to the input image: camera angle, camera distance, focal length, framing, crop, the subject's position within the frame, the subject's scale within the frame, the background, the surface it rests on, lighting direction, lighting intensity and colour temperature, and the shape, softness and position of the shadow. Change only what is explicitly named above.Lock B — scene continuity. A constant appended verbatim to every prompt.
    frame_toleranceoptFLOAT0.0200–1Allowed subject box drift as a fraction of frame. CALIBRATE this against a labelled set with the Calibrate node — a number chosen by feel either passes drifted images or fails good ones.
    colour_tolerance_deoptFLOAT5.00–100Allowed CIEDE2000 difference from the specified hex. Commercially this is a contractual number as much as a technical one — agree it with the client in advance.
    identity_toleranceoptFLOAT0.0600–1Allowed relative drift in the proportion ratios that fingerprint this object. This is the check that catches a redesigned product, which colour checking cannot.
    max_retriesoptINT30–10

    Outputs (4)

    NameTypeDescription
    recipe_jsonSTRING
    reportSTRING
    needs_confirmationSTRING
    validBOOLEAN