APR 30, 20266 MIN READPOST BY: TEAM CODESMITHSUPDATED:

Project Habitat: Secure Immigration Case Management

Secure immigration case management, delivered for Medtronic, a Fortune 500 global leader in medical technology

Project Habitat: Secure Immigration Case Management

Medtronic: Engineering the extraordinary

Delivered forFortune 500 · Global leader in medical technology

  • ISO/IEC 27001
  • HIPAA
  • GDPR
  • DPDP Act
  • ISO/IEC 42001
  • SOC 2

Abstract

Habitat is a secure, multi-platform case-management system that guides applicants through U.S. immigration processes, from document preparation and filing to case tracking and the naturalisation civics test. CodeSmiths engineered it end to end: native iOS and Android apps, a web application and a cloud-native backend, all under a privacy-first architecture built for highly sensitive personal data.

  • 3platforms: iOS, Android and web
  • ~16weeks of delivery, January to April 2026
  • 183test suites
  • 1200+test cases

01 08

1. At a glance

One governed platform for the whole case lifecycle

Habitat brings a personal case workspace, data-driven processing timelines, an AI case assistant with non-persistent private sessions, a curated knowledge community and naturalisation test preparation into one platform. It runs on a cloud-native backend with passwordless and biometric access and a strictly layered architecture that CI enforces on every change.

Habitat app: Case workspace
Case workspaceDocuments, timeline and private chat in one place
Habitat app: AI case assistant
AI case assistantProcedural guidance, community answers alongside
Habitat app: Private AI session
Private AI sessionEncrypted. Nothing is saved after you close
Built with
  • Flutter
  • React
  • TypeScript
  • Supabase
  • PostgreSQL
  • Deno
  • Azure
  • iOS
  • Android
  • Client: Medtronic
  • Industry: Medical technology
  • Scope: Mobile, web and cloud
  • Platforms: iOS, Android and web
  • Team: About 10 specialists
  • Delivery: January to April 2026
  • Built with: Flutter, React, TypeScript, Supabase, PostgreSQL, Deno, Azure
  • Delivered under: ISO/IEC 27001, HIPAA, GDPR, DPDP Act, ISO/IEC 42001, SOC 2

02 08

2. The challenge

A complex, sensitive process with no single trustworthy source

Medtronic needed one trustworthy platform with security built in from the start.

One case, many forms
  • N-400Naturalization
  • I-485Adjustment of status
  • I-130Family petition
  • I-765Work authorization
  • I-90Green card renewal
Today · fragmentedGovernment estimatesInformal forumsManual checklists!!!

Generic estimates, forums and manual checklists, with personal data re-entered each time.

With Habitat · one governed platformCase workspaceTimelinesAI assistantCivics prepencrypted · layered · governed

One workspace for forms, documents, timelines and guidance, behind one secured sign-in.

  • Multiple forms: U.S. immigration cases span multiple forms, including N-400, I-485, I-130, I-765 and I-90.
  • Long, variable processing: Processing times are long and variable.
  • Extensive documentation: Every case carries extensive documentation requirements.
  • Uncertain guidance: Applicants rely on generic government estimates, informal forums and manual checklists, leading to uncertainty and avoidable errors.
  • Exposed personal data: Fragmented tools mean repeated exposure of personal data.

03 08

3. Our approach

Specification-led, phased delivery under formal change control

Delivered in about 16 weeks by a cross-functional team of around 10, with every phase specified, signed off and placed under change control.

DeliveryAbout 16 weeks, January to April 2026
Phase 1Specification & foundation
January 2026
Phases 1A–1BIdentity & core modules
January to February
Phases 2–2BIntelligence & access
February to March
Phase 2CHardening & delivery
March to April 2026
Production delivery, April 2026
TeamTen specialists, one cross-functional team
  • 1Engagement Lead
  • 1Solution Architect
  • 2AI Engineers
  • 2Flutter Engineers
  • 2Web Engineers
  • 1Backend Engineer
  • 1QA & DevOps
Engineering governanceSix quality gates, four of them blocking
  1. LintBlocking
  2. Strict TypeScriptBlocking
  3. Architecture guardBlocking
  4. Production buildBlocking
  5. Unit testsReported
  6. Coverage reportReported

