spec: 004 Pi coding agent support in Chainloop Trace - #3523
Open
waveywaves wants to merge 1 commit into
Open
waveywaves wants to merge 1 commit into
waveywaves wants to merge 1 commit into
Conversation
Contributor
AI Session Checks —
|
| 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 |
- |
✅ security-context — no advisories
Nothing this change touches has a recorded security-fix history.
View security context ↗ · Security context documentation ↗
⏭️ 3 scans not applied
| Scan | Reason |
|---|---|
vulnerability-scan |
no manifest/lockfile changed |
github-actions-scan |
no workflow files changed |
iac-scan |
no IaC files changed |
PR validation — ⚠️ 1 failing
| Status | Policy | Material | Messages |
|---|---|---|---|
pr-min-approvals |
pr-info |
PR/MR #3523 has 0 approving reviews, 1 required. | |
| ✅ Passed | pr-description-required |
pr-info |
- |
| ✅ Passed | pr-user-story-linked |
pr-info |
- |
Powered by Chainloop and Chainloop Trace
waveywaves
force-pushed
the
spec/pi-trace-provider
branch
from
October 5, 2026 12:53
2725489 to
6f16d00
Compare
Define the project-local Pi extension, lifecycle and tool hooks, JSONL v3 parsing, active-branch semantics, and evidence mapping for native Chainloop Trace support. Refs: chainloop-dev#3520 Assisted-by: pi Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
waveywaves
force-pushed
the
spec/pi-trace-provider
branch
from
October 5, 2026 15:02
6f16d00 to
1e20465
Compare
waveywaves
marked this pull request as ready for review
October 6, 2026 05:56
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.
This PR adds Spec 004 only. It changes no implementation code. The implementation issue is #3520.
Summary
The spec designs native Chainloop Trace support for the Pi coding agent.
trace init --piandtrace run --piinstall one marked, project-local Pi extension without overwriting an unrelated file.write,edit, andbashevents use the existing Trace hook pipeline without blocking Pi.tool_call_idprevents concurrent Pi calls from overwriting each other's snapshots while preserving existing-provider behavior./treeselection with a plain custom marker, and emits the existing AI coding-session evidence schema.--no-session, and fork behavior.Decisions for reviewers
Please challenge these choices in particular:
.pi/extensions/chainloop-trace.tsinstead of requiring a Pi fork or separate package.session_tree, then parse from the last persisted entry.tool_call_idonly to normalized local hook/snapshot state.Verification
main; the filename and title use the next available number, Spec 004.git diff --checkRefs #3520
AI assistance
pi helped research and write this spec. The commit carries an
Assisted-by: pitrailer.