Явная передача ID через границы процессов

engineering

explicit-identity is a Claude Code skill that enforces passing explicit identifiers across process and async boundaries instead of relying on implicit "current" or "most recent" context. The core rule is straightforward: querying for the latest session at execution time is a race condition — callers must pass `--session-id $ID` when spawning subprocesses and store IDs in state files for later correlation, using full UUIDs rather than partial matches. The skill keeps three distinct ID types separate: `session_id` (the Claude Code session), `root_span_id` (the Braintrust trace query key), and `turn_span_id` (an individual turn within a session). It targets developers building distributed or multi-process pipelines with Claude Code and Braintrust who need to prevent cross-session attribution errors and context confusion.