Skip to content

feat(trace): e2e adapter for Pi - #3668

Merged
jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:feat/trace-e2e-pi
Oct 20, 2026
Merged

jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:feat/trace-e2e-pi

Conversation

@jiparis

@jiparis jiparis commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Part of #3635 (spec issue-3635). Adds a Pi column to the Chainloop Trace end-to-end suite, ahead of Pi support (spec issue-3520).

  • A Pi adapter runs pi -p --mode json --approve with the scenario prompt. The Pi configuration folder (PI_CODING_AGENT_DIR) and the session folder (--session-dir) are next to the workspace, so the extensions, skills, and settings of the user who runs the suite do not load. Skills go in .agents/skills. The Chainloop extension is expected at .pi/extensions/chainloop-trace.ts (D-002 of spec issue-3520).
  • Pi is pinned to 1.3.0 with openrouter/anthropic/claude-haiku-5.5, which needs OPENROUTER_API_KEY.
  • The feature tables get a Pi column. A run against feat(trace): parse Pi coding sessions #3547 (the Pi parser) gave an error for each testable cell: chainloop trace init --pi fails with "unknown flag: --pi", because Pi is not registered yet. So each Pi cell is No, the README tells why, and the suite skips the column. When Pi support is added, set the cells to Unknown and run the suite to fill them.
  • Until the suite reads the hidden model context of the Pi extension from the session file, the adapter reports no hook messages, and those checks are "not covered". The adapter cannot remove the session-start hook yet, so the missed-session-start scenario reports an error for Pi.
  • The missed-session-start check now reports "not covered" for a harness that reports no hook messages. Before, it passed.
  • The shared --model flag and the user hook marker are constants.

AI disclosure: Claude Code helped to write this change.

View guided diff

Add the Pi harness to the Trace end-to-end suite and a Pi column to the
feature tables. Trace does not support Pi yet, so each Pi cell is No and
the suite skips it until Pi support is added.

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

Chainloop-Trace-Sessions: be5af72c-30e7-48f4-b46c-dc7a5a754c41
@chainloop-platform

chainloop-platform Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ✅ 3 passing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
✅ Passed pr-user-story-linked pr-info -

View attestation ↗

AI Session Checks — ⏭️ bypassed by label

AI Coding Session Check Bypassed

This PR carries the skip-ai-session label, so the AI coding session check was bypassed.

Learn more about Chainloop Trace.

Security Checks — ✅ 6 passing

✅ 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 -

✅ iac-scan

Status Policy Messages
✅ Passed iac-misconfiguration -
Scans not applied (2)
Scan Reason
vulnerability-scan no manifest/lockfile changed
github-actions-scan no workflow files changed

View attestation ↗

Security context

✅ Nothing this change touches has a recorded security-fix history.

View in Chainloop ↗ · How this works ↗


Powered by Chainloop and Chainloop Trace

@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.

No issues found across 8 files

View guided diff | Re-trigger cubic

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

Chainloop-Trace-Sessions: be5af72c-30e7-48f4-b46c-dc7a5a754c41
@jiparis
jiparis requested a review from a team October 20, 2026 10:38
@jiparis

jiparis commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Session missing due to this issue #3669

@jiparis
jiparis merged commit 2d80adf into chainloop-dev:main Oct 20, 2026
17 checks passed
@jiparis
jiparis deleted the feat/trace-e2e-pi branch October 20, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants