PASTEWISE

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.

  • 0 paste words in any request · 4 hosted fills
  • 2.0% wrong in name, phone, address, postal boxes (hints off)
  • 135/135 held-out fills on-device
Top sheet · the message you copiedsynthetic
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-2290 0857 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)

evidence/bench/report-holdout.json
2.34 s

warm median per fill, Nano on an M1 Max

evidence/bench/aggregates/2026-11-22-f00f35d-holdout-off.json

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.

The Pastewise app after a real on-device fill of the synthetic message S1: source words underlined in carbon blue on the white top sheet, the address, city, postal code, item, count and service pressed through in blue, the recipient name and the phone number amber.
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

  1. BOOTpage files, Remote Config, reCAPTCHA35 req
  2. FILL S1consignment note · on_device0 req
  3. FILL S2front desk · on_device0 req
  4. FILL S3order · on_device0 req
  5. FILL S4order · on_device0 req
  6. S52,001 chars · refused0 req
  7. “Nothing was sent.”
  8. TEACH Cthe empty form → gemini-3.5-flash-lite5 req
  9. 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

  1. The live form becomes a JSON schemaRead from the page: labels, names, options, formats.
  2. Nano answers inside that schemaPassed as responseConstraint: valid JSON in 135/135 held-out fills.
  3. Code checks every value against your textIn the message, fits the box, one candidate. Gate v4.
  4. Boxes press through or stay amberEvery fill shows its inferenceSource.

In the cloud

gemini-3.5-flash-lite · InferenceMode.ONLY_IN_CLOUD

  1. The empty form, never the messageYou can read the payload before it is sent.
  2. A teacher writes hints for cryptic boxesCNEE became “Enter the name of the consignee”, returned through responseSchema.
  3. Saved by form fingerprintFirestore keys hints by structure, never content.
  4. Guarded and tunableApp Check in front of AI Logic; Remote Config holds the 2,000-character cap, timeout and kill switch.

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-2290 0857 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
08125550773 not 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 bytes tests/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%aim≥ 90%Missed
Wrong value shown as foundmostly free-text notes; 2.0% in name, phone, address, postal boxes
5.9%aim≤ 3%Missed
Warm median per fillNano on an M1 Max, mean of 3 repeats
2.34 saim≤ 2 sMissed
Valid JSON, on-deviceevery batch reported on_device
135/135allmet
17.7%of boxes left amber for you to check: the price of not guessing.
+0.1 ptfrom the cloud teacher on form C (78.3% → 78.4%, bench). It adds little.
180 + 45bench and held-out pairs, in the repo with hashes. Tables on /bench

Honest by design

“We aimed for three bars and missed all three”

— README · Engineering Rigor

“the code gate checks that a value is in the paste, not that it is the right part”

— README · Honest limits 2

“The cloud teacher is a measured experiment, not a selling point, and it only ever sees the empty form.”

— README · Honest limits 3

All eight limits in the README

Questions a judge would ask

Is the message really never sent?

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.