Research › AI Safety

- Viper Consulting™ Technical Report VC-TR-2026-02
- AI Safety series
- Version 1.0
- Not peer reviewed
Guardrails for Child-Facing Generative AI Products: A Practitioner's Design Pattern
Viper Consulting™ Research
Viper Consulting™ (Epstein Investment Group LLC), Arlington, Virginia
Abstract
We present the layered guardrail pattern used in two of our child-facing generative products: a personalized storybook site and a read-aloud video pipeline. The pattern keeps children off the system (adult buyers only), keeps real child data out of prompts and outputs (first name only, no photo required, photos deleted within 30 days and never used for training), filters every input and every model output, puts a parent or reviewer in front of every page before it is used, and tests the whole site in a weekly purple team. We report what we measured: 26 read-aloud books (364 pages) passed a word-for-word transcription check with 0 failing pages after 10 page re-makes; 130 tolerated differences were all rule-based and listed; reviewers rejected 35 of 98 automatic character cut-outs and switched off 25 picture overlays; and 10 of the 22 weekly live security checks target the storybook site, all passing.
Keywords: child safety; generative AI; guardrails; privacy by design; COPPA; human review; speech recognition
1. Introduction
Generative models make it cheap to produce a picture book that stars a particular child, or to narrate a picture book aloud for a young audience. The same models can put a real child's details into a prompt that leaves the company, draw a copyrighted character, write something frightening, or speak words that are not on the page a child is reading along with. Guidance such as UNICEF's Guidance on AI and children [1] asks builders to keep children safe from AI-related harm, to safeguard their personal information and privacy, and to provide transparency and accountability. In the United States, the Children's Online Privacy Protection Rule [2] sets requirements for operators of services directed to children under 13. These documents say what to achieve; a small team also needs to know how.
This report describes the design pattern we use in two child-facing generative products of our own and reports what we have measured about it:
- My Starring Book (mystarringbook.com), a personalized picture-book site. A parent or gift-giver fills in a five-step form; a text model writes a 20-page story and an image model draws the pages; the buyer sees a free, watermarked preview before paying.
- Brave Little Reads, a read-aloud video pipeline that turns our own picture books into narrated videos for young children, with synthetic voices and automatic picture effects.
No customer's or child's data is used in this report. All figures come from our own code, test results and production review files.
2. The pattern: eight layers
The pattern assumes that every layer can fail and puts another layer behind it. Figure 1 shows the order.
Show the data table for Figure 1
| Layer | What it does |
|---|---|
| 1. Adult buyer only | 18+ statement, consent texts versioned and hashed |
| 2. Input checks | first name only, letters, max 24; short fields |
| 3. Content filter | brands, unsafe words, style imitation, links |
| 4. Injection screen | 13 rules on every wizard field |
| 5. Model output checks | strict JSON, 20 short pages, same filter; fallback story |
| 6. Parent review | watermarked preview, 3 free redraws |
| 7. Data limits | photos deleted in 30 days, never used for training |
| 8. Purple team | live and offline checks on the storybook site |
2.1 Keep children off the system
The storybook site is a service for adults buying for children. The first consent a buyer gives reads, in part, "I am 18 or older ... children do not use this site." Every consent text (adult statement, terms, photo release, marketing) carries a version, and the version and a SHA-256 hash of the exact words are stored with each consent record, so we can always show which words a person agreed to. The consent texts are drafts awaiting review by a privacy lawyer, and the site says so internally; we do not claim legal compliance in this report.
2.2 Keep real child data out of prompts and outputs
- First name only. The child's name field accepts letters only, starting with a letter, at most 24 characters. The form asks for no last name, birthday, school or address. Our own example book follows the same rule: its main character is a cartoon with a first name only.
- No photo required. A buyer can describe the child with an avatar builder instead of uploading a photo. If a photo is uploaded, the guardian's photo release and typed signature are required; the release states that no face templates or biometric identifiers are created and that photos are never used to train AI models. Original photos are kept in private storage and deleted automatically within 30 days by a daily job and a storage lifecycle rule, or sooner when the buyer presses "Delete my data".
- Short, typed fields. Every other field (look, favorite animal, hobby, color, place) is short, validated on the server, and passed to the model as data rather than instructions.
- No real child's voice. In the read-aloud pipeline the child character's lines use a stock voice-library voice; a child's voice is never cloned.
- No training on customer content. Known AI training crawlers are refused: robots.txt lists 34 crawler tokens, the Worker answers 403 to the 32 of them that send their own user agent, and pages carry no-AI-training directives.
2.3 Filter every input
Every free-text field a buyer types passes through a content filter before it reaches a prompt, a page or a PDF. The filter refuses 157 brand and character terms (we make only original stories and art), 103 unsafe terms in English and Spanish (violence, weapons, sexual content, drugs and alcohol, self-harm, hate), requests to imitate an artist's style, links, email addresses and markup. Terms are matched as whole words after normalization, including spacing, accent and number tricks.
2.4 Screen for instructions
A field that tries to give the story or picture model instructions is refused. The screen has 13 rules: the same 12 patterns used by our website chat (override, new instructions, prompt reveal, role switch, jailbreak, chat markup, exfiltration, tool abuse, secrets request) plus one for picture and story requests such as asking for a different, realistic or frightening image. Text is normalized and hidden characters are removed first.
2.5 Check every model output
The story model must answer in strict JSON with exactly 20 short pages. Every page passes through the same content filter as the inputs. The models have no tools. When any check fails, the system falls back to a built-in, hand-written story template rather than showing the model's text.
2.6 Put a person in front of every page
The buyer sees a cover and the first 3 story pages free, as a 640-pixel copy with a watermark drawn into the pixels; the originals never leave private storage. Every page is shown before anything is printed, and each book includes 3 free page redraws. Anything flagged later goes to an admin review list. The site's own wording rules forbid therapy, clinical or treatment claims and state that stories are for comfort and conversation.
2.7 Limit what is kept and who can reach it
Each book has a random 22-character identifier and a private 32-character token, of which only a SHA-256 hash is stored. Downloads need the token and a paid order; print files need a signed link that expires in 14 days; the admin area sits behind an identity-aware access gate. Uploads must be real JPEG, PNG or WebP files by their first bytes and at most 8 MB, and a visitor can create at most 6 books a day.
2.8 Test the whole site every week
The storybook site is part of our weekly purple team (report VC-TR-2026-01). Section 4 lists its coverage.
3. Gates in the read-aloud pipeline
A read-aloud video for young children has a safety property that ordinary narration does not: the words spoken must be the words on the page, because children follow along. The pipeline enforces this with three gates.
3.1 Strict word check
Every page's audio is transcribed with a Whisper speech-recognition model [3] (small.en). The page passes only if the transcript equals the page text word for word, in order, with nothing missing and nothing extra. Tolerated, and always listed in the report: case, punctuation and digits for number words; the same letters with different spacing ("goodnight" and "good night"); words with exactly the same phonemes; a listed character name spelled differently with identical phonemes; and a short hand-kept list of sound-word spellings. A page that fails is transcribed again with a larger model (medium.en) and passes only by the same rules; a page that fails both is re-made with a new voice take and checked again. If it still fails, the build is refused. The rule in the pipeline's documentation is "never accept a page by hand". Performance directions (for example, whispering) are written as tags that steer the voice and are never spoken; the check proves they were not spoken.
3.2 Audio gates
Every video is normalized in two passes to an integrated loudness of -14 LUFS with a -2 dBTP true-peak target, using the loudness measure of ITU-R BS.1770 [4]; the build prints the measured result and flags a book outside -14 ± 1 LU or above -1 dBTP. Background music sits about 17 LU under the voice and is lowered further while the narrator speaks. A verification step checks that every audio clip is sample-identical to the strict-approved source, that the voice is silent through every page hold, that the voice sits in the final mix at the right moment (lag at most 1 ms) and that the printed words on screen match the right page just before and after every page change. Pitch-variety gates are also applied to each voice; their measured values are kept outside our code repository and are not reported here.
3.3 Visual review gate
The pipeline can cut the main character out of a page for a gentle "breathing" motion and can add a few code-drawn overlays (snow, leaves, bubbles, stars). A person reviews a contact sheet for every book and keeps a cut-out only if nothing else is attached to it and nothing is left behind; any overlay that does not fit the picture is switched off. The decision is recorded in a review file; the tool never decides.
4. What we measured
4.1 Strict word check, 26 books
The strict-check report of November 20, 2026 covers 26 books of 14 pages each, 364 pages in total, narrated with an open-weight text-to-speech model at that time. All 26 books passed with 0 failing pages. 20 pages passed only on the second, larger transcription model, and 10 pages were re-made with a new voice take before passing; 16 books needed the second model for at least one page and 8 books needed at least one re-make (Figure 2).
Show the data table for Figure 2
| Book | Pages | Passed on second model | Re-made | Tolerances listed | Result |
|---|---|---|---|---|---|
| 1 | 14 | 0 | 0 | 1 | PASS |
| 2 | 14 | 0 | 0 | 6 | PASS |
| 3 | 14 | 2 | 2 | 0 | PASS |
| 4 | 14 | 0 | 0 | 1 | PASS |
| 5 | 14 | 0 | 0 | 6 | PASS |
| 6 | 14 | 1 | 1 | 3 | PASS |
| 7 | 14 | 2 | 0 | 1 | PASS |
| 8 | 14 | 0 | 0 | 0 | PASS |
| 9 | 14 | 1 | 0 | 1 | PASS |
| 10 | 14 | 0 | 0 | 5 | PASS |
| 11 | 14 | 1 | 0 | 1 | PASS |
| 12 | 14 | 1 | 0 | 3 | PASS |
| 13 | 14 | 0 | 0 | 1 | PASS |
| 14 | 14 | 1 | 1 | 8 | PASS |
| 15 | 14 | 1 | 0 | 0 | PASS |
| 16 | 14 | 1 | 1 | 11 | PASS |
| 17 | 14 | 2 | 1 | 1 | PASS |
| 18 | 14 | 1 | 0 | 1 | PASS |
| 19 | 14 | 1 | 0 | 5 | PASS |
| 20 | 14 | 0 | 0 | 1 | PASS |
| 21 | 14 | 1 | 0 | 10 | PASS |
| 22 | 14 | 1 | 2 | 14 | PASS |
| 23 | 14 | 0 | 1 | 12 | PASS |
| 24 | 14 | 2 | 1 | 8 | PASS |
| 25 | 14 | 0 | 0 | 18 | PASS |
| 26 | 14 | 1 | 0 | 12 | PASS |
The report listed 130 tolerated differences across the 364 pages (Figure 3). 100 were character names that the recognizer spelled differently but that have identical phonemes (a listed name); 14 were spacing differences; 10 were different words with the same phonemes; 5 were hand-listed sound-word spellings; and 1 was a name heard across two words. No tolerance outside these rules was applied.
Show the data table for Figure 3
| Rule | Count |
|---|---|
| Character name, same sound (listed name) | 100 |
| Same letters, different spacing | 14 |
| Same phonemes, different word | 10 |
| Hand-listed sound-word spelling | 5 |
| Name spanning two words | 1 |
The gate also found a production fault: slowing one voice model by changing its length setting added stray sounds at the start and end of sentences, which was the cause of most early failures. The pipeline now slows audio with a separate tempo filter instead.
4.2 Visual review, 41 books
The review file holds decisions for 41 books: reviewers kept 63 automatic character cut-outs and rejected 35 (36% of the 98 reviewed), and switched off 25 overlays (Figure 4). One in three automatic cut-outs failing a simple visual rule is our measure of why this step stays human.
Show the data table for Figure 4
| Decision | Count |
|---|---|
| Character cut-outs kept after visual review | 63 |
| Character cut-outs rejected after visual review | 35 |
| Overlays switched off after visual review | 25 |
4.3 Security coverage of the storybook site
Ten of the 22 weekly live checks target the storybook site, and three offline cases (8 tests) attack its code. All passed in the runs of November 30 and December 1, 2026.
| Case | What is attempted | Expected and observed |
|---|---|---|
| LC-06 | Payment webhook with a forged signature | Refused (400), high-severity event written |
| LC-07 | Request with a known AI training crawler's user agent | Refused (403), event written |
| LC-08 | Guessed print-file address without a signed link | Refused (403), event written |
| LC-09 | Admin page without sign-in | Stopped at the edge sign-in (302) |
| LC-10 | Book upload with a disallowed body type | Refused (415), event written |
| LC-13 | Book post from another site's origin | Refused (403), event written |
| LC-14 | Encoded path walk out of the print-file folder | Refused at the edge (400), no content |
| LC-17, LC-18 | Requests for leaked configuration and repository files | 404, nothing leaked |
| LC-20 | Security headers on the home page | HTTPS-only, no type sniffing, no framing, a content security policy: all present |
| RT-07 (4 tests) | Brands and characters with spacing, accent and number tricks; unsafe words in English and Spanish; artist styles; links; markup; instructions in every form field; hostile and malformed story-model answers | All refused or replaced by the fallback |
| RT-08 (1 test) | Wrong-type, disguised (a script named as a photo) and oversized uploads; hostile file names | All refused |
| RT-09 (3 tests) | Forged, stale, replayed and oversized payment webhooks; guessed book, page, file and admin addresses; daily-limit evasion; buyer-chosen prices | All refused |
5. Discussion
Collect less, then protect what is left. The strongest control is the field that is not there. A first name is enough for a personalized story; a photo is optional; the photo is deleted on a schedule the buyer is told about.
Make the model's output prove itself. A strict output format, the same filter on the way out as on the way in, and a hand-written fallback mean a model failure produces a plain story, not a harmful one.
Use machines to measure and people to decide. The word check is fully automatic because the rule is objective; the visual review is human because "nothing attached and nothing left behind" is not. Both gates refuse rather than guess, and both list every exception.
Map to guidance, but measure. The layers line up with UNICEF's requirements to keep children safe (sections 2.3 to 2.6), to safeguard personal information and privacy (2.2 and 2.7), and to provide transparency and accountability (versioned consents and listed tolerances) [1], and with the NIST AI RMF's Measure function [5]. Alignment is not compliance; the measurements in section 4 are what we can stand behind.
6. Limitations
- Word lists and patterns can be evaded by new phrasing; image models can produce unwanted content that no text filter sees. The parent review step and provider safety filters stand behind ours, and their failure rates are not measured here.
- The strict-check data come from one report (26 books, November 20, 2026) narrated with one voice model; the pipeline has since moved to a different voice service, and later books are not included.
- Thumbnail distinctness and pitch-variety measurements exist in the pipeline but their values are not stored in our repository, so they are not reported.
- We have not measured the image model's likeness to an uploaded photo, nor run a user study with parents.
- Consent and legal texts are drafts awaiting legal review; this report is not legal advice and makes no claim of COPPA compliance.
- Security results are from single requests per check on our own systems; see VC-TR-2026-01 for that exercise's limits.
7. Reproducibility
The counts in section 2 (157 brand and character terms, 103 unsafe terms, 13 injection rules, 34 robots.txt crawler tokens of which 32 are refused by user agent, the 24-character name rule, 8 MB upload limit, 30-day photo deletion, 3 preview pages, 3 redraws, 6 books a day) were read from the storybook application's configuration and filter modules on December 3, 2026. The strict-check figures were parsed from the pipeline's committed report file and the visual-review figures from its committed review file on the same day. The security results are from the live-check job logs of November 30 and December 1, 2026 and the offline suite's continuous-integration run of December 2, 2026 (33 of 33 tests). The code is proprietary and is not published.
8. Conclusion
A child-facing generative product can be built so that the child never touches it, the child's data barely enters it, and every model output is checked by a rule and then by a person before a child sees it. In our two products the measured gates did real work: 20 pages settled by a second transcription model and 10 pages re-made in the narration of 26 books, with no page accepted by hand, and 35 rejected cut-outs out of 98. The pattern is small enough for a small team to run and specific enough to test every week.
References
- UNICEF Innocenti. Guidance on AI and children, version 3.0, December 2025. https://www.unicef.org/innocenti/reports/policy-guidance-ai-children
- U.S. Federal Trade Commission. Children's Online Privacy Protection Rule ("COPPA"), 16 CFR Part 312. https://www.ftc.gov/legal-library/browse/rules/childrens-online-privacy-protection-rule-coppa
- Radford, A., Kim, J. W., Xu, T., Brockman, G., McLeavey, C., Sutskever, I. Robust Speech Recognition via Large-Scale Weak Supervision. arXiv:2212.04356, 2022. https://arxiv.org/pdf/2212.04356
- International Telecommunication Union. Recommendation ITU-R BS.1770-5, Algorithms to measure audio programme loudness and true-peak audio level, approved November 22, 2023. https://www.itu.int/rec/R-REC-BS.1770-5-202311-I
- National Institute of Standards and Technology. Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1, January 2023. https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf
Viper Consulting™ Research. (2026). Guardrails for Child-Facing Generative AI Products: A Practitioner's Design Pattern. Viper Consulting™ Technical Report VC-TR-2026-02, version 1.0, December 3, 2026. https://viperconsulting.ai/research/guardrails-child-facing-generative-aiVersion history. Version 1.0, December 3, 2026: first publication. PDF: https://viperconsulting.ai/research/guardrails-child-facing-generative-ai.pdf
Viper Consulting™ Technical Report. Not peer reviewed. Built only from our own measured results and the public sources cited. Viper Consulting™ is not affiliated with or endorsed by the USPTO, NIST, OWASP or MITRE. © 2026 Epstein Investment Group LLC d/b/a Viper Consulting™. All rights reserved.