Campaign validation tooling / 2026 / In progress · Anonymized work
Campaign Record Validator.
A checker that rebuilds a campaign’s approval fingerprint from today’s settings to catch anything changed since approval
Part of the Media Job Compiler journey- Role
- Software engineering
- Built with
- Python · JSON Schema · JSONL · SHA-256 · Decimal · CLI
01What I built
The problem.
A campaign gets approved, and then things move. A setting changes, or a different creative is swapped in. The approval file is still there, and its fingerprint is still a real fingerprint. It is just for material the campaign no longer describes. Spotting that means comparing several separate records that can each look fine alone.
What I built.
Campaign Record Validator is a Python tool that runs from the command line and reads local campaign records. An approval fingerprint is a short code made from the approved details, and it changes if any detail changes. The tool rebuilds that fingerprint from the campaign as it is now. It follows the exact Asset Release Registry release list and the chosen creative. It checks approvals and events against each other, and it reports where the records disagree. It has no code that connects to a platform, and it writes nothing.
The command-line tool
Python, JSON Schema, JSONL, SHA-256
- 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
- 01 of 03Decided
Rebuild the details before trusting the fingerprint
The questionA fingerprint someone supplies can be worked out correctly and still belong to different material. Comparing two fingerprints alone would let a changed campaign pass on an old approval.
What I choseThe checker first rebuilds the fingerprintCampaign Record Validator · The command-line toolFingerprint rebuildWrites the details as compact text, with field names sorted and lists kept in order. Then it makes a fingerprint of that text.See it in the map above from the campaign’s current details. Then it compares the result with the approval and confirmation records. A changed detail no longer matches.
- 02 of 03Decided
Pin the release list and the creative, not just one
The questionA campaign could name its media through the registry’s current-release marker. But that marker can move.
What I choseThe campaign pins both the release list and the chosen creativeCampaign Record Validator · The command-line toolMedia checkFollows the pinned release list and creative. It compares the release and the asset they name. It also compares the filename and the content fingerprint.See it in the map above. The release record and the media file’s contents each help identify the material. So a moved marker cannot swap in another asset.
- 03 of 03Decided
A fingerprint rebuilt later must say so
The questionA fingerprint rebuiltCampaign Record Validator · The command-line toolFingerprint rebuildWrites the details as compact text, with field names sorted and lists kept in order. Then it makes a fingerprint of that text.See it in the map above after publication can give a consistent account. It could then be mistaken for proof that the approval existed beforehand.
What I choseA rebuilt fingerprint has to state what it covers. It does not prove an earlier fingerprint, and it grants no new permission to publish or reuse. The checker reads that status when it compares the approval filesCampaign Record Validator · The command-line toolApproval and eventsChecks the fingerprint’s kind, its method and whether it was rebuilt. It also checks that events are numbered without gaps and IDs are unique.See it in the map above.
03Today
Where it stands.
Matching files cannot prove who approved a campaign or when. The fingerprints use no secret key, so someone with enough file access could rewrite the records and fingerprints together. The check for sensitive data only catches obvious patterns. Still to do are made-up test cases for a changed creative, changed approval details and events out of order.