Homies: one person's app behind a real quality system

About October 2025 to nowTestFlight and Play internal

Homies is the household app I build privately, on the side: English and Hebrew with full right-to-left layout, shared expenses, chores and shopping, and who is home. I designed and built it alone. It is in closed beta, on TestFlight and in Play internal testing, not in public release, with RevenueCat subscription billing over a Supabase backend.

This page is about the half that screenshots do not show: the quality system that lets one person keep a billing-gated, bilingual native app releasable. A release gate that fails closed, Maestro flows tiered by the damage they can do, and a museum of real bugs, each with the guard that exists for it today or a plain statement that none does. The result: the release script runs those checks before build and upload unless I record an explicit E2E override, and the app carries 0 critical and 0 high findings across its security audits.

Its launch site, tryhomies.app, takes the waitlist and hosts the pages the stores require; its performance budgets have their own case study.

  • 69Maestro E2E flows
  • 2088Jest unit tests
  • 218Deno edge tests

One person, every layer

Solo means I own every layer, so every layer had to be small enough for one person to reason about and verify. The client is React Native on Expo, bilingual EN and HE with full RTL. It talks to a Supabase backend: Auth, a Postgres database of 16 tables with row-level security enabled on all of them, and Realtime for live household updates. Server logic lives in 11 edge functions, JWT-verified except the RevenueCat webhook, which authenticates by a shared secret.

Money and time both run through the backend. RevenueCat sends a webhook in on every subscription event, and a reconcile job polls it every six hours to catch anything the webhook missed. 4 pg_cron jobs drive the scheduled work (the weekly digest, invite nudges, subscription reminders, and that reconcile poll), and push notifications fan out through their own function. The diagram below is the whole system on one screen.

  1. ClientReact Native and Expo, English and Hebrew with full RTL
  2. SupabaseAuth; Postgres, 16 tables, row-level security on all; Realtime
  3. 11 edge functionsJWT-verified (webhook: shared secret)
  4. RevenueCat, push, pg_cronA webhook in and a reconcile poll every 6 hours; push notifications; 4 scheduled jobs
Data flow: client to Supabase (Auth, Postgres, Realtime) to 11 edge functions, which integrate RevenueCat, push, and pg_cron.

The quality system

Three test layers cover three different kinds of risk. Pure logic is covered by 2088 Jest unit tests across 188 suites: money math (settlement application, cent-exact splits, debt-triangle simplification), entitlement derivation, validators, deep-link spoof rejection, and EN/HE string parity. The billing webhook, where ordering and retries get nasty, has its own 20 Deno webhook tests, inside 218 Deno edge-function tests overall. And 69 Maestro flows drive the real app end to end, where device-only bugs actually live.

Read-only by default, destructive by exception

The Maestro flows are tagged by how much damage they can do, and the runner selects on those tags (maestro --include-tags, wrapped in npm scripts). A smoke run touches nothing it cannot safely repeat, and the destructive tier runs alone, on purpose. Coverage is counted by stable screen.* test IDs and route groups, not by a screen matrix.

Maestro flow safety tiers selected by tag
Safety tierFlowsWhat it can do
read-only27Observe state, never write
mutating39Create or edit data, reversible
destructive1Sign out and end the session; run in isolation
untagged2The two smoke canaries: tagged smoke, with no safety tier

The release pipeline fails closed

The release script runs under set -euo pipefail, so the first non-zero exit aborts the whole thing before build or upload. Typecheck, lint, format, and the docs-link check run first because they are cheap; then Jest, then the Deno edge tests. Next comes a Maestro smoke pass on a booted simulator, which runs before the release build so a red smoke costs nothing but the smoke. Then build, then store upload.

The smoke gate has two properties I would keep anywhere. It aborts when no device is booted, because a gate that silently skips itself is a gate that passes. And it has exactly one override, --skip-e2e, which logs that the build is shipping unverified, so skipping is a decision on the record and never a default.

  1. typecheck
  2. lint
  3. format
  4. docs links
  5. jest
  6. deno
  7. Maestro smoke
  8. build
  9. store upload

