Skip to content

Retain bounded native startup and onboarding diagnostics - #7116

Draft
antuz123 wants to merge 344 commits into
sprintfrom
codex/r5-ios-startup-diagnosis-20261022
Draft

antuz123 wants to merge 344 commits into
sprintfrom
codex/r5-ios-startup-diagnosis-20261022

Conversation

@antuz123

@antuz123 antuz123 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

The prior hosted iOS startup failure retained generic errors without identifying the visible screen; Android's first product failure lacked an exact failed-command receipt. This preparation adds bounded fixed observations for normal iOS Metro/log/hierarchy data and failed-product JUnit/hierarchy/owned-Metro context, while preserving application behavior, dependency locks, flows, selectors, commands and deadlines relative to23f.

Frozen head 1bc34890cb8618b2fffd446a63924974e0fe15b5; tree 2e9cd57bf9f78b92cac73e9343ddbd0eef25e86e; diagnostic-only delta14 .github/docs files relative to 23f14e01f3437c213f1443c3167d96022f3a43bc (through parent76d1c949). Broader inherited integration app changes remain part of the combined candidate. Compatible diagnostic-truth validation from #7115 was adopted; no speculative dependency/signing/timeout correction.

The serialized exact-source window 39858617273/a1 completed naturally at23:11:29UTC, reusable workflow 3c44ab6412a8118b183273c402dd08136db05b28. Both builds passed. iOS120103187854 passed driver readiness, install and strict pre-UI bytes, then failed startup with the fixed credential-error/Retry UI; persistence/workers/product checks did not run. Android120125972406 passed startup, native persistence, all5 workers/source receipts/helper measurements and strict APK bytes, then product sample1 failed at the exact Start New visibility assertion after Skip acknowledgement. Only27687.431ms startup-to-passcode was recorded; zero complete product samples, remaining24of25timing cells/Retry/key-PIN/companions unrun. Exact underlying causes remain unknown. Source/original #7082 execution preserved; no cancellation, rerun or duplicate.

Complete actual matrix, all raw measurements, proof scopes and artifact digests. Both ZIPs were independently verified through read-only hosted-macOS exact-byte metadata transport #7124/#7132; no raw UI/process logs uploaded. Diagnostic label removed only after completed/attempt/source/zero-active checks. No native run is active for this head.

Validation: offline152Node/246Python PASS, zero failures/skips, independent review clear. Hosted contracts39858185433/a1/job120101735519 PASS152Node/246Python. Actual checkout was synthetic merge3c44ab6412a8118b183273c402dd08136db05b28 with the identical reviewed tree; this is tree equivalence, not a direct head checkout. Pinned artifact audits accept exact identity/digests and report aggregate acceptanceFALSE, with strict whole-product consumerNOTVERIFIED.

Optional observations are never acceptance predicates. Positive UI flags do not prove final-route visibility/tap delivery; outerHTTP200 does not prove multipart terminal success; runtime marker counts do not identify a cause. Missing/invalid/partial data staysUNKNOWN. Follow-up original-boundary observation is prepared separately in #7131; no native result transfers to that changed source.

Codex local handoff

State: NEEDS_LOCAL
PR: #7116
Base: sprint
Head branch: codex/r5-ios-startup-diagnosis-20261022
Head commit: 1bc3489
Goal and acceptance criteria: Complete exact-source installed bytes, persistence, five genuine source workers, five full-product samples/all25rawmetrics, controlled Retry, app key/PIN and scoped companions; diagnose observed blockers before minimal corrections.
Changes made: Bounded optional iOS and failed-product observations/controls/docs described above; no app/dependency/flow/deadline change relative to23f.
Cloud checks: Full completed native result isBLOCKED with actual platform PASS/FAIL/NOTRUN scopes above; hosted contractsPASS. Premerge diagnostics remain untrusted for protected-base acceptance.
Required local checks: IOS, ANDROID, HARDWARE
Local checks requested: Continue hosted macOS/Android investigation/validation on the next reviewed exact candidate after observation preparation/newer-result review. No personal Mac. Physical phones/biometrics/camera/NFC/USB/signers NOT RUN; no owner deferral inferred.
Risks / known gaps: Guarded iOS credential/navigation error and Android post-Skip failure remain undiagnosed at their original operation boundaries. Full-product/Retry/key-PIN/companion acceptance is incomplete. No release signing/upload, merge, distribution or deployment authorization.

