Skip to content

Rule against "latest" or "current" identifiers when crossing process or async boundaries, with explicit IDs passed instead.

CCM score
52 of 100
skills.sh installs
482
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers passing explicit identifiers through the full pipeline, since "most recent" lookups create race conditions at session boundaries
  • Includes DO and DON'T guidance, a --session-id spawn example, and a warning against collapsing session_id, root_span_id, and turn_span_id
  • Enforces full UUIDs over partial matches and storage of IDs in state files for later correlation
  • Designed for multi-process agent pipelines that trace Claude Code sessions through Braintrust spans

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill explicit-identity -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

// BAD: race condition at session boundaries
spawn('analyzer', ['--learn'])  // defaults to "most recent"

// GOOD: explicit identity
spawn('analyzer', ['--learn', '--session-id', input.session_id])

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

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
AI Agents & LLM Apps, Agent Workflow & Planning
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Similar to Explicit Identity

More AI Agents & LLM Apps