MadeThis Engineering
Take-home, December 2026

Main
Branch

Forty stores share one playbook. Agents keep proposing changes, each with a confident claim. Build the gate that decides which changes ship: to every store, to a subset, or not at all. Then show us it works.

60 minutes once you startAny AI, open bookAny language, runs in Docker
main your gate
main, the shared playbooka store's change that stays locala change your gate ships to the stores that benefit

The task in 53 seconds, with narration and captions. All stores and numbers are simulated.

The job

MadeThis runs a fleet of small online stores. Every store is a fork of one shared playbook, main: what to charge, how much to spend on ads, how deep to stock, how often to email, what to offer at checkout. Agents inside the stores try changes to their own fork and propose shipping them across the fleet.

Today the fleet trusts the agent that wrote each change. If you ship every change its author recommends to every store, the fleet loses between $1.0M and $2.1M on the public worlds over 90 days.

There is no trick list to find. It's a judgement problem under noise, with money on the line, and we care how you reason as much as the number you get.

How it works

The fleet is 40 stores, each with 75 days of daily ledgers: visits, orders, revenue, refunds, ad spend, payouts, inventory and cash. During the history some stores ran changes, each a diff on playbook knobs, and some cost a daily fee. Some ran two; about a quarter ran none. Every change carries its author's claim.

Your gate decides, for every store, which changes it runs next. You can apply any change to any store, not only the ones that tried it, and take a change away from a store that ran it.

What counts

The score is the fleet's true value at the end of day 164: cash, plus stock at cost, plus money that will actually arrive, minus refunds owed. It's compared with two plans facing the same luck.

score =your value − keep-main valuereference value − keep-main value

Keeping main scores 0. The reference is a plan made by an optimiser that can read every hidden parameter of the simulator. It scores 1, and you can beat it. Negative scores are easy, so each world's score is floored at −1. What a store's dashboard reports is not the score: it values stock at retail and receivables at face value, and some dashboards have bugs.

Public and hidden worlds

The repo has 3 public worlds. For each you get exactly what your gate sees, plus every hidden parameter, and an evaluator that scores your gate through both calls in seconds.

We grade on 8 hidden worlds. They are built the same way in spirit, but the economics differ from world to world, so a change that wins in one can lose in another. The simulator's own constants differ too, and they can contain changes and mechanisms the public worlds never show.

A gate that copies the public simulator or memorises the public worlds will score badly. Make yours learn from the data it's given.

Your hour

Set up first: Docker, Python 3.10+ and your AI tools. The clock starts when you submit the start form, and its confirmation screen links the template repo. Create a private repo from it (use the template, don't fork). Your last push has to land within 60 minutes.

  • Read the README and the interface, look at the data, and run the evaluator on an example gate.
  • Build the gate in the starter gate.py, or in any language. The repo already has a working Dockerfile and ./gate wrapper.
  • Build the evidence that it works. Three public worlds is a small sample, and they are not the hidden worlds.
  • Write it up and push.

What you hand in

DockerfileAn image where gate /input /output reads the input folder and writes /output/plan.json.
gateThe same gate, runnable from the repo root without Docker.
DESIGN.mdOne or two pages: what the gate does and why, how you know it works (with the command that runs your evaluation), where it fails, what you'd build next.
predictions.jsonYour forecast of your public and hidden scores, with a rationale. We compare it with what you score.
session/An export of your AI sessions for the hour, with keys removed. Deleted 30 days after your application closes, never used for training.

To hand in, add jacobcwright as a collaborator on your private repo and reply to the email that sent you this page with the repo link. We grade the last commit pushed within your 60 minutes.

How we grade

Hidden scoreThe mean over the 8 hidden worlds, each scored over several noise seeds.
Each decisionPer change, where you rolled it out in each phase against where the reference did, and the dollars at stake.
HonestyYour forecast against your actual score.
ReasoningDESIGN.md and your session: what you checked, and what you chose not to build.
Conversation30 minutes, without AI, about your design and what you'd change.

The score gets you into the conversation. The conversation decides.

Rules and quick start

Use any AI tools you like. Work alone, with no help from other people, and don't share the task. Your gate runs with no network on 2 CPUs, 4 GB of memory and 128 processes, with 2 minutes per call. Before the clock, installing tools and setting up your AI assistant is fine; don't write gate code before you start, and tell us what you prepared.

# score the starter gate and the trust-the-authors example on the public worlds
python3 eval/evaluate.py --gate "./gate {input} {output}"
python3 eval/evaluate.py --gate "python3 examples/trust-the-authors/gate.py {input} {output}"

# your gate, through Docker, exactly the way we grade it
docker build -t my-gate .
python3 eval/evaluate.py --gate "docker run --rm --network none --read-only --tmpfs /tmp:rw,size=256m --cpus 2 --memory 4g --pids-limit 128 --cap-drop ALL --security-opt no-new-privileges --user $(id -u):$(id -g) -e HOME=/tmp -v {input}:/input:ro -v {output}:/output --entrypoint gate my-gate /input /output"
All stores, numbers and changes in this take-home are simulated.Questions before you start go to the person who sent you this page.