# "Your PR Says the Tests Passed. Prove It. - Stephen Chin & Cassandra Chin" <!-- ref: @content/youtube/aie/your-pr-says-the-tests-passed-prove-it-stephen-chin-cassandra-chin tags: [pull requests, audit trails, agent session traces, graph database, token cost, reviewer models, PR benchmark] version: 2 updated_at: 2026-11-22T12:09:21.251Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=gbeuC0ud1p4)** # Your PR Says the Tests Passed. Prove It. - Stephen Chin & Cassandra Chin *Synthesized from Stephen Chin and Cassandra Chin's talk on AI Engineer, 2026-11-10.* Stephen Chin and Cassandra Chin co-present a story-driven talk with a cartoon character named Alex; Cassandra says she created the open-source Trace Tune framework. The transcript is a rough machine translation, so product and database names may be mis-transcribed. ## Core Thesis The presenters argue that many agent-written pull requests get rejected not because the code is bad but because the description contains wrong or unproven claims, such as saying tests passed when the session trace shows otherwise. Their approach is to rebuild the facts from agent session traces, store them as an evidence graph, and give a writer and reviewers a compact brief, which they say improves quality and roughly halves token cost. ## Key Insights - **Why session logs fall short.** An agent asked to write a PR from its own session works from a context window that it has often compressed, so accuracy drifts. Trace Tune instead reads the traces from sessions across the machine for a branch, researches them, revises the description and loops until the evidence is sufficient, then uses an independent writer and reviewer. It can also draw an optional comic. - **Origin.** Cassandra began the work on a project called Showtale, supporting academic research: students submit a final program but not the prompts and effort behind it. - **Failure example.** A PR claimed later test passes were not recorded, but the trace showed a Bun test and a type-check running at the same time when they must run sequentially, so the claim that all checks passed was false. A corrected brief states that the working-directory log showed the shell before a cd, and that type checking plus 71 tests passed on the submitted content. - **Cheaper writers do not help.** Swapping to Haiku-class writers to save tokens lowered quality; the repeated PR attempts also burn tokens. - **Graph layer.** They add Relate, an embedded open-source graph database written in Rust, launched that week. It stores relationships between commits, claims, sources and clusters, runs on local compute with no LLM cost, and answers multi-hop queries. A "neighborhood brief" bundles each claim with its sources. - **Counterintuitive model split.** The presenters say the writer should be the higher-quality model (a Sonnet-class writer) while mechanical cross-checking can be done by several cheaper Haiku reviewers, because weaker writers turn prose into a mechanical checklist. - **Results.** On PRBench, a pull-request benchmark using audit trails, code and LLM judges (with human verification), scores on a 100-point scale moved from about 74 to 76 and 82 to 86, a gain of roughly 2 to 4 points for Claude and Codex. Building the evidence graph up front used about half the tokens of the earlier approach. Running benchmark cases in parallel saturated their gaming computer and drove token costs up. - **General pattern.** Agents are weak at data analysis, evaluation and curation; building an in-memory graph layer of data, connections and evidence beforehand lowers cost and raises quality for other projects too. ## Actionable Takeaways 1. Verify a PR's claims (tests passed, commands run) against the actual session trace, not the model's recollection. 2. Build the evidence once, as a graph, and hand writer and reviewers the same compact brief. 3. Put the stronger model on writing and cheaper models on claim-checking. 4. Include proof in the PR text: working directory, the exact checks run and the test counts. 5. Benchmark PR quality (for example with PRBench) before assuming a cheaper setup is equivalent. ## Notable Quotes > "In fact, often when it works, it shrinks its context window." — a presenter (Stephen or Cassandra Chin; the transcript does not label speakers) > "So, it claims that the test passed and all checks were performed, but in fact the code did not do so" — a presenter (Stephen or Cassandra Chin; the transcript does not label speakers) --- *Related: `@content/youtube/nate-herk/how-anthropic-engineers-actually-prompt-fable-5` · `@content/youtube/langchain/langsmith-preview-builds-test-agent-changes-before-production` · `@content/youtube/nate-herk/gpt-5-6-sol-made-this-entire-video` · `@content/youtube/matti-haapoja/increase-your-income-as-a-filmmaker` · `@content/youtube/every-inc/we-tested-anthropics-fable-5-for-a-week`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*