Variable: HANDOFF_TELEMETRY_ENV
Privacy-safe, strictly opt-in handoff telemetry for agent-side receipt verification (BB-292).
constHANDOFF_TELEMETRY_ENV:"BITBADGES_HANDOFF_TELEMETRY"='BITBADGES_HANDOFF_TELEMETRY'
Defined in: packages/bitbadgesjs-sdk/src/core/handoff-telemetry.ts:14
Privacy-safe, strictly opt-in handoff telemetry for agent-side receipt verification (BB-292).
Contract matches apps/frontend/src/utils/handoffTelemetry.ts and
services/indexer/src/routes/handoffTelemetryCore.ts (POST /api/v0/telemetry/handoff):
- Exactly four allowlisted fields:
event,flow,durationBucket,recoveries. - Zero addresses, transaction hashes, bodies, URLs, query params, request IDs, or secrets.
- Off by default; requires explicit opt-in (
telemetry: trueorBITBADGES_HANDOFF_TELEMETRY=1). - Do Not Track / Global Privacy Control (
DO_NOT_TRACK,DNT,GPC,SEC_GPC,navigator.doNotTrack,navigator.globalPrivacyControl) always override opt-in. - Network failures are swallowed so telemetry can never fail receipt verification.