Build with Hybrid AI · Web (Chrome) · Gemini Nano via Firebase AI Logic
Your customer typed it once. Pastewise copies it across.
Orders arrive as chat messages and get typed again into a courier form. Paste it into Pastewise and press ⌘↵ / Ctrl+Enter: Gemini Nano reads it on your laptop, and code shows a value only if it is really in your text. The rest stays amber: check those, then copy the row into your sheet.
2.0% wrong in name, phone, address, postal boxes (hints off)
135/135 held-out fills on-device
Top sheet · the message you copiedsynthetic
hiii 👋 it's Maya Kusuma again! can u send the 2 linen tablecloths (the sage ones) to my mom this time:
Mrs. Ratna Kusuma, Jl. Cempaka Putih Raya No. 41, Jakarta Pusat 10510.
her old number 0813-5550-2290 is dead don't use it, new one is 0857 5550 8812.
express pls, she needs them before Friday 🙏 leave at the guard post if nobody home
Edit the message: the gate re-checks every box as you type.
Nº 0417-C
Consignment noterecorded · on_device
CNEE
Maya Kusuma
names are always yours to confirm — the model suggested “Maya Kusuma”
CNEE TEL
085755508812
two numbers in your text — pick one 0813-5550-22900857 5550 8812
ADDR 1
Jl. Cempaka Putih Raya No. 41
found in your text
DIST/CITY
Jakarta Pusat
found in your text
ST/PROV
ZIP
10510
found in your text
DESC
linen tablecloths
found in your text
PCS
2
found in your text
SVC
EXP
found in your text
RMKS
not in your text — the model wrote “…guard post if nobody 홈”
LIVE · REQUESTS FROM THIS PAGE WHILE THE GATE RAN0
Model answers: recorded on-device run, 2026-11-22, Chrome 157 on an M1 Max, replayed at 3× speed.Gate: live in this page, the shipped code (v4); edit the message to re-check · 10/10 boxes match the recording
0
message words found in any request, 4 on-device fills, hosted page
evidence/network/2026-11-22-4b8f0b5-live.json
2.0%
wrong values shown in name, phone, address and postal boxes (held-out)
evidence/bench/report-holdout.json
77.9%
of boxes with an answer in the message arrive with the right value, found in your text (held-out; the video's 80.7% is the model's own answer matching the answer key in every box, before the gate)
Three demo forms built into the app: a shop order form, a hotel front-desk booking, a courier consignment note.
A Two records
Watch it fill. Then check what left.
A real fill on the hosted page, beside the recorded network log of four fills there. Different runs, so each carries its own date.
pastewise.edycu.dev
Hosted app · synthetic message S1 on form C · captured 2026-11-22 · inferenceSource on_device
Network receiptNº 4b8f0b5
pastewise.edycu.dev · 2026-11-22 · re-set from the recorded log
BOOTpage files, Remote Config, reCAPTCHA35 req
FILL S1consignment note · on_device0 req
FILL S2front desk · on_device0 req
FILL S3order · on_device0 req
FILL S4order · on_device0 req
S52,001 chars · refused0 req
“Nothing was sent.”
TEACH Cthe empty form → gemini-3.5-flash-lite5 req
CANARYplanted message wordscaught
PASTE WORDS FOUND IN ANY REQUEST0
Counts from Chrome's network log (CDP). Bodies are not stored, only host, path, size and hits. Blind spots: words under four letters, encoded text. Open the full receipt
The hybrid split
With Nano, the message stays on the laptop. The cloud gets the empty form.
Three Firebase AI Logic model instances: fill on the device, teach from the empty form, and a consent path that waits for your Yes.
On your laptop
Gemini Nano · InferenceMode.ONLY_ON_DEVICE
The live form becomes a JSON schemaRead from the page: labels, names, options, formats.
Nano answers inside that schemaPassed as responseConstraint: valid JSON in 135/135 held-out fills.
Code checks every value against your textIn the message, fits the box, one candidate. Gate v4.
Boxes press through or stay amberEvery fill shows its inferenceSource.
The empty form, never the messageYou can read the payload before it is sent.
A teacher writes hints for cryptic boxesCNEE became “Enter the name of the consignee”, returned through responseSchema.
Saved by form fingerprintFirestore keys hints by structure, never content.
Guarded and tunableApp Check in front of AI Logic; Remote Config holds the 2,000-character cap, timeout and kill switch.
No Nano? A consent sheet comes before that one message goes to the cloud (PREFER_ON_DEVICE). Recorded check: 0 AI requests before Yes; the sheet counted 682 bytes (2 × 341: one attempt timed out and was retried) and Chrome's wire log saw the same 2.
Found in your text, or left amber.
The model proposes. Code decides, with rules you can read and tests that pin them.
B Two numbers
Two numbers in the message? You pick.
her old number 0813-5550-2290 is dead don't use it, new one is 0857 5550 8812.
CNEE TEL
085755508812
two numbers in your text — pick one 0813-5550-22900857 5550 8812
The model chose the new number, correctly. The box stays amber anyway: with two numbers, a person decides.
two_candidates · tests/unit/gate.test.ts:64
Recipient names are always yours to confirm.
recorded run at ba8a64a · gate v2
CNEE
Maya Kusuma
found in your text, but she is the sender
recorded run at ee635b4 · gate v4
CNEE
Maya Kusuma
names are always yours to confirm
On the 180-pair bench the recipient box showed a wrong value 10.6% of the time on form A and 8.3% on form C, often the sender or a kinship word. So v4 never presses a recipient name through.
ALWAYS_CHECK_KEYS · src/gate/index.ts
Nano wrote “홈”.
홈
The recorded run ended its remarks with “…the guard post if nobody 홈”, Hangul for home. Not in the message, so the box stayed amber.
not_in_text
A dropped digit is not a match.
081255507734 in the text 08125550773not in the text
A near-miss is how a wrong phone number gets in, so it stays amber.
tests/unit/gate.test.ts:78
The receipt can fail.
Requests are searched for the message's words, raw, URL-encoded and JSON-escaped. A planted canary must be caught.
CANARY · S3 words planted in a request → caught: 14 words, 83 bytestests/unit/ledger.test.ts:25
C Held-out slip
The numbers, including the three we missed.
45 message–form pairs, written without sight of any bench result and hashed before the first run. Run once on the release, 3 repeats, synthetic data, one laptop.
MeasureGotAimed forVerdict
Strict field accuracyevery box compared with one clerk's answer key
80.7%≥ 90%Missed
Wrong value shown as foundmostly free-text notes; 2.0% in name, phone, address, postal boxes
5.9%≤ 3%Missed
Warm median per fillNano on an M1 Max, mean of 3 repeats
With Gemini Nano, fills run ONLY_ON_DEVICE, and a fill still works with the network switched off (DevTools → Network → Offline). The hosted check saw 0 requests during 4 fills and 0 message words in any request; a planted canary was caught. The receipt page shows the log. It covers this page's requests, not the whole browser.
No Nano? Here is what you still get.
A plain notice, a recorded run labelled as recorded, and a consent sheet showing the bytes before one message goes to the cloud. Nothing is sent before Yes; the fill is labelled in_cloud. The gate above works without Nano too.
Then what does the cloud do?
Two jobs. Without Nano it reads that one message, only after Yes (PREFER_ON_DEVICE); the sheet's byte count matched Chrome's wire log. On every laptop it reads the empty form and writes hints for cryptic boxes (measured: +0.1 points on the hard form, small).
Why do some boxes stay amber?
Code could not accept them: not in your text, wrong format, two phone numbers, an assumed year, or a recipient name. Amber asks for a look; a wrong blue box looks finished.
Does it work on any website?
No. It is a hosted web app with three forms; there is no extension, so it does not fill other sites.
What is synthetic?
Every message: invented people, phone numbers in the 5550 block. Nothing on the fill path is mocked.