Skip to content

feat(migration): Add run artifact migration command for legacy TraceCore#77

Merged
justindobbs merged 3 commits intomainfrom
schema-auto-migration
Mar 6, 2026
Merged

feat(migration): Add run artifact migration command for legacy TraceCore#77
justindobbs merged 3 commits intomainfrom
schema-auto-migration

Conversation

@justindobbs
Copy link
Copy Markdown
Owner

Summary

  • What problem does this PR solve?
  • How does it solve it (major bullets)?

Testing

  • python -m pytest
  • python -m ruff check agent_bench
  • Additional targeted tests (list):

Checklist

  • Spec/docs updated (README, SPEC_FREEZE, changelog, etc., as needed)
  • New tasks/tests added to registry + SPEC if applicable
  • Roadmap items tracked in appropriate boards (if applicable)
  • Security/privacy review (if touching telemetry, signing, or bundles)
  • Verified CI status once pushed

…ore schema upgrades

- Add agent_bench.runner.migration module with migrate_run_artifact, migrate_run_file, and migrate_run_directory functions
- Add `agent-bench runs migrate` CLI command with --root and --write flags for dry-run and in-place rewriting
- Backfill required top-level fields: agent_ref, task_hash, runtime_identity, budgets, artifact_hash, validator
- Normalize runtime_identity from harness_version and add name/version
…ield in run artifacts

- Add test_run_artifact_wall_clock_elapsed_is_numeric_for_reference_run verifying wall_clock_elapsed_s is numeric and non-negative
- Verify elapsed time is int or float type
- Verify elapsed time is >= 0
…n for runs migrate command

- Add docs/operations/artifact_migration_playbook.md with migration workflow, CI integration patterns, and operational guidance
- Document tracecore runs migrate command in docs/cli/commands.md with --root and --write flags
- Add playbook link to README.md documentation index
- Cover dry-run validation, in-place rewriting, strict-spec verification, and custom run directory usage
- Include CI hook pattern for detecting
@justindobbs justindobbs merged commit 7e9cebe into main Mar 6, 2026
9 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