Data, KYC & safetySeparate live, demo, and gated behavior
01

KYC submission is not approval

Submitted and Under Review customers remain gated. Only an authoritative Approved state can enable protected demo surfaces.

02

Demo balances are not financial infrastructure

Orders, balances, deposits, and withdrawals do not represent a brokerage, bank, exchange, or RDN integration.

03

Production configuration fails closed

Incomplete or unsafe live identity configuration must remain visible as a failure; demo behavior is not a production fallback.

Runtime data matrix

Read the source, fallback, persistence, and caveat together before calling a surface “live.”

SurfaceModePrimary source & shipped behaviorPersistence & boundaryProduction assessmentEvidence
Phone authenticationreachableconfiguration-dependentConfigured phone authentication serviceDemo locally or Supabase OTP by explicit configuration; one shared account gate.Provider session; demo service persists a synthetic account locallyNone in demo; Supabase Auth in configured modeFallback: No live-to-demo fallbackNot production-readyAdapters exist, but production SMS delivery, recovery, fraud controls, sender policy, and spend limits are unproven.Risk: Production SMS operations and recovery are not validated.
3 audited sources
  • Alva Online Trading/App/RootView.swiftRootView.routedContentAuthenticated accounts enter AuthenticatedCustomerRoot; all other states remain behind phone entry.SHA-256 · 2a8c30a43e6130f8121ebe6d1c5ae6ba9976cb4a9b5ffb19ab4547bc6aa6318e
  • Alva Online Trading/App/AppAuthGateView.swiftAppAuthGateViewThe gate renders restoration, phone entry, or authenticated content from one store.SHA-256 · f4378357f1b63850e450bf963c4b0aac19ec9030f99d62fedf3cd9df628f74d5
  • Alva Online Trading/Core/Auth/AppAuthSession.swiftAppAuthSessionStoreThe shared store owns authentication state transitions.SHA-256 · cebad8997bfdbaf8a32762c74248b49c3ebf8c9e281a43150f1f86ff850e60f9
Watchlist membership & preferencesreachablecachedLocal AppStoragePersists custom lists, selected/default list, sort, text size, and view density locally.Per-device UserDefaultsNone for membershipFallback: Bundled default tickersNot production-readyNot account-synced.Risk: Logout/account switch can leave device-local preferences that appear customer-owned.
1 audited source
  • Alva Online Trading/Features/Watchlist/WatchlistView.swiftWatchlistViewLocal AppStorage lists are enriched with live quote and sparkline overlays when available.SHA-256 · e8387a3585cdc7f7bc3df347bb5e317b03c3c6f0bfa6a91614f4039820b9393d
Quotes, order book & chartsreachablehybridRapidAPI quote, order book, and charts where supportedLive/cached values are overlaid where supported; deterministic input remains available.Transient view state and shared response cachesRapidAPI called from iOS; embedded TradingView route for advanced chartFallback: Input stock plus deterministic feature-specific providersNot production-readyA live quote header can coexist with mock fundamentals, broker, seasonality, comparison, or analysis sections.Risk: One screen can mix live and mock values without a single provenance badge.
2 audited sources
  • Alva Online Trading/Features/StockDetail/StockDetailView.swiftStockDetailViewThe screen coordinates numerous local states, market requests, sections, and protected order actions.SHA-256 · 4b797479804a9f5db1955e2a9d54d26dc19385a4e22ecda4a850a60b2ca4b01c
  • Alva Online Trading/Features/StockDetail/RapidAPIMarketDataAPIClient.swiftRapidAPIMarketDataRepositoryQuote, order-book, and chart calls are centralized in the market-data repository.SHA-256 · 39d168db557d379e1b24b8018166b72f44a3238503c72a2d4459ff727941b573
IDX symbol directoryreachablecachedRapidAPI symbol directory and remote search when configuredCache-first directory with remote refresh/search and metadata merge.IDX symbol cache on device; recent searches remain view-localRapidAPI called from the iOS clientFallback: Cached directory plus bundled discovery catalog/sample symbolsNot production-readyDiscovery cards and many market modules are illustrative even when symbol identity comes from a live/cached directory.Risk: Client credential distribution and staleness policy need production ownership.
2 audited sources
  • Alva Online Trading/Features/Search/SearchView.swiftSearchViewMarket owns category, query, recent search, and an async symbol-directory view model.SHA-256 · 578529bc7d9964a174f34c3e07d1e9fc0eaebf51e958488845b662582f718332
  • Alva Online Trading/Features/Symbols/IDXSymbolDirectoryService.swiftIDXSymbolDirectoryServiceThe directory reads cache first and refreshes or unions remote search results.SHA-256 · b95e2cc6e5e2aa40c9b7d1cadc3a5d082cd5d2decd0905b71d1c1d07c118d01e
