Repository navigation
feat(trace): Copilot skills, spec pointers, and pasted images (M2) - #3804
Conversation
Implements M2 of the plan for spec issue-3800 (R-008, R-009, R-010): the Copilot provider records the skills that a session loaded, and replaces copies of spec sources and attached images in the transcript with pointers to their materials. Refs chainloop-dev#3800 Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 0f38bc43-08fc-4080-9634-a22ace400584
PR validation — ✅ 3 passing
AI Session Checks — 🟡 82% · ✅ 0 failing
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| created | ai | app/cli/internal/trace/copilot/materials.go |
+816 / -0 |
| created | ai | app/cli/internal/trace/copilot/materials_test.go |
+438 / -0 |
| created | ai | app/cli/internal/trace/copilot/skills.go |
+202 / -0 |
| created | ai | app/cli/internal/trace/copilot/skills_test.go |
+181 / -0 |
| modified | ai | app/cli/internal/trace/e2e/checks_tokens.go |
+59 / -0 |
| modified | ai | app/cli/internal/trace/e2e/checks_tokens_test.go |
+45 / -0 |
| modified | ai | app/cli/internal/trace/copilot/parse.go |
+25 / -2 |
| modified | ai | app/cli/internal/trace/e2e/copilot.go |
+18 / -8 |
| modified | ai | app/cli/internal/trace/e2e/checks_codex.go |
+18 / -7 |
| modified | ai | app/cli/internal/trace/copilot/copy.go |
+15 / -6 |
| modified | ai | app/cli/internal/trace/README.md |
+9 / -9 |
| modified | ai | app/cli/internal/trace/e2e/checks_more.go |
+3 / -4 |
| modified | ai | app/cli/internal/trace/e2e/checks.go |
+2 / -2 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-0f38bc |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-0f38bc |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-0f38bc |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-0f38bc |
- |
Security Checks — ✅ 5 passing
✅ Nothing this change touches has a recorded security-fix history.
View in Chainloop ↗ · How this works ↗
✅ secret-scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | secrets-detection |
- |
✅ sast-scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | owasp-top10-2025 |
- |
| ✅ Passed | sast |
- |
| ✅ Passed | cwe-top25 |
- |
| ✅ Passed | cwe-top26-40-cusp |
- |
Scans not applied (3)
| Scan | Reason |
|---|---|
vulnerability-scan |
no manifest/lockfile changed |
github-actions-scan |
no workflow files changed |
iac-scan |
no IaC files changed |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
…ting check Match cat copies per shell call, keep ranged views inline, read every cat operand, and accept the object form of apply_patch in hook records. The end-to-end cache token check now compares Copilot evidence with the per-call usage records of the event log. Refs chainloop-dev#3800 Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 0f38bc43-08fc-4080-9634-a22ace400584
This PR builds M2 of the plan for GitHub Copilot support in Chainloop Trace (
docs/plans/issue-3800-copilot-trace-provider.md): R-008, R-009, and R-010 for these requirements.skill.invokedevents of the Copilot event log, and captures each skill folder through the shared skill pipeline. A skill listing does not count as a use.viewreads, shell reads withcat(also in a combined output, at line boundaries),createcalls, andapply_patchcalls that add one file. Copilot also logs the input of each Trace hook inhook.startrecords, and the same copies there are replaced. Partial reads, changed content, failed tool calls, and other edits stay inline.session.binary_assetrecord is replaced with a pointer. An image that a tool gives the model stays inline.--attachment, so the pasted image check runs headless. The viewer-pointer, inline-copy, and skill-package checks that Codex uses now apply to Copilot too. The compatibility tables show the new Copilot cells.session.usage_recordevents of the event log, so the Copilot cell moves from Unknown to Yes.Differences from the plan:
transcript.go: the extensions read the event types ofparse.go.catmatching helpers are copied from the Codex provider, not moved to a shared package.Not verified:
@matiasinsaurralde could you take a look?
Refs #3800
AI disclosure: Claude Code helped to research, implement, and test this change.
🤖 Generated with Claude Code