Skip to content

AWI-ISSUE-60: Exa snippets + URL equivalence for every provider, offline rescore (#60) - #63

Merged
fredhazelton merged 1 commit into
mainfrom
awi-issue-60
Nov 23, 2026
Merged

fredhazelton merged 1 commit into
mainfrom
awi-issue-60

Conversation

@fredhazelton

@fredhazelton fredhazelton commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Refs #60 (reported by Kes, who disclosed he works at Exa). Ticket AWI-ISSUE-60. Fred approved the fix and rescore on Nov 23, 2026 at 2:03 PM ET (relayed by chief). Do not close #60 until there's a Weatherman SHIP and the merge.

What changes

1. Snippets: one budget for every provider.

  • _exa_search now requests contents.highlights and passes the joined highlights into snippet.
  • Every search adapter goes through util.snippet_text and is capped at 300 chars: Tavily, Firecrawl, Apify (now falls back to metadata.description), context.dev, Keenable and TinyFish. Logged Firecrawl descriptions ran up to 22,306 chars, so this was a second asymmetry.
  • snippet_contains grades the title plus the first 300 chars of the snippet.
  • Per exa.ai/pricing (read Nov 23), the /search base price covers up to 10 results, so billed_units stays 1.

2. URL equivalence: one deterministic rule. It is the new awibench/urlmatch.py, documented in SPEC-bench §3a.1.

  • It reuses the ruled awi-method-v2 list (R2 FINAL / R3, Oct 26): ?highlight=, query sort, index.html, arXiv abs/pdf, RFC text mirrors and golang.org/pkg stdlib.
  • It adds one logged rule, RD. bench/sets/url_redirects.json records how each expected URL resolved (python -m awibench.redirects resolve). rfc-editor.org/rfc/rfcN now 301s to /info/rfcN/, and the MDN flex-direction and Python stdtypes pages have moved.
  • Result URLs are never resolved, and grading makes no network calls.
  • A v1 pass is never lost. GRADER_VERSION is now canon-2026-11-23.

3. Offline rescore. bench/tools/rescore.py writes before/after CSVs plus README.md to bench/rescores/2026-11-23-issue-60/.

Before → after (logged results, no provider calls)

url_exact snippet_contains total
Exa (Oct 23) 23/42 → 42/42 3/43 → 3/43 (logged snippets are null; needs a fresh run) 40 → 59 /100
Tavily (Oct 23) 18/42 → 36/42 38/43 → 38/43 69 → 87 /100
Firecrawl (Nov 2, 40 items) 6/9 → 8/9 26/30 → 25/30 (300-char cap) 33 → 34 /40

How Kes's numbers check out:

  • The befores are confirmed.
  • The afters differ: Exa 42 vs his 41 and Tavily 36 vs his 34. Dropping the moved-page redirects (MDN, Python) reproduces 41/34 exactly.
  • Snippet counts 3/43 and 38/43 are confirmed.

Full table, commands and input hashes: bench/rescores/2026-11-23-issue-60/README.md (same content as the cycle's RESCORE.md).

Week 47 / news: regrading every committed news log (W42–W48) flips 0 lines. The published W47 numbers don't change; only the grader_version label moves on the next rebuild. data/benchmarks/latest.json and the staged files are not touched in this PR.

Tests

tests/test_bench.py + the new tests/test_issue60.py give 594 passed and 4 failed:

  • Three failures are already red on main: TavilyPhase0 latest.json, TinyFish latest.json and NewsfetchFix001 ac5.
  • One is new: Run1Published::test_run1_counts_match_raw_logs. It asserts the published latest.json's grader_version equals the live grader. It stays red until latest.json is regenerated in a publish ticket, the same staging class as the other two latest.json tests.
  • dry_run, secrets_scan and confirmation_diff all pass.

Test coverage includes:

  • Positives and negatives for every listed example: RFC .html/.txt//info via the logged redirect only, MDN move, Python query/move, .pdf/landing/refs/doi non-matches, the Rust /beta/ negative, and NIST ?c vs ?h.
  • A golden test: with no redirect log, the result is exactly fact's ruled AWI-KRAB-CHECK-002 numbers (Exa 57, Tavily 75) and flip lists.
  • A monotonic check over all committed logs, the no-network guard and a determinism check.

Methodology note: hazeydata/agentwebindex-site#29. Cycle docs + RESCORE.md: hazeydata/agentwebindex-meta#79 (cycles/2026-11-23-awi-issue-60/RESCORE.md).

…provider; url_exact equivalence (v2 rules + logged redirects); offline rescore (#60)
@fredhazelton

Copy link
Copy Markdown
Contributor Author

SHIP (Weatherman r1) at head 6169445, merge-commit method, no admin bypass. gate.sh GATE-OK, and the independent test-run is READY at this head (594/4: 3 failures pre-existing on main, 1 latest.json grader-version until publish). The rescore re-runs byte-identical, Kes's befores are confirmed, and W42–W47 news shows 0 flips. Note: Kes's #61 overlaps this change and is handled in the cycle record.

@fredhazelton
fredhazelton merged commit 6457e7e into main Nov 23, 2026
2 checks passed
@fredhazelton

Copy link
Copy Markdown
Contributor Author

Quality Gate post-merge: PASS. Merge 6457e7e has parents d862007 + 6169445 (gated head), tree bf3ada0f equals the head tree, and it is the main tip.

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.

Evergreen benchmark: Exa snippets missing and exact URL matching issues

1 participant