TRACK 2 Visual task factory for floor plans

Proven answers on our plans. Proof of error on yours.

PlanProof draws floor plans whose every fact is known, checks each answer a second time from the pixels, and catches vision models being wrong on images nobody has labelled, including your own.

Runs on 127.0.0.1Keys never reach the pageEvery number recomputed from saved data
real model replies
Which way is the kitchen from the bedroom?Same plan, five copies. The true answer can't change.
Original
Model says–
Provably wrong
Click a copy to pause
The problem

AI now reads floor plans. Who checks the AI?

Construction and property software asks vision models to count rooms, check areas, follow doors and read the north arrow. Consumer apps in India run Vastu checks, room by room, on an uploaded plan. A wrong area, a missed door or a wrong direction costs real money.

Hand labels are slow

Every question on a real plan needs a person to measure, count and trace doors, and someone to check them.

…and sometimes wrong

A label nobody re-checked is a guess with a confident face. You can't score a model against a wrong key.

Real plans can't be varied

To learn why a model fails you must change one thing at a time: the arrow, the room count, the printed sizes. Real drawings don't allow that.

How the factory works

Every fact is known before a pixel is drawn.

Each plan starts as a scene graph: rooms, walls, doors, windows, areas. The drawing is rendered from it, then a second, independent witness reads the answer back from the black pixels alone. A question is kept only when both witnesses agree.

01

Seed + knobs

A seed and six difficulty knobs pick room count, sizes, labels, arrow angle, damage, extra doors.

02

Scene graph

Rooms, doors and areas as data. Witness one computes every answer from it.

03

Drawing

Rendered to PNG with north arrow, scale bar, labels and a stated area total.

04

Pixel witness

Re-derives rooms, doors, areas and the arrow from black pixels only, never the graph.

05

Agree, or out

Both witnesses must give the same answer, and near-ties are thrown out, before a task is written.

Inside the task set

10 question families. Six knobs. Balanced answers.

Task set out/run200: – questions on – images from – plans, seed –. Bars show the model's accuracy with the picture and with the picture removed: the questions can't be answered from text alone.

Six difficulty knobs, each recorded per task.

Every knob is sampled per plan, stored with each task and can be pinned (--fix n_rooms=9 show_dims=false), so one cause can be tested at a time.

Ambiguity guards and gates

Plans and questions that could be read two ways are thrown out

Odd shapes, unreachable rooms and near-tie questions (two rooms almost the same size) are rejected before anything is written.

Minimal-pair twins and balance

One change, a different answer

A quarter of plans get a twin with one door added or the printed total flipped. The right answer changes and nothing else does. On the – twin pairs it answered, the model got both right only – of the time and gave the same reply to both – of the time.

Answers are balanced per family, so always giving the most common answer scores only –.

Proof the answers are right

We tried to break it. It held.

A task set is only useful if its answer key is right. Each check below runs from the command line and is part of the claims audit.

Repeatability–

Same seed, same bytes

Rebuild the set from its recorded seed and compare the SHA-256 of every image and of the task file. verify

Mutation test–

Every corrupted drawing caught

Corrupt the drawing, keep the old answer key, and see if the pixel witness notices. – untouched drawings accepted.

Known blind spot, stated–

Swapped room labels are not caught

The pixel witness doesn't read text (no OCR), so swapping two room names passes. We report it rather than hide it.

No picture– → –

Take the image away

Same questions, picture removed: accuracy collapses. The model must read the drawing.

Shortcut baseline–

Always the most common answer

Balanced answers keep guessing low, so a score means something.

Tamper test1 pixel

Edit a pixel or an answer: verify fails

Hashes of every file are stored in the manifest.

Innodata redlite–

Same score in Innodata's harness

Replaying the saved replies through redlite gives the same mean score as our grader.

Claims auditPASS

Every number recomputed

python -m planproof audit recomputes each headline number from saved data and checks the README and docs state it exactly.

Test suitepytest

No API key needed

Unit and end-to-end tests, including this web app with a fake model and its safety checks.

Headline finding

The model reads the top of the page as north.

The model answers compass questions as if up were north and ignores the arrow. A controlled experiment shows the cause: turn the sheet so the arrow points up and the same plans and questions go from zero to mostly right.

    The label-free check

    No answer key? Still provably wrong.

    For images PlanProof didn't draw, nobody knows the right answer. But some edits cannot change it: turning the whole sheet (the north arrow turns too), adding a white border, saving as JPEG. If the model's answer changes between copies, at least one answer is wrong. No label needed.

    1

    Ask about the original

    Any question with a fixed answer type: a number, a compass direction, yes/no, a room name, a list.

    2

    Ask about edited copies

    The same question on copies whose true answer is the same: turned, bordered, shrunk, compressed.

    3

    Compare the answers

    Any disagreement is proof of error. Agreement is not proof of being right, and the page says so.

    EditWhy the true answer can't changeAnswers changed
    Inside the app

    Two views. Everything clickable.

    Run the label-free check on your own images in Check. Open any task set, every model answer and a one-click repeatability check in Results.

    Check view

    Run the label-free check on your images

    1. Images. Drop up to 12 images, or click Use the example plans. Large images are scaled to 2400 px.
    2. Questions. Five ready questions are ticked. Add your own with an answer type, and an optional known answer to see ✓/✗ and measure false alarms.
    3. Edits. Pick the copies to make: turned 90° left or right, turned 180°, white border, shrunk 75%, JPEG quality 30.
    4. Model. Gemini or any OpenAI-compatible endpoint. The cost line shows how many calls: images × questions × versions.
    5. Run. Copies are written to out/ui/check-… and answers stream in. Each question gets a verdict, with the provably wrong ones first. Without a key the copies are still made so you can look at them.
    Provably wrongConsistentUnreadableWaiting90°LS= an answer that differs from the original
    Results view

    Every task set, every answer, one-click proof

    1. Task sets. One table of everything under samples/ and out/, including checks run here: type, questions, images and which models answered.
    2. Answer-keyed sets. Accuracy per model (with the image, without it, and the shortcut baseline) and per family.
    3. Task browser. Filter by model, family or wrong answers only. Each row shows the image, the question, the key and the model's reply. Click an image to zoom.
    4. Label-free sets. The same verdict list as Check: every copy side by side with its answer.
    5. Verify repeatability. Rebuilds the set from its seed and compares the SHA-256 of every file. Open dashboard opens the self-contained HTML report with charts and real mistakes.
    Privacy and security

    Your plans and keys stay on your machine.

    The app is a small Python standard-library server. Each rule below is covered by a test.

    Local only

    Listens on 127.0.0.1. Requests with any other Host or Origin are refused, which blocks DNS rebinding and cross-site posts.

    Keys stay in the environment

    Read from GEMINI_API_KEY or OPENAI_API_KEY. The page is told only whether a key exists.

    Three folders only

    Files are served only from samples/, out/ and examples/. Any path outside, including ../ tricks, is refused.

    Nothing from other sites

    A strict content security policy: no outside scripts, fonts or trackers. Uploads are capped (12 images, 80 MB) and checks are rate-limited.

    Command line

    Everything here is one command away.

    Run each as python -m planproof <command>, or planproof <command> after pip install -e .. Add --help for all options.

    Point it at your plans. See what breaks.

    Drop in floor plans, pick questions, and get proof of every error the model makes, with no answer key.

    PlanProof · visual task factory for floor plansLocal app on 127.0.0.1 · numbers read from
    Online copy with saved results. To check your own plans, run python -m planproof ui locally. GitHub