Any gate that fails aborts the release before the next one runs.

The release script runs nine gates in order. The first failure exits non-zero and nothing ships.

CI moved onto my own hardware

I kept hitting the monthly GitHub Actions minutes limit, and once it is spent every check on every personal project goes red until billing is raised. A red check that means "out of minutes" teaches you to ignore red checks. So all 6 app workflows moved from GitHub-hosted runners to a self-hosted one, and the launch site's workflows followed the same day. The app's gates did not change; where they run did. On this site's own CI the same move stopped two jobs from running a single test, which is its own post.

The bug museum

The museum keeps 10 bugs. Each one is a small lesson about where a solo native app actually breaks: accessibility, RTL, billing under chaos, offline money, real devices, screen readers, localization, and the platform shifting under you. A green dot means a dedicated automated guard exists today; an amber one means it does not, and the text says what stands in for it. The guards are tests and source files, never a device recording. The five that have their own post are told short here, with a link.

The ten exhibits

The bug museum: each exhibit, what broke, and whether a test guards it
ExhibitWhat brokeGuard
The accessibility fix that locked users out of loginLogin unreachable at the largest iOS text sizeNo
RTL is a test dimension: Fabric mirrors writes, not readsHebrew carousel slides went invisible; Next ping-pongedNo
Billing webhooks that survive chaosWebhook events wiped flags and rolled back statePartial
The auth-nav regression only real devices revealedLogin stranded users, on real devices onlyNo
VoiceOver-able drag-to-reorderVoiceOver users could not reorder choresNo
The iOS 26 modal that dropped the app to the backgroundDismissing a full-screen modal backgrounded the appNo
The paywall that stayed dead after the network recoveredPurchase stayed disabled until a cold restartYes
Offline money actions that paused forever instead of failing safelyOffline settlements hung instead of showing an errorYes
The native sheet swipe that bypassed an unsaved money-form guardA swipe discarded an unsaved expense draftNo
The language switch that committed before its translation bundle arrivedLanguage committed before its translations loadedYes

The accessibility fix that locked users out of login

Symptom

At the largest iOS accessibility text size (AX5), screens fragmented and the login OTP controls were pushed out of reach. Login was impossible at AX5.

Regression guard

No automated guard:An invariant comment in Text.tsx explains the fontScale-squared failure, and the OTP clamp bounds the control that was pushed off screen. No automated test renders login at AX5: the font-scale tests written since cover other components, not the Text primitive or the OTP screen.

The whole story: My audit agents wrote the bug; a simulator screenshot found it

Diff and files
// src/design-system/components/Text.tsx
// BEFORE: RN already scales lineHeight by fontScale,
// so this multiply compounds it to fontScale^2 (about 9.7x at AX5).
-const scaledLineHeight =
-  typeof variantStyle.lineHeight === 'number'
-    ? { lineHeight: Math.round(variantStyle.lineHeight * PixelRatio.getFontScale()) }
-    : null;
-  style={[ variantStyle, scaledLineHeight, { color: resolvedColor } ]}
// AFTER: drop the manual multiply (and the PixelRatio import) entirely.
+  // Do NOT scale lineHeight by PixelRatio.getFontScale(): RN's
+  // allowFontScaling already scales BOTH fontSize and lineHeight.
+  style={[ variantStyle, { color: resolvedColor } ]}

Files: src/design-system/components/Text.tsx, src/design-system/components/OtpInput.tsx, src/design-system/tokens/typography.ts

Back to the index

RTL is a test dimension: Fabric mirrors writes, not reads

Symptom

The Hebrew onboarding carousel rendered slides 1 and 3 dimmed and invisible, and the Next button ping-ponged between slides 0 and 1. English was unaffected.

Regression guard

No automated guard:RTL as a dimension is guarded by src/utils/rtl.ts and its unit tests, the EN/HE parity test, a bidi-isolation test and settings/language-toggle-flow.yaml. Nothing guards horizontal scroll math, because the carousel is gone, so a new pager would arrive with this bug class unguarded.

The whole story: RTL is a test dimension, not a CSS property