13architecture rules enforced in CI

183test suites · 1200+ test cases

  • Specification and foundation (Phase 1, January 2026): Locked API, foundation-services and compiler specifications; API gateway, sessions, logging and localisation.
  • Identity and core modules (Phases 1A–1B, January to February): Passwordless authentication, case workspace, documents and timeline, each with pre-merge scans.
  • Intelligence and access (Phases 2–2B, February to March): AI assistant, estimator, community and civics engine, plus a three-state identity model with server-side access control.
  • Hardening and delivery (Phase 2C, March to April 2026): Azure CI quality gates, test expansion and release hardening, with final production delivery in April 2026.

Engineering governance

  • Automated architecture guard: 13 architecture rules enforced in CI: one backend gateway, repository-only data access, no hidden background polling, and no development-only code in production.
  • Six-gate CI/CD on Azure Pipelines: Lint, strict TypeScript, architecture guard and production build are all blocking, followed by unit tests and coverage reporting.
  • Deterministic network layer: Typed results that never throw, a closed set of error codes, per-class timeouts and de-duplicated reads. Silent automatic retries are banned.
  • Comprehensive test coverage: 183 test suites and 1,200+ test cases across unit, integration and Playwright end-to-end tests.

04 08

4. The solution

From secure identity to naturalisation readiness

Key innovation: private AI sessions. Applicants discuss their case with the AI assistant in an encrypted session that keeps nothing after it closes, so personal case details never become stored chat history.

The case journeyFrom secure sign-in to test day
  1. 1Secure identityPasswordless OTP, then biometric
  2. 2Case workspaceStatus, documents, receipts
  3. 3Personalised timelinesBy form, month and location
  4. 4AI case assistantGuidance, not legal advice
  5. 5Knowledge communityPeer experiences, searchable
  6. 6Naturalisation readiness2008 and 2025 civics banks
  7. 7MultilingualEnglish, Spanish, Hindi
Key innovationA private AI session that keeps nothing
My Case ChatPrivate session · encryptedSession closed

When is the earliest I can submit Form N-400 under the standard 5-year rule?

Under the standard 5-year rule, Form N-400 can be filed up to 90 days before the 5-year mark as a permanent resident.General information only, not legal advice.

Conversation history stored after close0

01 · Secure identity

