feat: emit claude agent identities#342
Open
michiosw wants to merge 1 commit into
Open
Conversation
Greptile SummaryThis PR canonicalizes Claude identities in the local ledger path. The main changes are:
Confidence Score: 4/5This is close, but the dry-run identity mismatch should be fixed before merging.
internal/guard/store/sqlite/githubdryrun.go Important Files Changed
Reviews (2): Last reviewed commit: "feat: emit claude agent identities" | Re-trigger Greptile |
a657158 to
4601a15
Compare
4601a15 to
79d3600
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Where We Are
The CLI still exports legacy Claude session values in some hosted ledger paths. Normal decision rows and GitHub dry-run rows must not produce different identities for the same Claude request.
Where We Want To Go
New CLI ledger exports use canonical Claude identities:
agent_provider=anthropic,agent=claude_code, andagent=claude_cowork. Current released clients remain accepted by the API.How do we get there
agent_providerto SQLite agent sessions.agent_providerin ledger batches.Verification:
go test ./cmd/kontext ./internal/guard/store/sqlite ./internal/managedobservego test -race ./...