Skip to content

Simplify investigate module + deduplicate constant#434

Merged
ocg-goodfire merged 3 commits intodevfrom
fix/investigate-simplify
Mar 6, 2026
Merged

Simplify investigate module + deduplicate constant#434
ocg-goodfire merged 3 commits intodevfrom
fix/investigate-simplify

Conversation

@ocg-goodfire
Copy link
Collaborator

Summary

  • Simplify run_agent: reads all config from metadata.json instead of duplicating wandb_path, context_length, max_turns as CLI args
  • Fail-fast wait_for_backend: raises RuntimeError on timeout instead of returning bool
  • Fail-fast _format_model_info: accesses dict keys directly instead of .get() with silent fallbacks
  • Fix duplicate defaults: remove context_length=128 and max_turns=50 defaults from run_agent (already defaulted in CLI)
  • Deduplicate MAX_OUTPUT_NODES_PER_POS: import from compute.py instead of redefining in graphs.py

Test plan

  • basedpyright passes on affected files (0 errors, 0 warnings)
  • Three-agent code review (reuse, quality, efficiency)

🤖 Generated with Claude Code

ocg-goodfire and others added 3 commits March 6, 2026 17:17
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- run_agent reads all config from metadata.json instead of duplicating
  as CLI args (wandb_path, context_length, max_turns)
- wait_for_backend raises directly instead of returning bool
- _format_model_info accesses keys directly instead of .get() fallbacks

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ocg-goodfire ocg-goodfire merged commit c29b44f into dev Mar 6, 2026
1 of 2 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