Fundamentals, broker, analysis & seasonalityreachablemockFeature-specific deterministic data providersRenders rich research UI alongside market data.NoneSome isolated modules have clients, but the composed Stock Detail surface remains mixedFallback: NoneNot production-readyTreat every section as mock until its exact call path proves otherwise.Risk: Visual credibility can obscure mock provenance.
1 audited source
  • Alva Online Trading/Features/StockDetail/StockDetailView.swiftStockDetailViewThe screen coordinates numerous local states, market requests, sections, and protected order actions.SHA-256 · 4b797479804a9f5db1955e2a9d54d26dc19385a4e22ecda4a850a60b2ca4b01c
KYC local demogatedsimulatedDeterministic demo providers and customer-keyed local repositorySupports resilient product/demo flow and repeatable tests.Local encoded application recordNoneFallback: NoneNot production-readySynthetic OCR, selfie, email, and bank checks do not prove identity.Risk: Never enable demo providers in staging/production.
2 audited sources
  • Alva Online Trading/Features/KYC/PersistentDemoKYCApplicationRepository.swiftPersistentDemoKYCApplicationRepositoryThis repository is explicitly restricted to demo/test environments.SHA-256 · f050ec5996951f327a1297493c6a1d39b88273841c04f2d7b7498b0d6a1e5834
  • Alva Online Trading/Features/KYC/KYCProviderServices.swiftDemoKYCProviderServicesDemo OCR, liveness, and bank results are deterministic fixtures.SHA-256 · 71d3508be2867af2d58f8281215101fbc45f14313b1aacf9223a9d48e7689498
KYC Supabase foundationgatedconfiguration-dependentDemo fixtures locally or authenticated Supabase KYC records/providersAuthenticated KYC persistence, private upload/OCR contracts, corrections, and consent foundations exist.Customer-keyed local demo JSON or Supabase RLS/RPC/private storageSupabase Auth, Database, Storage, Edge Function, and conditional Document AI pathFallback: Production provider modes fail closed; no silent demo fallbackNot production-readyOCR assists data entry only. No authoritative identity, liveness, bank ownership, AML, or reviewer approval workflow exists.Risk: No authoritative approval, identity proofing, liveness, AML, or bank/RDN verification.
2 audited sources
  • Alva Online Trading/Features/KYC/SupabaseKYCApplicationRepository.swiftSupabaseKYCApplicationRepositoryOwnership is bound to the authenticated customer and repository operations map to protected RPCs.SHA-256 · 63773b3186eb414dc7a913cc90a00988abf636c09eadfd7f8b10f099404aa680
  • docs/kyc/KNOWN_LIMITATIONS.mdKnown limitationsProduction identity and approval controls remain explicit enablement gates.SHA-256 · 7399d212f5b587e2cba393fc6214b9092163b5721118186fcfb38a4365dd9981
Portfolio & orders on maingatedsimulatedDeterministic dated synthetic executions, cash events, dividends, and securitiesFixed synthetic events derive coherent holdings, P&L, cash, orders, and history.No account-backed portfolio persistence on canonical mainNo brokerage, bank, RDN, or Supabase portfolio callFallback: NoneNot production-readyRealistic calculations do not make the values customer assets or a financial ledger.Risk: No customer ledger, atomic execution, reconciliation, or statement authority on main.
3 audited sources
  • Alva Online Trading/Features/Portfolio/PortfolioView.swiftPortfolioViewOverview, orders, and history are local tabs backed by sample data.SHA-256 · 696809ff848557356c37483fade03c23bd8a62301862c45cebc412057599ee31
  • Alva Online Trading/Features/Portfolio/PortfolioMockData.swiftPortfolioMockDataA deterministic synthetic ledger derives holdings, balance, history, fees, and P&L.SHA-256 · 48f2b1220967c22badeaebe3dacfd662add0226e9e304230bdba7e494791e33b
  • Alva Online Trading/Features/KYC/KYCApplication.swiftKYCApplicationStatus.capabilities(in:)Only approved status unlocks Portfolio and Trading UI; demo approval permits mock orders only.SHA-256 · f0f22f273b9594429ef0d0529fe7c3a2d7c753a01ed126ae1d34ebecac032229
