Repository navigation
v0.12.0
What's Changed
- Added
runner.list_run_summariesfor bulk, keyset-paged reads of runs matched by a product's ownrun_metadatakey (any of up to 200 values) and/or explicit run IDs, optionally scoped by owner. Returns scalar columns only (includingowner_id) and never loads a run's input, output, snapshots or steps. - Added
runner.list_run_step_summariesfor paging a run's trace by sequence, returning step metadata plus a bounded preview of each step's output. - Added
runner.read_run_input_chunkandrunner.read_run_step_chunkfor 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 onrun_steps. Products no longer need to query or index core's tables themselves.
- Perf/run metadata index by @jay-m-dev in #12
Upgrade notes:
- Adds migration
7d3b1e5a9c20(revises6a4d9f2c7e10). It is safe to re-run, anddeployapplies it as usual. - The new indexes are built inside the migration's transaction (not
CONCURRENTLY), so writes toagent_runsandrun_stepsare 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