feat(sensor): capture Pi conversations and branch-aware tool activity - #122
Draft
barisozbas wants to merge 1 commit into
Draft
barisozbas wants to merge 1 commit into
barisozbas wants to merge 1 commit into
Conversation
Summary: Intent: - Add local-file observability for Pi sessions without hooks, credentials, or agent configuration changes. Changes: - Read v1-v3 JSONL sessions and preserve all recorded branches, full tool arguments/results, failures, provider/model metadata, typed content, and recorded usage. - Correlate results along their branch ancestry, preserve extra/orphan results, and distinguish user shell commands from assistant actions. - Register the pi source, refresh resumed session exports, and document native macOS/Linux/Windows storage paths, overrides, and capture limits. - Add contract fixtures and a native three-OS parser CI matrix without new runtime dependencies. Test Plan: Authenticated Pi model sessions have not been run. Before production rollout, run a Pi conversation with read/write/shell tools, resume and branch it, then compare adr-sensor --source pi --save-sessions output with the persisted JSONL. In-memory sessions and content Pi never persisted are outside capture scope. Automated CI replays contract fixtures rather than launching the agent. Revert Plan: Revert this change to remove the pi source; existing exported JSON remains readable. Issue Links: None - user-requested source onboarding without a tracking issue.
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.
Summary
Intent:
Changes:
Test Plan
Authenticated Pi model sessions have not been run. Before production rollout, run a Pi conversation with read/write/shell tools, resume and branch it, then compare adr-sensor --source pi --save-sessions output with the persisted JSONL. In-memory sessions and content Pi never persisted are outside capture scope. Automated CI replays contract fixtures rather than launching the agent.
Revert Plan
Revert this change to remove the pi source; existing exported JSON remains readable.
Issue Links
None - user-requested source onboarding without a tracking issue.