2026-10-19 — historical real backend compatibility baseline

Performance follow-up: DISCOVERY-PERFORMANCE.txt records the 0.1.13 fix and
a separate complete integration run. The measurements below are the old baseline.

Status: local compatibility checks passed; public deployment and phone testing
NOT complete. Wallet binary remains 0.1.12-preview; no active app source changed.
Pinned upstream ElectrumX: 280cb339aa158e099eb936033eecd15719770651.
Exact Core binary version/hash and check outputs: backend-lab-results.json.

Completed against isolated real Resatoshi Core, real upstream ElectrumX indexing,
loopback TLS with a temporary explicitly trusted localhost certificate and actual
wallet-library transaction/PSBT signing. No fake Core/Electrum protocol responses.
The production client's fixed mainnet genesis was not changed for regtest.

- unchanged production client verifies real mainnet genesis and scans empty account over verified TLS {"mainnetGenesisVerified": true, "emptyBalance": true, "scanMs": 140664, "rpcRequests": 4044}
- production client rejects real regtest genesis {"wrongNetworkRejected": true}
- real confirmed UTXO/history/raw transaction indexed {"height": 101}
- real server push and pending history after wallet-signed broadcast {"local_seconds": 1.648}
- pending payment becomes confirmed {"height": 102}
- real Core reorg returns confirmed transaction to mempool
- real wallet QR-PSBT prepare/sign/verify result broadcasts and confirms
- expiry next-height boundary matches Core rejection and server list/balance filtering {"reject_reason": "missing-inputs"}
- reorg across expiry restores Core UTXO, spend eligibility and server list/balance
- backend restart preserves index, post-reorg balance and confirmed history

Important findings
- Empty mainnet-account scan: 4044 RPC requests, 140664ms on this local setup.
  Initial 120-second attempts timed out. This exposes a release-blocking search
  performance issue; it is not a phone or Internet latency estimate. Cost limits
  were raised for the lab workload; production rate limits still need design.
  Existing seed-only change recovery was preserved rather than hiding the cost.
- Unmodified Bitcoin-style UTXO indexing retains expired outputs. The adapter's
  query-layer expiry filter is a prototype; stale index entries remain in DB.
- Forward-only polling initially stalled when Core's tip shortened. The adapter
  verifies a matching shorter indexed prefix before queuing a bounded rollback
  and notifying clients at the caught-up tip. Divergent shorter/deep chains,
  interruption/crash consistency and scale remain unvalidated.
- Pending notification timing is from broadcast through a local Electrum server
  notification, not app receipt display or a mobile SLA. Script/ownership parsing
  unit tests and actual backend tests complement rather than replace each other.

Also passed: existing 47 wallet regression tests; TypeScript; Python parse checks;
current document links; diff whitespace checks. Earlier isolated direct-Core hot
and QR-PSBT transaction checks passed for empty and non-empty BIP39 passphrases.

Not completed / release gates
No VPS, public hostname/certificate, funded mainnet transfer, physical UI, camera,
PIN/biometric prompt count, two-phone QR scan or device backup restore. No public
server install automation is supplied. See DEVICE-VALIDATION.txt and the lab README.
No RBF, BC-UR, descriptor pairing, derivation, storage-format or scan-range change.
Unused upstream code extraction is deferred until the baseline/device gate.
No CI configuration, settings/API access or pipeline execution used.