# Conflicts:
#	src/screens/AppSettings/Node/NodeSettings.tsx
#	src/store/sagaActions/wallets.ts
#	src/store/sagas/bhr.ts
#	src/store/sagas/utxos.ts
#	src/store/sagas/wallets.ts
# Conflicts:
#	src/utils/service-utilities/config.ts
…afb05f

# Conflicts:
#	.github/workflows/test.yml
#	src/hooks/useUSDTWallets.ts
#	src/screens/Home/components/Wallet/HomeWallet.tsx
@antuz123 antuz123 changed the title Retain bounded iOS startup diagnostics after verified installation Retain bounded native startup and onboarding diagnostics Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

Selected hosted window — exact-source freeze

Source: 1bc34890cb8618b2fffd446a63924974e0fe15b5 (tree 2e9cd57bf9f78b92cac73e9343ddbd0eef25e86e). Keep this source immutable through the window. Hosted contracts 39858185433 attempt1, job120101735519: 152 Node / 246 Python PASS, zero failures/skips. Actual contract checkout3c44ab6412a8118b183273c402dd08136db05b28 has exactly the same tree; this is qualified tree-equivalent validation, not actual-head checkout.

SHA256 inputs:

Input SHA256
package.json 0497b2aaeb76372a6f21721f28ebd42ec2877155a090580b23ace2e017fab6a8
yarn.lock 60ef283fd7cfb1ac0a940216864d7a779e8449fd245c213d3148b92b97435b7b
ios/Podfile.lock b72b31df28a9dececdab9781d5d96785b2081e63cc1d7475941ecfbc624777b3
Gemfile 5ab2f41eef4d9b3cd84f939f099d0d58cd3fceddb2d4b7815f83eb9b146dd6b4
Gemfile.lock e62ce3f1729da11bfdbbbb1665b90c72516352ffaa14606507ff6ce2367b78b1

Fresh raw API checks verified current1bc/labels[], original39824790868 remains completed attempt2 on3eb, and39846002094 remains completed attempt1 on23f. There are zero active or queued native/release-acceptance workflows; the five active ordinary workflows are unrelated unit/host checks. Newer #7068/80199f90 and #7117 add provenance/host/readout evidence, not a superseding observed native startup/PIN correction. Relevant #7115 diagnostic-truth fixes are already adopted here.

Select one existing serialized diagnostic window: hosted macOS/iOS first, then hosted Android automatically even if iOS fails. No personal Mac, release signing/upload, merge or deployment. Add the single native opt-in after this record; do not cancel, rerun, duplicate or move source during execution. Native results on1bc are currently NOT RUN and must be recorded from its own run/attempt/job/artifact identities and verified digests. The original and23f outcomes remain separately scoped.

Retain actual build/install/strict pre/post bytes, persistence, all five exact-source workers, five complete full-product measurement samples, separate account-creation Retry, key/PIN and companions. If a prerequisite fails, classify later phases NOT RUN and inspect the bounded fixed observations before any app/dependency/selector/deadline correction. Helper timings are not full-product samples. Physical checks remain NOT RUN, with no inferred deferral. Native preparation directly installs CocoaPods1.16.2; the Gem input/contract result is not a frozen118-gem native-runtime claim.

Copy link
Copy Markdown
Collaborator Author

Selected window is now running: 39858617273 attempt1 on exact 1bc34890cb8618b2fffd446a63924974e0fe15b5, actual reusable workflow SHA 3c44ab6412a8118b183273c402dd08136db05b28. iOS job120103187854 is installing immutable dependencies; setup-only job120103189932 is SKIPPED as intended. Android will follow automatically as the serialized continuation. All acceptance outcomes on this source are still pending/unrun.

The source freeze/input/selection record and hosted152 Node/246 Python contracts are verified. Keep source/label immutable; do not cancel, duplicate, rerun or start competing native work. Both prior windows finished naturally and retain their own partial results; no prior pass is transferred here. No personal Mac or release operations. Physical checks remain NOT RUN.

Copy link
Copy Markdown
Collaborator Author

Hosted milestone: run 39858617273 attempt1, exact 1bc34890cb8618b2fffd446a63924974e0fe15b5, actual workflow 3c44ab6412a8118b183273c402dd08136db05b28, iOS job120103187854.