Diff and files
// READ side: was double-flipping the already-un-mirrored native offset
-  const x = event.contentOffset.x;
-  scrollX.value = isRTL ? maxOffset - x : x;        // dimmed every slide but the centre
+  scrollX.value = event.contentOffset.x;            // raw: Fabric already un-mirrors reads

// index detection (onMomentumScrollEnd)
-  const index = Math.round((isRTL ? maxOffset - x : x) / screenWidth);
+  const index = Math.round(x / screenWidth);

// WRITE side: mirroring confined to one helper, used by scrollToOffset
+  const toNativeOffset = useCallback(
+    (logicalX) => (isRTL ? maxOffset - logicalX : logicalX),  // no-op in LTR
+    [isRTL, maxOffset],
+  );
   flatListRef.current?.scrollToOffset({ offset: toNativeOffset(targetX), animated: true });

Files: src/utils/rtl.ts, src/utils/__tests__/rtl.test.ts, src/locales/__tests__/parity.test.ts, src/app/(onboarding)/__tests__/display-name.bidiIsolation.test.tsx, .maestro/flows/settings/language-toggle-flow.yaml

Back to the index

Billing webhooks that survive chaos

Symptom

At-least-once, unordered webhook delivery could corrupt premium state. Benign RENEWAL events wiped dunning flags, late events rolled back newer state, a transaction id shared across stores matched the wrong row, and transient DB errors were acked 200, so the provider never retried. The event was lost and the dedupe row then blocked all future deliveries.

Regression guard

Partly. The 20 Deno webhook tests in the release gate cover re-delivery and the fail-closed path, where a failed write returns 500 and releases the dedupe row. The sticky-flag and stale-event rules moved into SQL, and no test runs that SQL.

The whole story: Idempotent billing webhooks

Diff and files
// BEFORE (single-file handler): one row object, rebuilt every write; lookup by txn alone
unsubscribe_detected_at: eventType === 'CANCELLATION' ? nowIso : null,   // nulls a valid flag
billing_issue_detected_at: eventType === 'BILLING_ISSUE' ? nowIso : null, // on benign events
const { data: existing } = await supabase.from('subscriptions')
  .select('id').eq('original_transaction_id', originalTxn).limit(1).maybeSingle(); // wrong store!

// AFTER (June 2026; the write path later moved into SQL, see the guard note below):
// sticky churn, store-scoped key, out-of-order guard, TOCTOU recovery, fail closed
update({ ...baseRow, ...computeChurnPatch(eventType, nowIso, false) }) // only the owned flag
lookup = store === null ? lookup.is('store', null) : lookup.eq('store', store); // full unique key
if (existing?.id && isStaleEvent(existing.last_event_at, eventTimeMs))
  return new Response('OK (superseded)', { status: 200 });               // late event, ignore
if (insErr?.code === '23505') {                       // lost the insert race (TOCTOU)
  const raced = await reReadExisting();               // re-read the winner
  writeErr = isStaleEvent(raced.last_event_at, eventTimeMs) ? null : (await applyUpdate(raced.id)).error;
}
if (res.status >= 500) await releaseDedupeForRetry(); // free the dedupe row so RC retries

Files: supabase/functions/revenuecat-webhook/_handler.ts, supabase/functions/revenuecat-webhook/_logic.ts, supabase/migrations/…_serialize_subscription_writers_per_user.sql

Back to the index

The auth-nav regression only real devices revealed

Symptom

Magic-link and OTP login stranded users on the check-your-email screen on real iPhones and Androids. Force-quit and relaunch routed them home, so the session was fine. On the simulator it worked.

Regression guard

No automated guard:A single shared hook with no focus signal to depend on stands in, with a comment recording the device and simulator asymmetry. The release gate's smoke flow runs on a simulator, where this bug never reproduced, so it would stay green if the focus gate came back.

Root cause, fix, diff and files

Root cause

Both the login and verification screens gated their post-auth exit on navigation.isFocused() to elect a single owner and avoid a double dismissAll. The native formSheet/card presentation does not report isFocused() === true on device; the simulator does. Neither screen ever navigated.

Fix

