Skip to content

The design-rationale bench measures feature questions and extracted rows with knowledge hits - #274

Merged
zlareb1 merged 29 commits into
mainfrom
bench/design-rationale-feature-tasks
Nov 5, 2026
Merged

zlareb1 merged 29 commits into
mainfrom
bench/design-rationale-feature-tasks

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The design-rationale bench asks feature questions (how it works, limits, compatibility, dependencies) and compares extracted decision rows served with and without the documents' knowledge hits.

Why

The bench measured why questions, change requests and supersession, but not whether an agent learns how a feature works from the design documents, which is what most questions about a feature are. It also served extracted rows (arm 4) and the documents' knowledge hits (arm 2) only apart, so it could not say whether serving both adds to either.

  • Task kind D: a question with gold facts, answered in at most ten one-fact bullets and judged like A (claims against the gold list, misleading, abstained). Citation recall now counts A and D claims.
  • Arm 6: the extracted rows through the pre-edit block and loom_search, plus the knowledge section of the same search. The extract namespace already holds the documents, so one search returns both.
  • The treatment check reports, for arms 2 and 6, the tasks whose shown knowledge hits include the task's own document.
  • results.md carries a run over arms 0 to 4 and 6, with the summary artifact regenerated.
  • Contract changes: a task set whose A or D task has an empty gold list is refused, and the summary key a_answers_without_claims (arm to share) is now answers_without_claims (kind to arm to share).

What the run shows: serving the documents' knowledge hits beside the extracted rows raises feature-question recall over the rows alone (arm 6 vs 4, D recall +40.8, 95% interval +29.1 .. +57.1), and leaves B avoidance unresolved against arm 4 (+1.1, -27.3 .. +38.9) and 32.2 points below the gold rows. A hypothesis the run does not test: B avoidance follows the rows the pre-edit block serves (arms 4 and 6 served a row on 9 of the 43 tasks with gold rows, arm 3 on 39), but the arms also differ in the rows themselves.

Scope and risk

Bench harness, its tests and its results page only. No server code.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: reverting restores the previous harness and results section.

Tests

  • tests/unit/test_bench_design_rationale.py: a D answer scored against its gold facts, a D task without gold facts refused, and arm 6 serving arm 4's pre-edit rows with the knowledge section (offline, over the fake Loom).
  • make format-check lint typecheck pass; the full unit suite passes except the CSV timing bound named in the checklist.
  • The measurement: PYTHONPATH=$PWD .venv/bin/python -m bench.design_rationale run <taskset> --out <dir> --base-url <server> --arms 0,1,2,3,4,6 --reader-model gpt-6-luna --judge-model gpt-6-luna --code-index <url> --code-index-org <org> --code-index-namespace <code namespace> --extract-model gpt-6-luna --k 3 --judge-repeats 1 --max-usd 3, then score --summary. Spend 0.76 USD. The committed harness reproduces the published run: arm 6 resolves document citations in the namespace it searched, which in this run holds the same documents as the kb namespace.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code; the run's treatment check and per-task surfaces were read before the numbers were published.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. Locally the full unit suite passes except test_the_delimiter_is_sniffed_in_bounded_time, a CSV extractor timing bound this PR does not touch, which fails on a loaded machine and passes on main's CI.
  • Generated files are regenerated in this PR, not by hand.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

@zlareb1
zlareb1 force-pushed the bench/design-rationale-feature-tasks branch from ed7f46f to 365a4d6 Compare November 5, 2026 11:08
zlareb1 and others added 29 commits November 5, 2026 13:32
…ows with knowledge hits

Task kind D asks how a feature works, its limits, compatibility and
dependencies, and is scored like A against gold facts. Arm 6 serves the
extracted rows with the documents' knowledge hits of loom_search, so the
two delivery forms compare on every kind. results.md carries the run over
arms 0 to 4 and 6.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… reads every surface

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…gn and show D abstains

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…prints every published column

The count-line change is taken back: the committed harness reproduces the published run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ead from the shared constants

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…bstention

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…w checks do

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…owledge check has a miss case

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ationale run gives

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ists latency as still required

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…names every measure arm 2 gives

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… own paragraph

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… 6-vs-3 pair have tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…schema says the gold lists are non-empty

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ing comparison is given per kind

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the bench/design-rationale-feature-tasks branch from 22d6a2b to 3684b06 Compare November 5, 2026 13:34
@zlareb1
zlareb1 merged commit 3c57bb5 into main Nov 5, 2026
18 of 20 checks passed
@zlareb1
zlareb1 deleted the bench/design-rationale-feature-tasks branch November 5, 2026 14:21
@zlareb1 zlareb1 mentioned this pull request Nov 12, 2026
3 tasks done
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