The spec before the image

2026-07-11 · #tools #agents

Reliable image generation requires a structured, intentional process. It demands establishing every property of the image as an approved, structured artifact before any rendering begins. The image-production agent in melchizedek operates on this strict mandate: design the concept first in JSON, and generate the image strictly upon explicit approval.

This print emerged directly from that workflow:

Black-and-white fine-art photograph presented on a gallery matte: a waterfall pours off basalt sea cliffs into storm surf while crepuscular rays break through clouds
Where the Land Ends. Generated 2026-07-11. Every property detailed below was actively approved before the image existed.

the payload is the point

Before reaching the approval stage, the agent must construct a deeply nested design payload that leaves no visual, atmospheric, or technical detail to chance. Here is the abbreviated structure reverse-engineered from the print above:

{
  "meta": { 
    "title": "Where the Land Ends", 
    "genre": "fine-art landscape",
    "artist_style": "Ansel Adams — heroic monochrome" 
  },
  "visual_elements": {
    "subject_matter": {
      "location": "volcanic basalt coastline",
      "primary_focus": "waterfall plunging from sea cliffs into storm surf",
      "foreground": "wet black boulders, surf exploding over them",
      "midground": "the falls and sheer cliff face",
      "background": "receding headlands, open sea"
    },
    "atmosphere": { 
      "weather": "storm breaking", 
      "mood": "sublime, elemental",
      "lighting": "crepuscular rays through torn cloud, upper right" 
    }
  },
  "technical_specifications": {
    "medium": "gelatin silver print, presented on a gallery matte",
    "color_palette": "monochromatic",
    "tonal_range": "full Zone System — dense blacks to luminous spray",
    "camera_emulation": { 
      "type": "8x10 large format", 
      "aperture": "deep focus", 
      "film_grain": "fine" 
    }
  },
  "composition": { 
    "framing": "wide-angle", 
    "perspective": "low, from the shoreline",
    "balance": "cliff diagonal leading into the rays" 
  },
  "generation_parameters": { "aspect_ratio": "3:2" },
  "generation_prompt_string": "…synthesized last, from everything above…"
}

Consider the function of this structure. Defining the foreground, midground, and background separately ensures every plane of the image holds a deliberate purpose. Specifying “crepuscular rays, upper right” creates a falsifiable target, grounding the abstraction of “dramatic lighting” into physical geometry. The camera block dictates depth of field and grain to guarantee the output reads strictly as a photograph. Finally, the ultimate prompt string synthesizes directly from these approved fields, ensuring the model receives exactly what the human authorized.

Observe the conversation that produced this print, specifically noting how the system secures the contract before initiating the physical render:

┌─ trace: reverse-engineering the print (spec → approval → pixels) ─ interactive

The gallery matte in this image exists because a human explicitly requested it during the review phase. The system updated a single property and re-presented the contract for sign-off. This represents the entire doctrine of controlled generation: an iteration serves as a precise update to a specification.

This principle extends across every domain we explore. Just as the market agent articulates the exact conditions of its own reversal, the visual agent defines exactly what it will construct before execution. Predictable outcomes stem directly from rigid contracts. By writing and approving a thorough specification, the machine becomes accountable to a defined document rather than the unpredictable variance of a generative model.