---
title: "OPMVP: Who Goes First · Harness Architecture"
description: "Place furniture by importance and the TV has nowhere to go. Place the piece with the fewest legal spots first, and a room fails only when the room is wrong."
source: https://www.testfit.io/harness-architecture/opmvp
last_updated: 2026-11-17T00:00:00Z
---

Essay · September 16, 2024

# OPMVP: Who Goes First

- **Author**: Clifton Harness
- **Date**: September 16, 2024
- **Address**: /harness-architecture/opmvp

Interactive study One living room, placed in two orders

In September 2024 I wrote down the rules for a side project I was calling OnlyPlans, a minimum viable program that would take a building outline, fill it with rooms, and then fill the rooms with things. Most of that post was JSON. The part worth keeping was a living room: 20 by 15 feet, four objects, each with a number. Sofa 1, coffee table 2, TV 3, bookshelf 4. The numbers were placement priority. The program would put the sofa down first and work down the list, and each object would respect whatever was already in the room.

That seemed obviously right. The sofa is the most important thing in a living room, so the sofa gets the best spot. This post is about why that is backwards, and the one-line change that fixes it: place the object with the fewest legal spots first, and count again after every placement.

## The room and its rules

The drawing is that room with a few things a real room has: an 8-foot picture window centered on W3, a 3-foot entry door on W4 near the corner, and one AV outlet on W3, three feet from the corner. The furniture is the 2024 furniture: a 6 × 3 foot sofa, a 4 × 2 coffee table, a 5-foot TV on an 18-inch-deep console, and a 4-foot bookshelf a foot deep.

The rules are the 2024 rules, turned into numbers. The sofa sits against a wall, not in front of the window or the door and not in the door swing. The coffee table sits 18 inches to 3 feet in front of the sofa, centered on it. The TV sits against a wall within 18 inches of the AV outlet, because that is where the cable is. The sofa and the TV face each other: opposite walls, centered within a foot, 8 to 12 feet apart. The bookshelf takes any free wall, out of the sightline between them.

One fact about this room matters before anything moves. Across its 15-foot depth, a 3-foot sofa and an 18-inch console leave 10 feet 6 inches between them, inside the rule. Across its 20-foot length they leave 15 feet 6 inches, too far. So the sofa and the TV can only face each other across W1 and W3, and the middle of W3 is glass.

## Importance first

The placer here is the simplest one you can write, and it is the one the 2024 post sketched. Take the next object on the list. Find every spot where it obeys its rules against what is already down. Take the spot it likes best (the sketch gave each object a favorite wall and a position along it). Never take anything back.

The sofa goes first and has 58 legal spots, at six-inch steps along every stretch of wall that isn't glass, door or door swing. Its favorite is the middle of W1, and the middle of W1 is legal. Nothing in the room objects, because nothing else is in the room yet.

The coffee table goes 18 inches in front of it. Then the TV. Its outlet gives it three spots, all near the corner of W3, and none of them faces the sofa: the closest sits 6 feet 6 inches off the sofa's axis. The TV fails. The bookshelf goes on W4, and the run ends with three of four objects placed.

Now read the error. It names the TV. Any log, any red flag, any designer looking at that result goes and looks at the TV. But the TV did nothing wrong. It is sitting exactly where the outlet told it to. The sofa made the mistake two placements earlier, and the placer has no way to say so. A greedy placer always blames whoever comes later.

This isn't a near miss, either. A full search over every combination of spots finds 1,628 complete layouts in this room. The rules are fine. The room is fine. The order is the problem.

## Count before you place

Here is the change. Before placing anything, count how many legal spots each object has. In the empty room the bookshelf has 79, the sofa 58 and the TV 3. The coffee table has none yet, not because it is picky but because its rule is written against the sofa, so it waits for one.

The TV is ranked third, and it has one spot for every nineteen of the sofa's. I think that is the general pattern, not a quirk of this room. The things we call important are the things that look good anywhere, which means they have options. The things tied to the building (an outlet, a drain, a duct, a gas line) have very few. Importance and pickiness run in opposite directions more often than not.

## Fewest spots first

So the TV goes first. It takes the legal spot nearest its favorite, the right-hand end of W3, next to the window. Then count again. The sofa drops from 58 legal spots to 4, all on W1, all facing the TV. The bookshelf barely notices. Now the sofa is the pickiest, so the sofa goes next.

Then the coffee table, then the bookshelf. Four of four. Same room, same rules, same favorites, the same placer that never takes anything back. The only difference is the order, and the order is computed rather than chosen: whoever has the fewest options goes next, and the count is redone after every placement because every placement changes it.

People who write constraint solvers have called this the fail-first principle for decades: go where you are most likely to fail, so you find out early. I like a plainer version. The pickiest object picks first. The sofa still gets a perfectly good spot. It just gets it after the TV has said where the TV can live.

I ran the outlet around the whole room, every six inches, 140 positions. Twenty-eight of them allow any layout at all. Importance order finds one at none of the 28. It can't: the sofa always takes the middle of W1, so the TV would have to sit in the middle of W3, which is the window. Fewest-first finds a layout at 22 of them.

## When fewest-first fails, look at the room

The better property is what a failure means. Move the outlet to the middle of W3, under the window. Fewest-first counts the TV first, finds 7 spots within reach of the outlet and none clear of the window, and fails on its very first placement. This time the error is true. A full search finds no layout at all. The outlet is in the wrong place, and that is a note for the electrical drawings, not for the furniture.

Under importance order you can't tell those two rooms apart. Both runs end with a red TV. One room works and one doesn't, and the logs look the same. Under fewest-first, the object that fails is the one that was pickiest when its turn came, so the red flag lands much closer to the real conflict.

Much closer, not always on it. Put the outlet on W1 about 15 feet along and fewest-first fails too, though hundreds of layouts exist. It correctly sends the TV first, but the TV then takes the one of its spots nearest the middle of the wall, and that leaves the sofa nowhere on W3 that isn't glass. Fewest-first decides who goes next. It doesn't decide where. For that you need a placer that can take its last move back and try the next spot, which is a bigger program. It is worth seeing how far the cheap fix gets you before you write it.

## Your turn

The last step of the drawing hands you the outlet. Drag it around the room and switch between the two orders. The bottom line runs the full search every time, so you can find all three cases: no layout exists and both orders fail (the room is wrong); fewest-first works and importance doesn't (the order was wrong); and the six positions on W1 where fewest-first fails anyway (the choice of spot was wrong). The clearances themselves are deliberately crude here. [Furniture Clearances](https://www.testfit.io/harness-architecture/furniture-clearances.md) is where I take those seriously.

The 2024 post had the right instinct in one line: "we want to, in fact, never place any object manually first." It got the next step wrong. It replaced a person picking first with a priority number picking first, and a priority number is just a person's decision made earlier and remembered longer. The fix isn't a better ranking. It is to stop ranking by importance and let the room tell you the order, one count at a time.

This is why I care past the living room. Rooms in a unit, units on a floor, cores on a plate: every layout tool I have seen keeps a list somewhere that says what goes first. If that list is sorted by what matters most, the tool will place the big thing beautifully and then fail on the stair. Sort it by what has the fewest places to go, count again as you go, and when it still fails, believe it.

### Revision history

- **November 17, 2026**: Rewritten around one idea from the 2024 build log, the priority-ordered living room: place the object with the fewest legal spots first. The JSON schemas are gone; a new drawing runs the room in both orders.
- **November 3, 2026**: Added historical context and a link to the later Rooms essay; clarified the title and description.

End of essay · Clifton Harness · September 16, 2024
