All builds

Creative planning tooling / 2026 / In progress · Anonymized work

Media Job Compiler.

A tool that turns a creative brief into a job for a media provider, with approval tied to exactly what was reviewed

The hard part
Making sure an approval of a paid media job still means the same thing if the provider’s rules or the tool’s translation change later.
Works today
On its own branch, the tool checks and prepares jobs, and saved tests cover how it turns a provider’s field list into rules.
Role
Software engineering
Built with
Python · JSON Schema · PyYAML · CLI · Filesystem manifests · Typer · Pydantic · MCP · Pillow · JSON · Markdown · SHA-256 · JSONL · Decimal

01What I built

The problem.

Someone approves a paid media job, but what did they approve? The prompt is only part of it. The provider describes the inputs it accepts, and the tool translates that description into rules. If either one changes afterwards, the same job data can mean something different and still pass every check.

What I built.

Media Job Compiler is a Python tool that runs from the command line. First it checks the creative records. Then it picks a provider connector that it supports, the code that writes a job in that provider’s format. It turns the provider’s list of fields into rules written in A technical wordJSONA common text format that programs use to send each other structured data., a common text format for data. It checks the job’s data against these rules, then saves the job with fingerprints of everything that was reviewed. A fingerprint is a short code that changes when the content changes. It also reserves places on disk for the job’s files. It does not upload media or send anything to the provider. A separate program does that.

The compiler

Python, JSON Schema, PyYAML

Record checks
Checks the creative records first, and keeps their restrictions out of the provider’s format.
Connector choice
Picks a provider connector only when what the provider can do, how jobs are sent and the price all match one the tool supports.
Field list translator
Turns the flat list of fields from the lookup tool, which fetches each provider’s rules, into rules the checker supports. It writes them in the 2020-12 draft of a published standard for data rules.The storyTurning a provider’s list of fields into strict rules
Data check
Checks the job’s data against those rules before the approval step is built.
Job fingerprints
Saves a fingerprint of the raw field list and of the translated rules with the job. It also records the connector and the translator version.The storyTurning a provider’s list of fields into strict rules
Execution checks
Compares the saved fingerprints, and checks each media file is matched exactly, before the job goes to the program that runs it.

The intake service

Python, Typer, Pydantic, MCP

Media Intake Service
Scan first
Shows the accepted files, duplicates and filename clashes before anything is changed.
Request identity
Turns the whole request into one fingerprint, used as its ID. It covers the product, the source type and the rights reference. It also covers the file paths and contents.The storyRecovering a media import that stopped before it finished
Path checks
Refuses file paths and shortcuts that lead outside the media folder. It also refuses rights references that belong to another product.
Safe copying
Copies to a temporary file and makes sure it is fully written to disk. Then it compares the fingerprint and swaps the file into place in one step.The storyRecovering a media import that stopped before it finished
Rights check
Keeps usage conditions on the asset. Blockers, expired rights and unsorted restrictions still prevent use.
Approval check
Compares the required reviews and a person’s final decision with the current fingerprints in the asset records.

The command-line tool

Python standard library, JSON Schema, SHA-256

Asset Release Registry
Release lookup
Finds the release from its registry entry and keeps the path inside the local folder.
Release pin
Compares the release list’s fingerprint with the one the asking tool reviewed, so a moved marker shows up.The storyFollowing a finished creative back to its source files
Structure checks
A small rule checker and some Python rules confirm that the chosen assets exist and the edit steps run in order.
File checks
Checks every listed file against the size and fingerprint it should have.
Dependency walk
Follows the chosen output back through each required input, visiting every asset once.The storyFollowing a finished creative back to its source files
Readiness
Combines the file results with the technical review and content eligibility. It also takes in any blocking claims and the reuse limits.

The command-line tool

Python, JSON Schema, JSONL, SHA-256

Campaign Record Validator
Record lookup
Builds the paths to campaign and review files from IDs that do not change, and keeps them inside the workspace.
Fingerprint rebuild
Writes the details as compact text, with field names sorted and lists kept in order. Then it makes a fingerprint of that text.The storyChecking a campaign still matches what was approved
Media check
Follows the pinned release list and creative. It compares the release and the asset they name. It also compares the filename and the content fingerprint.
Approval and events
Checks the fingerprint’s kind, its method and whether it was rebuilt. It also checks that events are numbered without gaps and IDs are unique.The storyChecking a campaign still matches what was approved
Sensitive-data scan
Refuses obvious sign-in details, card details and long platform IDs outside the one private file.

Confidential work. Names and identifying business details have been changed.

02The journey

What broke, and what changed.

Broke, then fixedA decisionA milestone

  1. 01 of 13DecidedMedia Intake Service

    Know a file by its content, not its name

    The questionTwo files with the same name can hold different material. The same material can also arrive twice.

    What I choseMatching content keeps the asset ID it already has. Different content aimed at a place that must not change raises a conflict instead of overwriting it.

03Today

Where it stands.

This is the V3.3.3 branch, a separate line of the code. It has not yet been moved into the working installation. It prepares jobs and reserves places on disk, but it uploads and sends nothing. It still needs fresh information about what the provider can do and what it costs. Its own checks say nothing about whether the provider is available or whether the result is any good.