JsonCut

Render output naming and versioning: a durable file contract

Renders expire after 24 hours; names do not. How to encode template version, inputs and output settings in every file name, manifest and retention rule.

Abstract geometric illustration for Render output naming and versioning: a durable file contract

A render that cannot be found again was not really delivered. A naming and versioning contract that ties every file to its template version, inputs and output settings — and keeps working after the artifact URL has expired.

A file name is the only thing your render keeps

A batch finishes at 17:40. Five hundred images, all correct. The download script saves them as result.png, result (1).png, and by Friday nobody can say which of them went into the campaign that ran last week. The renders were fine. The archive is not.

JsonCut treats an output as a delivery, not a library. The artifact route streams the file with its Content-Type and a file name in Content-Disposition, accepts range requests, and the file expires 24 hours after completion — artifactExpiresAt on the render resource gives the exact moment. After that, the copy in your storage is the only copy. Naming is therefore not cosmetic housekeeping you get to later. It is the step that decides whether the work is still retrievable when someone asks about it.

This article is about that step: one path pattern, one version rule, one manifest, and a retention split that keeps approved assets addressable long after the render queue has forgotten them.

Abstract dark background with soft teal, violet and green gradients over a fine grid

What the render tells you, and what it does not

The render resource carries an id, a terminal status (queued, rendering, completed, failed, cancelled), and for failures a stable errorCode plus errorRetryable. That is enough to operate a queue. It is not enough to answer the questions people actually ask later.

Question asked six months laterAnswered by the render APIAnswered by your naming and manifest
Which design produced this file?Render id onlyTemplate id plus template version
Which customer, SKU or locale is in it?NothingVariant key, derived from the idempotency key
Which output settings were used?Nothing, once the output expiresFormat, dimensions, quality, fps, loudness
May this file ship again?NoApproval state plus stored checksum
Why do two files exist for one variant?Two render idsAttempt id plus a supersedes pointer

The artifact URL is a pointer with a deadline. Anything you want to cite in a ticket, a legal review or a quarterly report has to live in a name and a row instead.

Four identities, one path

Every output is the intersection of four things. A name that carries all four answers almost every later question without a database lookup.

IdentityWhere it comes fromWhy the path needs it
TemplatePublished template id and its immutable versionTwo versions can look identical and say different things
VariantIdempotency key such as sku-1042-deJoins the file to the row, the PIM record and the delivery log
Output profileKind, format, width, height, quality, fpsThe same variant ships as PNG, WebP, square and vertical
AttemptRender idA retry produces a second file for the same variant

A path that holds them, ordered from most to least human:

{campaign}/{template}/v{template-version}/{variant}/{profile}-{input-hash}.{ext}

autumn-2026/product-card/v7/sku-1042-de/png-1080x1080-q90-4f3c9a1b.png

Order is a usability decision, not an aesthetic one. Campaigns first, because that is how people browse. Variant next, because that is how support tickets arrive. The hash last, because it is the only segment nobody reads aloud. Keep the whole path lowercase and ASCII, use hyphens instead of spaces, and avoid characters that need escaping in URLs, shells and spreadsheet exports.

Versions belong to the template, not to the file

Semantic Versioning is a specification for software APIs, not for media archives, but its central discipline transfers: declare the public surface, then let the number communicate what changed. For a template, the public surface is the typed input contract plus the meaning of the design. A number only helps if it changes for one reason at a time.

ChangeBumpRe-render existing assets?
Input renamed or removed, offer changed, legal wording updatedMAJORYes, as a new version; old files stay untouched
Optional input or decorative layer added that old rows never useMINORNo
Typo, alignment or border colour fixedPATCHOptional, usually only for new batches
Output quality raised from 90 to 92, or a second size addedProfile suffix, not template versionOnly the new profile

Publishing a version is a commitment. JsonCut pins each batch to one immutable template version (see typed templates), and the bulk request names the version it renders — so a batch queued on Friday cannot silently pick up a design change made on Saturday. Keep that promise in storage too: never edit the files under v7 in place. Publish v8, render what needs the change, and leave v7 addressable, because a signed-off file that changes is no longer signed off.

This is also where money and naming meet. Re-rendering a full catalogue for a patch is waste; shipping a major change without re-rendering is worse. The cost-control view of the same decision is cost per approved asset — a number you can only compute if approved assets have stable keys.

Equality is a hash, not a counter

Suffixes like -v2, -v3 and -final record effort, not equality. Two files with different counters can be byte-identical, and the same counter can hide a different headline after a quiet edit. Hash the request instead:

sha256(json_normalize({
  template: "product-card", version: 7,
  values: { sku: "1042", locale: "de", price: 79.9 },
  output: { kind: "image", format: "png", width: 1080, height: 1080, imageQuality: 90 }
}))[0:8]

Normalize before hashing: sorted keys, dropped nulls, numbers with fixed decimals, locale kept as a value rather than implied by formatting. Otherwise a reordered JSON object produces a new hash and a duplicate asset nobody can explain.

Two limits are worth stating plainly. First, a request hash identifies the request, not the pixels: a renderer update can change the output for identical input, which is why you store the checksum of the saved file as well. Second, a hash is not a handle. Put eight to twelve characters in the file name and the full value in the manifest, and always keep the human-readable variant key in front of it.

When attempts need an identifier of their own, prefer one that sorts. RFC 9562 defines UUID version 7 with a 48-bit Unix timestamp in the most significant bits, so lexicographic order matches creation order — useful when your pipeline writes rows asynchronously and a database sequence is not available at naming time.

The manifest is the deliverable

Files are bytes; the manifest is the story. One JSON or NDJSON row per output, written by the same job that saves the file, is enough to reconstruct a campaign without opening a single image.

