Inspiration

Industrial technicians need reliable access to approved operational knowledge even when internet connectivity is unavailable. Cloud-only AI cannot fully address that requirement, and sending sensitive operational information to a cloud model without review creates additional privacy and security risks.

What it does

FieldVault Blackout is an offline-first hybrid AI industrial knowledge assistant built with synthetic technical documentation. It provides:

  • locally stored, versioned knowledge packages;
  • deterministic document retrieval with citations;
  • genuine on-device AI through Firebase AI Logic and Gemini Nano 4;
  • explicit, consent-controlled cloud inference;
  • sensitive-pattern detection and redaction;
  • offline observation capture in IndexedDB;
  • reviewed, idempotent Firestore recovery synchronization; and
  • transparent labels that distinguish on-device AI, cloud AI, and non-AI document retrieval.

The prototype is not a certified industrial safety system and does not replace approved procedures or qualified personnel.

How we built it

The web application uses React, TypeScript, Vite, a Progressive Web App service worker, IndexedDB, and Firebase.

Firebase AI Logic creates two explicit inference paths:

  • InferenceMode.ONLY_ON_DEVICE for Gemini Nano 4 in eligible desktop Chrome; and
  • InferenceMode.ONLY_IN_CLOUD for the configured Gemini cloud model.

Every generated response checks the SDK-reported inference source. If on-device AI is unavailable, FieldVault honestly falls back to labelled document retrieval instead of presenting search results as AI inference.

Firebase App Check is registered and enforced using Fraud Defense / reCAPTCHA Enterprise. Firebase Anonymous Authentication scopes Firestore observations to the current user, while Firestore security rules require the authenticated UID to match the user path. Cloud inference and Firestore synchronization are both protected by a one-request Privacy Gateway showing purpose, destination, outbound content, and redaction controls.

Challenges

The most important challenges were browser and hardware eligibility for Gemini Nano, preserving a trustworthy offline experience, enforcing explicit cloud consent, and making recovery retries safe.

Final production testing found and fixed two deployment-only issues: optional undefined observation fields were rejected by Firestore, and the App Check key initially allowed only localhost. Undefined fields are now omitted before writes, the production domain is registered without weakening enforcement, and the recovery consent screen identifies Cloud Firestore accurately.

Accomplishments

Verified against the production release:

  • Genuine on-device response: LOCAL_AI, ORIGIN ON_DEVICE, with evidence citations.
  • Unsupported-evidence question correctly refused instead of inventing a procedure.
  • Genuine cloud response: CLOUD_AUTHORIZED, ORIGIN IN_CLOUD.
  • App Check registered and enforced on the production domain.
  • Observation persistence across refresh in IndexedDB.
  • Firestore synchronization completed after explicit consent.
  • A repeated synchronization retained one record, demonstrating stable-ID duplicate prevention.
  • Unsupported browsers receive a clearly labelled non-AI fallback.
  • 51 Vitest tests and two Playwright browser tests passed.
  • GitHub Actions passed on the final release commit.

What we learned

Local inference, cloud inference, and document retrieval solve different problems. On-device AI improves continuity and privacy but depends on browser and hardware eligibility. Cloud AI offers broader capability but should require transparent, per-request authorization. Deterministic retrieval remains valuable when AI is unavailable, provided the product labels it honestly.

App Check must be tested on the real production domain, not only localhost. Recovery systems also need stable record identifiers and explicit handling for optional fields to make retries safe.

Development-period disclosure

FieldVault Blackout is a new project started on November 28, 2026, during the competition period. The application, hybrid inference policies, local knowledge workflow, privacy gateway, offline observation recovery, Firebase configuration, tests, documentation, and deployment were completed for this project during that period.

Testing instructions

  1. Open https://blackout-intel-xi.vercel.app in desktop Chrome.
  2. Mission Control reports network, local-model, knowledge-package, and Firebase readiness.
  3. Knowledge Vault contains bundled synthetic documents and local evidence search.
  4. On eligible Chrome hardware, open Blackout Mode and ask the prefilled vibration question. Verify LOCAL_AI and ORIGIN ON_DEVICE.
  5. On unsupported browsers, verify the app labels the fallback as document search and does not claim AI inference.
  6. Save an observation, refresh, and confirm it persists.
  7. Reconnect if necessary, open Recovery Center, mark the record reviewed, and inspect the Privacy Gateway before authorizing Firestore sync.
  8. A cloud analysis request requires separate explicit consent and should report CLOUD_AUTHORIZED and ORIGIN IN_CLOUD.

No credentials or payment are required.

What's next

Future work includes approved enterprise-document integrations, broader Gemini Nano hardware compatibility, formal industrial deployment validation, independent security review, and richer recovery reconciliation tooling.

Built With

  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • gemini-nano
  • indexeddb
  • progressive-web-app
  • react
  • typescript
  • vite
Share this project:

Updates

Submission history