A shared useExitOnboardingOnAuth hook, deduped with a module-level exitInFlight flag that re-arms on sign-out, with no focus gate.

// BEFORE: login.tsx and verification.tsx each gated their exit on focus
useEffect(() => {
  if (!isAuthenticated) return;
  if (!navigation.isFocused()) return;   // false for a sheet/card on a real device
  try { if (router.canGoBack()) router.dismissAll(); } catch {}
  router.replace('/');
}, [isAuthenticated, navigation, router]);

// AFTER: src/hooks/useExitOnboardingOnAuth.ts (shared, module-flag deduped)
let exitInFlight = false;                 // dedupe across the two screens
export function useExitOnboardingOnAuth(): void {
  const { isAuthenticated } = useAuth();
  const router = useRouter();
  useEffect(() => {
    if (!isAuthenticated) { exitInFlight = false; return; } // re-arm on sign-out
    if (exitInFlight) return;
    exitInFlight = true;
    try { if (router.canGoBack()) router.dismissAll(); } catch {}
    router.replace('/');                  // no isFocused() gate
  }, [isAuthenticated, router]);
}

Files: src/hooks/useExitOnboardingOnAuth.ts, src/app/(onboarding)/login.tsx, src/app/(onboarding)/verification.tsx

Back to the index

VoiceOver-able drag-to-reorder

Symptom

VoiceOver users could not reorder chores. The row claimed adjustable but the adjust gesture did nothing and no Move up or down actions surfaced. Collapsed rows also hid per-row controls from the screen reader.

Regression guard

No automated guard:The EN/HE parity test keeps the five reorder accessibility strings in both locales, and the Maestro reorder flow exercises sighted drag. No automated test checks screen-reader behavior; device QA is manual.

Root cause, fix, diff and files

Root cause

The first accessibility pass added the adjustable role and custom actions but never set accessible={true}, so iOS never coalesced the row into a focusable element: the semantics had nothing to bind to. There was no accessibilityValue for position announcements, and the code ignored the increment and decrement action names the adjustable role actually emits.

Fix

One collapsed accessible element with a RangeInfo accessibilityValue ("Position N of M", re-read after each adjust); increment/decrement and moveUp/moveDown all mapped to the same reorder commit the drag uses; and a re-exposure of collapsed children (hand-off, rename, delete) as rotor actions.

// BEFORE: adjustable role, but the row was never accessible, had no value
// to announce, and ignored increment/decrement
<Animated.View
  accessibilityRole="adjustable"
  accessibilityActions={[{ name: 'moveUp' }, { name: 'moveDown' }]}
  onAccessibilityAction={onAccessibilityAction}>

// AFTER: one collapsed adjustable element with a re-read position value;
// increment/decrement drive the same commit as the drag
<Animated.View
  accessible={!disabled}
  accessibilityRole={disabled ? undefined : 'adjustable'}
  accessibilityValue={accessibilityValue}   // { min, max, now, text: "Position N of M" }
  accessibilityActions={accessibilityActions} // increment, decrement, moveUp, moveDown, ...rotor
  onAccessibilityAction={onAccessibilityAction}>
// 'decrement' | 'moveUp'   -> onMove(id, 'up')
// 'increment' | 'moveDown' -> onMove(id, 'down')

Files: src/components/DraggableList.tsx

Back to the index

The iOS 26 modal that dropped the app to the background

Symptom

On iOS 26 (RN 0.85, New Architecture), dismissing a full-screen RN Modal dropped the entire app to the background, uninteractable. Two gates hit it: analytics consent and the background-location disclosure.

Regression guard

No automated guard:A warning comment at the <Modal> in BackgroundLocationDisclosure.tsx, repeated in PushPermissionPrompt.tsx, and every RN modal in the app presents transparent today. That holds by convention: no test or lint rule bans fullScreen.

Root cause, fix, diff and files

Root cause

Dismissing a <Modal presentationStyle="fullScreen"> tears down the app's key UIWindow; with no key window the app loses foreground status. The presentation style, not the content, is the trigger.

Fix

