rouse-context/app
Jason Monk 250fe1ff60
Fix #272: Test onboarding interrupted mid-flow is resumable (#295)
* Fix #272: Test onboarding interrupted mid-flow is resumable

Automate the #163 regression guarantee: if a client crashes between
/register (subdomain stored) and /register/certs (cert provisioned), the
next process must reuse the existing subdomain and complete provisioning
instead of bouncing the user back to Welcome and re-requesting a fresh
subdomain.

- AppIntegrationTestHarness gains restartKoinPreservingState() — the
  complement to #271's clearPersistentState(). It tears down Koin + the
  harness coroutine scope + the fake health repo, then re-boots Koin
  against the still-running relay and untouched context.filesDir. This
  mirrors a process death where on-disk state and the relay survive but
  in-memory Koin singletons and the DeviceKeyManager are fresh.
- OnboardingInterruptedResumableTest drives OnboardingFlow.execute in
  isolation (skipping cert provisioning), calls restartKoinPreservingState,
  then drives CertProvisioningFlow.execute on the resumed graph. Asserts
  /request-subdomain and /register stay at exactly one call across the
  restart, /register/certs lands exactly once on the second run, the
  subdomain round-trips unchanged, and the store is fully populated.

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>

* Fix #272 (ktlint): Split arg lists over the 100-col limit

Post-push CI exposed ktlint's "Argument should be on a separate line"
rule firing on two assertion calls that exceeded the 100-char line
limit. Local `ktlintCheck` was UP-TO-DATE and skipped; `--rerun-tasks`
reproduces the failure.

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
2026-04-19 16:41:54 -04:00
..
screenshots Rewrite security alert docs to match real notification wording 2026-04-15 16:05:30 -04:00
src Fix #272: Test onboarding interrupted mid-flow is resumable (#295) 2026-04-19 16:41:54 -04:00
build.gradle.kts Fix #277: Integration test for CertRenewalWorker scheduling (#282) 2026-04-19 11:40:43 -04:00
google-services.json Add Firebase: google-services.json, Google Services plugin, debug applicationIdSuffix 2026-04-05 15:38:40 -04:00
proguard-rules.pro Add ProGuard rules for Ktor JMX references 2026-04-11 15:07:22 -04:00