{"slug": "building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a", "title": "Building a Privacy-First Childcare AI App with Kiro — Steering Docs, Mobile Bugs, and a Frankenstein Stack", "summary": "A developer built KidCare, a privacy-first childcare app that turns spoken dictation into structured records, using a five-part stack combining MediaPipe, Firebase AI Logic, and offline-first Firestore sync. The engineer used Kiro steering docs to encode privacy rules as code constraints, so new AI features automatically included consent checks and on-device routing, and diagnosed a mobile Web Audio API bug where AudioContext was silently suspended because it was created after an await instead of synchronously inside a user gesture.", "body_md": "**1. The Problem (200 words)**\n\nOpen with the real pain point. A parent caring for a child can't stop to type notes — they need to describe what happened out loud and have it recorded accurately. Existing apps make you tap through forms. You wanted dictation → structured records → review → save.\n\nAdd the privacy angle: children's health data is sensitive. You needed cloud AI to be opt-in, private journal entries to never leave the device, and the user to always know where AI ran (device vs cloud vs local rules).\n\n**2. The Frankenstein Stack (300 words)**\n\nThis is your most interesting angle for a technical audience. Explain why these five things don't normally live in the same app and what it cost to integrate them:\n\nThe integration problems were real: MediaPipe's WASM loads from a CDN at runtime, Firebase AI Logic has its own model download lifecycle, and both need to coexist with an offline-first Firestore sync queue.\n\n**3. How Kiro Steering Docs Changed the Workflow (400 words) ← your strongest section**\n\nThis is what most developers haven't tried and will find genuinely useful.\n\nExplain the before: every Kiro session started cold. You'd describe the architecture again, explain the privacy rules again, clarify the service patterns again.\n\nExplain the after: four files in .kiro/steering/ — product overview, architecture, tech stack, coding standards — and Kiro reads them at the start of every session automatically.\n\nGive a concrete example: after adding coding-standards.md with the rule \"private journal entries must use ONLY_ON_DEVICE\", subsequent Kiro suggestions for new AI features automatically included the consent check and privacy routing — without being asked. That's the value of steering as a code constraint rather than a comment.\n\nInclude the actual privacy rules from your coding standards doc as a code block — they're readable and show the approach clearly:\n\n**4. The Mobile AudioContext Bug (300 words) ← best standalone technical story**\n\nThis is the most shareable section — a specific, reproducible bug that affects any web developer using the Web Audio API on mobile.\n\nThe symptom: Sound spike monitor worked perfectly on desktop Chrome, completely silent on iOS Safari and Chrome for Android.\n\nThe cause: Mobile browsers require AudioContext to be created synchronously inside a user gesture. The original code did await getUserMedia() first — by the time that resolved, the gesture context was gone. The browser silently suspended the AudioContext.\n\nThe fix: Move new AudioContext() before the first await. Then add await ctx.resume() after getUserMedia for iOS Safari, which suspends the context even when created correctly inside a gesture.\n\nShow the before/after code diff — it's only about 10 lines and makes the bug immediately obvious.\n\nWhy Kiro caught it: You described the symptom (\"no sound on mobile, works on desktop\"), and Kiro identified the browser restriction by name, produced the fix, and explained why iOS Safari needs the extra resume() call even after the constructor fix.\n\n**5. What Vibe Coding Actually Felt Like (200 words)**\n\nHonest reflection, not marketing. What worked:\n\nWhat needed care:\n\n**6. Closing (100 words)**\n\nLink to the live demo, the GitHub repo, and the Kiroween submission. One sentence on what you'd do differently: add steering docs on day one, not after the app was already built.\n\n**Demo Url:** [https://kidcare-8aad3.web.app](https://kidcare-8aad3.web.app)", "url": "https://wpnews.pro/news/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a", "canonical_source": "https://dev.to/sankar_ganesh_a546d51bce4/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-and-a-1i6p", "published_at": "2026-12-01 08:43:03+00:00", "updated_at": "2026-12-01 08:44:48.105558+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools", "developer-tools", "ai-agents"], "entities": ["Kiro", "MediaPipe", "Firebase AI Logic", "Firestore", "iOS Safari", "Chrome for Android", "KidCare"], "also_reported_by": [], "takeaway": "Create AudioContext synchronously before the first await inside a user gesture, then call ctx.resume() after getUserMedia, because iOS Safari suspends the context even when it is constructed correctly.", "recommendation": {"advice": "Write steering docs with explicit rules like ONLY_ON_DEVICE for sensitive data on day one so coding agents apply privacy constraints automatically in every session.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a", "markdown": "https://wpnews.pro/news/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a.md", "text": "https://wpnews.pro/news/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a.txt", "jsonld": "https://wpnews.pro/news/building-a-privacy-first-childcare-ai-app-with-kiro-steering-docs-mobile-bugs-a.jsonld"}}