Skip to content

docs(traces): imported traces stay local; fix the docstrings that said otherwise - #28

Merged
babaliauskas merged 1 commit into
mainfrom
docs/traces-docstring
Oct 1, 2026
Merged

babaliauskas merged 1 commit into
mainfrom
docs/traces-docstring

Conversation

@babaliauskas

Copy link
Copy Markdown
Collaborator

Summary

  • UtcTimestamp's docstring in src/evalshift_cli/traces/models.py claimed imported-trace timestamps "are copied into the bundle verbatim by ... from_agent_trace". That's false: evalshift traces import writes traces to .evalshift/runs/<id>/traces.jsonl, read only by evaluate, report.json and diff/inspect/replay case. from_agent_trace has no production caller — hosted/bundle.py only calls from_tool_trace, fed by the replay's own tool-call traces.
  • Fixed that docstring, plus the from_agent_trace function docstring and the module docstring in src/evalshift_cli/hosted/trace_events.py, to say what actually happens.
  • Comments/docstrings only — no behaviour change. No CHANGELOG entry, matching the precedent of a prior docstring-only fix (9fa58ab).

Test plan

  • git grep -n from_agent_trace / from_tool_trace under src/ to confirm from_agent_trace has no production caller
  • make ci (ruff check, ruff format --check, mypy --strict, pytest w/ coverage floor) — fully green, 2447 passed, 94.50% coverage

🤖 Generated with Claude Code

…d otherwise

The UtcTimestamp docstring in traces/models.py claimed imported-trace
timestamps "are copied into the bundle verbatim by ... from_agent_trace".
False: evalshift traces import writes them to
.evalshift/runs/<id>/traces.jsonl, read only by evaluate, report.json and
diff/inspect/replay case. from_agent_trace has no production caller;
bundle.py only calls from_tool_trace, fed by the replay's own tool-call
traces. Fixed that docstring and the from_agent_trace docstring and module
docstring in hosted/trace_events.py to say so. Comments/docstrings only, no
behaviour change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@babaliauskas
babaliauskas merged commit 6ebf2a3 into main Oct 1, 2026
4 checks 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.

1 participant