Social forumdormantconfiguration-dependentIn-memory repository by default; Supabase forum when explicitly configuredRepository seam supports in-memory default and optional Supabase persistence.Session memory or Supabase RLS-backed forumSupabase database/RPC in enabled modeFallback: Explicit Supabase mode fails rather than silently switching for launch-critical configurationNot production-readyRealtime, push, media upload, and durable chat are not connected; IC-Trade users cannot reach this UI.Risk: Disabled in IC-Trade; realtime/media/push remain absent.
3 audited sources
  • Alva Online Trading/Core/AppExperience.swiftAppFeatureFlags.icTradeDemoIC-Trade disables social, community, forum, and chat.SHA-256 · d67d6545ca7c14bad31ad63fdd0993c386291c2de37b9be56b68c2cd1cbd1ef0
  • Alva Online Trading/Features/Social/Data/InMemorySocialRepository.swiftInMemorySocialRepositoryThe default social implementation is session-scoped in memory.SHA-256 · eeb3b4c9a093f113684e18a57cf4323dd0731bb18913a86e6aad21bdcf545e7a
  • Alva Online Trading/Features/Social/Data/SupabaseSocialRepository.swiftSupabaseSocialRepositoryThe optional forum implementation composes authenticated Supabase readers and writers.SHA-256 · d113e73097c65c69fb8f95634755c187d4e074030ea718990ccfe502488c78be
ChatdormantmockIn-memory seeded conversationsSession-scoped in-memory messages and conversation state.Process/session memory onlyNoneFallback: NoneNot production-readyThere is no durable chat backend, realtime transport, moderation pipeline, or push delivery.Risk: No durable or realtime service.
3 audited sources
  • Alva Online Trading/Core/AppExperience.swiftAppFeatureFlags.icTradeDemoIC-Trade disables chat.SHA-256 · d67d6545ca7c14bad31ad63fdd0993c386291c2de37b9be56b68c2cd1cbd1ef0
  • Alva Online Trading/Features/Chat/InMemoryChatRepository.swiftInMemoryChatRepositoryConversation and message state are seeded and retained in memory.SHA-256 · 3edbafaf564a727d0ec37faeb2f05abef2c8cb3da8e28a6f75f1516db3eb2b2d
  • Alva Online Trading/Features/Chat/ChatView.swiftChatViewChat screens depend on the shared repository contract.SHA-256 · b97acf446c6e43e5afc75447c639e6f8c3d5c95c01c06e53fd3bec0c0085a54d

KYC state matrix

These are user capabilities, not merely labels shown by the interface.

StatusBrowseWatchlistPortfolioTrading UIDemo ordersNext state & warning
Not startedNo customer application has been loaded yet. Yes Yes No No Nodraft
DraftAn application exists and required sections are incomplete. Yes Yes No No NoidentityVerificationInProgress · readyForSubmission
Identity verification in progressDocument/OCR processing is in flight or resumable. Yes Yes No No Nodraft · readyForSubmission · needsAction
Ready for submissionRequired section evidence can be reviewed and submitted. Yes Yes No No Nosubmitted · draft
SubmittedThe customer sent the application; there is intentionally no auto-approval path. Yes Yes No No NounderReview · needsAction · approved · rejectedSubmission must never unlock Trade, Portfolio, deposit, or withdrawal.
Under reviewA future authoritative review source may be evaluating the application. Yes Yes No No NoneedsAction · approved · rejectedNo production reviewer/admin workflow is implemented in this repository.
Needs actionA typed action points the customer back to a section or support. Yes Yes No No Nodraft · submitted · rejected
ApprovedThe only state whose capability projection unlocks protected UI. Yes Yes Yes Yes YesTerminal stateIn AppExperience.current (demo), Approved enables mock orders/history only. Live-mode capability booleans exist, but no brokerage or RDN integration is connected.
RejectedThe status hub explains that the application did not pass review. Yes Yes No No NoTerminal stateRejected does not unlock any protected capability.

Authentication and persistence

Account session
Phone authentication can be deterministic demo behavior or configured Supabase auth. Environment and identity-provider choices remain separate axes.
KYC drafts
Demo KYC is customer-keyed local persistence. Live-capable modes use the configured repository boundary and must retain authenticated ownership.
Market surfaces
Some quotes may be live while surrounding charts, recommendations, or portfolio context remain cached, mock, or simulated.
Absent capabilities
No approved brokerage execution, RDN account, real funding, withdrawal, or authoritative identity-review system exists in canonical main.