All work

Research assistant

Reliable answers, identity, and membership around a live mobile product.

Research assistant mobile app showing conversations, sources, and discovery
67.1 → 11.5 MBShipped bundle

82.9% reduction, calculated from the documented before/after sizes. This is not an install-footprint measurement.

164 → 465Initial test milestone

The initial hardening milestone added 301 tests. Later suites use multiple runners and a broader scope.

34Required regressions

Regression requirements supported by CI coverage floors.

12Hardening phases

Security, privacy, and reliability remediation.

The challenge.

A live consumer health app needed continued releases while its security, privacy, and reliability foundations were improved.

I owned the mobile client and its integration, then contributed specific backend work in answer streaming, native identity, billing, and referrals. The wider biomedical retrieval architecture is a team system.

The boundaries.

  • Support an app already live on App Store and Google Play with active paid acquisition.
  • Remove session replay from health screens and prevent personal information in logs.
  • Address a runtime ReDoS vulnerability reachable from model output.
  • Keep regression requirements and coverage floors enforced in CI.

How it fits
together.

The React Native client presents source-linked research answers. Backend contributions include a grounded streaming gate, progress events, and per-turn time-to-first-token instrumentation. Mobile streaming text updates without re-rendering the whole screen on each token. Google and Apple ID tokens are verified against provider JWKS with RS256 signatures, issuer/audience/expiry checks, and cached-key refresh. Account-bound checkout and transactional referral rewards sit alongside the existing membership system. GitHub integration and selective GitLab promotion keep implementation and production release as separate steps.

Shipped bundle size
11.5 MB

82.9% smaller than the inherited bundle.

The decisions
behind the details.

01

Privacy at the client boundary

Health screens should not be captured by third-party session replay, and sensitive content must stay out of logs.

Tradeoff
Less visual analytics; observability must use limited, appropriate metadata.
02

Reduce the shipped bundle

The inherited 67.1 MB bundle created a concrete performance and distribution cost to address.

Tradeoff
Asset and dependency changes require careful production regression checks.
03

Make quality cumulative

Per-directory coverage floors, 34 required regressions, and a non-decreasing coverage ratchet keep fixes from silently disappearing.

Tradeoff
Changes must satisfy additional automated gates before release.
04

Verify the identity at the backend

Native sign-in still needs a trusted server boundary. Provider signatures, audience, issuer, and expiry are checked before the account is selected or linked.

Tradeoff
Provider-key failures need a retryable response, while invalid tokens must fail closed.
05

Bind membership to the account

Checkout handoffs and referral grants must preserve ownership across client navigation, retries, and session changes. Rewards commit with their quota and attribution.

Tradeoff
Billing recovery and account deletion need coordinated state rather than independent client updates.

Project workspace

Next case study