Skip to content

claude subagent attribution - #358

Merged
davidabram merged 6 commits into
mainfrom
claude-subagent-attribution
Nov 23, 2026
Merged

davidabram merged 6 commits into
mainfrom
claude-subagent-attribution

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

@davidabram
davidabram force-pushed the claude-subagent-attribution branch from 4d796dd to 49cbf8f Compare November 23, 2026 14:06
Define the staged plan for resolving Claude subagent models from local transcripts, seeding exact-scope state, and enriching patch attribution while preserving no-inheritance behavior.

Plan: claude-subagent-attribution (T01-T04)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-subagent-attribution branch from 49cbf8f to 6945824 Compare November 23, 2026 14:35
davidabram and others added 5 commits November 23, 2026 15:45
Document exact local evidence rules for Claude subagent model attribution, bounded transcript lookup, write-once provenance completion, and patch-part metadata. Update the plan and context map to register the accepted decision and complete T01 while preserving unresolved cases as NULL and preventing model inheritance.

Plan: `context/plans/claude-subagent-attribution.md`
Task: T01

Co-authored-by: SCE <sce@crocoder.dev>
Replace consumer-specific Claude attribution with one bounded resolver used by structured diff traces, preserving direct > transcript precedence and separating main-agent state/bridge fallback from subagent exact-transcript lookup. Add bounded transcript reading and subagent path derivation, then synchronize the hook contracts and plan documentation for the completed resolver task.

Plan: `context/plans/claude-subagent-attribution.md`
Task: T02

Co-authored-by: SCE <sce@crocoder.dev>
Claude mutation-scope admission now resolves model evidence through the shared resolver, while PostToolUse boundaries can fill a NULL model from exact direct or transcript evidence after durable close. Add the conditional store update, fail-open lifecycle handling, and regressions for precedence, idempotence, and missing evidence.

Plan: `claude-subagent-attribution` — T03

Co-authored-by: SCE <sce@crocoder.dev>
Resolve Claude model and writer metadata from exact bounded transcript and meta-file evidence when building conversation-trace patch parts. Extend the patch model with backward-compatible optional attribution while keeping non-Claude producers and historical JSON unchanged. Complete the Claude subagent attribution plan's T04 implementation and synchronize its supporting context.

Ref: context/plans/claude-subagent-attribution.md (T04)

Co-authored-by: SCE <sce@crocoder.dev>
Ensure Claude subagent events resolve paths within matching session directories and keep patch attribution inline without changing its JSON shape. Add regression coverage for foreign-session paths and attribution round trips, and update the supporting context to document unordered provenance fills and the revised representation.

Plan: claude-subagent-attribution (T02, T03, T04)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram merged commit 04b7d4f into main Nov 23, 2026
11 checks passed
@davidabram
davidabram deleted the claude-subagent-attribution branch November 23, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant