---
title: "Never present a guess as exact"
description: "Point & Fix has to find the source of whatever you click. Sometimes it knows; sometimes it guesses. Saying which is which is the whole design."
url: "https://panescale.com/blog/never-present-a-guess-as-exact"
published: "2026-10-10"
updated: "2026-10-29"
category: "Engineering"
---

# Never present a guess as exact

Point & Fix has to find the source of whatever you click. Sometimes it knows; sometimes it guesses. Saying which is which is the whole design.

[Point & Fix](https://panescale.com/docs/point-and-fix) starts with a click: you select a button, a heading or a card in your running app, and PaneScale has to find where that element lives in your source code. Get it right and the fix is fast. Get it wrong and the agent edits the wrong component — confidently.

The most important decision we made was not *how* to find the source. It was to always say **how sure** we are.

## When we know

Development builds of modern frameworks leave breadcrumbs. React, Vue and Svelte attach debug information to rendered elements that point back to the component and, often, the file and line. When that information is present — or when your app sets a data attribute for it — PaneScale uses it and shows an exact file and line, marked as the strong candidate it is.

## When we guess

Production builds, plain HTML, server-rendered templates and some build setups don’t carry that information. Then PaneScale falls back to a text search across the workspace — looking for the element’s text, label or placeholder — and ranks what it finds:

1. component files first,
2. then other source code,
3. then documentation,
4. then tests.

The search is bounded — at most 3,000 files and 12 MB, skipping `.git`, `node_modules` and `dist` — so it stays fast on large repositories. It shows up to five candidates, each with the matching line.

A location found this way is labeled a **candidate**. Always. Even if there is only one match, even if it is almost certainly right. The label is not modesty; it is information you need before you let an agent edit a file.

And when none of the candidates is right, there is an honest last option: **None of these — the agent searches itself**. Saying “we don’t know” is better than pointing the agent at the wrong file.

## Why it matters

An exact location and a good guess look identical in an interface that doesn’t distinguish them. You would trust both the same way — until the guess is wrong, the agent changes a similar-looking component somewhere else, and the bug you clicked is still there.

When you see “candidate”, you know to glance at the file before applying. When you see a location from the framework’s own debug information, you don’t have to.

Research on human–AI interaction keeps arriving at the same point. Google’s People + AI Guidebook, for example, recommends showing how confident a system is so that people can calibrate their trust — relying on it where it is strong and checking where it is weak. A label that says “candidate” is the smallest possible version of that advice.

## A walk through one fix

To see where certainty matters, follow one change from click to undo:

1. **Open your app** in the side panel’s browser — `localhost:5173`, or just `5173` — and click **Point & Fix**.
2. **Select an element.** The element under the cursor is outlined; links and buttons don’t fire while you pick. PaneScale shows what you picked: tag, id and classes, size, text and selector path.
3. **Check the source.** This is the moment the label matters. A strong candidate from debug information can be taken as it is; a text-search candidate deserves a glance at the matching line.
4. **Describe the change.** *Change* mode is for design and content and tells the agent to make the smallest change and leave tests alone. *Fix a bug* mode asks it to find the real cause, add or extend a test where the project has tests, and passes along the page’s recent console errors.
5. **The agent works in a copy.** An isolated worktree with your uncommitted work and your dependencies linked in, so your dev server keeps running on your own files.
6. **A quick check runs** — type check and lint, plus tests in *Fix a bug* mode, or the build if there is nothing else — and you see the result with the agent’s summary and the diff.
7. **Apply, refine or discard.** Applying takes a checkpoint first and needs a signed one-time approval. If you changed the same lines in the meantime, it stops with a conflict instead of overwriting your work.

At no step does an uncertain guess become a silent fact.

## The same rule elsewhere

“Never present a guess as exact” is not a Point & Fix feature; it is a rule we apply wherever PaneScale shows something it can’t be sure of:

- **Token usage** from CLIs that don’t report it is shown as *not reported*, never estimated — see [Measured, not estimated](https://panescale.com/blog/measured-not-estimated).
- **Status** of text-mode CLIs comes from terminal signals and screen detection, and the docs say so plainly instead of implying the same precision as structured events.
- **The morning report** only contains numbers from recorded runs, never the agent’s own claims.

Each of these would look more impressive with a confident number in place of an honest label. Each would be less useful.

## Safe by construction

The rest of Point & Fix follows the same idea of making mistakes cheap:

- The browser pane only talks to your local dev server — `localhost`, `127.0.0.1` or `[::1]` — through a proxy that allows only `GET` requests.
- Everything that comes from the page — text, attributes, console messages — is treated as untrusted data and handed to the agent as a description, never as instructions.
- The fix runs in an isolated worktree that includes your uncommitted work, so the agent sees exactly what you see without touching it.
- A quick check runs before you see the diff.
- Applying goes through the approval-protected merge, with a checkpoint first.

If the agent picked the wrong file after all, **Undo** is one click — and files you edited since are kept.

## Sources

- [People + AI Guidebook: explainability and trust](https://pair.withgoogle.com/chapter/explainability-trust/) — Google PAIR on showing confidence so people can calibrate trust
- [Visibility of system status](https://www.nngroup.com/articles/visibility-system-status/) — Nielsen Norman Group on telling people what a system knows
- [OWASP LLM01: Prompt injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) — why page content is passed to the agent as data, not instructions
- [git-worktree documentation](https://git-scm.com/docs/git-worktree) — the isolation each fix runs in
