How it works
The model points. Code measures.
A model that is asked to read a dial often misplaces the needle. So Sightglass asks it for four positions only, and the Lens computes the value from them with the scale a person wrote on the round card.
The path of one reading
- The Lens projects the dial rim to screen space and crops the composite frame to it, with 15 percent around.
- For that one frame the overlay (tags, arcs, round card, chevron) is switched off, so the model sees the dial and not the Lens's own drawing. It comes back on straight after.
- Gemini 2.5 Flash returns JSON against a fixed schema at temperature 0: pivot, needle tip, lowest mark, highest mark, whether the dial is legible, and its own guess of the value.
- Code checks the points lie in the crop, computes the needle angle against the scale from the round card, and refuses if the geometry is not sound.
- The value gets a verdict from the round card limits. A person accepts, corrects or reads by eye. Only then does an entry exist.
Where the intelligence is, and is not
| Part | Who decides | File |
|---|---|---|
| Where the needle and the scale ends are | The model (Gemini 2.5 Flash through Snap's Remote Service Gateway) | GaugeReader.ts |
| Whether the dial is legible | The model says so. A person can still read by eye. | ReaderContract.ts |
| The scale of the gauge | A person, on the round card. Never the model. | RoundPlan.ts |
| The number | Code, from four points and the scale | DialGeometry.ts |
| Normal, watch or alarm | Code, from the round card limits | Verdict.ts |
| Whether a value enters the round | A person accepts, corrects or reads by eye | EvidenceGate.ts |
| READY or HOLD | A person. Code refuses READY over an alarm. | EvidenceGate.ts |
| Whether the sheet was changed after signing | A digest, checked again by the door with the same code | RoundSheet.ts |
What it will not do
- Put a value in the round that nobody looked at.
- Sign READY with a reading in alarm.
- Take the scale from the model.
- Say a sheet was sent before the door answered 200 or 201.