Passwordless email one-time passcodes (hashed at rest), then biometric unlock.

    02 · Case workspace

    Case status, a submission-ready document checklist, receipt-number tracking and a milestone timeline in one place.

      03 · Personalised timelines

      Queue position by form, filing month and location, plus official tracking by USCIS receipt number.

        04 · AI case assistant

        Procedural guidance with community answers alongside, scoped as information rather than legal advice.

          05 · Knowledge community

          Peer experiences indexed by form type, with search.

            06 · Naturalisation readiness

            A versioned civics exam engine covering the 2008 and 2025 USCIS question banks, with progress tracking.

              07 · Multilingual

              English, Spanish and Hindi, with automatic language detection.

                05 08

                5. Platform in action

                One backend, three platforms

                The iOS, Android and web clients share one managed PostgreSQL platform for identity, data, serverless logic and storage. Delivery and hosting run on Microsoft Azure, and all traffic travels over HTTPS.

                System architectureOne backend, three platforms
                Clients
                Mobile appFlutter · iOS & Android
                Web appReact · TypeScript
                Gateway
                Single API gatewayTyped · time-bounded · de-duplicated
                Managed PostgreSQL platform
                IdentityOTP · JWT sessions
                Edge FunctionsServer-side business rules
                PostgreSQLPublic · attorney data · ops data
                StorageApplication assets
                Realtime · platform services
                Email
                PostmarkPasscode delivery
                Microsoft AzurePipelines · six quality gates → Static Web Apps hosting · gated build and deploy
                Performance engineeringFast by design, not by accident
                Hard request budgets
                8 s10 s15 s
                Identical reads, merged
                1call
                Caching
                30 s fresh5 min retained
                Lazy loadingRoute-level code splitting
                Virtualised listsOnly visible rows render
                Offline-awareNetwork monitoring and local drafts
                • Clients: Mobile app (Flutter, iOS and Android) and web app (React and TypeScript), through a single API gateway that is typed, time-bounded and de-duplicated
                • Identity: One-time passcodes and JWT sessions, with passcode email delivered by Postmark
                • Server logic: Edge Functions apply business rules server-side
                • Data: PostgreSQL, storage for application assets, and realtime platform services
                • Delivery: Azure Pipelines with six quality gates, Static Web Apps hosting, gated build and deploy

                06 08

                6. Results and business value

                What the delivered platform guarantees

                1backend and one identity model serving iOS, Android and web
                0AI conversations kept after a private session closes
                0plaintext credentials: passcodes are hashed and compared server-side
                4blocking gates stop architecture drift at merge
                1definition change adds a new USCIS test version
                server-authoritative access control across every client

                07 08

                7. Security, compliance and governance

                Privacy-first architecture for highly sensitive personal data

                1. DeviceKeychain-backed tokens and a biometric gate on mobile
                2. TransportHTTPS everywhere, between every client and the gateway
                3. IdentityPasswordless one-time passcodes, hashed at rest; JWT sessions
                4. ServerAccess control decided server-side, never in the client
                5. Private AINon-persistent sessions: nothing is kept after they close
                • ISO/IEC 27001Certified information security management system
                • HIPAACompliant
                • GDPRCompliant
                • DPDP ActIndia’s data protection law, compliant
                • ISO/IEC 42001AI management, operated in accordance
                • SOC 2Trust services criteria, operated in accordance

                Compliance and assurance

                Engineered under CodeSmiths’ ISO/IEC 27001-certified information security management system, compliant with HIPAA, GDPR and India’s DPDP Act, and operated in accordance with ISO/IEC 42001 (AI management) and SOC 2 trust services criteria.

                08 08

                8. Technology stack and data flow

                Technology stack and rationale

                Data flowPasswordless sign-in, step by step
                • Microsoft Azure Pipelines and Static Web Apps: Enterprise-standard CI/CD and hosting that fits the governance and identity tooling large organisations already run.
                • Supabase managed PostgreSQL: Production-grade PostgreSQL with identity and storage built in. Its open-source core runs on any PostgreSQL host, so there is no vendor lock-in.
                • Edge Functions (Deno, serverless): Business rules run server-side, never in the client, and scale with demand with no servers to manage.
                • Flutter (iOS and Android): One codebase gives native performance on both platforms, keeps feature parity and roughly halves mobile delivery effort.
                • Riverpod: Compile-safe, testable mobile state management that stays predictable as the app grows.
                • React 18 + TypeScript (strict mode, Vite): The largest enterprise talent pool; strict typing catches defects at compile time and Vite produces code-split builds.
                • TanStack Query: Caching and request de-duplication reduce backend load and keep screens fast.
                • go_router and React Router: Deep linking and session-guarded routes, with each module loaded only when opened.
                • JWT, OTP and biometrics: Passwordless sign-in removes stored passwords; keychain storage and native biometrics protect sessions on the device.
                • Postmark: Dedicated transactional email keeps passcode delivery fast and separate from marketing traffic.
                • i18next: Adding a language means adding a translation file. English, Spanish and Hindi ship today.
                • Vitest and Playwright: Fast unit and integration suites, plus real-browser end-to-end tests that gate every release.

                The outcome

                A secure, multi-platform case-management system for iOS, Android and web, delivered in about 16 weeks with privacy built into its architecture.

                About CodeSmiths: we design and build AI, data, cloud and application solutions that turn manual, fragmented processes into intelligent platforms.

                Ready to build scalable, resilient, and crafted digital systems?

                Let’s talk →

                Common questions

                What is Project Habitat?

                A secure, multi-platform case-management system that guides applicants through U.S. immigration processes, delivered by CodeSmiths for Medtronic.

                Does the AI assistant store case conversations?

                No. AI sessions are encrypted and non-persistent: nothing is kept after a session closes.

                Does the AI assistant give legal advice?

                No. Its procedural guidance is scoped as information rather than legal advice.