Repository navigation
Closed as not planned
Labels
complexity-mediumComplexity: medium (board points 5-8)enhancementNew feature or requesttheme-devexTheme: DevEx
Description
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
TraceRecorderclass 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
- Does trace recording align with Trinity's direction as a platform feature?
- Open source implications — concerns about publishing agent behavior data publicly?
- Is V1 (record + download only) the right scoping, with V2 deferred?
- Storage and performance considerations for high-volume agent fleets
References
- Clement's tweet — HF CEO actively looking for contributors
- TRAIL dataset — 148 coding agent traces (benchmark only)
- MemGPT traces — closest format reference
Metadata
Metadata
Assignees
Labels
complexity-mediumComplexity: medium (board points 5-8)enhancementNew feature or requesttheme-devexTheme: DevEx
Activity
oleksandr-korin commentedon Jun 1, 2026
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.