Skip to content

feat(attestation): add missing fields to aicodingsession upstream types#3008

Merged
jiparis merged 1 commit into
chainloop-dev:mainfrom
jiparis:jiparis/export-trace-structs
Apr 8, 2026
Merged

feat(attestation): add missing fields to aicodingsession upstream types#3008
jiparis merged 1 commit into
chainloop-dev:mainfrom
jiparis:jiparis/export-trace-structs

Conversation

@jiparis

@jiparis jiparis commented Apr 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add AI/human attribution fields (ai_lines_added, ai_lines_removed, human_lines_added, human_lines_removed) to CodeChanges
  • Extend FileChange with lines_added, lines_removed, attribution, line_ranges, and session_ids
  • Add typed Subagent and SubagentTokens structs, replacing []json.RawMessage in Data.Subagents
  • Add LineRange struct for line-level change tracking
  • Update JSON schema to document all new properties in code_changes and subagents
  • Add real-world evidence test validating deserialization and schema compliance

Closes #3004

Add AI/human attribution fields to CodeChanges, extended FileChange with
line counts, attribution, line ranges, and session IDs. Replace untyped
Subagents with typed Subagent/SubagentTokens structs. Update JSON schema
to document the new properties.

Closes chainloop-dev#3004

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@jiparis jiparis requested a review from a team April 8, 2026 16:12
@jiparis jiparis merged commit c8400fc into chainloop-dev:main Apr 8, 2026
15 checks passed
@jiparis jiparis deleted the jiparis/export-trace-structs branch April 8, 2026 16:27
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.

Add missing fields to aicodingsession upstream types and JSON schema

2 participants