Skip to content

feat(export): convert evidence files to OpenInference#5

Merged
drewstone merged 1 commit into
mainfrom
feat/policy-evidence-export
Jun 27, 2026
Merged

feat(export): convert evidence files to OpenInference#5
drewstone merged 1 commit into
mainfrom
feat/policy-evidence-export

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

What changed

  • Adds traces export <input> --out <spans.jsonl> for compact traces.policy_evidence.session JSONL, Sandbox/OpenCode event arrays, and already-OpenInference JSONL.
  • Writes HALO-readable OpenInference JSONL through the existing serializeSpans and local redactSpans path.
  • Adds traces export --help / traces help export with examples, plus README usage and SDK export docs.

Why

agent-eval normalizes its own run records and trace sources, but issue #4 is about artifacts that skipped that path: compact policy evidence files and raw Sandbox/OpenCode event arrays. This makes traces the file adapter into the one OpenInference output format.

Closes #4.

Verification

  • pnpm typecheck
  • pnpm test (70/70 tests)
  • pnpm build
  • git diff --check
  • pnpm exec tsx src/cli.ts export --help
  • pnpm exec tsx src/cli.ts help export
  • CLI smoke: exported a compact policy evidence JSONL file, then checked all 9 required fields (trace_id, span_id, name, start_time, end_time, status, resource, scope, attributes).

@drewstone drewstone merged commit b73e8b6 into main Jun 27, 2026
1 check passed
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.

Add HALO-compatible OpenInference export for trace evidence

1 participant