feat(evidence): export policy-mining session rows#3
Merged
Conversation
…t.key + git.repository + branch/commit) so sessions group per-repo
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.
What changed
traces evidence, a CLI export that writes one normalized JSONL row per real agent session.buildPolicyEvidenceRecord,collectPolicyEvidence, serialization, and file writing helpers.notCampaignCell: true.tracesexports session evidence for downstream mining; it does not claim benchmark campaign wins.Why
This makes
/home/drew/code/tracesuseful toagent-labwithout pretending it owns the experiment runner. The PR shows the adapter layer I meant: trace sessions become compact policy-mining evidence rows, thenagent-labcan cluster/validate policies separately.Verification
git merge-tree --write-tree origin/main HEAD=> clean merge treepnpm typecheckpnpm test=> 10 files / 67 tests passedpnpm buildpnpm dev evidence --harness codex --last 1 --out /tmp/traces-policy-evidence.jsonl --otlp /tmp/traces-policy-evidence.otlp.jsonlwrote 1 row from 38,085 spans with repo labels, tool summaries, 708 stuck-loop findings capped to 25 examples, andnotCampaignCell: true.Included commits
This branch also includes the two local commits already ahead of
origin/main: repo/git grouping labels and theagent-evaldependency bump.