Skip to content

bench: directional date bounds for deductive scope - #163

Merged
0thernet merged 2 commits into
mainfrom
bench/directional-scope
Sep 22, 2026
Merged

0thernet merged 2 commits into
mainfrom
bench/directional-scope

Conversation

@0thernet

Copy link
Copy Markdown
Member

Summary

  • Fixes a backwards demotion in the deductive retriever's date scope: questions with a directional cue + date ("the week before August 3, 2023", "as of November 2023", "after his trip in August 2023") bound sessions by substring equality, demoting the earlier/later sessions where the evidence lives.
  • parseQuestion extracts a one-sided bound — the closest cue–date pair wins (as of/until/before → before-side, after/since/later than/following → after-side); nonexistent dates fail closed to equality scope.
  • in-scope binds sessions on the evidence side, keeping the bound period itself in scope. No contract change: in-scope semantics are computed harness-side and the pinned question digest already binds the resulting session set.
  • 24 corpus questions match the pattern; validated on conv-50 (3 of them): deductive turn recall 0.834 vs 0.8275 pre-fix, cat2 temporal 0.818.
  • Regenerates dev/test/all artifacts under the fix (second commit).

Test plan

  • tests/memory-benchmark-deductive-recall.test.ts — 9/9 pass, new parse + directional-scope tests (before/after/as-of bounds, month granularity, fail-closed on "February 30")
  • bunx tsc --noEmit clean
  • conv-50 probe: no regression, directional fix lifts affected questions

Generated with Devin

@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
oh-beam-reader-runtime Ready Ready Preview Sep 22, 2026 3:51am UTC
oh-computer Ready Ready Preview Sep 22, 2026 3:51am UTC
oh-vercel-wasm Ready Ready Preview Sep 22, 2026 3:51am UTC

Request Review

0thernet and others added 2 commits September 21, 2026 23:49
Questions with a directional cue + date ("the week before August 3, 2023",
"as of November 2023", "after his trip in August 2023") previously bound
sessions by substring equality — scoping to the bound period itself while
demoting the earlier/later sessions where the evidence actually lives.

parseQuestion now extracts a one-sided bound (closest cue-date pair wins,
nonexistent dates rejected), and in-scope binds sessions on the correct
side of the bound, keeping the bound period itself in scope. No contract
change: in-scope semantics are computed harness-side and the question
digest already binds the resulting session set.

Validated on conv-50 (3 affected questions): deductive 0.834 vs 0.8275
pre-fix; cat2 temporal 0.818. Artifacts regenerate under the fix.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Dev: deductive 0.8343 (+2.05 vs bm25-block, CI [0.011, 0.030]).
Test: deductive 0.8341 (+4.67 vs bm25-window, CI [0.036, 0.056];
+0.55 vs bm25-block, CI [-0.001, 0.011]). All ten: deductive 0.8341
(+0.86 vs bm25-block, CI [0.0015, 0.0155] — excludes zero; union arm
also excludes zero). Test artifact now carries the per-question rows
audit surface like dev/all.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

This branch was successfully deployed

3 active deployments
Preview – oh-vercel-wasm 67b77e6c Deployed Sep 22, 2026 by vercel[bot]
Preview – oh-beam-reader-runtime 67b77e6c Deployed Sep 22, 2026 by vercel[bot]
Preview – oh-computer 67b77e6c Deployed Sep 22, 2026 by vercel[bot]
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