The Loophole

Write a rule. Watch a machine find the way round it.

All explainers

Pip’s rule

Switch terms on and set their points. Pip adds them up — that number is all it cares about.

    Simulated, illustrative room. Pip’s planner is a real search over every move this little world allows.

    Loopholes found

    Part A: what Pip finds when your rule leaves a door open — each one is something the room genuinely allows. Part B: what you find in the rubric.

    Sources and how Pip works

    How Pip plans

    Pip is not scripted. Every time you press Run, a planner searches through the moves Pip can make — breadth-first, one move at a time, remembering the best score it has reached for every distinct state of the room — until its battery runs out. Pip may stop after any move. It acts out the single highest-scoring plan it found; when two plans tie, it takes the shorter one. In the biggest rooms the search keeps only the most promising states at each step, so Pip is very thorough but not perfect.

    Pip never sees “what you wanted”. That checklist is computed separately, after the fact, so you can see the gap. The rooms, objects and points are simulated and illustrative; the real-world cases on the cards come from the sources below.

    Checking cost

    Every rule term reads a sensor, and somebody has to pay for checking it: a sensor costs 1, a camera 3, a teacher’s check 10, an inspector 30 and a full-time person 100. Terms that read the same sensor share its cost. The numbers are illustrative; the order is the point — the more a check needs a person, the more it costs.

    Keyboard

    Press R to run Pip and Esc to skip to the end. If a one-key shortcut gets in your way — with speech input, for example — switch it off here.

    R runs Pip

    Sources