FieldExampleWhy it earns its place
renderIdrn_01J9...Upsert key for status changes
webhookEventIdevt_01J9...Dedupe key for deliveries
idempotencyKeysku-1042-deJoins output to the source row
template{ "id": "tpl_7f2", "version": 7 }Explains the design that produced it
inputHash4f3c9a1b8e...Proves two outputs came from the same request
output{ "format": "png", "width": 1080, "height": 1080, "imageQuality": 90 }Makes a re-render reproducible
status, errorCodefailed, MISSING_MEDIAExplains gaps without guessing
artifactExpiresAt2026-11-29T16:40:00ZDocuments why the source URL is dead
storedkey, sha256, bytesTies the manifest to the file actually kept
approvalstate, reviewer, timestampAnswers "may we ship it"
{
  "renderId": "rn_01J9Z6T4M2",
  "webhookEventId": "evt_01J9Z6T5A8",
  "batchId": "bulk_01J9Z6Q0K1",
  "idempotencyKey": "sku-1042-de",
  "template": { "id": "tpl_7f2", "version": 7 },
  "inputHash": "4f3c9a1b8e7d2c05",
  "output": { "kind": "image", "format": "png", "width": 1080, "height": 1080, "imageQuality": 90 },
  "status": "completed",
  "artifactExpiresAt": "2026-11-29T16:40:00.000Z",
  "stored": { "key": "autumn-2026/product-card/v7/sku-1042-de/png-1080x1080-q90-4f3c9a1b.png", "sha256": "9d1f...", "bytes": 481203 },
  "approval": { "state": "approved", "by": "brand-review", "at": "2026-11-28T16:05:00.000Z" },
  "supersedes": null
}

Webhook deliveries make this cheap to maintain. The body has the shape { "id", "type", "createdAt", "data" }, the header X-JsonCut-Event-Id identifies the delivery, and a replay preserves that event identity. Dedupe on the event id, then upsert on the render id. If you key on the render id alone, a repeated completion after a partial write looks like new information; if you key on the event id alone, a cancelled render never replaces its earlier completed row. The webhook handling guide covers signature verification and dead-letter replay; naming is what makes those retries safe to apply twice.

Two namespaces: attempts and approved

The cleanest retention rule is also the easiest to explain to a lawyer: nothing that was approved is ever overwritten, and everything that was not approved disappears on a schedule.

PathContentsMutableKeep for
attempts/{yyyy}/{mm}/{dd}/{render-id}/Every render, including failures and re-runsAppend-only30 days
approved/{campaign}/{template}/v{n}/{variant}/The signed-off file onlyNever in place; a new file plus supersedesAs long as the campaign is cited
exports/{channel}/{yyyy-mm}/Derived crops and transcodesRegenerable90 days

approved/ is the archive. latest is a pointer, not a path: a small alias row that names the current key, so a query for "what runs today" never depends on lexicographic sorting. When someone asks what went live in November, the answer is a key that still resolves — even though the artifact URL it came from expired on 29 November.

Where names break

Weak nameDurable nameWhat went wrong
Product Card final FINAL.pngautumn-2026/product-card/v7/sku-1042-de/png-1080x1080-q90-4f3c9a1b.pngSpaces, mixed case, and an adjective instead of an identity
2026-11-28_sku1042.png.../sku-1042-de/...The run date is not what the file is; dates belong in attempts/
card-v7-v2-final.png.../v7/...-4f3c9a1b.pngTwo version axes in one string, no output profile
bild_sku1042_ä.png.../sku-1042-de/...Non-ASCII, breaks URLs and shells
image.png containing WebP...-q90-4f3c9a1b.webpThe extension lies, so the consumer guesses
sku-1042.png.../v7/sku-1042-de/png-1080x1080-q90-...Collides across campaigns, versions and sizes

A checklist for the next batch

  1. Write the path pattern down before the first render, including the output profile segment.
  2. Decide which template changes bump MAJOR, MINOR or PATCH, and who may publish them.
  3. Normalize and hash the request; store the full hash, print a short prefix in the name.
  4. Emit one manifest row per output from the job that saves the file, never from a later report.
  5. Dedupe webhook events by event id, upsert render state by render id.
  6. Split attempts/ from approved/, and delete on a schedule instead of on a hunch.
  7. Test the archive question: given only a campaign name, can a new colleague find the approved file in under a minute?

None of this makes renders permanent; outputs are meant to expire. It makes your archive independent of them. Whether a single render or a reusable project is the right unit for the work is a separate question — inline versus reusable projects covers that split, and bulk data hygiene covers the input side of the same contract. Naming is the part that connects the two.

Sources

  • JsonCut Docs, Render lifecycle and output: https://jsoncut.com/docs/operations/ — artifact route, Content-Disposition, range requests, 24-hour output expiry, artifactExpiresAt, error codes and idempotency guidance (abgerufen 2026-11-28)
  • JsonCut Docs, Typed templates and bulk rendering: https://jsoncut.com/docs/templates/ — immutable template version pinning, version in bulk requests, row idempotency keys, row validation (abgerufen 2026-11-28)
  • JsonCut Docs, Signed webhooks: https://jsoncut.com/docs/webhooks/ — event body shape, X-JsonCut-Event-Id, delivery retries and replay that preserves event identity (abgerufen 2026-11-28)
  • Semantic Versioning 2.0.0: https://semver.org/ — MAJOR.MINOR.PATCH semantics for a declared public surface (abgerufen 2026-11-28)
  • IETF RFC 9562, Universally Unique IDentifiers (UUIDs): https://www.rfc-editor.org/rfc/rfc9562.html — UUID version 7 layout with a 48-bit Unix millisecond timestamp (abgerufen 2026-11-28)

Your next post is one sentence away.Start free, no editing skills needed.