Task · CAOT-0011

Claude Code decoder: sub-agent sidechains

Description

Claude Code sub-agents live in the same file, marked by isSidechain and agentId, which is the opposite of how Codex does it. Without explicit handling their turns merge into the parent and both are wrong.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 lane 4: write table-driven synthetic-fixture tests first, implement the Claude decoder across all documented record types, then run focused decoder tests; root integrates and runs the final gate.

Final Summary

Claude sidechain attribution, spawn/completion topology, depth, and attribution fields are implemented without metric cardinality leaks; tests passed.

View the source file on GitHub