Repository navigation
merge after #63: AWI-ISSUE-60 snippet-rerun workflow (Exa highlights + Tavily control, 43 items, artifact only) - #64
Conversation
…control, 43 snippet_contains items, artifact only) + --only-check-types flag
|
Quality Gate r1: HOLD at 0a91d3b. Content and test-run READY are good, but #63 has merged and this branch's base is stale (main 6457e7e != base d862007; mergeable unknown). Fix list: (1) merge current main into the branch, (2) fresh test-run READY at the new head, (3) explain why MONTHLY_CAP_USD "0" won't trip skipped_cap on dispatch, (4) record #64 in the AWI-ISSUE-60 meta cycle docs, (5) mark ready. Merge method once green: merge commit. |
|
Quality Gate r2 (final): SHIP at 03cf6d7, merge commit. Base is current main 6457e7e, the own diff is identical to r1 (same six paths and blobs), test-run READY at this head (605 pass, same 4 inherited), and a $0 cap stays within free quota (Exa 43/1384, Tavily 86/912 left). Dispatch once after merge, on main only. |
Merge after #63. This branch is stacked on
awi-issue-60(#63 @6169445d), so until #63 merges the diff vs main includes #63's changes. This PR's own commit is0a91d3bf. Refs #60. Ticket AWI-ISSUE-60. Chief OK'd option 1 at 2:44 PM ET, Nov 23, 2026, under Fred's 2:03 PM approval to "have GM fix and rescore". It runs at $0 on free credit.This PR adds a manual-only workflow to fill in the one number the offline rescore can't produce: Exa
snippet_containswith highlights on. It runs the 43snippet_containsitems of search_evergreen against Exa (highlights) and Tavily (same-day control). It has not been dispatched.Changes (own commit only)
.github/workflows/snippet-rerun.ymlis the new workflow:It triggers on
workflow_dispatchonly, withpermissions: contents: readat the top level and the job level.persist-credentials: false, andMONTHLY_CAP_USD: "0".It shares the
benchmarkconcurrency group, so it can never overlap the benchmark workflow.Only
EXA_API_KEYandTAVILY_API_KEYare referenced, and only in the run step's env. The run step usesset -euo pipefail, with noset -xand no env echo.It runs
python collectors/benchmark.py --mode full --only-providers exa,tavily --only-sets search_evergreen --only-check-types snippet_contains.The stop check (
bench/tools/snippet_rerun_check.py, no secrets in env) fails the job on any of these:ran, including anystale_*,stopped_*orskipped_*status, or one mentioning quota, cap, paid usage, budget, rate limit or free tierThe runner's own guards already stop a provider before the call on its free quota or the $0 cap, and on its first 401/402/403.
Logs are uploaded as artifact
snippet-rerun-logs(if: always(), 14 days).There is no push, no publish job and no write token. I'll commit the logs to AWI-ISSUE-60: Exa snippets + URL equivalence for every provider, offline rescore (#60) #63's branch by hand after reviewing them.
collectors/benchmark.pygets a--only-check-types TYPESflag:--only-setsand is refused (exit 2) together with--reprobe-offsetor--rebuild-only.runner.run, so the Tavilyfull_limitstrim at 45 can't cut any of the 43. The kept rows carrysample_of: 100.bench/README.mdand the module docstring.run_tests.shnow runstests/test_snippet_rerun.py.Checks
tests/test_bench.py,test_issue60.pyandtest_snippet_rerun.pygive 605 passed and 4 failed. The 4 are the known ones from AWI-ISSUE-60: Exa snippets + URL equivalence for every provider, offline rescore (#60) #63: Run1Published grader label, TavilyPhase0, TinyFish latest.json, and NewsfetchFix001 ac5. secrets_scan is OK.set -x.runner.runstubbed, so no call was made and nothing was written. It printedonly-check-types: search_evergreen n=43 of 100 (snippet_contains), the runner received 43 rows, allsnippet_contains, withsample_of100, and after the Tavily trim it still had 43.Free credit
The ledger
data/spend/2026-11-quota.jsonshows Exa 44 of 1,428 units used and Tavily 88 of 1,000. The run adds 43 Exa searches; per exa.ai/pricing,/searchincludes up to 10 results and highlights aren't billed extra. It adds 86 Tavily credits. No card spend.