Present transparent (over-full-screen) and paint an opaque full-screen background inside the modal's own content view, keeping the root window intact through dismissal. accessibilityViewIsModal traps VoiceOver focus.

   <Modal
     visible={visible}
     animationType="slide"
-    presentationStyle="fullScreen"
+    // transparent (over-full-screen) and NOT presentationStyle="fullScreen".
+    // On RN 0.85's New Architecture (iOS 26), dismissing a fullScreen modal
+    // tore down the app's key window and dropped the whole app to the
+    // background, leaving it uninteractable. Presenting OVER the current
+    // context and painting our own opaque background keeps the root window
+    // intact through dismissal.
+    transparent
     statusBarTranslucent

Files: src/features/geofencing/components/BackgroundLocationDisclosure.tsx

Back to the index

The paywall that stayed dead after the network recovered

Symptom

A transient catalog fetch left the paywall with unavailable prices and a disabled purchase CTA. Bringing the app back to the foreground refreshed entitlement state, but not the missing catalog, so the screen stayed unusable until a cold restart.

Regression guard

Guarded by a test:EntitlementContext.offeringRecover.test.tsx covers a failed mount fetch followed by foreground recovery, the no-refetch healthy path, the empty-catalog case, and user A's late response arriving after user B has finished identifying.

Root cause, fix, diff and files

Root cause

The foreground handler had two related responsibilities but refreshed only one of them: entitlement state came back, the catalog that failed on mount did not. A second hole sat next to it. The catalog lived in one shared slot, so a late response for an earlier user could replace the active user's catalog.

Fix

In two steps, eight days apart. First, on foreground, retry the catalog only when it is missing, so a healthy one is never refetched. Then store each catalog under the identity that requested it, read only the active identity's slot, and count a catalog that arrives with no store packages as missing too.

// src/contexts/EntitlementContext.tsx
// First fix: on foreground, retry the catalog only when it is missing
 AppState.addEventListener('change', (s) => {
   if (s !== 'active') return;
   void refreshRc();
   void refetchStatus();
+  if (!offering) getCurrentOffering().then(setOffering).catch(report);
 });

// Second fix: file each result under the identity that asked for it, and treat
// a non-null catalog with no store packages as missing too
-  if (!offering) getCurrentOffering().then(setOffering)
+  const expectedIdentityKey = user?.id ?? ANONYMOUS_OFFERING_KEY;
+  if (identityCanReadOffering && !offering?.packages.length) {
+    getCurrentOffering().then((next) =>
+      setOfferingByIdentity((current) => ({ ...current, [expectedIdentityKey]: next })));
+  }

Files: src/contexts/EntitlementContext.tsx, src/contexts/__tests__/EntitlementContext.offeringRecover.test.tsx

Back to the index

Offline money actions that paused forever instead of failing safely

Symptom

An offline settlement could enter a loading state that never resolved, rather than showing a recoverable error. The same risk existed around deleting or undoing a shared expense and clearing a group balance.

Regression guard

Guarded by a test:Four *.offlineGuard.test.tsx files assert that offline means no settlement, delete, undo, settle-all or chore mutation, plus a visible error. The guard is a check typed into each handler, so a new write can ship without one, and add-expense's has no offline test.

The whole story: Offline money actions that spun forever

