---
title: "Room Configurator V: The Drag Is the Answer"
description: "Nobody fills in an adjacency matrix, but every drag in a kitchen layout answers it. Why a generator must trust kept layouts over single moves."
source: https://www.testfit.io/harness-architecture/generic-room-configurator-iv-2
last_updated: 2026-11-17T00:00:00Z
---

Essay · September 6, 2024

# Room Configurator V: The Drag Is the Answer

- **Author**: Clifton Harness
- **Date**: September 6, 2024
- **Address**: /harness-architecture/generic-room-configurator-iv-2

I spent Labor Day having ChatGPT walk me through a kitchen generator. I regret most of it. It was tedious, I had to check every line it wrote, and at the end I had a page that spat out rows of cabinets, sinks, ranges and dishwashers in every order you could ask for. Generating them was easy. Generating them so the range wasn’t jammed against the fridge was a complete disaster. The one useful thing I wrote down that day was a guess: maybe the slide-things-around interface is what creates the adjacency matrix. This post takes the guess seriously. I think it’s right, but it’s wrong in two interesting ways first.

![Rows of colored blocks show alternative arrangements of cabinets, a sink, a range and a dishwasher.](https://www.testfit.io/studies/images/2024/09/image-308x1024.webp)

Image description: The Labor Day generator’s output. Yellow blocks are cabinets, green is the sink, red is the range and purple is the dishwasher. Each row keeps the sink between cabinets while varying the sequence and widths of the remaining blocks. The printed widths are illustrative.

Interactive study The adjacency matrix, read off the drags

## Sixteen questions

Take one wall, 14 feet long, and six things to put on it: a fridge, a sink, a dishwasher, a range and two base cabinets. Count the end of the wall as a neighbor too, because it is one: a good share of anyone’s opinions about a kitchen are about what a run is allowed to end with. That makes six kinds of thing, fifteen pairs between them, plus cabinet against cabinet: sixteen questions. Each one asks the same thing. May these two touch?

That triangle is the adjacency matrix. A generator needs every cell filled before it can tell a kitchen from a row of boxes, and sixteen is the easy version. Add a pantry, a wall oven, a microwave, a corner and a window and you are past seventy cells for one room. Do the same for a bathroom, a lobby and a unit plan and the matrix is the product.

## Nobody fills in the form

The obvious move is to ask. Put the triangle on screen and let the user tick boxes. I did the equivalent on Labor Day, and the drawing shows everything I came up with: fridge and sink, yes; fridge and range, no; range and dishwasher, no. Three answers out of sixteen. [Kitchen Generator I](https://www.testfit.io/harness-architecture/kitchen-generator-i.md) built a whole generator on two of them.

I left the other thirteen blank because I didn’t think of them, not because I don’t have opinions. I have strong opinions about a range at the end of a wall. You need somewhere to put the pan down on both sides. It never occurred to me to write that down, because nobody writes down the things they’d never do.

The form also has the wrong vocabulary. Yes asks whether a pair may touch. The most important rule in my kitchen is that the dishwasher must touch the sink, because the plumbing is shared and the person loading it is standing at the sink holding a dirty plate. A checkbox that means allowed can’t say required. Neither can the fridge goes at the end of the run, which I do every single time and have never once said out loud.

## A drag is an answer

So don’t ask. Show a kitchen and let the user fix it. The generator’s first offer, with no rules at all, is a cabinet, the fridge, the range, the dishwasher, the sink and a cabinet. I grab the fridge and drop it at the left end of the wall.

That drag answered questions nobody asked. Compare the neighbors before and after. The fridge is no longer against the range, and the left cabinet is no longer against the end of the wall: two pairs broken. The fridge now meets the end of the wall, and the cabinet it pushed over now sits beside the range: two pairs made. Everything else stayed where it was.

Which of those did I mean? One. Get the fridge off the range. The matrix has no way to know that, so it does the only honest thing and marks both broken pairs as suspects.

## A move and a wedge look the same

The second drag is worse. The range and the dishwasher are still touching, so I take the cabinet off the right end and wedge it between them. Three pairs break: range and dishwasher, sink and cabinet, cabinet and wall end. Three get made. I meant one of the six.

Look at which one. The pair I cared about, range against dishwasher, doesn’t involve the piece I picked up at all. It broke because of where I dropped the cabinet. The piece I actually grabbed lost two neighbors I have nothing against.

There are two kinds of drag and they are the same gesture. A move is about the piece you pick up: the fridge doesn’t belong here. A wedge is about the gap you drop it into: these two shouldn’t touch. The meanings are opposite and the generator only ever sees the gesture. A single drag is a sentence with the verb missing.

## Keeping is the clearest answer

I keep that kitchen. Keeping is an answer too, and the most reliable one the user ever gives: every pair on a wall I kept is a pair I can live with. That vouches for six cells at once, and nothing a drag says afterward can take them back. The broken pairs that never show up on a kept wall become rules.

So after one kitchen the matrix has four rules. Two are right: fridge against range, range against dishwasher. Two are things I never meant: a cabinet may not end the wall, and a cabinet may not touch the sink. Both came from the wedge. The corner flags in the drawing mark the cells that disagree with what I actually want.

## False rules seal themselves

Here is the part I didn’t see coming. A generator that obeys its rules will never show me a cabinet at the end of a wall again. So I will never get the chance to leave one there, and the rule will never be wrong in front of me.

The cost is not small. There are 360 different ways to line these six things up, and 16 of them are kitchens I would keep. The four learned rules allow 32 layouts, and only 4 of my 16 are among them. The two false rules quietly threw out the other 12, three quarters of the good answers, and I would never know. A missing rule is loud: you get a range against the fridge and you fix it. A false rule is silent: you just get fewer kitchens, and fewer kitchens look like the problem is hard.

The second kitchen is one of the survivors, dishwasher, sink, range, cabinet, cabinet, fridge, and it’s fine. I keep it without touching anything. It does teach one thing. The fridge has ended the wall in both kitchens I kept, and the range has had a cabinet beside it in both, and I built both pairs by hand the first time. So they turn into musts, and the second one is half of the pan rule I never wrote down. It teaches nothing about the two mistakes.

## Break your own rules on purpose

The fix is that the generator has to spend some of its offers testing itself. Kitchen three breaks two of its own rules on purpose: it starts the wall with a cabinet, and it puts the fridge against the range. It also tries something it has never tried, which is ending the wall with the range.

I make one drag: the range, off the right end, into the gap between the two cabinets. The cabinet at the left end I left alone, on a wall I kept, so that rule is gone. The fridge and the range I pulled apart a second time, in a second kitchen, so that one is now a rule and not a suspect. Range against the end of the wall broke for the first time, a new suspect and a correct one. The drag also broke cabinet against cabinet, by accident, but the second kitchen already vouched for that pair, so the accident costs nothing.

Three kitchens, three drags, no questions. Thirteen of the sixteen cells now say what I actually want. One is blank, fridge against dishwasher, because no kitchen has put them together yet, and blank is a fine answer: it means I’ve never cared. Cabinet against sink is still a false rule, waiting for its test. And the dishwasher-beside-the-sink rule, the most important one in the room, reads as merely ok. Every kitchen so far happened to put them together, so I never had to put them back. You only learn a rule from a mistake, so a generator that learns has to make some.

## Your turn

The drawing is live now. It starts from the same bad first kitchen with an empty matrix. Drag the pieces where you’d put them, or select one and use the arrow keys. Each drop rings the pairs it broke and made. The Keep this kitchen button vouches for everything on the wall and asks for another, and from the third kitchen on, every other one is a test: it breaks a couple of your rules on purpose, or leaves out a must, to see whether you fix it. Your taste doesn’t have to be mine. If you like the range at the end of the wall, leave it there and watch the matrix take your side.

It isn’t smart, and you can confuse it. Make your fixes with wedges and it will keep learning rules about cabinets. Keep a kitchen you don’t like and it will believe you. That’s the honest version of the idea, and it already beats a form nobody fills in.

## The judgment

The adjacency matrix is the hard part of a configurator. It’s too big to ask for and too personal to ship as a default. But users answer it every time they fix a layout, for free, without being asked. Read each drag as a diff of neighbors, never as one answer. Trust the walls people keep more than the moves they make. And let the generator be wrong on purpose, a little, so it can find out which of its rules came from the user and which it made up.

The slide-things-around interface does create the adjacency matrix. It just needs a generator that’s willing to be corrected, and that goes looking for the correction.

End of essay · Clifton Harness · September 6, 2024