Immutable dependency preparation and corrected driver readiness are actual PASS. Unsigned development build began21:47:15 UTC and is IN PROGRESS. Installation/installed bytes, startup UI, persistence/workers, five complete product samples, Retry, key/PIN and companions remain pending/unrun on this source. Android remains the serialized continuation. Physical checks remain NOT RUN. Source/labels are unchanged; no cancellation, duplicate, rerun or release action.

Copy link
Copy Markdown
Collaborator Author

Hosted milestone — run 39858617273, attempt1, frozen head 1bc34890cb8618b2fffd446a63924974e0fe15b5, iOS job 120103187854, reusable workflow 3c44ab6412a8118b183273c402dd08136db05b28.

The job reports immutable dependencies, Maestro readiness and unsigned development build PASS. Disposable startup smoke began at22:15:17UTC and is IN PROGRESS. Installed-byte proof, visible startup and subsequent persistence/workers/full-product/Retry/key-PIN/companion acceptance remain pending artifact verification. Android is the existing serialized continuation and has not yet been allocated; no cancellation, rerun or duplicate has been requested. Head and native label remain unchanged.

Physical devices/signers remain NOT RUN. These are premerge diagnostic milestones, not protected-base acceptance or release authorization.

Copy link
Copy Markdown
Collaborator Author

Codex local validation — completed iOS subset; Android continues