Diff and files
// src/app/settle-debt.tsx
+const isOnline = useIsOnline();

 const confirmSettle = async () => {
+  // The QueryClient defaults to networkMode 'online', so an offline
+  // mutateAsync PAUSES and never resolves or rejects.
+  if (!isOnline) {
+    haptic.error();
+    showToast({ title: t('network.offlineSubmit'), tone: 'error' });
+    return;                       // before the isSettling spinner state
+  }
   setIsSettling(true);

// A follow-up puts the same preflight in front of expense delete, undo and settle-all.

Files: src/app/__tests__/settleDebt.offlineGuard.test.tsx, src/app/__tests__/expenses.offlineGuard.test.tsx, src/app/__tests__/groupDebts.offlineGuard.test.tsx, src/app/__tests__/chores.offlineGuard.test.tsx

Back to the index

The native sheet swipe that bypassed an unsaved money-form guard

Symptom

A person could start entering a shared expense, then dismiss the native sheet with a swipe and lose the draft. The ordinary navigation guard was present, but the platform gesture did not wait for it.

Regression guard

No automated guard:Two tests pin the options object: add-expense.sheetLock.test.tsx asserts the gesture is off while the form is dirty, and sheetScreenOptions.test.ts pins the helper as a no-op off Android. Neither can see whether the native sheet obeys, and on iOS nothing blocks the swipe, so a manual QA row covers it.

The whole story: A native sheet swipe cannot be vetoed from JavaScript

Diff and files
// src/design-system/navigation/sheetScreenOptions.ts
+export function androidSheetDismissLockOptions(locked, platform = Platform.OS) {
+  if (platform !== 'android') return {};
+  return { gestureEnabled: !locked, sheetGrabberVisible: !locked };
+}

// src/app/(app)/(home,expenses,chores)/add-expense.tsx
+const nativeDismissLocked = isDirty || submitting;
 <Stack.Screen
   options={{
+    ...androidSheetDismissLockOptions(nativeDismissLocked),
   }}
 />

Files: src/design-system/navigation/sheetScreenOptions.ts, src/hooks/useDiscardGuard.ts, src/app/(app)/(home,expenses,chores)/__tests__/add-expense.sheetLock.test.tsx

Back to the index

The language switch that committed before its translation bundle arrived

Symptom

On first launch, device-language detection could select Hebrew before its lazy translation bundle loaded. If that load failed, the UI and persisted preference could claim a language whose strings were unavailable.

Regression guard

Guarded by a test:PreferencesContext.firstRunLocale.test.tsx forces the bundle load to throw and asserts that the default language stays and the unavailable choice is never persisted. The gap: restoring a saved language on launch still sets state before it loads the bundle, so a failed load can leave Hebrew selected over English strings.

Root cause, fix, diff and files

Root cause

The locale path committed React state optimistically, then awaited bundle loading and the i18n flip. A rejected asynchronous step left the application in a half-transitioned state and could later persist that unchosen language.

Fix

Load the language bundle and apply the i18n change first; only then commit locale state and native-direction reconciliation. A failure leaves the known-good default language intact and reports the error for diagnosis.

try {
-  setLanguage(deviceLanguage);              // state says Hebrew before its bundle exists
   await ensureLanguageBundle(deviceLanguage);
   await i18n.changeLanguage(deviceLanguage);
+  setLanguage(deviceLanguage);              // commit only after load + flip succeed
} catch {
+  keepDefaultLanguage();                    // never persist an unavailable language
}

Files: src/contexts/PreferencesContext.tsx, src/contexts/__tests__/PreferencesContext.firstRunLocale.test.tsx

Back to the index

How the audits run

The audits run as a loop, not a one-shot prompt. Independent finder agents work one lens each (security, accessibility, i18n, performance, correctness) and report findings. Adversarial verifier agents then try to refute each finding before it is accepted. What survives becomes a remediation commit. Then the whole repo is re-audited, and the new round's finding count is recorded in its commit message.

It shows in the history: numbered full-repo audit rounds, each with a remediation commit citing its findings, and the counts falling round by round as the surface hardened. The same loop ran outside the code. A services audit walked App Store Connect, the Play console, RevenueCat and Supabase. And a live production-database security audit reviewed RLS policies and attack surface against the running Supabase project, with remediation tracked to closure.

The division of labor is fixed. The agents find, a human verifies and fixes, and the gates enforce. The agents widen the search and do not get the last word.

Outcomes

Homies reached both stores' test tracks, solo: TestFlight on iOS and Play internal testing on Android, where it still is, in closed beta. It runs bilingual with full RTL and implements subscription billing through RevenueCat behind a hard paywall. Of the 10 exhibits above, 3 have a dedicated automated guard and 7 do not. Each of those says what stands in for the missing test.

This site ships through the same kind of gate: Playwright, axe and Lighthouse budgets. The agent pipelines that once opened pull requests against the app, the Autopilot and Hermes, are retired and written up as history.