Skip to content

Evaluate: Open Agent Trace Recording & Export #217

Closed as not planned
Closed as not planned

Description

@vybe

Summary

Evaluate the feasibility and value of implementing agent trace recording and export in Trinity, inspired by Clement Delangue's call for open agent trace datasets.

Proposal by: Andrii Pasternak (full proposal: open-agent-traces-proposal.md)

The Opportunity

There is a clear gap in public agent trace datasets — every existing dataset (TRAIL, MemGPT, SWE-bench) comes from coding agents or chatbots. Zero datasets exist for autonomous agents that:

  • Run on schedules (cron-triggered, not human-initiated)
  • Use real tools via MCP (file I/O, shell, API calls)
  • Collaborate with other agents via event subscriptions
  • Operate without human supervision for extended periods

Trinity agents produce exactly this type of trace data.

Proposed V1: Trace Recording + Download

Core idea: Instrument agent-server.py to record every message, tool call, and event as structured JSONL. Add a "Download Trace" button on the execution detail page.

Trace Format (trinity_trace_v1)

OpenAI chat-compatible JSONL with Trinity extensions (model, tokens, latency, trigger type):

{"schema_version":"trinity_trace_v1","trace_id":"exec_abc123","agent_name":"my-agent","trigger":"schedule"}
{"turn":1,"role":"system","content":"You are a market analyst...","timestamp":"2026-03-27T16:00:00Z"}
{"turn":3,"role":"assistant","content":"Checking...","tool_calls":[...],"model":"claude-sonnet-4-6","tokens":{"input":1200,"output":85}}
{"turn":4,"role":"tool","tool_call_id":"tc_1","name":"mcp_read_file","content":"...","duration_ms":45}

Architecture

  • TraceRecorder class inside agent containers writes JSONL to shared volume
  • Backend serves traces via GET /api/executions/{id}/trace/bundle
  • Frontend adds "Download Trace" button on execution detail page
  • <5ms overhead per turn, works with all standard base image agents

Future V2: HF Hub Publish + PII Redaction

  • One-click "Publish to HF Hub" button
  • PII redaction layer (regex + NER-based scrubbing)
  • Bulk export (all traces for an agent or time range)
  • Opt-in per-agent toggle for trace recording

Strategic Value

  • Visibility: First autonomous agent trace dataset on HF Hub positions Trinity as infrastructure for the open agent ecosystem
  • Product differentiation: No other orchestration platform offers trace recording & export
  • Data flywheel: More agents → more traces → better training data → better agents
  • Distribution moat: Operational telemetry becomes a channel (researchers discover Trinity via the dataset)

Questions to Evaluate

  1. Does trace recording align with Trinity's direction as a platform feature?
  2. Open source implications — concerns about publishing agent behavior data publicly?
  3. Is V1 (record + download only) the right scoping, with V2 deferred?
  4. Storage and performance considerations for high-volume agent fleets

References

Activity

  1. added
    enhancement
    on Mar 27, 2026
  2. oleksandr-korin commented on Jun 1, 2026

    @oleksandr-korin
    Contributor

    Closing as timed-out evaluation. The explicit "Evaluate:" naming convention meant this ticket was supposed to produce a yes/no decision with rationale. 61 days passed with 0 comments — the evaluation never happened, which is itself the answer for now. The proposal body (trace format, architecture sketch, HF Hub publishing path, strategic-value framing) is fully preserved in this issue and can be re-opened with a fresh champion + timeline if/when Trinity's direction prioritizes public trace data. Reference: backlog lean review on 2026-05-28.

  3. added
    complexity-medium
    theme-devex
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumenhancementtheme-devex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions