Skip to content

feat: add opencode chainloop-trace plugin - #3267

Merged
migmartri merged 2 commits into
chainloop-dev:mainfrom
migmartri:add-pr-mode-2
Jul 6, 2026
Merged

migmartri merged 2 commits into
chainloop-dev:mainfrom
migmartri:add-pr-mode-2

Conversation

@migmartri

@migmartri migmartri commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Add opencode plugin for tracing file-writing tool executions and session lifecycle events via Chainloop hooks.

🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri

Review in cubic

@migmartri
migmartri requested a review from a team July 6, 2026 14:21
Add opencode plugin for tracing file-writing tool executions
and session lifecycle events via Chainloop hooks.

Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found and verified against the latest diff

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".opencode/plugins/chainloop-trace.ts">

<violation number="1" location=".opencode/plugins/chainloop-trace.ts:14">
P2: File-write operations can fail when telemetry emission fails, because `fire()` errors are unhandled and propagated through `tool.execute.before`. Consider making tracing best-effort (catch/log in `fire`) so missing chainloop/runtime errors do not interrupt edit/write/apply_patch flows.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .opencode/plugins/chainloop-trace.ts
Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: ses_0c830ab01ffeGQhnPohmihWjP5
@chainloop-platform

chainloop-platform Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

AI Session Analysis

Avg score Sessions Failing policies Attribution Files Lines Total Duration
- 1 ⚠️ 1 100% AI / 0% Human 1 +5 / -0 15m0s

100% AI — ⚠️ 1 policies failing

Jul 6, 2026 14:22 UTC · 15m0s · $0.13 · 287.3k in / 2.1k out · opencode 1.17.13 (deepseek/deepseek-v4-pro)

View session details ↗


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai .opencode/plugins/chainloop-trace.ts +5 / -0

Policies (4, 1 failing)

Status Policy Material Messages
⚠️ Failed ai-config-ai-agents-allowed ai-coding-session-ses-0c AI agent 'opencode' is not in the allowed list
✅ Passed ai-config-no-dangerous-commands ai-coding-session-ses-0c -
✅ Passed ai-config-no-secrets ai-coding-session-ses-0c -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-ses-0c -

Powered by Chainloop and Chainloop Trace

@migmartri
migmartri merged commit 9c48e5c into chainloop-dev:main Jul 6, 2026
14 of 15 checks passed
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
chainloop-cli 1.104.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Bump Helm Chart and Dagger Version => v1.103.1 by @github-actions[bot] in chainloop-dev/chainloop#3259
* fix(ci): align secrets-scan material name with contract by @migmartri in chainloop-dev/chainloop#3262
* fix: harden GitHub Actions workflows against zizmor findings by @migmartri in chainloop-dev/chainloop#3260
* feat: add opencode chainloop-trace plugin by @migmartri in chainloop-dev/chainloop#3267
* ci: bump docker/login-action to v4.4.0 by @matiasinsaurralde in chainloop-dev/chainloop#3261
* fix(controlplane): restrict owner-role invitations to org owners (CP-1) by @migmartri in chainloop-dev/chainloop#3263
* feat: introduce PR mode for attestations by @migmartri in chainloop-dev/chainloop#3268
* docs: fix broken GUAC integration link in README by @tknura in chainloop-dev/chainloop#3272
* fix(cli): correct registered integration add usage string to --opt by @tknura in chainloop-dev/chainloop#3271
* fix: upgrade extras/dagger deps to resolve 4 security advisories by @migmartri in chainloop-dev/chainloop#3277
* fix(crafter): surface auto-discovery validation errors by @waveywaves in chainloop-dev/chainloop#2983
* docs: regenerate CLI reference for registered integration add usage by @matiasinsaurralde in chainloop-dev/chainloop#3279
* fix: upgrade Go toolchain to 1.26.5 for GO-2026-4970-stdlib by @chainloop-platform[bot] in chainloop-dev/chainloop#3278
* feat(cli): explode archive materials in chainloop att add by @javirln in chainloop-dev/chainloop#3254
* fix(materials): do not record container image digest as tag by @tknura in chainloop-dev/chainloop#3281
* fix(cli): accept matching --name and metadata.name in contract commands by @tknura in chainloop-dev/chainloop#3282
* fix(dispatcher): improve fanout delivery timeouts and retry budget by @migmartri in chainloop-dev/chainloop#3270
* refactor: remove the public attribute from workflows by @matiasinsaurralde in chainloop-dev/chainloop#3283
* fix(cli): preserve verbatim contract bytes when splitting apply documents by @javirln in chainloop-dev/chainloop#3233


**Full Changelog**: https://github.com/chainloop-dev/chainloop/compare/v1.103.1...v1.104.0</pre>
  <p>View the full release notes at <a href="https://github.com/chainloop-dev/chainloop/releases/tag/v1.104.0">https://github.com/chainloop-dev/chainloop/releases/tag/v1.104.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!14158
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.

2 participants