Skip to content

Quick fixes#57

Merged
justindobbs merged 8 commits intomainfrom
quick-fixes
Feb 28, 2026
Merged

Quick fixes#57
justindobbs merged 8 commits intomainfrom
quick-fixes

Conversation

@justindobbs
Copy link
Copy Markdown
Owner

No description provided.

…ngChain adapter integration

- Add agent_bench/integrations/llm_telemetry.py with Pydantic models (LLMCallRequest, LLMCallResponse, LLMCallTelemetry)
- Update LangChain adapter generator to record llm_trace (provider/model, prompt, completion, shim flag) for each LLM call
- Add runner support for emitting llm_trace in action_trace entries with opt-out via AGENT_BENCH_DISABLE_LLM_TRACE=1
- Add `agent-bench inspect` command to summar
- Add openai_agents extra in pyproject.toml with openai-agents>=0.0.9 dependency
- Document openai_agents extra installation in README.md installation table
- Reference official OpenAI Agents documentation at https://openai.github.io/openai-agents-python/
- Add _validate_run_id() to reject path separators, hidden files, and invalid characters in run IDs
- Add _run_path() helper with regex validation and resolve() check to prevent directory traversal
- Update persist_run() and load_run() to use validated _run_path() instead of direct Path concatenation
- Add _validate_run_id() calls in WebUI _load_trace() and run_task() endpoints before loading artifacts
- Add test_runlog_security.py with
- Add empty __init__.py to agents/ directory to enable proper Python package imports
- Allows agents to be imported as modules from the agents package
…st_run

- Remove unused LLMCallTelemetry imports from langchain_adapter.py
- Remove unused Optional import from llm_telemetry.py
- Add _validate_run_id() call in load_run_artifact() before loading run by ID
- Add directory check in load_run_artifact() to reject directory paths
- Simplify persist_run() validation by separating str() conversion from _validate_run_id() call
- Add existence check for baseline file/directory before comparison in workflow
- Add validation for run_id extraction from run.json in workflow
- Add FileNotFoundError handling in _cmd_baseline() to catch missing baseline/run files
- Print error messages to stderr and exit with code 1 on validation failures
- Refactor workflow to extract run_id into variable before agent-bench command
- Refactor _normalize_trace_entry() to skip None values in addition to volatile keys
- Replace dict comprehension with explicit loop to filter both volatile keys and None values
- Add run.json artifact (likely test fixture or baseline data)
@justindobbs justindobbs merged commit c561162 into main Feb 28, 2026
5 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