explicit-identity
Explicit Identity Across Boundaries
By parcadei · 473 installs
npx skills add parcadei/continuous-claude-v3 --skill explicit-identity
Source repository · Upstream listing
Explicit Identity Across Boundaries
Never rely on "latest" or "current" when crossing process or async boundaries.
Pattern
Pass explicit identifiers through the entire pipeline. "Most recent" is a race condition.
DO
Pass session id $ID when spawning processes
Store IDs in state files for later correlation
Use full UUIDs, not partial matches
Keep different ID types separate (don't collapse concepts)
DON'T
Query for "most recent session" at execution time
Assume the current context will still be current after await/spawn
Collapse different ID types:
session id = Claude Code session (human facing)
root span id = Braintrust trace (query key)
turn span id = Braintrust turn within session
Example
Source Sessions
1c21e6c8: Defined session id vs root span id distinction
6a9f2d7a: Fixed wrong session attribution via explicit passing
a541f08a: Confirmed pattern prevents race at session boundaries