Skip to content

Felix/refactor#209

Merged
spencerstock merged 3 commits intospencer/ephemeral-provider-isolationfrom
felix/refactor
Mar 30, 2026
Merged

Felix/refactor#209
spencerstock merged 3 commits intospencer/ephemeral-provider-isolationfrom
felix/refactor

Conversation

@fan-zhang-sv
Copy link
Copy Markdown
Collaborator

Summary

  • Refactors provider + signer request instrumentation into HOFs (withMeasurement, withSignerMeasurement).
  • Adds ephemeral isolation via per-instance store (createStoreInstance / createStoreHelpers) and threads store instances into signer/key manager.
  • Cleans up EphemeralSigner by inheriting from Signer with minimal overrides and an isEphemeral getter.

Key changes

  • Provider instrumentation: BaseAccountProvider and EphemeralBaseAccountProvider now wrap request with withMeasurement (provider owns correlationId create/delete).
  • Signer instrumentation: Signer / EphemeralSigner now use withSignerMeasurement (signer reads correlationId only). Uses getter-based options so isEphemeral is evaluated at call time.
  • Isolation: createStoreInstance({ persist: false }) enables ephemeral SDK instances that don’t touch global persisted state.
  • Key management: SCWKeyManager now takes a StoreInstance and uses createStoreHelpers.

Notes

  • Correlation IDs remain scoped to a single request lifecycle: provider creates/cleans up; signer just consumes.

@spencerstock spencerstock merged commit 3452f9d into spencer/ephemeral-provider-isolation Mar 30, 2026
5 of 7 checks passed
@spencerstock spencerstock deleted the felix/refactor branch March 30, 2026 17:00
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.

2 participants