Inspiration

A small continuity error can interrupt a reader's trust. An AI assistant can offer a second reading, but an author also needs to know which words support a suggestion and where the manuscript is being processed. Manuscript Guard makes those decisions visible in one editorial workspace.

What it does

Authors can write or import a plain-text excerpt, inspect local text statistics and review possible sensitive patterns. These deterministic tools are labelled non-AI. The supplied original fiction uses synthetic contact details, so the workflow can be explored without a private manuscript.

AI review supports continuity, clarity and a full editorial pass. A finding is retained only when its quotation appears exactly in the reviewed source. Selecting it highlights the passage; the Markdown export records the review and inference provenance. Suggestions never rewrite the draft automatically.

The client implements Local, prefer-local Hybrid and Cloud modes. The public deployment currently enables Local only. Hybrid and Cloud remain disabled while provider account requirements are completed. Their implementation includes masked-text preview and request-specific approval, with approval reset when relevant content changes.

How it was built

The app uses HTML, CSS and native JavaScript modules, hosted on Vercel, with Firebase AI Logic SDK 13.0.0. Chrome manages Gemini Nano for Local review; the implemented cloud configuration targets Gemini 3.5 Flash-Lite. A native JSON response constraint and concise prompt guide generation, followed by strict local schema and quotation checks. Same-length masking preserves source positions.

Draft persistence is optional and local; the service worker caches the static shell without drafts or model responses. Firebase App Check uses a registered reCAPTCHA Enterprise provider. SDK and verification traffic are disclosed separately from manuscript inference. The original source is public under Apache License 2.0.

Challenges

Live testing exposed two integration problems: the SDK's serialized route values needed normalization, and unconstrained on-device output did not reliably produce complete JSON. Both were addressed before the successful review. Other challenges included preserving quote offsets, preventing stale consent, handling edits during a request and blocking overlapping retries after the user stops waiting.

Accomplishments

The deployed app completed a real Local review of the 3,564-character fictional sample. Its trace reported ON_DEVICE, Chrome-managed Gemini Nano, four retained findings and zero excluded records. That single request took 27,401 ms; it is an observed run, not a speed benchmark.

Verification also passed 25 core tests and 15 AI-client checks, including an official-SDK compatibility check with a synthetic model response.

What was learned

Exact quotations make a review inspectable; they do not make it correct. The real response identified eye-colour and key-location inconsistencies, but overreacted to a synthetic email address, misread the timeline and missed the age change. Four retained findings therefore do not mean four correct answers. This result reinforces the interface's central rule: the author decides.

What comes next

The next work is broader evaluation across excerpts and devices, especially false alarms, missed contradictions and intentional ambiguity. Cloud demonstrations will follow only after the owner completes the applicable provider requirements and explicitly enables them. Longer-term work includes language evaluation and handling longer manuscripts. No comparative accuracy, eligibility or performance guarantee is claimed.

Original work and development assistance

The application, interface and original fictional sample were newly authored on 26 November 2026 with AI-assisted development. AI assistants helped write code, tests and documentation. The Firebase project and Manuscript Guard name predated this implementation; no earlier application source was reused. The public repository contains the complete implementation under Apache License 2.0.

Demonstration scope

The 2:51 documentary uses authentic captures of the completed Local review, original motion graphics and AI-generated illustrations of the fictional story only. It includes synthesized English narration with Kokoro bm_george, English on-screen text and the original instrumental score "Between the Sentences". It is an edited documentary, not a continuous screen recording. The application trace documents one ON_DEVICE run taking approximately 27.4 seconds; the film preserves the observed findings and their limitations. Exact quotation matches do not establish editorial correctness. Hybrid and Cloud routes remain disabled, and no successful cloud inference or fallback is claimed. The illustrative scenes do not represent application outputs or additional experiments.

Built With

Share this project:

Updates

Submission history