For judges, in 60 seconds. A raw repair photo can expose a customer's phone number. RedactBay keeps the photo on the technician's device, shows exactly what will be shared, and returns one quoted next step from the manufacturer's manual, or a STOP.

  • Video, 0:08–0:52: live run with Gemini Nano on the device (https://redactbay.web.app in Chrome, unedited results). Nano reads the nameplate On device; code rejects a misread serial; the on-device privacy check finds the phone number; the second on-device check of the masked export catches a missed mask and blocks sending. The same run as a separate clip: https://youtu.be/BFs3IU2E9T8
  • Video, 0:52–end: the full visit, recorded without Nano, so those badges say Manual or Demo fixture.
  • Try it: open https://redactbay.web.app , choose Try the demo, add a customer and the WV-7 washer, photograph the E21 fault, then Review what leaves. Without Nano every AI step runs by hand and says Manual; with Nano (chrome://flags: prompt-api and prompt-api-multimodal-input) the same screens say On device.

Inspiration

A field technician at a broken washing machine has two problems. They need the next step now, from the manufacturer's documentation, not from memory. And the photos they take are full of other people's data: a phone number on a slip of paper, a face in a mirror, a name on a parcel. Today those photos go to a chat group or a ticket system unchanged.

Manufacturers' service networks want the opposite of a chat group. They want a complete case: which device, which serial number, which fault, what the technician already did, with evidence. They do not want the customer's phone number.

Gemini Nano in Chrome lets us do the private part on the technician's own device and send only an approved version to the network.

What it does

RedactBay follows one service visit from start to finish.

  1. Add the customer. The technician types the customer's name. Use my location can suggest a street address after a tap and browser permission. The demo uses a fictional address.
  2. Add the device. The technician photographs the washer's nameplate. Gemini Nano reads the manufacturer, model and serial number on the device (ONLY_ON_DEVICE). The model is matched against the manufacturer packs the network has verified. A serial that does not fit the model's pattern is flagged, and the technician can type or correct it at any time.
  3. Photograph the fault. In Capture the technician picks the customer's device and photographs the display with the E21 code. Gemini Nano checks photo quality and finds personal data in a 3×3 grid. It drafts a service card on the device.
  4. Get the next step with a quote, or STOP. The E21 code is matched to an approved catalogue action: Empty the drum and clean the drain filter. The action carries a quote from page 14 of the WV-7 service manual. When the code is not on the screen, Gemini Nano picks one action from the approved list for this model. It cannot write repair steps of its own. A manufacturer STOP rule overrides everything. Water near the socket, a tingle from the cabinet or error E51 shows Do not touch the machine. Switch off the circuit at the breaker and stop work., quoted from page 6.
  5. Send the case to the network. The technician masks the phone number. The app paints the mask into a new JPEG without EXIF or GPS data and checks the masked image again on the device. What leaves lists the card fields (at most six) and the masked photo. The customer's name, address and phone stay on the device. Only after Approve & send to network does a shared case exist.
  6. The network replies. The service desk opens the case in its queue. The replies on offer are built from the current catalogue, each with its manual quote and page. If a STOP rule matches the case, STOP is the only reply. The desk sends one reply.
  7. The technician sees the reply in Messages and on the job: On-site repair · Empty the drum and clean the drain filter, with the manual title, page and quote.

A device the network has no manufacturer pack for can still be added as Other model. The app then says so plainly and sends the case to the network for review; it never invents a repair step without a quote.

The back office stays on the device

Around the visit, Gemini Nano also does the technician's paperwork. Every task runs through the same on-device guard (ONLY_ON_DEVICE). Without Nano, each one falls back to a version computed by code and labelled Manual or Demo fixture.

  • Serial from a second photo. If the first nameplate photo was unreadable, the technician adds a second one during the visit. Nano reads the serial and fills it into the open case and the customer's device card, but only where it was empty, so a recorded serial is never replaced. A serial that does not fit the model is flagged.
  • My jobs, today. The Today screen lists the technician's own jobs. It shows which ones wait for the network or already have a reply, which are unpaid, and which next visits are due. Code builds the plan; Nano can summarise the day in two or three sentences.
  • Visit report. After payment the technician opens a report for the customer: device and serial, the network's catalogue action with its manual quote (or STOP), items, payment and a signature line. It prints or saves as PDF through the browser's print dialog. Nano can write a plain-language summary. The prompt carries no customer name, phone or address.
  • Message to the customer. After payment Nano drafts a short message in the screen language from facts computed by code. Figures must come from those facts. RedactBay sends nothing: the technician copies the text or opens their own SMS or e-mail app.

Every AI result has a source badge. Its text comes only from the Firebase AI Logic inferenceSource: On device or Cloud. Work done by hand shows Manual.

How we built it

  • Svelte 5, TypeScript and Vite. The same web app serves the technician phone and laptop and the network desk.
  • Firebase AI Logic (Web SDK 13.4.0), on the device. All raw material goes through one guard, onDeviceModel(). It builds the model with InferenceMode.ONLY_ON_DEVICE and passes the JSON schema in promptOptions.responseConstraint. It refuses to run when Chrome has no LanguageModel API, and it rejects any answer whose inferenceSource is not on-device. The SDK would otherwise send an ONLY_ON_DEVICE request to the cloud when the Chrome adapter is missing. This guard is the core of our privacy promise.
  • Firebase AI Logic, in the cloud. The cloud only gets text or data the technician approved. Ask the manual sends a question that passed a local contact-data check, with ONLY_IN_CLOUD and URL context over one verified manual PDF. An answer is shown only when its quote is found on the cited page. The network queue ranks cases with PREFER_ON_DEVICE and retries with ONLY_IN_CLOUD. The visit-linked decision uses PREFER_IN_CLOUD with the manufacturer PDFs and a parts-stock function call.
  • Back office on the device. Serial reads, the day summary, the visit report summary and the customer message use the same onDeviceModel() guard. Every number in a summary or message must appear in the facts the model was given, or code uses its own version.
  • Rules as data. Catalogue actions, STOP rules, quotes and page numbers live in device packs (JSON), not in code or prompts. Code checks every action against the pack, the model, the quote and the STOP rules. A STOP rule beats any model answer.
  • Privacy by construction. ActiveCaseDraft (raw photo, masks, note, findings, customer link) lives only in the browser's IndexedDB on the technician's device. SharedCase is built from an allow-list of six card fields (empty ones stay empty) plus the masked JPEG, its SHA-256 and a version hash. Any change to the card, photo or masks revokes the approval.
  • Firebase. App Check with reCAPTCHA Enterprise starts on the first cloud call, so purely local screens never load it. The debug token exists only in local development on localhost. Anonymous Authentication, Firestore with membership rules for shared cases and replies, Remote Config with the cloud model name and a kill switch, and Hosting.

Challenges we ran into

  • On-device mode that is really on-device. Without the Chrome adapter, the SDK silently answered an ONLY_ON_DEVICE request from the cloud. We now check the adapter and inferenceSource on every call and fail loudly.
  • Small model, safety-critical domain. Gemini Nano is good at reading a nameplate and choosing from a short list. It must not invent a repair. We turned every decision into a choice from approved catalogue identifiers, and code verifies the quote on the manual page.
  • Masking that holds. A blurred rectangle in the UI is not enough. The mask is painted into new JPEG bytes, metadata is dropped, and the masked export is checked again before anything can be approved.
  • Honest badges. Measuring and labelling where each answer actually ran meant giving up a nicer-looking demo whenever Nano was not available. The demo video was recorded without Nano, so every badge in it says Manual or Demo fixture.

Accomplishments that we're proud of

  • The raw photo, the customer's name and the phone number never leave the technician's device on this path. The network still gets everything it needs to reply.
  • A STOP rule from the manufacturer reaches both screens: the technician sees it before acting, and the network cannot offer a repair against it.
  • The core visit works without any paid Gemini tier. Nano is free and local, the rules run in code, and the network reply comes from the catalogue. Without Nano, the same path runs by hand and says Manual.

What we learned

  • Hybrid inference is a privacy architecture, not only a cost trick. Choosing where each step runs decided what our data model looks like.
  • The best job for a small local model is reading and choosing, with code checking the answer against data.
  • Field service is document work. A quote with a page number builds more trust than a fluent paragraph.

What's next

  • Let the network import a manufacturer's own PDF manual, so a technician's real washer gets quoted steps, not only the fictional demo brands.
  • A device agent for the laptop that reads controller logs over Web Serial, inspired by Anthropic's Model Hardware Standard (not an implementation of it). A first reader for a fictional heat-pump log is in the repo.
  • iOS with Apple Foundation Models through Firebase AI Logic, for the photo step on the phone.
  • Warranty claims and parts ordering from the same approved case, and manufacturer packs maintained by the network's knowledge engineers.

Built during the contest

The repository was created on 27 November 2026, inside the contest period. We wrote all of it during the contest: the technician and network apps, the device packs and synthetic manuals, masking and approval, rules and tests. We used open-source libraries, a bundled OFL font, AI coding assistants and an image generation model for the 22 synthetic demo photographs. All brands, devices, people, addresses and phone numbers are fictional.

Built With

  • chrome-prompt-api
  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • firebase-remote-config
  • gemini
  • gemini-nano
  • openstreetmap
  • playwright
  • recaptcha-enterprise
  • svelte
  • typescript
  • vite
  • vitest
Share this project:

Updates

Submission history