State: BLOCKED
Tested commit: 1bc34890cb8618b2fffd446a63924974e0fe15b5 (PR #7116)

Run 39858617273, attempt1; reusable workflow 3c44ab6412a8118b183273c402dd08136db05b28; completed iOS job 120103187854 FAILURE. Android is the preserved serialized continuation 120125972406, currently building; no cancellation, duplicate or rerun.

iOS check Actual result
Immutable dependencies / post-boot readiness gate / pinned Maestro readiness PASS; unchanged Maestro readiness84.2s
Unsigned development build PASS1680.1s
Normal Metro warmup / simulator boot / single unchanged install PASS148.5s /223.2s /19.4s
Strict full installed bundle and executable equality PASS before UI; typed inventory fcba6700b1f8812803d57893bdc97c080dfb08757dd2f1ca1cdedb84ba302300, executable baffb93e8a4d08ec3be61d9e38d0741c0e9f4637339ce15199f138a3979b9981
Create/Confirm passcode startup UI FAIL; Create-a-passcode assertion exits1 after360.6s within420s budget
Post-UI byte comparison; native Realm/MMKV persistence; five exact production workers/source receipts/helper timings NOT RUN
Five full-product samples/all25 raw durations; controlled disconnect Retry; app key/PIN checks; credential/history/Vault companions NOT RUN
Physical phones/biometrics/camera/NFC/USB/signers NOT RUN; no owner deferral inferred

New retained positive observation: one valid public hierarchy snapshot contains the fixed credential-error message AND Retry. Login, Welcome Back and fixed LogBox/loading flags are false in that bounded snapshot. Source tracing shows Splash's guarded try includes both SecureStore.hasPin({throwOnError:true}) and navigation.replace; this identifies the startup error screen, not an observed Keychain OSStatus or a specific rejected operation.

The bounded observer has11 valid rows, no invalid/truncated/capped input. APP_WINDOW contains an expected-app iOS ENTRY_BUNDLE request (dev=true,lazy=true,minify=false,runModule=true,excludeSource=true), build_started/build_done and outerHTTP200. These do not prove multipart terminal success or the cause. Three unclassified worker-stderr events are BEFORE_APP. Own-process compact query succeeded/PARSED:1145 records,616 error records,18 classified CONNECTION and598 unclassified; no retained credential OSStatus/typed JS exception. CONNECTION counts alone do not identify the cause. Process state was not queried and remains UNKNOWN.

Historical d865 startup success is not a successful-credential-read control: its JS swallowed all hasPin errors and navigated to CreatePin onfalse. Current JS correctly fails closed. No dependency, timeout, entitlement/signing or app correction is justified yet.

Artifact 12462694619,6884bytes, API/upload/hosted-download/exact-log-transport/local ZIP SHA256 550142809a0faf812741a586630b17d6f458b2b6c935b5bab4b00f84da67c84f; metadata SHA256 202ff3e86b6697e30f02d233453365ffca4ee809fae5491f36d79f7ef28866e4. Workspace network policy blocked direct File Service materialization, so separate read-only hosted-macOS PR #7124 / run39866833908/a1/job120131017225 recovered exact original metadata ZIP bytes without native execution. Its source2bcf2ff51176831f3b503625faa1c819c1f556e5/treec0339756bc514c044bf6d6406699492619cd2dfd and10Node/20Python controls are separate readout evidence. Pinned evaluator8535ac… accepted identity/digest and honestly reports aggregate acceptance false; audit SHA256 71bfee83bda37c27b8daf6e6f3d9cfe95454cb21975b21914fc25d320f70ce04.

Next: preserve Android to natural completion, diagnose any retained actual product failure, and determine a minimal status/phase observation for the guarded iOS startup error before selecting a correction. Source and native label stay frozen throughout this window. Premerge diagnostics do not grant protected-base acceptance; release readiness is NOT READY. No personal Mac, release signing/upload, merge or deployment.

Copy link
Copy Markdown
Collaborator Author

Android milestone for frozen 1bc34890cb8618b2fffd446a63924974e0fe15b5, run39858617273/a1, existing continuation job120125972406: immutable dependencies and development build now PASS. The combined Android startup/persistence/worker/product step started at23:01:17UTC and is IN PROGRESS; individual acceptance outcomes await verified phase receipts/artifact. iOS subset remains as recorded in comment6352965388. No source/label mutation, cancellation, rerun or duplicate native execution; physical checks NOT RUN.

Copy link
Copy Markdown
Collaborator Author

Codex local validation — completed exact-source hosted window

State: BLOCKED
Tested commit: 1bc34890cb8618b2fffd446a63924974e0fe15b5 (PR #7116)

Run39858617273, attempt1, reusable workflow 3c44ab6412a8118b183273c402dd08136db05b28. Both jobs completed naturally: iOS120103187854 FAILURE at22:29:23UTC, Android120125972406 FAILURE at23:11:28UTC; run completed23:11:29UTC. No cancellation, rerun or duplicate. Fresh completed/attempt1/head1bc/zero-active-native checks preceded removal of only this candidate's native opt-in label; original #7082 remains untouched. Source stays frozen.

Check iOS Android
Immutable dependencies PASS PASS
Postboot app-service readiness / pinned Maestro PASS / PASS84.2s Not applicable
Development build PASS unsigned1680.1s PASS1636.6s
Single install and strict installed bytes PASS19.4s, full bundle+executable before UI PASS strict APK before/after completed core phases and before product
Startup Create/Confirm PIN smoke FAIL360.6s/420; fixed credential-error + Retry snapshot PASS49.3s
Native Realm/MMKV persistence NOT RUN PASS45.6s
Five genuine production-worker scenarios + exact five source/name/path/hash receipts NOT RUN PASS79.4s
Five worker helper measurements NOT RUN PASS; helper values below, not full-product timings
Full-product sample1 NOT RUN FAIL97.0s/600 at fixed Start New visibility assertion
Full-product samples2–5 / separate controlled Retry / app key-PIN acceptance NOT RUN NOT RUN
Credential-error/history/Vault companions NOT RUN NOT RUN
Physical phones/biometrics/camera/NFC/USB/signers NOT RUN NOT RUN

Android exact worker sources: src/utils/utilities.ts, src/store/sagas/storage.ts, src/store/sagas/wallets.ts, src/store/sagas/bhr.ts, src/services/backup/transport.ts. Helper raw pairs in milliseconds (probe_ready / setup_first_wallet), samples1–5:453.8827830000082 /7.795103000011295;498.9456309999805 /7.2511990000493824;555.7336099999957 /6.92860699997982;599.2651189999888 /6.92921800003387;694.1971159999957 /11.338706000009552. These are helper timings only.

Actual full-product raw grid (milliseconds):

Sample startup_to_passcode start_new_to_ready start_new_to_home cold_relaunch_to_login cold_relaunch_to_authenticated_home
1 (FAIL) 27687.431 NOT RUN NOT RUN NOT RUN NOT RUN
2 NOT RUN NOT RUN NOT RUN NOT RUN NOT RUN
3 NOT RUN NOT RUN NOT RUN NOT RUN NOT RUN
4 NOT RUN NOT RUN NOT RUN NOT RUN NOT RUN
5 NOT RUN NOT RUN NOT RUN NOT RUN NOT RUN

Zero complete full-product samples;24of25 cells unrun. Sample1 has only startup_start/startup_ready, zero createNewApp calls and zero other backend calls. Nine optional host acknowledgement markers end at skip_tapped; those do not prove delivery to the app's Skip handler. New pinned-Maestro JUnit text positively identifies ASSERT_VISIBLE on start_new_tile. One valid retained hierarchy snapshot (89nodes) observes onboarding_skip=true; fixed Start New ID/text, welcome/recovery/settings, credential/Retry, LogBox and notification flags are false. Its explicit scope is ANY_RETAINED_SNAPSHOT, not final-route/window visibility or tap-delivery proof. The bound owned product-Metro console window is COMPLETE,422bytes/five valid lines, processALIVE, no error headers/categories or truncation/partial/growth. Existing postfailure collector observes own PID/resumed app, seven parsed error records but zero own errors/fixed categories, no exit-history records/freshnessUNKNOWN. Private collector cleanupDELETED is a narrow receipt, not a global cleanupPASS. The specific tap/navigation/render cause remains UNDETERMINED; no selector/timing/dependency correction is justified by these observations alone.

On iOS, verified new snapshot positively contains the fixed credential-error message and Retry. Splash's original guarded try covers both hasPin and navigation.replace, so no particular rejected operation or native OSStatus is proven. App-window Metro expected-app iOS lazy bundle request/build_done/outerHTTP200 and connection-error counts are observations, not cause proof. Detailed iOS receipt:comment6352965388. Historical d865 swallowed hasPin errors and therefore cannot be used as a successful credential-read control.

Installed proof scopes: Android APK SHA256 38e4e4450d609a067dc7f1a68b6c827b0a2989610cc3949ae70f68fa0446ac9e matches built/installed bytes before and after smoke/persistence/workers and before product; no post-failed-product comparison completed. iOS typed inventory fcba6700b1f8812803d57893bdc97c080dfb08757dd2f1ca1cdedb84ba302300, executable baffb93e8a4d08ec3be61d9e38d0741c0e9f4637339ce15199f138a3979b9981 passed before startup; post-UI proof unrun.

Artifacts independently verified against API/upload/hosted download/exact-byte transport/local SHA256:

  • iOS12462694619,6884bytes, ZIP 550142809a0faf812741a586630b17d6f458b2b6c935b5bab4b00f84da67c84f, metadata 202ff3e86b6697e30f02d233453365ffca4ee809fae5491f36d79f7ef28866e4.
  • Android12466091444,8950bytes, ZIP 5c3210a6b0af7bf9ea0cddb61fd1494714e8cfac0db8385960fb6390f92aa545, metadata d62ba34221c1971973b7370635e8bd899ea5c2ac1b6aca978beda335706a5e02.

Read-only hosted-macOS exact metadata transport: #7124/run39866833908/a1/job120131017225 and #7132/run39870622097/a1/job120143833569 SUCCESS; neither runs native apps. Pinned evaluator8535ac… accepted identity/schema/digest and reports aggregate acceptanceFALSE; strict7109whole-product consumer NOT VERIFIED. Audit SHA256 iOS 71bfee83bda37c27b8daf6e6f3d9cfe95454cb21975b21914fc25d320f70ce04, Android c53e9a2b0d5efa932e5bd48d38a1b4a80ad2d803ae3732722d2ed4a39bc324d5; supplemental Android facts 2bb408c644ac0e85eb095c4e7ee657a3f330903c4a02cb37bdd29543890c5c9d retain all raw helper pairs and the25-cell grid.

Next: preserve these results; source-verified optional original-boundary iOS observation is prepared in draft #7131/e343 (hosted158Node/266Python contractsPASS, nativeUNRUN). Minimal Android handler/navigation observations are being prepared offline because acknowledgement and hierarchy do not identify the cause. Review newer fixes/results before coordinating a new exact-source diagnostic window. No guessed app/dependency/timeout fix. Physical checks remain NOT RUN; no owner deferral inferred. Premerge diagnostic evidence does not grant protected-base acceptance. Release readiness: NOT READY. No personal Mac, release signing/upload, merge or deployment.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants