Skip to content

v0.12.0

Choose a tag to compare

@jay-m-dev jay-m-dev released this 13 Oct 19:22
· 24 commits to main since this release
5caa276

What's Changed

  • Added runner.list_run_summaries for bulk, keyset-paged reads of runs matched by a product's own run_metadata key (any of up to 200 values) and/or explicit run IDs, optionally scoped by owner. Returns scalar columns only (including owner_id) and never loads a run's input, output, snapshots or steps.
  • Added runner.list_run_step_summaries for paging a run's trace by sequence, returning step metadata plus a bounded preview of each step's output.
  • Added runner.read_run_input_chunk and runner.read_run_step_chunk for reading a large prompt or a step's complete evidence document in chunks sliced in the database, with stable offsets so chunks concatenate back to the original text or JSON.
  • Added a GIN index over agent_runs.run_metadata (key-agnostic, so any product's metadata keys are served) and a (run_id, sequence) index on run_steps. Products no longer need to query or index core's tables themselves.

Upgrade notes:

  • Adds migration 7d3b1e5a9c20 (revises 6a4d9f2c7e10). It is safe to re-run, and deploy applies it as usual.
  • The new indexes are built inside the migration's transaction (not CONCURRENTLY), so writes to agent_runs and run_steps are briefly blocked while they build. This is quick at typical sizes; schedule the deploy accordingly for very large run tables.
  • No breaking changes: existing runner functions and their return types are unchanged.

Full Changelog: v0.11.0...v0.12.0