Skip to content

chore(deps): vendor-bump sphere-sdk to 77bbbdc (Profile init tolerance)#313

Merged
vrogojin merged 1 commit into
feat/telco-webrtc-callsfrom
chore/vendor-bump-sdk-77bbbdc-issue-301
May 27, 2026
Merged

chore(deps): vendor-bump sphere-sdk to 77bbbdc (Profile init tolerance)#313
vrogojin merged 1 commit into
feat/telco-webrtc-callsfrom
chore/vendor-bump-sdk-77bbbdc-issue-301

Conversation

@vrogojin
Copy link
Copy Markdown
Contributor

Brings in sphere-sdk PR #301fix(profile): tolerate corrupt-block bundle refresh during lifecycle init. Addresses the target-save: Provider not initialized failure surfaced during the migration retest after PR #300. Three steelman passes converged on SHIP IT.

…t tolerance)

Brings in sphere-sdk PR #301 (merged at 77bbbdc onto integration/all-fixes):

  fix(profile): tolerate corrupt-block bundle refresh during lifecycle init

This addresses the SECOND failure surfaced during the migration retest
after PR #300 landed. With PR #300, the migration now reached
`target-save` but failed with `Provider not initialized` because
`tokenStorage.initialize()` had returned false after `db.all()` threw
on a corrupt OpLog block left behind by a previous failed migration.

With PR #301:
- `LifecycleManager.initialize` wraps `refreshKnownBundles()` in
  try/catch; logs warning + emits `storage:error` with code
  `BUNDLE_INDEX_REFRESH_FAILED`; proceeds with empty bundle set.
- The empty-set branch triggers cold-start recovery (aggregator
  pointer / legacy IPNS); the recovery's first successful write
  produces a fresh OpLog entry whose block IS reachable.
- The provider reaches `setInitialized(true)`, so `save()` works
  normally — migration unblocked.
- `Sphere.initializeProviders` now subscribes to provider events
  BEFORE the parallel `Promise.all(...).map(p => p.initialize())`
  call, so the new `BUNDLE_INDEX_REFRESH_FAILED` event reaches the
  `connection:changed` bridge in production (consumers — including
  this sphere.telco — can now react to the degraded state).
- 6 new tolerance tests + 2 new ordering tests added in the SDK PR.
  2037+/2037+ profile + 525/525 Sphere core green.

Three adversarial steelman passes on the SDK PR converged on SHIP IT.
@vrogojin vrogojin merged commit 1657c1a into feat/telco-webrtc-calls May 27, 2026
3 checks passed
@vrogojin vrogojin deleted the chore/vendor-bump-sdk-77bbbdc-issue-301 branch May 27, 2026 15:50
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.

1 participant