Bound results and evidence reads and measure their performance at project scale

Open
#412 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
postgresql, python

Research direction

Start with the evidence and Agent result list entry points in research_multiplier/workflows/workbench_results.py, then read the related work in #403, #367, and #11 to understand the boundaries. Measure the current endpoints using a versioned synthetic generator and disposable PostgreSQL at 1k, 10k, and 100k rows, recording the listed latency, payload, query, and plan metrics. Then implement bounded reads and cursors with regressions for page behavior, response bounds, and query counts; done means the before and after results and rerun instructions are recorded.

Written by the indexing model from the issue text.

Description

difficulty:d3 layer:entry priority:p1 status:ready type:chore

Task difficulty and Agent fit

  • D3 · 10/15. Scope 2, uncertainty 2, impact 2, verification 3, dependencies 1. Private read projections need repeatable load evidence and a bounded continuation contract.
  • Recommended configuration. Codex / GPT-6.2 Sol / xhigh, 50 and $0.90 per benchmark task. Floor 50 in the Artificial Analysis Coding Agent Index v2.1. Trellin model registry checked 2026-11-22.
  • Required skills and verification. Python HTTP, PostgreSQL plan analysis, deterministic fixtures, cursor correctness and latency measurement. Compare installed builds on the same disposable database and machine.
  • Scored baseline. c44c9548e7dd1a4609696840ca299a3e24cd8383 on main. Confirm the scope and verification evidence with the maintainer before claiming.

Problem

The evidence endpoint reads every recorded evidence row, then builds one JSON response. The results index reads the full Agent Work snapshot. The current regressions cover correctness on functional fixtures. They provide no capacity baseline for large project histories. Evidence list · Agent result list.

Scope

Measure the existing endpoints first, then add bounded private list reads with stable cursors and an exact by-ID detail read. Coordinate results identity and count semantics with #403. Retain separately inspectable historic and unplaced results. Keep existing consumers working through the transition and align any external versioned contract with #11. Changes touching stable APIs, indexes via migration or connection pooling follow the existing review path.

Acceptance criteria

  • Using one versioned synthetic data generator and disposable PostgreSQL, measure 1k, 10k and 100k recorded results or evidence rows. Record fixture counts and history mix, machine, package/DB versions, concurrency, warm-up, sample count, cold and warm p50/p95/p99, max payload bytes, SQL round trips, and relevant query plans. Compare before and after on the same machine and publish an agreed latency budget for that lane.
  • Default to at most 50 entries and enforce a maximum page size of 100 for the bounded path. Verify a stable ordering with equal timestamps, reconnect and page replay, behavior on inserts between pages, and no cross-workspace cursor use. Keep full-scope counts and filter semantics explicit. Opening a receipt never requires walking all pages.
  • Put deterministic page-size, response-bound and query-count regressions in CI. Keep query count fixed with respect to page length, including associated review metadata. Demonstrate the p95 and payload result against the recorded baseline, and record how to rerun it. Use synthetic records only.

Related work

#403 owns Work/result reconciliation, #367 owns detail, and #11 owns public compatibility. Earlier batch optimization #392 covers Threads and Atlas, with a different workload. This task measures result history specifically.

Dominant language
Python
Stars
2
Forks
0
Avg merge
56m
Merged PRs (30d)
190

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAFuDarren/Trellin

All issues in SAFuDarren/Trellin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.