Media production tooling / 2026 / Prototype · Anonymized work
Media Intake Service.
A prototype media catalogue that picks up a stopped import without making duplicates
Part of the Media Job Compiler journey- Role
- Software engineering
- Built with
- Python · Typer · Pydantic · JSON Schema · MCP · Pillow
01What I built
The problem.
Importing media files takes several writes, and it can stop partway. Run it again carelessly and you get duplicate assets. Or a file gets overwritten by a different one with the same name. And the rights and review decisions attached to a file only mean something while they still point at the same file contents.
What I built.
Media Intake Service is a prototype written in Python. One intake service sits behind two ways in. One is a command line built with Typer. The other is an A technical wordMCPModel Context Protocol. A standard way for AI apps to find and use tools that other programs offer. server, which uses a standard way for AI tools to find and call it. The service looks over the files first, then copies them into the catalogue. It saves a fingerprint of each file’s content, a record for each asset and a history of imports. A fingerprint is a short code that changes when the content changes. Rights and reviews are checked in a separate step, against the files as they are now.
The intake service
Python, Typer, Pydantic, MCP
- 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.
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
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.
- 02 of 03Decided
Two ways to recover an import
The questionThe receipt, the saved result of a finished import, is written last. So an import can finish and then be asked for again. Or it can stop before its receipt exists and leave good assets behind.
What I choseA finished request gets its saved receipt back. The service looks the receipt up again once it holds the lock on that product. With no receipt, the service rebuilds the lists it uses to find assets. It rebuilds them from the asset records still on disk, before copying anything new, so those assets keep their IDs.
ProofRecovery tests cover a repeated request, asset records left on disk and clashes of content.
Read the full story - 03 of 03Broke
A usage condition was treated as a ban
What went wrongAll rights restrictions sat in one list. The check refused any record where that list had text. So a condition on an allowed use was blocked the same way as a ban.
What changedThe rights checkMedia Intake Service · The intake serviceRights checkKeeps usage conditions on the asset. Blockers, expired rights and unsorted restrictions still prevent use.See it in the map above now sorts usage conditions from blockers. Then it checks the intended purpose, the asset and the scope of use. Conditions and the required credit stay on the asset record. Blockers, expired rights and older restrictions that were never sorted still prevent use.
ProofThe test definitions follow both cases through to the intake status.
03Today
Where it stands.
This covers local intake and review only. The part meant to talk to a provider has no network code, so this is not a finished service for making media. An import is several writes, not one save where either all of it is saved or none of it is. The asset records let it recover, but it cannot undo every file.