From b3d6d7e47218ba3cf2003c57e36bcd202aa0d886 Mon Sep 17 00:00:00 2001 From: Cooki-e <1291852105@qq.com> Date: Thu, 26 Nov 2026 14:13:27 +0800 Subject: [PATCH 1/2] docs: standardize task README layouts and provenance --- tasks/agentic-search-vectorless/README.md | 65 ++---- tasks/agentic-search/README.md | 109 +++------ tasks/biomedical-graph-retrieval/README.md | 58 ++--- tasks/budgeted-bimetric-retrieval/README.md | 91 +++----- tasks/budgeted-candidate-reranking/README.md | 64 ++---- tasks/chunqiu-temporal-retrieval/README.md | 88 ++------ tasks/code-context-retrieval/README.md | 28 +-- tasks/code-context-retrieval/SOURCES.md | 13 ++ tasks/code-embedding-finetuning/README.md | 85 ++------ tasks/code-embedding-finetuning/SOURCES.md | 5 - tasks/code-reranker-finetuning/README.md | 61 ++---- tasks/composed-image-search/README.md | 102 +++------ tasks/constrained-molecular-search/README.md | 66 ++---- tasks/decision-model-training/README.md | 49 +---- tasks/decision-model-training/SOURCES.md | 25 ++- tasks/document-page-search/README.md | 94 +++----- tasks/evolving-personal-memory/README.md | 115 +++------- tasks/filtered-ann-retrieval/README.md | 118 +++------- tasks/financial-report-qa/README.md | 105 +++------ tasks/icsi-meeting-memory/README.md | 151 +++---------- tasks/incremental-vector-search/README.md | 43 ++-- .../instruction-following-embedding/README.md | 41 ++-- tasks/join-aware-table-retrieval/README.md | 14 +- tasks/khmer-embedding-training/README.md | 90 ++------ tasks/large-scale-formula-retrieval/README.md | 93 ++------ tasks/layout-page-search/README.md | 100 +++------ tasks/legal-stance-retrieval/README.md | 116 +++------- tasks/legal-stance-retrieval/SOURCES.md | 56 +++++ tasks/legal-stance-retrieval/VALIDATION.md | 53 +---- tasks/lightweight-query-retrieval/README.md | 147 +++---------- tasks/long-document-reranking/README.md | 95 ++------ tasks/long-pdf-evidence-vectorless/README.md | 52 ++--- tasks/long-pdf-evidence/README.md | 26 +-- .../README.md | 97 ++------- .../README.md | 118 +++------- .../README.md | 46 ++-- tasks/narrative-clue-search/README.md | 98 +++------ tasks/negative-constraint-retrieval/README.md | 206 ++++-------------- tasks/paper-metadata-retrieval/README.md | 7 +- .../README.md | 50 ++--- tasks/quantity-aware-retrieval/README.md | 110 ++-------- tasks/quantity-aware-retrieval/SOURCES.md | 29 +++ tasks/query-encoder-alignment/README.md | 202 ++++------------- tasks/reasoning-query-rewriting/README.md | 107 ++------- tasks/rust-bm25-search/README.md | 129 +++-------- tasks/same-place-image-search/README.md | 98 +++------ tasks/scientific-paper-qa/README.md | 94 +++----- tasks/sketch-text-search/README.md | 100 +++------ tasks/sparse-retrieval-pruning/README.md | 135 ++++-------- tasks/spoken-query-search/README.md | 109 +++------ tasks/training-error-tracing/README.md | 137 ++++++------ tasks/video-moment-search/README.md | 109 +++------ tasks/visual-document-qa/README.md | 116 +++------- 53 files changed, 1310 insertions(+), 3205 deletions(-) create mode 100644 tasks/code-context-retrieval/SOURCES.md delete mode 100644 tasks/code-embedding-finetuning/SOURCES.md create mode 100644 tasks/legal-stance-retrieval/SOURCES.md create mode 100644 tasks/quantity-aware-retrieval/SOURCES.md diff --git a/tasks/agentic-search-vectorless/README.md b/tasks/agentic-search-vectorless/README.md index 3c9f85d..1d6c3d5 100644 --- a/tasks/agentic-search-vectorless/README.md +++ b/tasks/agentic-search-vectorless/README.md @@ -11,8 +11,11 @@ | Compute | 32 CPUs; 16 GiB RAM; 200 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 27000 s | | Dataset | BrowseComp-Plus | +| Public queries | 20 | | Hidden queries | 20 | +## Overview + Build retrieval over the 100,195-document BrowseComp-Plus corpus without embeddings, BM25 or external retrieval/reranking. No starter, index or entry points are supplied, and neither the language nor retrieval architecture is prescribed. Each query may make at most 20 independent retrieval rounds. Twenty public questions and TREC labels support development; twenty hidden questions are scored with mean Gold Recall@5 after a mandatory compliance audit. [raw-instruction.md](raw-instruction.md) is the structured specification. [instruction.md](instruction.md) is the complete prose request sent to the agent. The structured source is excluded from the agent's Docker context and mounts. @@ -47,53 +50,23 @@ The job is `jobs/evaluations/agentic-search-vectorless/codex/openai/gpt-6-luna/m #### PR #17 audit clarification (v0.2.2) -The audit explicitly permits reading the query file passed to `run.sh --queries` -during formal query execution. Obtaining hidden queries outside that interface, -reading hidden labels/evaluation answers, hard-coded hidden mappings, and -verifier-state manipulation remain prohibited. Task instructions, retrieval -constraints, budgets, and the scoring formula are unchanged. +The audit explicitly permits reading the query file passed to `run.sh --queries` during formal query execution. Obtaining hidden queries outside that interface, reading hidden labels/evaluation answers, hard-coded hidden mappings, and verifier-state manipulation remain prohibited. Task instructions, retrieval constraints, budgets, and the scoring formula are unchanged. -On October 17, the revised package passed all **23 task-local tests**, merge-ready -checks against `ac7dcc145925d98afd2b0db1112d7c0ad8ba1460`, all **3 asset** hash -checks, release checks, and the **174-test shared suite**. The new rubric -regression covers both the legitimate input exception and the retained bans. -These checks are separate from the historical zero-score coding-model trial. +On October 17, the revised package passed all **23 task-local tests**, merge-ready checks against `ac7dcc145925d98afd2b0db1112d7c0ad8ba1460`, all **3 asset** hash checks, release checks, and the **174-test shared suite**. The new rubric regression covers both the legitimate input exception and the retained bans. These checks are separate from the historical zero-score coding-model trial. #### Real-corpus known-good verification (October 17, 128 GiB RAM) -An author-only reference submission was frozen after public-only calibration -(public Gold Recall@5 **0.115833**, 6/20 questions with hits). It reuses the earlier -model's corpus index builder and ranks one lexical candidate pool per query by -binary term coverage within passages. It uses no embeddings, BM25, external -services, hidden labels, or hard-coded query-to-document mappings. The reference -was not modified after observing hidden results. - -Native Harbor Oracle installed the frozen source in an author-only task copy; -normal artifact transfer then exercised the **same v0.2.2 build/run/scorer/audit -pipeline**, separate verifier, network policy and resource limits. No prebuilt -index was transferred. The verifier rebuilt all **100,195 documents in 462.74 -seconds**, ran **20/20 queries with concurrency 5 in 232.20 seconds**, and scored -them in **12.08 seconds**. All commands succeeded and outputs were valid. - -Observed hidden **Gold Recall@5 = 0.05**, **jailbreak_judge = 1**, and **final -reward = 0.05**. The real OpenRouter `deepseek/deepseek-v4.1-flash` audit returned -status 0, and the complete verifier finished in **1,026.74 seconds** without a -trial exception. No task constraint, scoring rule or time budget was relaxed. - -This is a known-good replay, not a new blind Luna coding-model trial. Its audit -record retains all 41 original model trajectory steps unchanged and explicitly -adds the actual maintainer reference-development tool records and Oracle -installation receipt as separate system records. No new model actions are -invented. The historical zero-score Luna trial remains separate evidence. - -Evidence: `jobs/agentic-search-vectorless-known-good-20261017-pr17/2026-10-17__13-57-45/task__cYHQDPj/`. -The reference source, pre-hidden freeze hashes, exact native Harbor command, -provenance checks and results are retained under -`contributing/dev/agentic-search-vectorless/2026-10-17-pr17/`, outside the public -task package. The query implementation SHA-256 is -`a6beacc387cc65d219cee356563164e95e32275ccc48b48589c073d8511dea1d`. - -### Running the task +An author-only reference submission was frozen after public-only calibration (public Gold Recall@5 **0.115833**, 6/20 questions with hits). It reuses the earlier model's corpus index builder and ranks one lexical candidate pool per query by binary term coverage within passages. It uses no embeddings, BM25, external services, hidden labels, or hard-coded query-to-document mappings. The reference was not modified after observing hidden results. + +Native Harbor Oracle installed the frozen source in an author-only task copy; normal artifact transfer then exercised the **same v0.2.2 build/run/scorer/audit pipeline**, separate verifier, network policy and resource limits. No prebuilt index was transferred. The verifier rebuilt all **100,195 documents in 462.74 seconds**, ran **20/20 queries with concurrency 5 in 232.20 seconds**, and scored them in **12.08 seconds**. All commands succeeded and outputs were valid. + +Observed hidden **Gold Recall@5 = 0.05**, **jailbreak_judge = 1**, and **final reward = 0.05**. The real OpenRouter `deepseek/deepseek-v4.1-flash` audit returned status 0, and the complete verifier finished in **1,026.74 seconds** without a trial exception. No task constraint, scoring rule or time budget was relaxed. + +This is a known-good replay, not a new blind Luna coding-model trial. Its audit record retains all 41 original model trajectory steps unchanged and explicitly adds the actual maintainer reference-development tool records and Oracle installation receipt as separate system records. No new model actions are invented. The historical zero-score Luna trial remains separate evidence. + +Evidence: `jobs/agentic-search-vectorless-known-good-20261017-pr17/2026-10-17__13-57-45/task__cYHQDPj/`. The reference source, pre-hidden freeze hashes, exact native Harbor command, provenance checks and results are retained under `contributing/dev/agentic-search-vectorless/2026-10-17-pr17/`, outside the public task package. The query implementation SHA-256 is `a6beacc387cc65d219cee356563164e95e32275ccc48b48589c073d8511dea1d`. + +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -105,6 +78,6 @@ bash scripts/evaluation/run_task.sh --task agentic-search-vectorless --agent cod ## References -### Sources - -The corpus and public split are pinned in `assets.json` to `search-swe/Search-SWE` revision `6713b1eb7474e0768e906a0151c76af92f0cfcdd`. See [SOURCES.md](SOURCES.md) for provenance and usage terms. \ No newline at end of file +- **Task source** — Experience +- **Data source** — BrowseComp-Plus corpus and public split shared with agentic-search. +- **Provenance details** — [Published inputs, revisions, and usage terms](SOURCES.md) diff --git a/tasks/agentic-search/README.md b/tasks/agentic-search/README.md index 3d67647..da1e98f 100644 --- a/tasks/agentic-search/README.md +++ b/tasks/agentic-search/README.md @@ -11,21 +11,16 @@ | Compute | 32 CPUs; 16 GiB RAM; 200 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 20000 s | | Dataset | BrowseComp-Plus | +| Public queries | 20 | | Hidden queries | 20 | -Improve a ReAct search system's document coverage on BrowseComp-Plus questions. +## Overview -### Overview +Improve a ReAct search system's document coverage on BrowseComp-Plus questions. -BrowseComp-Plus questions often require combining several constraints. -A search system may need to decompose a question, inspect intermediate results, -and reformulate its search before choosing its final documents. +BrowseComp-Plus questions often require combining several constraints. A search system may need to decompose a question, inspect intermediate results, and reformulate its search before choosing its final documents. -This task supplies an editable ReAct starter built around SQLite FTS5/BM25. -The agent improves or replaces its retrieval and reasoning components while -working within a bounded number of searches. Evaluation measures the documents -ultimately retrieved, not the fluency of an answer or the appearance of a trace. -The current repository identifier is `agentic-search`. +This task supplies an editable ReAct starter built around SQLite FTS5/BM25. The agent improves or replaces its retrieval and reasoning components while working within a bounded number of searches. Evaluation measures the documents ultimately retrieved, not the fluency of an answer or the appearance of a trace. The current repository identifier is `agentic-search`. ### Task Setup @@ -38,39 +33,21 @@ The current repository identifier is `agentic-search`. | `data/validation/qrels_gold.txt` | Public gold document relevance labels | | `environment/starter/` | Editable ReAct loop, lexical service, and entry points | -The verifier has 20 separate questions and gold labels. Both splits have -1–5 gold documents per question, with matching gold-count distributions: -3, 4, 4, 5, and 4 questions respectively. Each split contains 63 gold pairs. -The sampling seed is `20260909`; test selection excludes validation query IDs -and gold document IDs. +The verifier has 20 separate questions and gold labels. Both splits have 1–5 gold documents per question, with matching gold-count distributions: 3, 4, 4, 5, and 4 questions respectively. Each split contains 63 gold pairs. The sampling seed is `20260909`; test selection excludes validation query IDs and gold document IDs. -This stratified subset has a theoretical Gold Recall@5 ceiling of 1.0. -It is not an estimate over the full dataset's natural question distribution. -Answer labels are not used. +This stratified subset has a theoretical Gold Recall@5 ceiling of 1.0. It is not an estimate over the full dataset's natural question distribution. Answer labels are not used. #### Fixed Components and Allowed Changes -The corpus, five-document output, and resource limits are fixed. Indexing, -document coverage, query planning, retrieval, observations, and selection may -change. The initial starter indexes the first 6,000 characters of each document -and uses an allowed OpenRouter planner when configured; without a key it -falls back to one lexical search. +The corpus, five-document output, and resource limits are fixed. Indexing, document coverage, query planning, retrieval, observations, and selection may change. The initial starter indexes the first 6,000 characters of each document and uses an allowed OpenRouter planner when configured; without a key it falls back to one lexical search. -Optional APIs follow the [resource policy](environment/docs/available_resources.md). -Each question may use at most **20 retrieval rounds**; independent searches in -a batch count separately. A submission-generated trace is diagnostic, not -trusted proof of compliance. +Optional APIs follow the [resource policy](environment/docs/available_resources.md). Each question may use at most **20 retrieval rounds**; independent searches in a batch count separately. A submission-generated trace is diagnostic, not trusted proof of compliance. #### Environment and Resource Limits -The CPU Python 3.12 environment provides 32 CPUs, 16 GiB memory, 200 GiB storage, -and no GPU. The agent has two hours; the Harbor verifier has 17,100 seconds. -A shared 15,300-second verification budget includes a 600-second build cap and -120 seconds reserved for scoring. Five query workers share the remaining budget; -there is **no individual query timeout**. +The CPU Python 3.12 environment provides 32 CPUs, 16 GiB memory, 200 GiB storage, and no GPU. The agent has two hours; the Harbor verifier has 17,100 seconds. A shared 15,300-second verification budget includes a 600-second build cap and 120 seconds reserved for scoring. Five query workers share the remaining budget; there is **no individual query timeout**. -A recorded local run of the offline lexical baseline completed a full-corpus -build in about 38 seconds and achieved public Gold Recall@5 of `0.1741666667`. +A recorded local run of the offline lexical baseline completed a full-corpus build in about 38 seconds and achieved public Gold Recall@5 of `0.1741666667`. ## Change Log @@ -89,46 +66,27 @@ build in about 38 seconds and achieved public Gold Recall@5 of `0.1741666667`. ### Submission Contract -The deliverable contains `/app/build.sh`, `/app/run.sh`, and the implementation. -The verifier rebuilds once and launches one query process per question with up -to five workers. The service and index are shared, while input/output files are -separate. +The deliverable contains `/app/build.sh`, `/app/run.sh`, and the implementation. The verifier rebuilds once and launches one query process per question with up to five workers. The service and index are shared, while input/output files are separate. -Each result contains a query ID and exactly five distinct corpus IDs in `doc_ids`. -See [instruction.md](instruction.md) for the exact contract. +Each result contains a query ID and exactly five distinct corpus IDs in `doc_ids`. See [instruction.md](instruction.md) for the exact contract. ### Evaluation #### Search Quality -For each query, Gold Recall@5 is the number of retrieved gold documents divided -by its gold count. Reward is the arithmetic mean across 20 queries, in `[0, 1]`. -All five positions are weighted equally; this is neither answer accuracy nor -a rank-discounted metric. The evaluation report also gives a 0–100 score. +For each query, Gold Recall@5 is the number of retrieved gold documents divided by its gold count. Reward is the arithmetic mean across 20 queries, in `[0, 1]`. All five positions are weighted equally; this is neither answer accuracy nor a rank-discounted metric. The evaluation report also gives a 0–100 score. #### Correctness and Resource Gates -Failed execution, missing or extra query outputs, unknown or duplicate document -IDs, or a result count other than five invalidate the whole submission. -The build, shared execution budget, concurrency contract, and search-round -limit remain task requirements. +Failed execution, missing or extra query outputs, unknown or duplicate document IDs, or a result count other than five invalidate the whole submission. The build, shared execution budget, concurrency contract, and search-round limit remain task requirements. #### Integrity Checks and Final Reward -Gold Recall@5 remains the deterministic quality metric. Every run also applies -`tests/jailbreak_judge/codex.toml` to the transferred agent trajectory and -submission. The pinned RewardKit 0.2.0 judge uses `deepseek/deepseek-v4.1-flash` -through OpenRouter. A violation zeros the entire reward; missing trajectory, -credentials, judge failure or malformed output leaves zero and invalidates the run. -Submission processes are stopped before judging and never receive judge keys. +Gold Recall@5 remains the deterministic quality metric. Every run also applies `tests/jailbreak_judge/codex.toml` to the transferred agent trajectory and submission. The pinned RewardKit 0.2.0 judge uses `deepseek/deepseek-v4.1-flash` through OpenRouter. A violation zeros the entire reward; missing trajectory, credentials, judge failure or malformed output leaves zero and invalidates the run. Submission processes are stopped before judging and never receive judge keys. -The evaluator writes `task-score.txt` and `task-score.json` with raw recall. -`reward.txt` contains the gated score; `reward.json` contains numeric -`gold_recall_at_5`, `jailbreak_judge`, and `reward`. The 17,100-second verifier budget -includes the original 15,300-second execution budget and judge overhead. -Previous deterministic baseline results do not validate the new judge integration. +The evaluator writes `task-score.txt` and `task-score.json` with raw recall. `reward.txt` contains the gated score; `reward.json` contains numeric `gold_recall_at_5`, `jailbreak_judge`, and `reward`. The 17,100-second verifier budget includes the original 15,300-second execution budget and judge overhead. Previous deterministic baseline results do not validate the new judge integration. -### Running This Task +## Running the Task Run task-local regression tests without API calls: @@ -136,21 +94,11 @@ Run task-local regression tests without API calls: python -m unittest discover -s tasks/agentic-search/tests -p 'test_*.py' ``` -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -Configure `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and -`VERIFIER_OPENAI_API_KEY` with an OpenRouter key in the ignored host `.env`. -No answer-judge credentials are needed. Environment/agent and verifier allow -`openrouter.ai` and `api.jina.ai`; judge keys are mapped only into the verifier. -Optional submission APIs use shared `OPENROUTER_API_KEY` and `JINA_API_KEY`; -the coding agent still needs its own launcher configuration. +Configure `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and `VERIFIER_OPENAI_API_KEY` with an OpenRouter key in the ignored host `.env`. No answer-judge credentials are needed. Environment/agent and verifier allow `openrouter.ai` and `api.jina.ai`; judge keys are mapped only into the verifier. Optional submission APIs use shared `OPENROUTER_API_KEY` and `JINA_API_KEY`; the coding agent still needs its own launcher configuration. -For an existing public prediction file, the deterministic scorer can also be -run from the repository root: +For an existing public prediction file, the deterministic scorer can also be run from the repository root: ```bash python tasks/agentic-search/tests/evaluate.py \ @@ -161,10 +109,7 @@ python tasks/agentic-search/tests/evaluate.py \ --report /tmp/agentic-search-validation.json ``` -This scores predictions; it does not reproduce the full Harbor execution. -Local fixture tests are available via -`python -B -m unittest discover -s tasks/agentic-search/tests -p 'test_*.py' -v`. -No oracle solution is included. +This scores predictions; it does not reproduce the full Harbor execution. Local fixture tests are available via `python -B -m unittest discover -s tasks/agentic-search/tests -p 'test_*.py' -v`. No oracle solution is included. ```bash python scripts/assets/download_assets.py --task agentic-search @@ -172,12 +117,7 @@ bash scripts/evaluation/run_task.sh --task agentic-search --agent codex --openro --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/agentic-search/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/agentic-search/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -194,4 +134,5 @@ assets, credentials, or hardware. ## References -None. +- **Task source** — Experience +- **Data source** — [BrowseComp-Plus](https://aclanthology.org/2026.acl-long.1023/) corpus and task-specific question splits. [Asset manifest](assets.json) diff --git a/tasks/biomedical-graph-retrieval/README.md b/tasks/biomedical-graph-retrieval/README.md index 51baab8..4d91834 100644 --- a/tasks/biomedical-graph-retrieval/README.md +++ b/tasks/biomedical-graph-retrieval/README.md @@ -14,15 +14,11 @@ | Public queries | 8 | | Hidden queries | 20 | -Author: Cooki-e. Build a reusable search system over the supplied knowledge graph -and return complete sets of internal node IDs. No training or fine-tuning. +## Overview -The local package includes the corpus, 8 public validation questions and 20 -private test questions. The public examples include target-set intersection and -exclusion, distinct support counting, ordinary shortest paths, exclusive-target -pathways, and ordered protein-pair counting. The graph and private split are -unchanged. Public and private query anchors are disjoint; the public set does -not cover every private query structure. +Author: Cooki-e. Build a reusable search system over the supplied knowledge graph and return complete sets of internal node IDs. No training or fine-tuning. + +The local package includes the corpus, 8 public validation questions and 20 private test questions. The public examples include target-set intersection and exclusion, distinct support counting, ordinary shortest paths, exclusive-target pathways, and ordered protein-pair counting. The graph and private split are unchanged. Public and private query anchors are disjoint; the public set does not cover every private query structure. ## Change Log @@ -38,32 +34,22 @@ Queries require complete answer sets from a graph, including intersections, excl ### Scoring and recorded validation -The completed v0.2.1 Codex/OpenRouter `openai/gpt-6-luna`, `max` trial scored -0/20 exact sets with valid execution, no query timeouts and a passing trajectory -audit. That trial used the three-example public set recorded in its original -revision. [VALIDATION.md](VALIDATION.md) records the public-data update, -local checks, historical run and finalizer repair separately. Source attribution, -licensing records and construction evidence remain in the authoring workspace; -source dataset names are omitted from this package. - -`instruction.md` is the concise agent request; `raw-instruction.md` is its -structured equivalent. Resource and time limits are in the instruction and -`task.toml`. `environment/docs/environment.md` is an exact copy of the shared CPU -environment description. Agents inspect the supplied files to discover their -structure; no separate corpus guide or starter solution is provided. - -The verifier runs submitted code as a non-root user, builds once, then runs each -hidden question sequentially with a 30-second deadline. It compares complete ID -sets deterministically. Timeout or wrong answer gives that question zero; failed -build, other execution errors or invalid output invalidates the submission. -A separate trajectory audit gates the final reward. - -Only the corpus, public validation and generic resource documents are mounted -into the agent environment. Private questions, labels, grader and audit files -remain verifier-only. No author solutions or screening traces are supplied. +The completed v0.2.1 Codex/OpenRouter `openai/gpt-6-luna`, `max` trial scored 0/20 exact sets with valid execution, no query timeouts and a passing trajectory audit. That trial used the three-example public set recorded in its original revision. [VALIDATION.md](VALIDATION.md) records the public-data update, local checks, historical run and finalizer repair separately. Source attribution, licensing records and construction evidence remain in the authoring workspace; source dataset names are omitted from this package. + +`instruction.md` is the concise agent request; `raw-instruction.md` is its structured equivalent. Resource and time limits are in the instruction and `task.toml`. `environment/docs/environment.md` is an exact copy of the shared CPU environment description. Agents inspect the supplied files to discover their structure; no separate corpus guide or starter solution is provided. + +The verifier runs submitted code as a non-root user, builds once, then runs each hidden question sequentially with a 30-second deadline. It compares complete ID sets deterministically. Timeout or wrong answer gives that question zero; failed build, other execution errors or invalid output invalidates the submission. A separate trajectory audit gates the final reward. + +Only the corpus, public validation and generic resource documents are mounted into the agent environment. Private questions, labels, grader and audit files remain verifier-only. No author solutions or screening traces are supplied. Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [RUN_RESULTS.md](RUN_RESULTS.md) for the current run evidence and publication status. Existing source terms and attribution remain applicable. +The executable contract is in [instruction.md](instruction.md); [raw-instruction.md](raw-instruction.md) records the structured specification. See [tests/](tests/) for the separate verifier and [task.toml](task.toml) for phase budgets. + +See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. + +## Running the Task + ```bash python scripts/assets/download_assets.py --task biomedical-graph-retrieval --verify-only python -m unittest discover -s tasks/biomedical-graph-retrieval/tests -p 'test_*.py' -v @@ -71,13 +57,9 @@ python scripts/evaluation/run_task.py --task biomedical-graph-retrieval --agent --model openai/gpt-6-luna --reasoning-effort max --dry-run ``` -The last command previews a launch and does not call a model. Completed runtime -evidence, revision coverage and remaining release steps are in [VALIDATION.md](VALIDATION.md). - -The executable contract is in [instruction.md](instruction.md); [raw-instruction.md](raw-instruction.md) records the structured specification. See [tests/](tests/) for the separate verifier and [task.toml](task.toml) for phase budgets. - -See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. +The last command previews a launch and does not call a model. Completed runtime evidence, revision coverage and remaining release steps are in [VALIDATION.md](VALIDATION.md). ## References -None. +- **Task source** — [STaRK (NeurIPS 2024)](https://proceedings.nips.cc/paper_files/paper/2024/hash/e607b1419e9ae7cd5cb5b5bb60c2ad5c-Abstract-Datasets_and_Benchmarks_Track.html) +- **Data source** — [STaRK-Prime graph](https://stark.stanford.edu/datasets.html), with task-authored questions. [Asset manifest](assets.json) diff --git a/tasks/budgeted-bimetric-retrieval/README.md b/tasks/budgeted-bimetric-retrieval/README.md index 456c3bf..b79615e 100644 --- a/tasks/budgeted-bimetric-retrieval/README.md +++ b/tasks/budgeted-bimetric-retrieval/README.md @@ -10,15 +10,15 @@ | Primary metric | baseline-normalized mean nDCG@10 | | Compute | 16 CPUs; 32 GiB RAM; 64 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 62000 s | +| Dataset | BEIR Natural Questions | +| Public queries | 500 | +| Hidden queries | 3452 | + +## Overview Improve retrieval over 250,000 NQ passages with 20 controlled expensive distances and two seconds per query. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -36,24 +36,23 @@ The verifier averages nDCG@10 over all 3,452 hidden queries, including failed qu ### Reference baseline -The frozen baseline reference is B = 0.8863201879062371. The full-corpus -expensive-vector reference remains U = 0.9117533972383719. B is the highest -resource-valid mean among the public vector, direct-vector, hybrid and two-round -feedback baselines. +The frozen baseline reference is B = 0.8863201879062371. The full-corpus expensive-vector reference remains U = 0.9117533972383719. B is the highest resource-valid mean among the public vector, direct-vector, hybrid and two-round feedback baselines. -The feedback baseline uses ten cheap-vector and lexical features, a small tree -ranker, and two batches of ten expensive scores. Its parameters were selected -using five-fold validation on the 500 public development questions. Prepare its -submission in the development container: +The feedback baseline uses ten cheap-vector and lexical features, a small tree ranker, and two batches of ten expensive scores. Its parameters were selected using five-fold validation on the 500 public development questions. Prepare its submission in the development container: ```bash python /task/baseline/train_feedback.py --data-dir /task/public --output-dir /app/feedback-baseline ``` -The generated `search.sh` implements the standard build/load interface. The -preparation step fits the model; final build/load only builds the index and loads -those parameters. See [available resources](environment/docs/available_resources.md) -for the invocation details. +The generated `search.sh` implements the standard build/load interface. The preparation step fits the model; final build/load only builds the index and loads those parameters. See [available resources](environment/docs/available_resources.md) for the invocation details. + +### Repeated measurements + +Each test query is measured five times in five complete passes over the query set. The index is built once. Before each pass, the verifier starts a fresh load worker and clears its writable scratch directory. Prepared artifacts become read-only after construction; use the supplied TMPDIR for query-time writes. Initial construction and all loads still share the 3600-second startup allowance. Each measurement receives a fresh query token and a separate 20-score allowance. The median of the five complete-response times must be at most 2.0 seconds. Each individual measurement has a 3.0-second execution cap. All five results must satisfy the protocol and score budget; otherwise that query scores zero. For a query that passes these checks and the median time limit, its quality is the arithmetic mean of the five nDCG@10 values. + +The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. + +## Running the Task ### Restore inputs @@ -64,40 +63,19 @@ python scripts/assets/download_assets.py --task budgeted-bimetric-retrieval python scripts/assets/download_assets.py --task budgeted-bimetric-retrieval --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model cards, -licenses and data-use restrictions are described in the resource document. +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model cards, licenses and data-use restrictions are described in the resource document. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 32 GiB RAM and -64 GiB storage. Agent development has -7200 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 32 GiB RAM and 64 GiB storage. Agent development has 7200 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. This task uses no GPU. -Use a native Linux x86_64 Docker host with `/dev/fuse`, `mkfs.ext4`, -`dpkg-deb`, and root or sudo access. The standard launcher prepares fresh -bounded agent/verifier storage and the oracle socket directory, chooses -16 logical CPUs from its available affinity, and unmounts storage after the -run's containers exit. Backing images remain under -`jobs/.task-storage/budgeted-bimetric-retrieval/`. -Set `BIMETRIC_CPUSET` to preserve a particular 16-CPU allocation when reproducing -a run. See [bounded task storage](../../docs/evaluation/runtime.md#bounded-task-storage) -for host setup, permissions, recovery and caller-managed storage. - -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. - -The independent verifier audit also requires `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in that local configuration. -It uses `deepseek/deepseek-v4.1-flash`; only verifier egress to `openrouter.ai` -is allowed. These credentials are never passed to submitted commands. -The verifier protects the transferred trajectory, records the raw numerical -score, terminates candidate processes, and publishes reward only after a -healthy passing integrity audit. See `audit-status.json` for audit health. +Use a native Linux x86_64 Docker host with `/dev/fuse`, `mkfs.ext4`, `dpkg-deb`, and root or sudo access. The standard launcher prepares fresh bounded agent/verifier storage and the oracle socket directory, chooses 16 logical CPUs from its available affinity, and unmounts storage after the run's containers exit. Backing images remain under `jobs/.task-storage/budgeted-bimetric-retrieval/`. Set `BIMETRIC_CPUSET` to preserve a particular 16-CPU allocation when reproducing a run. See [bounded task storage](../../docs/evaluation/runtime.md#bounded-task-storage) for host setup, permissions, recovery and caller-managed storage. + +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. + +The independent verifier audit also requires `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in that local configuration. It uses `deepseek/deepseek-v4.1-flash`; only verifier egress to `openrouter.ai` is allowed. These credentials are never passed to submitted commands. The verifier protects the transferred trajectory, records the raw numerical score, terminates candidate processes, and publishes reward only after a healthy passing integrity audit. See `audit-status.json` for audit health. Invoke the standard entrypoint directly: @@ -107,9 +85,7 @@ bash scripts/evaluation/run_task.sh --task budgeted-bimetric-retrieval --agent c --output "jobs/budgeted-bimetric-retrieval-codex-openrouter-luna-max" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -118,17 +94,10 @@ python scripts/validation/check_tasks.py tasks/budgeted-bimetric-retrieval python scripts/assets/download_assets.py --task budgeted-bimetric-retrieval --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. ## References -None. - -## Repeated measurements - -Each test query is measured five times in five complete passes over the query set. The index is built once. Before each pass, the verifier starts a fresh load worker and clears its writable scratch directory. Prepared artifacts become read-only after construction; use the supplied TMPDIR for query-time writes. Initial construction and all loads still share the 3600-second startup allowance. Each measurement receives a fresh query token and a separate 20-score allowance. The median of the five complete-response times must be at most 2.0 seconds. Each individual measurement has a 3.0-second execution cap. All five results must satisfy the protocol and score budget; otherwise that query scores zero. For a query that passes these checks and the median time limit, its quality is the arithmetic mean of the five nDCG@10 values. - -The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. +- **Task source** — [Bi-metric (ICML 2026)](https://proceedings.mlr.press/v306/xu26au.html) +- **Data source** — BEIR Natural Questions passages and judgments with fixed BGE and SFR embedding vectors. +- **Provenance details** — [Dataset and encoder revisions, usage terms, and vector preparation](SOURCES.md) diff --git a/tasks/budgeted-candidate-reranking/README.md b/tasks/budgeted-candidate-reranking/README.md index a9d4f3e..d5df9ef 100644 --- a/tasks/budgeted-candidate-reranking/README.md +++ b/tasks/budgeted-candidate-reranking/README.md @@ -11,15 +11,14 @@ | Compute | 16 CPUs; 32 GiB RAM; 40 GiB storage; 1 GPU | | Agent / verifier time limits | 7200 s / 40000 s | | Dataset | MS MARCO passage; all 43 judged TREC DL2019 public queries and all 54 judged DL2020 test queries | +| Public queries | 43 | +| Hidden queries | 54 | + +## Overview Improve fixed BM25 Top-100 passage reranking with a metered, frozen local Qwen3-1.7B model. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -35,6 +34,14 @@ The candidate pool and local model are fixed. The system must allocate a small w The verifier measures mean linear-gain nDCG@10 over all 54 hidden queries and normalizes improvement between a frozen baseline and the fixed-candidate oracle. Candidate pools, full-qrels normalization and model/token budgets remain fixed. A healthy passing trajectory audit gates the numerical reward. See the [verification contract](raw-instruction.md#verification) for exact formulas, thresholds and failure handling. +### Repeated measurements + +Each test query is measured five times, with a new strategy process and a fresh writable work directory each time. Model deployment and the fixed warmup occur once. Each measurement has its own 2048 weighted-token allowance. The medians of the five local-strategy times and five trusted-response times must be at most 1.0 and 90 seconds, respectively. Individual measurements have execution caps of 2.0 local seconds and 120 trusted-response seconds. All five measurements must return valid rankings within their token allowance; otherwise that query scores zero. For a query passing these checks and both median limits, its quality is the arithmetic mean of its five nDCG@10 values. + +The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. + +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -44,31 +51,17 @@ python scripts/assets/download_assets.py --task budgeted-candidate-reranking python scripts/assets/download_assets.py --task budgeted-candidate-reranking --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model cards, -licenses and data-use restrictions are described in the resource document. +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model cards, licenses and data-use restrictions are described in the resource document. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 32 GiB RAM and -40 GiB storage. Agent development has -7200 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 32 GiB RAM and 40 GiB storage. Agent development has 7200 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. -Both phases require one GPU. Use `--gpu-device` to select the same -host GPU for both phases. +Both phases require one GPU. Use `--gpu-device` to select the same host GPU for both phases. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. -The independent verifier audit also requires `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in that local configuration. -It uses `deepseek/deepseek-v4.1-flash`; only verifier egress to `openrouter.ai` -is allowed. These credentials are never passed to submitted commands. -The verifier protects the transferred trajectory, records the raw numerical -score, terminates candidate processes, and publishes reward only after a -healthy passing integrity audit. See `audit-status.json` for audit health. +The independent verifier audit also requires `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in that local configuration. It uses `deepseek/deepseek-v4.1-flash`; only verifier egress to `openrouter.ai` is allowed. These credentials are never passed to submitted commands. The verifier protects the transferred trajectory, records the raw numerical score, terminates candidate processes, and publishes reward only after a healthy passing integrity audit. See `audit-status.json` for audit health. Invoke the standard entrypoint directly: @@ -78,9 +71,7 @@ bash scripts/evaluation/run_task.sh --task budgeted-candidate-reranking --gpu-de --output "jobs/budgeted-candidate-reranking-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -89,19 +80,12 @@ python scripts/validation/check_tasks.py tasks/budgeted-candidate-reranking python scripts/assets/download_assets.py --task budgeted-candidate-reranking --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -None. - -## Repeated measurements - -Each test query is measured five times, with a new strategy process and a fresh writable work directory each time. Model deployment and the fixed warmup occur once. Each measurement has its own 2048 weighted-token allowance. The medians of the five local-strategy times and five trusted-response times must be at most 1.0 and 90 seconds, respectively. Individual measurements have execution caps of 2.0 local seconds and 120 trusted-response seconds. All five measurements must return valid rankings within their token allowance; otherwise that query scores zero. For a query passing these checks and both median limits, its quality is the arithmetic mean of its five nDCG@10 values. - -The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. +- **Task source** — [PRP-Graph (ACL 2024)](https://aclanthology.org/2024.acl-long.313/) +- **Data source** — MS MARCO passages and judged TREC Deep Learning 2019 and 2020 queries. +- **Model source** — [Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B). [Asset manifest](assets.json) diff --git a/tasks/chunqiu-temporal-retrieval/README.md b/tasks/chunqiu-temporal-retrieval/README.md index d56dac7..5b0f855 100644 --- a/tasks/chunqiu-temporal-retrieval/README.md +++ b/tasks/chunqiu-temporal-retrieval/README.md @@ -14,16 +14,13 @@ | Public queries | 0 | | Hidden queries | 775 | -Retrieve original event records for reign-based dates and time windows in -Classical Chinese annals. Return up to ten records from the complete corpus. -The submission may use the supplied local model and the documented APIs. -No starter implementation or author baseline is included in the agent files. +## Overview + +Retrieve original event records for reign-based dates and time windows in Classical Chinese annals. Return up to ten records from the complete corpus. The submission may use the supplied local model and the documented APIs. No starter implementation or author baseline is included in the agent files. ### Data and audit -Source: [ChunQiuTR](https://github.com/xbdxwyh/ChunQiuTR/tree/392d6ec8d62de8256b3b45578f7b4484c22042ce), -commit `392d6ec8d62de8256b3b45578f7b4484c22042ce`. -[Paper](https://aclanthology.org/2026.findings-acl.612/). +Source: [ChunQiuTR](https://github.com/xbdxwyh/ChunQiuTR/tree/392d6ec8d62de8256b3b45578f7b4484c22042ce), commit `392d6ec8d62de8256b3b45578f7b4484c22042ce`. [Paper](https://aclanthology.org/2026.findings-acl.612/). | Input | Records | | --- | ---: | @@ -33,34 +30,13 @@ commit `392d6ec8d62de8256b3b45578f7b4484c22042ce`. | Hidden test queries | 775 | | Public validation queries | 0 | -The corpus preserves every original event/comment text after removing all -1,510 synthetic no-event placeholders. Record IDs are replaced bijectively by -opaque IDs; corpus order is deterministically shuffled. The source's original -train/test month assignments are retained. Validation queries and the 305 -cross-split windows are omitted. Only training-month associations appear in -`dated_examples.jsonl`, including repeated commentary associations. - -Coarse event-presence filtering initially produced 8,829 training and 1,146 -test candidates. The final content audit excludes questions containing a -missing month, any calendar-only positive, or a positive whose exact text also -occurs under a nonrelevant corpus ID. It also excludes the `向前推` and `附近` -window templates because their anchor/radius interpretation is unclear. -Exclusion reasons can overlap. Query text is never rewritten. For each retained -question, the only qrel edit is removing source no-event positives; no new gold -is generated. No filter depends on a model's predictions. - -Corpus records contain only `doc_id,text`; public examples contain -`query_id,text,relevant_doc_ids`; dated examples contain -`doc_id,time_text,reign,year,month`. Hidden query and qrel files use the usual -`query_id,text` and `query_id,relevant_doc_ids` schemas. Private calendar labels -and original source IDs are never exposed to the submission. - -The reproducible builder, source hashes, complete inclusion/exclusion ledger, -ID maps and screening evidence are in -`task_development/chunqiu-temporal-retrieval` in the surrounding author workspace. -The audit checks content, query templates and identical-text contradictions; -it is not a new philological validation of every historical passage. Text-only -records can still require difficult contextual temporal inference. +The corpus preserves every original event/comment text after removing all 1,510 synthetic no-event placeholders. Record IDs are replaced bijectively by opaque IDs; corpus order is deterministically shuffled. The source's original train/test month assignments are retained. Validation queries and the 305 cross-split windows are omitted. Only training-month associations appear in `dated_examples.jsonl`, including repeated commentary associations. + +Coarse event-presence filtering initially produced 8,829 training and 1,146 test candidates. The final content audit excludes questions containing a missing month, any calendar-only positive, or a positive whose exact text also occurs under a nonrelevant corpus ID. It also excludes the `向前推` and `附近` window templates because their anchor/radius interpretation is unclear. Exclusion reasons can overlap. Query text is never rewritten. For each retained question, the only qrel edit is removing source no-event positives; no new gold is generated. No filter depends on a model's predictions. + +Corpus records contain only `doc_id,text`; public examples contain `query_id,text,relevant_doc_ids`; dated examples contain `doc_id,time_text,reign,year,month`. Hidden query and qrel files use the usual `query_id,text` and `query_id,relevant_doc_ids` schemas. Private calendar labels and original source IDs are never exposed to the submission. + +The reproducible builder, source hashes, complete inclusion/exclusion ledger, ID maps and screening evidence are in `task_development/chunqiu-temporal-retrieval` in the surrounding author workspace. The audit checks content, query templates and identical-text contradictions; it is not a new philological validation of every historical passage. Text-only records can still require difficult contextual temporal inference. See [LICENSE.data.md](LICENSE.data.md) for source and model notices. Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [RUN_RESULTS.md](RUN_RESULTS.md) for the current run evidence and publication status. Existing source terms and attribution remain applicable. @@ -78,36 +54,17 @@ Questions combine Classical Chinese event descriptions with reign-based dates an ### Runtime and scoring -One A100 40GB, 16 CPUs, 32 GiB RAM, 100 GiB storage; development is six hours. -Both images use the repository GPU image. `build.sh --corpus --index-dir` has -1,200 seconds for indexing and initialization. After it returns successfully, -`run.sh --index-dir --queries --output --top-k 10` receives the complete hidden -batch and has **120 seconds**, including all local work and API waits. Batching -is allowed. No query input is exposed during build. - -Score is the mean **binary nDCG@10**, directly in [0,1]; displayed percentages -multiply it by 100. DCG sums `1/log2(rank+1)` over relevant returned IDs. IDCG -uses `min(10, number of event positives)`. Hitting one of several positives is -not full credit. There is no baseline subtraction. - -Missing/duplicate query outputs, invalid IDs/scores/order, command failure, -build/batch timeout or a confirmed integrity violation gives zero. The grader -checks coverage and output semantics, not a prescribed retrieval method. -The entire batch must complete within the deadline; partial output is not -credited after a timeout. A required trajectory-judge failure also fails closed -and must be reported separately from retrieval quality. - -The separate verifier runs submission code as UID 10001 under read-only /app, -with only its index/output locations writable. The corpus, model and docs are -mounted read-only. Public examples are not mounted in verification. Hidden -labels, grader code, audit credentials, trajectories and reward logs remain -root-private. Query order and request IDs are refreshed at verification time. +One A100 40GB, 16 CPUs, 32 GiB RAM, 100 GiB storage; development is six hours. Both images use the repository GPU image. `build.sh --corpus --index-dir` has 1,200 seconds for indexing and initialization. After it returns successfully, `run.sh --index-dir --queries --output --top-k 10` receives the complete hidden batch and has **120 seconds**, including all local work and API waits. Batching is allowed. No query input is exposed during build. + +Score is the mean **binary nDCG@10**, directly in [0,1]; displayed percentages multiply it by 100. DCG sums `1/log2(rank+1)` over relevant returned IDs. IDCG uses `min(10, number of event positives)`. Hitting one of several positives is not full credit. There is no baseline subtraction. + +Missing/duplicate query outputs, invalid IDs/scores/order, command failure, build/batch timeout or a confirmed integrity violation gives zero. The grader checks coverage and output semantics, not a prescribed retrieval method. The entire batch must complete within the deadline; partial output is not credited after a timeout. A required trajectory-judge failure also fails closed and must be reported separately from retrieval quality. + +The separate verifier runs submission code as UID 10001 under read-only /app, with only its index/output locations writable. The corpus, model and docs are mounted read-only. Public examples are not mounted in verification. Hidden labels, grader code, audit credentials, trajectories and reward logs remain root-private. Query order and request IDs are refreshed at verification time. ### Validation -See [VALIDATION.md](VALIDATION.md) for executed commands, evidence and unrun -layers. A local smoke implementation is not a coding-agent trial or proof of -difficulty for a tuned system. Author baselines remain outside this package. +See [VALIDATION.md](VALIDATION.md) for executed commands, evidence and unrun layers. A local smoke implementation is not a coding-agent trial or proof of difficulty for a tuned system. Author baselines remain outside this package. Local checks from the repository root: @@ -121,7 +78,7 @@ Public data pins are present. See RUN_RESULTS.md for current trial evidence and See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -135,4 +92,7 @@ bash scripts/evaluation/run_task.sh --task chunqiu-temporal-retrieval --agent co ## References -- [Task reference](https://aclanthology.org/2026.findings-acl.612/). +- **Task source** — [ChunQiuTR (Findings of ACL 2026)](https://aclanthology.org/2026.findings-acl.612/) +- **Data source** — ChunQiuTR passages and queries, screened to retain the event-retrieval task. +- **Model source** — [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B). +- **Provenance details** — [Data and model revisions, preparation, and usage terms](LICENSE.data.md) diff --git a/tasks/code-context-retrieval/README.md b/tasks/code-context-retrieval/README.md index 7168e79..eaca97f 100644 --- a/tasks/code-context-retrieval/README.md +++ b/tasks/code-context-retrieval/README.md @@ -14,6 +14,8 @@ | Public queries | 10 | | Hidden queries | 20 | +## Overview + Build a reusable search engine that returns the source regions needed to understand and address an issue in a fixed repository snapshot. The target is the original SWE-Explore reading context, including relevant implementation, helpers and tests. It is not exact bug-line localization and does not require generating a patch. ### Data and interface @@ -38,15 +40,7 @@ The solver supplies executable `/app/build.sh` and `/app/run.sh` with the comman ### Difficulty evidence -One packaged CPU/API Codex/OpenRouter `openai/gpt-6-luna`, `max` trial produced -mean line F1 and reward **0.17146875932337885** under the labels before the -2026-10-28 correction. The coding agent reached its -7,200-second development limit (`AgentTimeoutError`); the subsequent verifier -completed all 20 queries with valid outputs and no query timeouts. This is a -scored submission after development-budget exhaustion, not an exception-free -agent completion. [VALIDATION.md](VALIDATION.md) records the trial, matching -instruction fingerprint, timings and original evidence locations. No online -trajectory judge is configured for this task. +One packaged CPU/API Codex/OpenRouter `openai/gpt-6-luna`, `max` trial produced mean line F1 and reward **0.17146875932337885** under the labels before the 2026-10-28 correction. The coding agent reached its 7,200-second development limit (`AgentTimeoutError`); the subsequent verifier completed all 20 queries with valid outputs and no query timeouts. This is a scored submission after development-budget exhaustion, not an exception-free agent completion. [VALIDATION.md](VALIDATION.md) records the trial, matching instruction fingerprint, timings and original evidence locations. No online trajectory judge is configured for this task. Author-side screening evaluated the same selected issues with the labels before the 2026-10-28 correction, a common five-region/500-line output budget and a 180-second query limit. Dense retrieval and reranking used local Qwen3 8B models; agents used local Qwen3.5-9B without thinking, at most 25 exploration steps plus a final call. Local GPU pilot latency is not a measurement of the packaged CPU/API environment. Index/model startup was excluded; enhanced-agent timing summed separately measured retrieval and exploration. @@ -77,7 +71,7 @@ The task has 16 CPU cores, 32 GiB RAM, 100 GiB storage, no GPU and a two-hour de See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -89,14 +83,6 @@ bash scripts/evaluation/run_task.sh --task code-context-retrieval --agent codex ## References -### Sources and reproduction - -[SWE-Explore paper](https://arxiv.org/abs/2606.07297), [SWE-Explore dataset](https://huggingface.co/datasets/SWE-Explore-Bench/SWE-Explore-Bench), and [SWE-Explore implementation](https://github.com/Qiushao-E/SWE-Explore-Bench). - -Dataset revision: `bdb0ae45d7c337d9e1dc3ebfe2a0af6bc7c1fbd9`; release SHA-256: `dc4f114ececd0bfb987361c26ae5e2440456e2cccb36adfccb09ea5385aec202`. SWE-Explore implementation revision: `5602f031f2d9562d0a805f83402b536e831a5a11`. Issues and base commits were joined by exact IDs to pinned SWE-bench Verified, Multilingual and Pro v1 releases. Attribution and per-snapshot origins are in `LICENSE.data.md`. - -The authoring directory is `task_development/code-bug-localization`, adjacent to this Search-SWE checkout. It contains source downloads, the frozen selection, per-query baseline traces, review notes, export scripts, source hashes and author-only runtime fixtures. None is mounted into the solver environment. Reproduce the export with `python task_development/code-bug-localization/package_task.py` from the parent workspace; its input is the already frozen `selection/`. - -Run `python scripts/assets/download_assets.py --task code-context-retrieval --verify-only` from this checkout to verify local asset hashes, and `python -m unittest discover -s tasks/code-context-retrieval/tests -p test_contract.py` for scoring regression checks. `VALIDATION.md` records actual runtime checks and remaining validation layers. - -Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [RUN_RESULTS.md](RUN_RESULTS.md) for the current run evidence and publication status. Existing source terms and attribution remain applicable. +- **Task source** — [SWE-Explore (arXiv 2026)](https://arxiv.org/abs/2606.07297) +- **Data source** — [SWE-Explore annotations](https://huggingface.co/datasets/SWE-Explore-Bench/SWE-Explore-Bench) and pinned SWE-bench repository snapshots. [Data attribution and licenses](LICENSE.data.md) +- **Provenance details** — [Source revisions, export, and reproduction](SOURCES.md) diff --git a/tasks/code-context-retrieval/SOURCES.md b/tasks/code-context-retrieval/SOURCES.md new file mode 100644 index 0000000..5099db1 --- /dev/null +++ b/tasks/code-context-retrieval/SOURCES.md @@ -0,0 +1,13 @@ +# Sources and Preparation + +## Sources and reproduction + +[SWE-Explore paper](https://arxiv.org/abs/2606.07297), [SWE-Explore dataset](https://huggingface.co/datasets/SWE-Explore-Bench/SWE-Explore-Bench), and [SWE-Explore implementation](https://github.com/Qiushao-E/SWE-Explore-Bench). + +Dataset revision: `bdb0ae45d7c337d9e1dc3ebfe2a0af6bc7c1fbd9`; release SHA-256: `dc4f114ececd0bfb987361c26ae5e2440456e2cccb36adfccb09ea5385aec202`. SWE-Explore implementation revision: `5602f031f2d9562d0a805f83402b536e831a5a11`. Issues and base commits were joined by exact IDs to pinned SWE-bench Verified, Multilingual and Pro v1 releases. Attribution and per-snapshot origins are in [LICENSE.data.md](LICENSE.data.md). + +The authoring directory is `task_development/code-bug-localization`, adjacent to this Search-SWE checkout. It contains source downloads, the frozen selection, per-query baseline traces, review notes, export scripts, source hashes and author-only runtime fixtures. None is mounted into the solver environment. Reproduce the export with `python task_development/code-bug-localization/package_task.py` from the parent workspace; its input is the already frozen `selection/`. + +Run `python scripts/assets/download_assets.py --task code-context-retrieval --verify-only` from this checkout to verify local asset hashes, and `python -m unittest discover -s tasks/code-context-retrieval/tests -p test_contract.py` for scoring regression checks. [VALIDATION.md](VALIDATION.md) records actual runtime checks and remaining validation layers. + +Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [RUN_RESULTS.md](RUN_RESULTS.md) for the current run evidence and publication status. Existing source terms and attribution remain applicable. diff --git a/tasks/code-embedding-finetuning/README.md b/tasks/code-embedding-finetuning/README.md index d8dc80b..b150d5d 100644 --- a/tasks/code-embedding-finetuning/README.md +++ b/tasks/code-embedding-finetuning/README.md @@ -14,18 +14,13 @@ | Public queries | 10 | | Hidden queries | 200 | -Adapt a fixed embedding backbone to code retrieval and measure the resulting quality gain. +## Overview -### Overview +Adapt a fixed embedding backbone to code retrieval and measure the resulting quality gain. -A general embedding model may not organize natural-language requests and code -documents in the way a code-search application needs. This task asks a coding -agent to improve that alignment using supplied supervised examples. +A general embedding model may not organize natural-language requests and code documents in the way a code-search application needs. This task asks a coding agent to improve that alignment using supplied supervised examples. -The output is a trained checkpoint, rather than a custom search service. -The verifier applies the same embedding and exact-search procedure to the -original backbone and the submission. This isolates improvement in the learned -representation from changes to indexing, candidate selection, or serving code. +The output is a trained checkpoint, rather than a custom search service. The verifier applies the same embedding and exact-search procedure to the original backbone and the submission. This isolates improvement in the learned representation from changes to indexing, candidate selection, or serving code. ### Task Setup @@ -39,33 +34,19 @@ representation from changes to indexing, candidate selection, or serving code. | `models/bge-base-en-v1.5/` | The pinned original backbone | | `environment/starter/train.sh` | Starting point for the training workflow | -The hidden evaluation contains 200 queries. Public data and the backbone are -mounted read-only under `/task/data` and `/task/models`; hidden questions and -labels are excluded from the agent environment. +The hidden evaluation contains 200 queries. Public data and the backbone are mounted read-only under `/task/data` and `/task/models`; hidden questions and labels are excluded from the agent environment. #### Fixed Components and Allowed Changes -Training choices and model weights may change. The backbone architecture, -model class, structural configuration, parameter names, shapes, and count must -remain compatible. The verifier owns the embedding and exact-retrieval procedure. +Training choices and model weights may change. The backbone architecture, model class, structural configuration, parameter names, shapes, and count must remain compatible. The verifier owns the embedding and exact-retrieval procedure. -Development uses the supplied offline data and packages. External checkpoints, -datasets, labels, and answer mappings are not permitted; see the -[resource policy](environment/docs/available_resources.md). +Development uses the supplied offline data and packages. External checkpoints, datasets, labels, and answer mappings are not permitted; see the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The runtime uses Python 3.12 with CUDA-enabled PyTorch. It is configured for -8 CPUs, 32 GiB memory, and 100 GiB storage. The environment and verifier -Compose files and `task.toml` explicitly request **one GPU**. -For local Docker, the shared launcher handles Harbor 0.22 and 0.23 GPU -capability preflight with `--override-gpus 0`; the Compose reservations still -provide the GPU to both containers. +The runtime uses Python 3.12 with CUDA-enabled PyTorch. It is configured for 8 CPUs, 32 GiB memory, and 100 GiB storage. The environment and verifier Compose files and `task.toml` explicitly request **one GPU**. For local Docker, the shared launcher handles Harbor 0.22 and 0.23 GPU capability preflight with `--override-gpus 0`; the Compose reservations still provide the GPU to both containers. -The agent phase has 6 hours. Task-specific verification has one hour, -followed by a separately bounded integrity check, within an 85-minute Harbor -verifier phase. The submission training environment is offline; the coding -agent and private judge have their own API configuration. +The agent phase has 6 hours. Task-specific verification has one hour, followed by a separately bounded integrity check, within an 85-minute Harbor verifier phase. The submission training environment is offline; the coding agent and private judge have their own API configuration. ## Change Log @@ -84,54 +65,35 @@ agent and private judge have their own API configuration. ### Submission Contract -The artifact is a complete checkpoint at `/app/submission/model`, including -the files needed by standard Transformers tokenizer and model loaders with -`local_files_only=True`. Only `/app/submission` is transferred for evaluation. +The artifact is a complete checkpoint at `/app/submission/model`, including the files needed by standard Transformers tokenizer and model loaders with `local_files_only=True`. Only `/app/submission` is transferred for evaluation. -There is no submitted retrieval CLI to optimize here: the verifier loads the -checkpoint and executes its own fixed search procedure. Full compatibility -requirements are in [instruction.md](instruction.md). +There is no submitted retrieval CLI to optimize here: the verifier loads the checkpoint and executes its own fixed search procedure. Full compatibility requirements are in [instruction.md](instruction.md). ### Evaluation #### Search Quality -Accuracy@1 measures whether the highest-ranked code document is relevant. -The grader evaluates both checkpoints on identical hidden queries, using -normalized first-token embeddings, the same token limit, and exact inner-product -search. The base task reward is: +Accuracy@1 measures whether the highest-ranked code document is relevant. The grader evaluates both checkpoints on identical hidden queries, using normalized first-token embeddings, the same token limit, and exact inner-product search. The base task reward is: ```text max(0, submitted Accuracy@1 - original-backbone Accuracy@1) ``` -This is an absolute gain on the 0–1 accuracy scale, not a percentage-relative -improvement and not the submitted accuracy by itself. +This is an absolute gain on the 0–1 accuracy scale, not a percentage-relative improvement and not the submitted accuracy by itself. #### Correctness and Resource Gates -The checkpoint must load offline and match the backbone's structural signature. -Invalid models, failed evaluation, and timeouts receive zero. Training-side -validation results do not replace the verifier's independent comparison. +The checkpoint must load offline and match the backbone's structural signature. Invalid models, failed evaluation, and timeouts receive zero. Training-side validation results do not replace the verifier's independent comparison. #### Integrity Checks and Final Reward -A trajectory audit gates the nonnegative quality gain. A failed audit or -invalid evaluation produces zero, regardless of the apparent training result. -The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with -verifier-only DeepSeek endpoint and key settings. +A trajectory audit gates the nonnegative quality gain. A failed audit or invalid evaluation produces zero, regardless of the apparent training result. The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with verifier-only DeepSeek endpoint and key settings. -### Running This Task +## Running the Task -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -Prepare an NVIDIA-capable Docker host and the GPU base image referenced by the -Dockerfiles. Configure the integrity judge as well as the coding agent. -The asset downloader restores both training data and the fixed backbone. +Prepare an NVIDIA-capable Docker host and the GPU base image referenced by the Dockerfiles. Configure the integrity judge as well as the coding agent. The asset downloader restores both training data and the fixed backbone. ```bash python scripts/assets/download_assets.py --task code-embedding-finetuning @@ -139,12 +101,7 @@ bash scripts/evaluation/run_task.sh --task code-embedding-finetuning --agent cod --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/code-embedding-finetuning/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/code-embedding-finetuning/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -163,4 +120,6 @@ assets, credentials, or hardware. ## References -None. +- **Task source** — Experience +- **Data source** — CoIR/APPS-derived code corpus and training examples. [Published source record](https://huggingface.co/datasets/search-swe/Search-SWE/blob/6713b1eb7474e0768e906a0151c76af92f0cfcdd/SOURCES.md) +- **Model source** — [BAAI/bge-base-en-v1.5 at revision a5beb1e](https://huggingface.co/BAAI/bge-base-en-v1.5/tree/a5beb1e3e68b9ab74eb54cfd186867f64f240e1a). The bundled model README adapts the upstream `README.md` at that revision and retains its metadata, attribution, license information, and citations. The bundled copy is restored using the size and SHA-256 in [assets.json](assets.json). diff --git a/tasks/code-embedding-finetuning/SOURCES.md b/tasks/code-embedding-finetuning/SOURCES.md deleted file mode 100644 index 544dfea..0000000 --- a/tasks/code-embedding-finetuning/SOURCES.md +++ /dev/null @@ -1,5 +0,0 @@ -# Sources - -## Bundled model documentation - -`models/bge-base-en-v1.5/README.md` is adapted for the task environment, retaining model metadata, source attribution, license information and citations. Original source: `BAAI/bge-base-en-v1.5`, revision `a5beb1e3e68b9ab74eb54cfd186867f64f240e1a`, file `README.md`. The task restores the bundled copy using the size and SHA-256 in `assets.json`. diff --git a/tasks/code-reranker-finetuning/README.md b/tasks/code-reranker-finetuning/README.md index e512f1e..3b2be80 100644 --- a/tasks/code-reranker-finetuning/README.md +++ b/tasks/code-reranker-finetuning/README.md @@ -11,8 +11,11 @@ | Compute | 8 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 10800 s | | Dataset | code-retrieval | +| Public queries | 0 | | Hidden queries | 200 | +## Overview + Fine-tune the supplied `BAAI/bge-reranker-base` weights while preserving architecture, configuration and tokenizer. The fixed first stage combines local BM25 Top-200 with local `BAAI/bge-base-en-v1.5` embedding Top-200 through equal-weight RRF (`k=60`), retaining the whole deduplicated union of 200–400 candidates. Original and submitted rerankers use exactly the same lists. Reward measures mean Accuracy@5 gain normalized by fixed-candidate headroom over all 200 hidden questions. [raw-instruction.md](raw-instruction.md) preserves the structured source, and [instruction.md](instruction.md) is the complete agent request. Only the prose instruction reaches the agent; the structured source is outside the agent Docker context and mounts. @@ -43,10 +46,6 @@ An earlier author-only local A100 run substituted local BGE embeddings for the A ### Validation -From the repository root, restore inputs with `python scripts/assets/download_assets.py --task code-reranker-finetuning`. The input sources, immutable revisions, filenames, sizes and hashes are listed in `assets.json`. - -Use `python scripts/validation/check_tasks.py tasks/code-reranker-finetuning`, `python scripts/assets/download_assets.py --task code-reranker-finetuning --verify-only`, and `python -B -m unittest discover -s tasks/code-reranker-finetuning/tests -p 'test_*.py' -q`. Launch through `bash scripts/evaluation/run_task.sh --task code-reranker-finetuning --agent codex --openrouter --model openai/gpt-6-luna --reasoning-effort max`, which uses the task's GPU reservations for both the agent and verifier. - #### Historical 6-hour coding-model evaluation (v0.3.1) The October 17 trial evaluated **v0.3.1 with the current 6-hour budget**, using Codex 0.157.1 + OpenRouter `openai/gpt-6-luna`, effort `max`, on one A100 40GB. It completed normally, without agent timeout, trial errors or retries. Agent execution took **10,901.70 seconds (3 hours 2 minutes)** and separate verification **1,398.98 seconds (23 minutes 19 seconds)**. @@ -63,43 +62,27 @@ The October 15–16 trial used v0.3.0 with a 12-hour budget. It took 33,677.75 s #### PR #17 tokenizer isolation fix (v0.3.2) -Both model loads now obtain their tokenizer exclusively from the trusted -backbone. The submitted directory is still used for model weights, and the four -required tokenizer files retain their byte-for-byte checks. Additional files -such as `added_tokens.json` are never loaded as tokenizer configuration. - -The new offline regression uses a real small XLM-R tokenizer and model: adding -one metadata file changes token IDs and logits under the old loader, with the -existing tokenizer files, vocabulary size, configuration and weights unchanged. -The fixed loader produces identical token IDs and scores for both checkpoints. -A second case checks that malformed submitted metadata is never loaded. Both -regressions fail against the reviewed `b78f354` loader and pass after this fix. - -On October 17, the revised package passed all **27 task-local tests**, merge-ready -checks against `ac7dcc145925d98afd2b0db1112d7c0ad8ba1460`, all **19 asset** hash -checks, release checks, and the **174-test shared suite**. Instructions, training -budget, candidate generation and reward mapping are unchanged. - -The saved six-hour Luna checkpoint was then replayed through native Harbor -Oracle installation, normal checkpoint transfer, and the **v0.3.2 separate -verifier**, with the original offline policy and one A100 40GB. This is a fresh -full verifier execution, not a new training trial. Verification took **1,398.93 -seconds**, completed without errors, and exactly reproduced **B=0.015, -S=0.09, C=0.235, reward=0.3409090909**, over 76,788 candidate pairs. - -Evidence: `jobs/code-reranker-finetuning-regrade-20261017-pr17/2026-10-17__13-47-11/task__jQETt8r/`; -author records and the exact replay configuration are under -`contributing/dev/code-reranker-finetuning/2026-10-17-pr17/`. The temporary GPU -binding exists only in that author-only task copy; the contributed Compose -files retain portable one-GPU reservations. No new six-hour coding-model trial -was run: the existing trained checkpoint and unchanged agent instructions are -reused, while the corrected tokenizer path is covered by the new regressions -and this complete regrade. +Both model loads now obtain their tokenizer exclusively from the trusted backbone. The submitted directory is still used for model weights, and the four required tokenizer files retain their byte-for-byte checks. Additional files such as `added_tokens.json` are never loaded as tokenizer configuration. + +The new offline regression uses a real small XLM-R tokenizer and model: adding one metadata file changes token IDs and logits under the old loader, with the existing tokenizer files, vocabulary size, configuration and weights unchanged. The fixed loader produces identical token IDs and scores for both checkpoints. A second case checks that malformed submitted metadata is never loaded. Both regressions fail against the reviewed `b78f354` loader and pass after this fix. + +On October 17, the revised package passed all **27 task-local tests**, merge-ready checks against `ac7dcc145925d98afd2b0db1112d7c0ad8ba1460`, all **19 asset** hash checks, release checks, and the **174-test shared suite**. Instructions, training budget, candidate generation and reward mapping are unchanged. + +The saved six-hour Luna checkpoint was then replayed through native Harbor Oracle installation, normal checkpoint transfer, and the **v0.3.2 separate verifier**, with the original offline policy and one A100 40GB. This is a fresh full verifier execution, not a new training trial. Verification took **1,398.93 seconds**, completed without errors, and exactly reproduced **B=0.015, S=0.09, C=0.235, reward=0.3409090909**, over 76,788 candidate pairs. + +Evidence: `jobs/code-reranker-finetuning-regrade-20261017-pr17/2026-10-17__13-47-11/task__jQETt8r/`; author records and the exact replay configuration are under `contributing/dev/code-reranker-finetuning/2026-10-17-pr17/`. The temporary GPU binding exists only in that author-only task copy; the contributed Compose files retain portable one-GPU reservations. No new six-hour coding-model trial was run: the existing trained checkpoint and unchanged agent instructions are reused, while the corrected tokenizer path is covered by the new regressions and this complete regrade. + +## Running the Task + +From the repository root, restore inputs with `python scripts/assets/download_assets.py --task code-reranker-finetuning`. The input sources, immutable revisions, filenames, sizes and hashes are listed in `assets.json`. + +Use `python scripts/validation/check_tasks.py tasks/code-reranker-finetuning`, `python scripts/assets/download_assets.py --task code-reranker-finetuning --verify-only`, and `python -B -m unittest discover -s tasks/code-reranker-finetuning/tests -p 'test_*.py' -q`. Launch through `bash scripts/evaluation/run_task.sh --task code-reranker-finetuning --agent codex --openrouter --model openai/gpt-6-luna --reasoning-effort max`, which uses the task's GPU reservations for both the agent and verifier. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -### Sources - -Corpus and training inputs are pinned in `assets.json` to `search-swe/Search-SWE` revision `6713b1eb7474e0768e906a0151c76af92f0cfcdd`. The reranker uses `BAAI/bge-reranker-base` revision `2cfc18c9415c912f9d8155881c133215df768a70`. The local embedding model is pinned to `BAAI/bge-base-en-v1.5` revision `a5beb1e3e68b9ab74eb54cfd186867f64f240e1a`. See [SOURCES.md](SOURCES.md) for provenance and usage terms. +- **Task source** — Experience +- **Data source** — CoIR/APPS-derived corpus and training examples from code-embedding-finetuning. +- **Model source** — [BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base) and [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). +- **Provenance details** — [Data and model revisions and usage terms](SOURCES.md) diff --git a/tasks/composed-image-search/README.md b/tasks/composed-image-search/README.md index 416935b..4204d15 100644 --- a/tasks/composed-image-search/README.md +++ b/tasks/composed-image-search/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 4392 | -Find matching gallery photographs from a reference image and a requested modification. +## Overview -### Overview +Find matching gallery photographs from a reference image and a requested modification. -A user can describe how an existing photograph should change without naming -every detail that should stay the same. The system must combine the reference -image and modification request, then rank photographs from a shared gallery. +A user can describe how an existing photograph should change without naming every detail that should stay the same. The system must combine the reference image and modification request, then rank photographs from a shared gallery. -The collection combines two sources with different relevance annotations: -CIRCO has multiple matching images per request, while CIRR supplies one target. +The collection combines two sources with different relevance annotations: CIRCO has multiple matching images per request, while CIRR supplies one target. ### Task Setup @@ -35,34 +32,19 @@ CIRCO has multiple matching images per request, while CIRR supplies one target. | `data/validation/` | Five public requests and relevance labels | | `models/clip/` | Local CLIP ViT-B/32 weights and processor | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -The shared gallery combines CIRCO with the CIRR validation release. -There are five public requests (two CIRCO and three CIRR) and 4,392 held-out -requests (214 CIRCO and 4,178 CIRR). Query IDs are disjoint. +The shared gallery combines CIRCO with the CIRR validation release. There are five public requests (two CIRCO and three CIRR) and 4,392 held-out requests (214 CIRCO and 4,178 CIRR). Query IDs are disjoint. -[CIRCO](https://github.com/miccunifi/CIRCO) supplies 216 original queries. -[CIRR](https://github.com/Cuberick-Orion/CIRR/tree/cirr_dataset/captions) -contributes 4,181 original captions and 2,297 images. Image IDs from the -[pinned CIRR image mirror](https://huggingface.co/datasets/royokong/cirr_imgs/tree/7a25e03bc7640ef61d80b854e3c9762871d74a28) -were matched to the CIRR captions. Requests and relevance targets were not -generated for this task. CIRR requests have no shared-concept annotation. +[CIRCO](https://github.com/miccunifi/CIRCO) supplies 216 original queries. [CIRR](https://github.com/Cuberick-Orion/CIRR/tree/cirr_dataset/captions) contributes 4,181 original captions and 2,297 images. Image IDs from the [pinned CIRR image mirror](https://huggingface.co/datasets/royokong/cirr_imgs/tree/7a25e03bc7640ef61d80b854e3c9762871d74a28) were matched to the CIRR captions. Requests and relevance targets were not generated for this task. CIRR requests have no shared-concept annotation. #### Fixed Components and Allowed Changes -The gallery, requests and output interface are fixed. Index design, visual -representations, candidate selection and ranking are implementation choices. -No precomputed gallery or query vectors and no starter are supplied. Optional -OpenRouter and Jina calls follow the [resource policy](environment/docs/available_resources.md). -Additional query-dependent visual inspection is limited to 100 candidates. +The gallery, requests and output interface are fixed. Index design, visual representations, candidate selection and ranking are implementation choices. No precomputed gallery or query vectors and no starter are supplied. Optional OpenRouter and Jina calls follow the [resource policy](environment/docs/available_resources.md). Additional query-dependent visual inspection is limited to 100 candidates. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has two hours; index construction has 3,600 seconds. -Two query calls each have an independent 14,400-second allowance. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has two hours; index construction has 3,600 seconds. Two query calls each have an independent 14,400-second allowance. ## Change Log @@ -80,15 +62,9 @@ Two query calls each have an independent 14,400-second allowance. ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Build once from the gallery, then accept repeated query files. -Each result contains the query ID and up to 50 distinct ranked image IDs with -finite scores. The reference image must be excluded. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Build once from the gallery, then accept repeated query files. Each result contains the query ID and up to 50 distinct ranked image IDs with finite scores. The reference image must be excluded. -Verification runs the submitted commands as a non-root user with code and -inputs read-only. The supplied index directory stays writable across calls; -its parent is not writable. Generated files must use the index, output and -temporary paths supplied to each stage. +Verification runs the submitted commands as a non-root user with code and inputs read-only. The supplied index directory stays writable across calls; its parent is not writable. Generated files must use the index, output and temporary paths supplied to each stage. The full schema and invocation details are in [instruction.md](instruction.md). @@ -96,62 +72,38 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -For CIRCO, quality is the mean of AP@5, AP@10, AP@25 and AP@50. -For CIRR, it is the mean of Recall@1, Recall@5, Recall@10 and Recall@50. -Queries are averaged within each source, then the two source scores receive -equal weight. +For CIRCO, quality is the mean of AP@5, AP@10, AP@25 and AP@50. For CIRR, it is the mean of Recall@1, Recall@5, Recall@10 and Recall@50. Queries are averaged within each source, then the two source scores receive equal weight. -The source metrics retain their original positive labels. The shared gallery -and equal weighting of the two sources are this task's adaptation; unlabeled -alternatives are not treated as newly certified negatives. +The source metrics retain their original positive labels. The shared gallery and equal weighting of the two sources are this task's adaptation; unlabeled alternatives are not treated as newly certified negatives. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.26812065144613684` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.26812065144613684` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -The commands below apply in a checkout with this package installed at -`tasks/composed-image-search/`: +The commands below apply in a checkout with this package installed at `tasks/composed-image-search/`: ```bash python scripts/assets/download_assets.py --task composed-image-search @@ -159,11 +111,7 @@ bash scripts/evaluation/run_task.sh --task composed-image-search --agent codex - --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/composed-image-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/composed-image-search/`. ### Task Files @@ -183,4 +131,6 @@ credentials or hardware. Results are written under `jobs/composed-image-search/` ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [Xᴿ (WWW 2026)](https://doi.org/10.1145/3774904.3792276) +- **Data source** — CIRCO and CIRR gallery images, relative captions, and targets. +- **Provenance details** — [Collection preparation, CLIP checkpoint, and usage terms](SOURCES.md) diff --git a/tasks/constrained-molecular-search/README.md b/tasks/constrained-molecular-search/README.md index 9db94e0..0203a8f 100644 --- a/tasks/constrained-molecular-search/README.md +++ b/tasks/constrained-molecular-search/README.md @@ -10,15 +10,13 @@ | Primary metric | Macro mean Recall@10000; public proportional-budget Recall@279 | | Compute | 16 CPUs; 32 GiB RAM; 64 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 10500 s | +| Dataset | APEX 1M development pool and 12M target library | + +## Overview Recover the truly feasible top 10,000 compounds from a complete molecular library under a two-second query deadline. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -34,6 +32,14 @@ The retriever must recover the true feasible top compounds, combining molecular The verifier checks the returned compounds against the true feasible Top-10,000 from the complete library and computes macro mean Recall@10000. Preparation and query limits are enforced separately. The final numerical reward also requires a healthy passing integrity audit. See the [verification contract](raw-instruction.md#verification) for exact formulas, thresholds and failure handling. +### Repeated measurements + +Each request is measured five times in five complete passes. Prepare runs once. After preparation, generated artifacts become read-only; use TMPDIR for query-time writes. Each pass starts a fresh Searcher process and a cleared scratch directory, while initial preparation and all loads still share the 3600-second allowance. The median of the five complete-response times must be at most 2.0 seconds. Each individual measurement has a 3.0-second execution cap. All five measurements must return valid ID lists; otherwise the request scores zero. For a request passing these checks and the median limit, its recall is the arithmetic mean of the five recalls. Empty or small feasible sets remain supported and are used as unscored diagnostics. + +The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. + +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -43,31 +49,15 @@ python scripts/assets/download_assets.py --task constrained-molecular-search python scripts/assets/download_assets.py --task constrained-molecular-search --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model cards, -licenses and data-use restrictions are described in the resource document. +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model cards, licenses and data-use restrictions are described in the resource document. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 32 GiB RAM and -64 GiB storage. Agent development has -21600 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 32 GiB RAM and 64 GiB storage. Agent development has 21600 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. -Both phases require one GPU. Use `--gpu-device` to select the same -host GPU for both phases. +Both phases require one GPU. Use `--gpu-device` to select the same host GPU for both phases. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -Also configure `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` for the independent -`deepseek/deepseek-v4.1-flash` integrity judge. These credentials are injected only -into the verifier. Its service timeout includes a separate 3600-second audit -allowance; submission phase limits remain unchanged. A positive final reward -requires a successful accepting audit of the protected trajectory and submission. -Inspect `audit-status.json`, `audit.json` and `reward-details.json` alongside the -deterministic report; missing or unhealthy audits cannot produce a positive reward. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. Also configure `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` for the independent `deepseek/deepseek-v4.1-flash` integrity judge. These credentials are injected only into the verifier. Its service timeout includes a separate 3600-second audit allowance; submission phase limits remain unchanged. A positive final reward requires a successful accepting audit of the protected trajectory and submission. Inspect `audit-status.json`, `audit.json` and `reward-details.json` alongside the deterministic report; missing or unhealthy audits cannot produce a positive reward. Invoke the standard entrypoint directly: @@ -77,9 +67,7 @@ bash scripts/evaluation/run_task.sh --task constrained-molecular-search --gpu-de --output "jobs/constrained-molecular-search-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -88,21 +76,13 @@ python scripts/validation/check_tasks.py tasks/constrained-molecular-search python scripts/assets/download_assets.py --task constrained-molecular-search --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -- [Task reference](https://proceedings.mlr.press/v306/pedawi26a.html). -- [APEX source dataset](https://zenodo.org/records/17455955), CC BY 4.0. -- [APEX source checkpoints](https://zenodo.org/records/17456522), CC BY-NC 4.0. - -## Repeated measurements - -Each request is measured five times in five complete passes. Prepare runs once. After preparation, generated artifacts become read-only; use TMPDIR for query-time writes. Each pass starts a fresh Searcher process and a cleared scratch directory, while initial preparation and all loads still share the 3600-second allowance. The median of the five complete-response times must be at most 2.0 seconds. Each individual measurement has a 3.0-second execution cap. All five measurements must return valid ID lists; otherwise the request scores zero. For a request passing these checks and the median limit, its recall is the arithmetic mean of the five recalls. Empty or small feasible sets remain supported and are used as unscored diagnostics. - -The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. +- **Task source** — [APEX (ICML 2026)](https://proceedings.mlr.press/v306/pedawi26a.html) +- **Data source** — [APEX dataset](https://zenodo.org/records/17455955), CC BY 4.0. +- **Model source** — [APEX checkpoints](https://zenodo.org/records/17456522), CC BY-NC 4.0. +- **Provenance details** — [Bundled code, data preparation, and usage terms](SOURCES.md) diff --git a/tasks/decision-model-training/README.md b/tasks/decision-model-training/README.md index 5614997..982d042 100644 --- a/tasks/decision-model-training/README.md +++ b/tasks/decision-model-training/README.md @@ -11,13 +11,14 @@ | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 480 s | | Dataset | OpenJev mixture and held-out suite | +| Public queries | 0 | | Hidden queries | 4200 | +## Overview + Author: Bingyu. Published task package; the saved coding-agent result is recorded in RUN_RESULTS.md. -Build an offline Qwen3-0.6B-based system for categorical choices, Boolean -judgments, and ordinal ratings. This task follows the user's revised OpenJev -plan, rather than the earlier constrained-shopping recommendation proposal. +Build an offline Qwen3-0.6B-based system for categorical choices, Boolean judgments, and ordinal ratings. This task follows the user's revised OpenJev plan, rather than the earlier constrained-shopping recommendation proposal. | Setting | Value | | --- | --- | @@ -29,14 +30,7 @@ plan, rather than the earlier constrained-shopping recommendation proposal. | Startup / complete inference | 120 seconds / 240 seconds | | Network / judge API | Disabled / none | -`start.sh` and `run.sh` and all runtime artifacts go in `/app/submission`. -The verifier starts the system before exposing test requests, then times the -whole batch. Categorical answers must be menu keys, Boolean answers JSON -booleans, and ordinal answers zero-based integers. Invalid outputs and failed -or timed-out commands score zero. Valid submissions receive the average of -seven dataset accuracies, equal to overall accuracy because each has 600 rows. -The verifier runs submitted code under UID 10001, protects labels and reward -files, and stops all submission-owned processes before reading results. +`start.sh` and `run.sh` and all runtime artifacts go in `/app/submission`. The verifier starts the system before exposing test requests, then times the whole batch. Categorical answers must be menu keys, Boolean answers JSON booleans, and ordinal answers zero-based integers. Invalid outputs and failed or timed-out commands score zero. Valid submissions receive the average of seven dataset accuracies, equal to overall accuracy because each has 600 rows. The verifier runs submitted code under UID 10001, protects labels and reward files, and stops all submission-owned processes before reading results. ## Change Log @@ -52,10 +46,7 @@ The model must generalize across categorical, Boolean and ordinal decision tasks ### Local validation and author records -Author scripts, original downloads, sampling lineage, GPU experiments and all -known-answer fixtures are in -`../../../task_development/decision-model-training`, outside the task package. -Verification uses deterministic accuracy and runs entirely offline. +Author scripts, original downloads, sampling lineage, GPU experiments and all known-answer fixtures are in `../../../task_development/decision-model-training`, outside the task package. Verification uses deterministic accuracy and runs entirely offline. Run from the repository root: @@ -69,7 +60,7 @@ Public inputs are published and pinned to immutable revisions in `assets.json`, See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -83,25 +74,7 @@ bash scripts/evaluation/run_task.sh --task decision-model-training --agent codex ## References -### Sources and preparation - -- [OpenJev training mixture](https://huggingface.co/datasets/s1lv3rj1nx/openjev-mixture/tree/e540d97fc37e92b493ceeb536bdb7a01e366bdc3): 323,466 original rows. -- [OpenJev held-out suite](https://huggingface.co/datasets/s1lv3rj1nx/openjev-heldout/tree/fc5fe530405de8de02e983adbc5b10795618979c): AG News, Banking77, Civil Comments toxicity, CLINC OOS, HelpSteer helpfulness, MASSIVE intent, SST5. -- [Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B/tree/c1899de289a04d12100db370d81485cdf75e47ca): exact files verified against the user-supplied local model; Apache-2.0. -- [OpenJev implementation](https://github.com/S1LV3RJ1NX/openjev/tree/91847b4c678f7d9330d8f3475e24c72c7fef73c2): author-side format and contamination checks; not provided as a solution. - -Sample without replacement within every source task configuration, seed -20261014. Proportional largest-remainder allocation yields exactly 80,000 rows, -with 8–742 examples per configuration. Before sampling, exclude two training -rows whose normalized state occurs in the hidden suite. The original 4,200 -hidden states, questions, option descriptions/order and typed labels are -preserved. Flatten per-example option overrides into each example's question -schema. Neither new labels nor synthetic questions are generated. The upstream -alias guard and normalized-state overlap check pass. No separate public -validation split or baseline implementation is supplied. - -OpenJev's assembly is Apache-2.0; constituent datasets retain their own terms. -Its held-out card explicitly flags unclear redistribution rights for AG News -and SST5. The training mixture also does not supply a complete license audit of -all underlying datasets. This package makes no claim that every row is cleared for republication. -Unresolved constituent terms remain recorded for maintainer review. +- **Task source** — [OpenJev](https://openjev.com/) +- **Data source** — OpenJev training mixture and seven held-out decision datasets. +- **Model source** — [Qwen3-0.6B at revision c1899de](https://huggingface.co/Qwen/Qwen3-0.6B/tree/c1899de289a04d12100db370d81485cdf75e47ca), Apache-2.0. +- **Provenance details** — [Upstream revisions, sampling, and constituent dataset terms](SOURCES.md) diff --git a/tasks/decision-model-training/SOURCES.md b/tasks/decision-model-training/SOURCES.md index e45f592..9100691 100644 --- a/tasks/decision-model-training/SOURCES.md +++ b/tasks/decision-model-training/SOURCES.md @@ -1,4 +1,27 @@ -# Sources +# Sources and Preparation + +## Sources and preparation + +- [OpenJev training mixture](https://huggingface.co/datasets/s1lv3rj1nx/openjev-mixture/tree/e540d97fc37e92b493ceeb536bdb7a01e366bdc3): 323,466 original rows. +- [OpenJev held-out suite](https://huggingface.co/datasets/s1lv3rj1nx/openjev-heldout/tree/fc5fe530405de8de02e983adbc5b10795618979c): AG News, Banking77, Civil Comments toxicity, CLINC OOS, HelpSteer helpfulness, MASSIVE intent, SST5. +- [Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B/tree/c1899de289a04d12100db370d81485cdf75e47ca): exact files verified against the user-supplied local model; Apache-2.0. +- [OpenJev implementation](https://github.com/S1LV3RJ1NX/openjev/tree/91847b4c678f7d9330d8f3475e24c72c7fef73c2): author-side format and contamination checks; not provided as a solution. + +Sample without replacement within every source task configuration, seed +20261014. Proportional largest-remainder allocation yields exactly 80,000 rows, +with 8–742 examples per configuration. Before sampling, exclude two training +rows whose normalized state occurs in the hidden suite. The original 4,200 +hidden states, questions, option descriptions/order and typed labels are +preserved. Flatten per-example option overrides into each example's question +schema. Neither new labels nor synthetic questions are generated. The upstream +alias guard and normalized-state overlap check pass. No separate public +validation split or baseline implementation is supplied. + +OpenJev's assembly is Apache-2.0; constituent datasets retain their own terms. +Its held-out card explicitly flags unclear redistribution rights for AG News +and SST5. The training mixture also does not supply a complete license audit of +all underlying datasets. This package makes no claim that every row is cleared for republication. +Unresolved constituent terms remain recorded for maintainer review. ## Bundled model documentation diff --git a/tasks/document-page-search/README.md b/tasks/document-page-search/README.md index be324bc..37c98d5 100644 --- a/tasks/document-page-search/README.md +++ b/tasks/document-page-search/README.md @@ -14,16 +14,13 @@ | Public queries | 30 | | Hidden queries | 14484 | -Rank document pages for questions across several languages and document domains. +## Overview -### Overview +Rank document pages for questions across several languages and document domains. -Searching visual documents requires finding evidence in page images, tables -and text, including when the question and document use different languages. -This task indexes complete page collections and returns a ranked page list. +Searching visual documents requires finding evidence in page images, tables and text, including when the question and document use different languages. This task indexes complete page collections and returns a ranked page list. -Each request names a domain. Search covers the full supplied page collection -for that domain; the target document and page are not given. +Each request names a domain. Search covers the full supplied page collection for that domain; the target document and page are not given. ### Task Setup @@ -36,31 +33,19 @@ for that domain; the target document and page are not given. | `models/page-encoder/` | ColQwen2.5 adapter and processor | | `models/vision-backbone/` | Compatible local retrieval backbone | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs come from [ViDoRe V3](https://huggingface.co/collections/vidore/vidore-v3). -The task retains original page images, Markdown and graded relevance judgments -across eight domains and six question languages. +Inputs come from [ViDoRe V3](https://huggingface.co/collections/vidore/vidore-v3). The task retains original page images, Markdown and graded relevance judgments across eight domains and six question languages. -The five public question families give 30 input rows. The other 2,414 families -give 14,484 held-out rows. Translations of one question stay in the same split. -All page collections are shared by both splits. +The five public question families give 30 input rows. The other 2,414 families give 14,484 held-out rows. Translations of one question stay in the same split. All page collections are shared by both splits. #### Fixed Components and Allowed Changes -The collection, question domain, relevance labels and ranked-output interface -are fixed. Parsing, representations, index design and ranking are implementation -choices. Page and query embeddings are not supplied; the local ColQwen2.5 -resources are optional. OpenRouter and Jina access follows the -[resource policy](environment/docs/available_resources.md). No starter is provided. +The collection, question domain, relevance labels and ranked-output interface are fixed. Parsing, representations, index design and ranking are implementation choices. Page and query embeddings are not supplied; the local ColQwen2.5 resources are optional. OpenRouter and Jina access follows the [resource policy](environment/docs/available_resources.md). No starter is provided. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has two hours. Index construction has 10,800 seconds; -each of two query calls has 2,700 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has two hours. Index construction has 10,800 seconds; each of two query calls has 2,700 seconds. ## Change Log @@ -78,15 +63,9 @@ each of two query calls has 2,700 seconds. ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with their supporting -files under `/app`. Each question produces up to ten distinct page IDs from -its requested domain, with finite nonincreasing scores. No answer or bounding -box is required. +Submit executable `/app/build.sh` and `/app/run.sh` with their supporting files under `/app`. Each question produces up to ten distinct page IDs from its requested domain, with finite nonincreasing scores. No answer or bounding box is required. -The separate verifier runs commands as a non-root user with submission code -and inputs read-only. The supplied index directory remains writable across -calls; its parent is not writable. Output, cache and temporary files must use -the paths supplied to the command. +The separate verifier runs commands as a non-root user with submission code and inputs read-only. The supplied index directory remains writable across calls; its parent is not writable. Output, cache and temporary files must use the paths supplied to the command. The full schema and invocation details are in [instruction.md](instruction.md). @@ -94,57 +73,36 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Compute nDCG@10 with the original graded relevance labels and linear gains. -Average query scores within each domain, then give the eight domains equal -weight. Missing or invalid query results remain in the denominator. +Compute nDCG@10 with the original graded relevance labels and linear gains. Average query scores within each domain, then give the eight domains equal weight. Missing or invalid query results remain in the denominator. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.5362634643282924` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.5362634643282924` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -The commands below apply in a checkout with this package installed at -`tasks/document-page-search/`: +The commands below apply in a checkout with this package installed at `tasks/document-page-search/`: ```bash python scripts/assets/download_assets.py --task document-page-search @@ -152,11 +110,7 @@ bash scripts/evaluation/run_task.sh --task document-page-search --agent codex -- --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/document-page-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/document-page-search/`. ### Task Files @@ -176,4 +130,6 @@ credentials or hardware. Results are written under `jobs/document-page-search/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [ViDoRe V3 (ACL 2026)](https://aclanthology.org/2026.acl-long.755/) +- **Data source** — ViDoRe V3 page images, Markdown, and judgments from eight public domains. +- **Provenance details** — [Dataset revisions, preparation, and ColQwen2.5 assets](SOURCES.md) diff --git a/tasks/evolving-personal-memory/README.md b/tasks/evolving-personal-memory/README.md index 234b84a..e23e1e4 100644 --- a/tasks/evolving-personal-memory/README.md +++ b/tasks/evolving-personal-memory/README.md @@ -11,19 +11,16 @@ | Compute | 8 CPUs; 32 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 24000 s | | Dataset | Memora | +| Public queries | 5 | | Hidden queries | 595 | -Retrieve original conversation records and answer questions about a person's history at a specified cutoff. +## Overview -### Overview +Retrieve original conversation records and answer questions about a person's history at a specified cutoff. -Personal facts can change across conversations. A reusable search system -must identify records relevant to a question and its session cutoff, then -answer using only the selected records. +Personal facts can change across conversations. A reusable search system must identify records relevant to a question and its session cutoff, then answer using only the selected records. -Retrieval and answering are separate stages. The verifier loads complete -original records for the IDs returned by search; the answer process has no -access to the full history or index. +Retrieval and answering are separate stages. The verifier loads complete original records for the IDs returned by search; the answer process has no access to the full history or index. ### Task Setup @@ -35,39 +32,23 @@ access to the full history or index. | `data/validation/queries.jsonl` | Five public development questions | | `data/validation/labels.jsonl` | Public memory and forgetting criteria | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs come from [Memora](https://github.com/geniesinc/Memora) at revision -`a6493188efc836d6511ed5e4163fe3ba87da30ff`, released under Apache-2.0. -The histories are synthetic. All 600 original questions are retained: five -public examples and 595 held-out questions. The complete history is shared. +Inputs come from [Memora](https://github.com/geniesinc/Memora) at revision `a6493188efc836d6511ed5e4163fe3ba87da30ff`, released under Apache-2.0. The histories are synthetic. All 600 original questions are retained: five public examples and 595 held-out questions. The complete history is shared. -Source criteria were deduplicated within each question by criterion text, -expected decision and type. No new questions or criteria were generated. -All original task types and time horizons remain in the combined data. +Source criteria were deduplicated within each question by criterion text, expected decision and type. No new questions or criteria were generated. All original task types and time horizons remain in the combined data. #### Fixed Components and Allowed Changes -Conversation records, question cutoffs and the search/answer interfaces are -fixed. Indexing, retrieval and answer organization are implementation choices; -no starter is supplied. Search may return up to 350 unique original records -for the requested person, with session IDs no later than the cutoff. +Conversation records, question cutoffs and the search/answer interfaces are fixed. Indexing, retrieval and answer organization are implementation choices; no starter is supplied. Search may return up to 350 unique original records for the requested person, with session IDs no later than the cutoff. -Only records selected by search become answer-stage inputs. Optional APIs and -stage-specific access follow the [resource policy](environment/docs/available_resources.md). +Only records selected by search become answer-stage inputs. Optional APIs and stage-specific access follow the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and -no GPU. Development has two hours; the verifier has six hours. -Build has 1,800 seconds, and each of two search calls has 1,800 seconds. -Answer processes have 600 seconds each after launch, with up to eight running -concurrently and a shared 7,200-second answer-stage budget. +The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and no GPU. Development has two hours; the verifier has six hours. Build has 1,800 seconds, and each of two search calls has 1,800 seconds. Answer processes have 600 seconds each after launch, with up to eight running concurrently and a shared 7,200-second answer-stage budget. -Records are passed in full. A 350-record request can be approximately 1.08 MB, -and may require more than one permitted model call. +Records are passed in full. A 350-record request can be approximately 1.08 MB, and may require more than one permitted model call. ## Change Log @@ -86,18 +67,9 @@ and may require more than one permitted model call. ### Submission Contract -Submit executable `/app/build.sh`, `/app/search.sh` and `/app/answer.sh` -with their supporting files. Answer-side code and configuration live under -`/app/answer/`. Search returns record IDs; answer receives a JSON request -containing their complete text and returns the query ID and a natural-language -answer. [instruction.md](instruction.md) includes complete interface examples. +Submit executable `/app/build.sh`, `/app/search.sh` and `/app/answer.sh` with their supporting files. Answer-side code and configuration live under `/app/answer/`. Search returns record IDs; answer receives a JSON request containing their complete text and returns the query ID and a natural-language answer. [instruction.md](instruction.md) includes complete interface examples. -Build and search run unprivileged with read-only code and corpus. The supplied -index directory is writable across search calls; its parent is not writable. -Answer processes use separate non-root roles and per-request filesystem -allowlists. They can read only current inputs, answer code, required system -libraries and their own writable workspace. The corpus, index, other requests, -hidden criteria and judge credentials are inaccessible. +Build and search run unprivileged with read-only code and corpus. The supplied index directory is writable across search calls; its parent is not writable. Answer processes use separate non-root roles and per-request filesystem allowlists. They can read only current inputs, answer code, required system libraries and their own writable workspace. The corpus, index, other requests, hidden criteria and judge credentials are inaccessible. The full schema and invocation details are in [instruction.md](instruction.md). @@ -105,69 +77,44 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Three independent judge configurations assess every answer against its memory and forgetting criteria. For each configuration, MPA and FAA are the respective pass rates, lambda is the fraction of forgetting criteria, and FAMA = max(0, MPA - lambda * (1 - FAA)). The answer's quality is the arithmetic mean of these three FAMA values. Raw task quality is the mean across test questions. A failed or incomplete judge call is an evaluation infrastructure failure. -MPA measures passed memory criteria, FAA measures passed forgetting criteria, -and lambda is the fraction of criteria that concern forgetting. +Three independent judge configurations assess every answer against its memory and forgetting criteria. For each configuration, MPA and FAA are the respective pass rates, lambda is the fraction of forgetting criteria, and FAMA = max(0, MPA - lambda * (1 - FAA)). The answer's quality is the arithmetic mean of these three FAMA values. Raw task quality is the mean across test questions. A failed or incomplete judge call is an evaluation infrastructure failure. MPA measures passed memory criteria, FAA measures passed forgetting criteria, and lambda is the fraction of criteria that concern forgetting. ```text FAMA = max(0, MPA - lambda * (1 - FAA)) ``` -Final quality is the mean of the three-judge mean FAMA values over 595 held-out questions. Retrieval IDs assemble the answer request and are not a -separate retrieval-quality metric. Record IDs are not appended to judged answer -text. +Final quality is the mean of the three-judge mean FAMA values over 595 held-out questions. Retrieval IDs assemble the answer request and are not a separate retrieval-quality metric. Record IDs are not appended to judged answer text. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.3712215103709065` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.3712215103709065` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -Executable behavior, eligible record IDs, answer format, query coverage and -stage limits are checked. Build and search stop before answer execution. -Each answer process tree and workspace are removed before its role is reused. -Transport or malformed-response failures in trusted judging invalidate the -measurement and must not be interpreted as model quality. +Executable behavior, eligible record IDs, answer format, query coverage and stage limits are checked. Build and search stop before answer execution. Each answer process tree and workspace are removed before its role is reused. Transport or malformed-response failures in trusted judging invalidate the measurement and must not be interpreted as model quality. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. Answer judges, -where used, are distinct from trajectory auditing. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. Answer judges, where used, are distinct from trajectory auditing. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -Semantic judging additionally uses verifier-only `MEMORA_JUDGE_*` settings -from `task.toml`. These credentials and the trajectory-audit credentials are -not submission resources. +Semantic judging additionally uses verifier-only `MEMORA_JUDGE_*` settings from `task.toml`. These credentials and the trajectory-audit credentials are not submission resources. -The commands below apply in a checkout with this package installed at -`tasks/evolving-personal-memory/`: +The commands below apply in a checkout with this package installed at `tasks/evolving-personal-memory/`: ```bash python scripts/assets/download_assets.py --task evolving-personal-memory @@ -175,11 +122,7 @@ bash scripts/evaluation/run_task.sh --task evolving-personal-memory --agent code --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/evolving-personal-memory/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/evolving-personal-memory/`. ### Task Files @@ -197,4 +140,6 @@ credentials or hardware. Results are written under `jobs/evolving-personal-memor ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [Memora (Findings of ACL 2026)](https://aclanthology.org/2026.findings-acl.1337/) +- **Data source** — Memora conversation histories, questions, and criteria. +- **Provenance details** — [Dataset preparation and usage terms](SOURCES.md) diff --git a/tasks/filtered-ann-retrieval/README.md b/tasks/filtered-ann-retrieval/README.md index c2ad155..05414d1 100644 --- a/tasks/filtered-ann-retrieval/README.md +++ b/tasks/filtered-ann-retrieval/README.md @@ -14,19 +14,15 @@ | Public queries | 10 | | Hidden queries | 30 | -Author: **bingyu**. version: **1.0.0**. Migrated from -`search_swe_bingyu/task-submissions/bingyu/1-x-1` version 0.8.1. +## Overview -Build a persistent Faiss ANN backend returning exact nearest neighbors subject -to conjunctions of metadata tags. CPU only; no embedding model or retrieval API. +Author: **bingyu**. version: **1.0.0**. Migrated from `search_swe_bingyu/task-submissions/bingyu/1-x-1` version 0.8.1. + +Build a persistent Faiss ANN backend returning exact nearest neighbors subject to conjunctions of metadata tags. CPU only; no embedding model or retrieval API. ### Data and provenance -The corpus has 10,000,000 192-dimensional uint8 vectors and CSR metadata with -200,386 tag columns. The public split has ten queries. The hidden split has -30 queries: ten unfiltered, ten single-tag and ten two-tag cases. All 40 public -and hidden query vectors are distinct. A separate 64-document, 17-query example -supports functional development without adding scored cases. +The corpus has 10,000,000 192-dimensional uint8 vectors and CSR metadata with 200,386 tag columns. The public split has ten queries. The hidden split has 30 queries: ten unfiltered, ten single-tag and ten two-tag cases. All 40 public and hidden query vectors are distinct. A separate 64-document, 17-query example supports functional development without adding scored cases. The corpus and small example retain their published pins. The two updated public validation files are published under `tasks/filtered-ann-retrieval/v0.11.0/data/validation/` at immutable revision `234406eb7e304478e48905829fc0d3233f5a9f1f`. Earlier public files remain available. See [SOURCES.md](SOURCES.md) for attribution and source terms. @@ -36,9 +32,7 @@ python scripts/assets/download_assets.py --task filtered-ann-retrieval --verify- python scripts/validation/check_tasks.py tasks/filtered-ann-retrieval ``` -Runtime `data/` is ignored by Git. The agent receives corpus, public examples and -docs. Hidden queries, labels and the grader are copied into the separate verifier -image. Reference implementations remain outside the task package. +Runtime `data/` is ignored by Git. The agent receives corpus, public examples and docs. Hidden queries, labels and the grader are copied into the separate verifier image. Reference implementations remain outside the task package. ## Change Log @@ -54,81 +48,41 @@ Filtering changes the eligible neighbor set for each query. Exact filtered Top-1 ### Interface and scoring -See [instruction.md](instruction.md) and its structured source -[raw-instruction.md](raw-instruction.md). - -- `/app/build.sh --vectors PATH --metadata PATH --index-dir PATH`: build a fresh, - trained Faiss ANN index covering the corpus within 600 seconds. -- `/app/run.sh --index-dir PATH --serve`: load, emit a ready JSON line, and serve - individual JSON requests over stdin/stdout, each within 15 milliseconds. -- Filters use AND semantics; distance is original-vector squared L2. Results must - be complete exact Top-10, ordered by `(distance, doc_id)`. Boundary ties count. - Output contains document IDs; the verifier computes distances independently. -- Each hidden query is checked before and after index relocation. It earns one - only if both responses are correct, timely and identical. The retrieval score - is the mean of 30 binary query scores; the two service passes make 60 requests. -- Request failures affect only that query. Protocol failures trigger a restart - so late replies cannot contaminate later queries. Build, index or service-load - failures invalidate retrieval. The required trajectory audit gates final - reward and fails closed when absent or unsuccessful. - -Timing includes request transmission and response JSON decoding. Service startup -is outside this timer with no independent timeout; the entire retrieval phase -has a 3,900-second supervisor deadline. +See [instruction.md](instruction.md) and its structured source [raw-instruction.md](raw-instruction.md). + +- `/app/build.sh --vectors PATH --metadata PATH --index-dir PATH`: build a fresh, trained Faiss ANN index covering the corpus within 600 seconds. +- `/app/run.sh --index-dir PATH --serve`: load, emit a ready JSON line, and serve individual JSON requests over stdin/stdout, each within 15 milliseconds. +- Filters use AND semantics; distance is original-vector squared L2. Results must be complete exact Top-10, ordered by `(distance, doc_id)`. Boundary ties count. Output contains document IDs; the verifier computes distances independently. +- Each hidden query is checked before and after index relocation. It earns one only if both responses are correct, timely and identical. The retrieval score is the mean of 30 binary query scores; the two service passes make 60 requests. +- Request failures affect only that query. Protocol failures trigger a restart so late replies cannot contaminate later queries. Build, index or service-load failures invalidate retrieval. The required trajectory audit gates final reward and fails closed when absent or unsuccessful. + +Timing includes request transmission and response JSON decoding. Service startup is outside this timer with no independent timeout; the entire retrieval phase has a 3,900-second supervisor deadline. ### Runtime and migration -8 CPUs, 16 GiB RAM, 64 GiB storage, no GPU; implementation time 120 minutes. -Both images use `search-swe-base:cpu-py3.12-1.0.0`. Agent and submitted search code -are offline. The verifier permits OpenRouter solely for the root-side audit; -submission processes use UID 10001, a clean environment and a seccomp network block. - -At build completion, each service restart and the relocation boundary, the -verifier kills and waits for all live processes of the dedicated submission UID, -including detached sessions and live worker threads with an exited leader. -After those processes exit, it removes System V shared memory, message queues -and semaphore sets owned or created by that UID, then verifies none remain. -Unreadable IPC tables, failed removal or residual objects invalidate retrieval. -Index validation accepts only directories and regular files. Service processes -use a Landlock allowlist for `/app`, the current index and system runtime files; -the original corpus remains inaccessible through canonical paths or aliases. -The root verifier retains its own corpus maps without changing read-only mounts. - -The verifier host must support **Landlock ABI 3 or newer** (Linux 6.2+ with -Landlock enabled and its syscalls permitted); the wrapper supports x86-64 and -ARM64. Missing isolation support fails the service load and yields zero reward. -See the [kernel Landlock documentation](https://docs.kernel.org/userspace-api/landlock.html). - -Migration updates the task ID, removes obsolete `metadata.task_type`, pins current -agent CLIs and adopts the repository RewardKit 0.2.0 / DeepSeek V4.1 Flash wrapper. -The original audit criteria, exact-ranking score and latency gates are preserved. -Version 0.10.0 removes unused corpus/config.json, strips implementation advice -from visible docs, and requires IDs only instead of returned distances with a -0.001 tolerance. Binary-format documentation retains only the input schema. -Version 0.10.1 enforces the process, corpus-access and regular-file persistence -boundaries above. Version 0.11.0 changes the query split to ten public and 25 -hidden cases and updates the scoring denominator. It selects five relatively -easier public and twenty harder hidden cases from 27 repeatedly measured broad -filter candidates, using reference-runtime medians as a difficulty proxy. -The verifier clears and verifies System V IPC at each execution boundary using owner-or-creator cleanup. -The instruction, submission interfaces, corpus and time/resource limits are unchanged. +8 CPUs, 16 GiB RAM, 64 GiB storage, no GPU; implementation time 120 minutes. Both images use `search-swe-base:cpu-py3.12-1.0.0`. Agent and submitted search code are offline. The verifier permits OpenRouter solely for the root-side audit; submission processes use UID 10001, a clean environment and a seccomp network block. + +At build completion, each service restart and the relocation boundary, the verifier kills and waits for all live processes of the dedicated submission UID, including detached sessions and live worker threads with an exited leader. After those processes exit, it removes System V shared memory, message queues and semaphore sets owned or created by that UID, then verifies none remain. Unreadable IPC tables, failed removal or residual objects invalidate retrieval. Index validation accepts only directories and regular files. Service processes use a Landlock allowlist for `/app`, the current index and system runtime files; the original corpus remains inaccessible through canonical paths or aliases. The root verifier retains its own corpus maps without changing read-only mounts. + +The verifier host must support **Landlock ABI 3 or newer** (Linux 6.2+ with Landlock enabled and its syscalls permitted); the wrapper supports x86-64 and ARM64. Missing isolation support fails the service load and yields zero reward. See the [kernel Landlock documentation](https://docs.kernel.org/userspace-api/landlock.html). + +Migration updates the task ID, removes obsolete `metadata.task_type`, pins current agent CLIs and adopts the repository RewardKit 0.2.0 / DeepSeek V4.1 Flash wrapper. The original audit criteria, exact-ranking score and latency gates are preserved. Version 0.10.0 removes unused corpus/config.json, strips implementation advice from visible docs, and requires IDs only instead of returned distances with a 0.001 tolerance. Binary-format documentation retains only the input schema. Version 0.10.1 enforces the process, corpus-access and regular-file persistence boundaries above. Version 0.11.0 changes the query split to ten public and 25 hidden cases and updates the scoring denominator. It selects five relatively easier public and twenty harder hidden cases from 27 repeatedly measured broad filter candidates, using reference-runtime medians as a difficulty proxy. The verifier clears and verifies System V IPC at each execution boundary using owner-or-creator cleanup. The instruction, submission interfaces, corpus and time/resource limits are unchanged. ### Validation -See [VALIDATION.md](VALIDATION.md) for executed checks and unrun layers. Detailed -migration reports live outside the package in -`task_development/filtered-ann-retrieval/migration/`. +See [VALIDATION.md](VALIDATION.md) for executed checks and unrun layers. Detailed migration reports live outside the package in `task_development/filtered-ann-retrieval/migration/`. -The 0.11.0 split has local dataset, grader and saved-program replay checks; -it has not received a fresh coding-model run or live judge call. Reference runs -measure raw retrieval; without the required audit, final reward remains zero. -The public assets are published at the immutable revision recorded above. -The recorded v0.11.1 validation has 22 passing grader regression tests and real subprocess IPC -recovery checks; no fresh coding-model trial or live judge call was run for it. +The 0.11.0 split has local dataset, grader and saved-program replay checks; it has not received a fresh coding-model run or live judge call. Reference runs measure raw retrieval; without the required audit, final reward remains zero. The public assets are published at the immutable revision recorded above. The recorded v0.11.1 validation has 22 passing grader regression tests and real subprocess IPC recovery checks; no fresh coding-model trial or live judge call was run for it. See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +### Repeated measurements + +The verifier builds the index once and measures every query five times before relocation and five times after relocation. Each pass starts a fresh service process and clears the index directory's tmp subdirectory. Prepared files are read-only; use the supplied TMPDIR for query-time writes. In each location, the median of the five complete-response times must be at most 15 milliseconds. Each individual measurement has a one-second execution cap. All ten responses must be valid, exact and identical. A query earns one point only when both medians meet the limit and all response checks pass; otherwise it earns zero. Service loading remains outside query timing. + +The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. + +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -140,10 +94,6 @@ bash scripts/evaluation/run_task.sh --task filtered-ann-retrieval --agent codex ## References -- [Data, model and method provenance](SOURCES.md). - -## Repeated measurements - -The verifier builds the index once and measures every query five times before relocation and five times after relocation. Each pass starts a fresh service process and clears the index directory's tmp subdirectory. Prepared files are read-only; use the supplied TMPDIR for query-time writes. In each location, the median of the five complete-response times must be at most 15 milliseconds. Each individual measurement has a one-second execution cap. All ten responses must be valid, exact and identical. A query earns one point only when both medians meet the limit and all response checks pass; otherwise it earns zero. Service loading remains outside query timing. - -The integrity review runs independently three times. Its reported value is the arithmetic mean of the three binary decisions. A positive task reward requires all three reviews to accept the submission. A missing, failed or malformed review is an evaluation infrastructure failure. +- **Task source** — Experience +- **Data source** — YFCC-10M vectors and tags from the [NeurIPS 2023 Big-ANN Filter Track](https://big-ann-benchmarks.com/neurips23.html), with task-specific workloads and exact targets. +- **Provenance details** — [Upstream files, preparation, and usage terms](SOURCES.md) diff --git a/tasks/financial-report-qa/README.md b/tasks/financial-report-qa/README.md index 5f40973..5d60146 100644 --- a/tasks/financial-report-qa/README.md +++ b/tasks/financial-report-qa/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 4236 | -Find the original report passages supporting financial questions over a shared annual-report collection. +## Overview -### Overview +Find the original report passages supporting financial questions over a shared annual-report collection. -An analyst knows what figures need checking but may not know which report -contains them. The system must search a fixed collection and return the exact -original passages needed to verify each financial question. +An analyst knows what figures need checking but may not know which report contains them. The system must search a fixed collection and return the exact original passages needed to verify each financial question. -The task evaluates evidence retrieval. It does not ask the submitted system -to calculate or generate a final financial answer. +The task evaluates evidence retrieval. It does not ask the submitted system to calculate or generate a final financial answer. ### Task Setup @@ -35,33 +32,19 @@ to calculate or generate a final financial answer. | `data/validation/queries.jsonl` | Five public financial questions | | `data/validation/labels.jsonl` | Verified public evidence locations | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Report text and questions come from [DocFinQA](https://huggingface.co/datasets/kensho/DocFinQA). -Human support facts come from [FinQA](https://github.com/czyssrs/FinQA). -The upstream question pool yields 4,241 retained questions and 3,188 exclusions -after ambiguity and evidence-alignment checks. No new questions were generated. +Report text and questions come from [DocFinQA](https://huggingface.co/datasets/kensho/DocFinQA). Human support facts come from [FinQA](https://github.com/czyssrs/FinQA). The upstream question pool yields 4,241 retained questions and 3,188 exclusions after ambiguity and evidence-alignment checks. No new questions were generated. -Five question/evidence examples are public and 4,236 questions are held out. -All 885 reports remain public, including reports without retained evidence. -The 6,610 aligned support facts comprise seven public and 6,603 private units. -Equivalent repeated passages are alternative locations for the same fact. +Five question/evidence examples are public and 4,236 questions are held out. All 885 reports remain public, including reports without retained evidence. The 6,610 aligned support facts comprise seven public and 6,603 private units. Equivalent repeated passages are alternative locations for the same fact. #### Fixed Components and Allowed Changes -The reports, question/evidence split, passage interface and execution limits -are fixed. Document processing, index structure, retrieval and evidence -selection are implementation choices. No starter is supplied. Optional -OpenRouter and Jina services follow the -[resource policy](environment/docs/available_resources.md). +The reports, question/evidence split, passage interface and execution limits are fixed. Document processing, index structure, retrieval and evidence selection are implementation choices. No starter is supplied. Optional OpenRouter and Jina services follow the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and -no GPU. Development has two hours. Index construction has 1,800 seconds; -each of two query calls has 3,600 seconds. +The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and no GPU. Development has two hours. Index construction has 1,800 seconds; each of two query calls has 3,600 seconds. ## Change Log @@ -79,15 +62,9 @@ each of two query calls has 3,600 seconds. ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` plus their supporting -files under `/app`. Queries contain only a query ID and question. Each output -contains up to five ranked evidence spans, with report ID and original Unicode -character offsets. Start is inclusive, end exclusive, and each span is at most -512 characters. +Submit executable `/app/build.sh` and `/app/run.sh` plus their supporting files under `/app`. Queries contain only a query ID and question. Each output contains up to five ranked evidence spans, with report ID and original Unicode character offsets. Start is inclusive, end exclusive, and each span is at most 512 characters. -Submitted commands run as a non-root user with code and corpus read-only. -The supplied index directory stays writable across calls; its parent is not -writable. Generated data use the supplied index, output and temporary paths. +Submitted commands run as a non-root user with code and corpus read-only. The supplied index directory stays writable across calls; its parent is not writable. Generated data use the supplied index, output and temporary paths. The full schema and invocation details are in [instruction.md](instruction.md). @@ -95,66 +72,40 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -For each question, EvidenceRecall@5 is the number of covered reference -evidence units divided by the number of required units. Average these recalls -equally over the 4,236 held-out questions. +For each question, EvidenceRecall@5 is the number of covered reference evidence units divided by the number of required units. Average these recalls equally over the 4,236 held-out questions. -A fact is covered when the union of returned spans in the correct report -completely covers at least one verified location for that fact. Partial overlap -is insufficient. Multiple hits on the same fact do not add credit. Several -facts can fit in one span, and adjacent spans can jointly cover a fact. +A fact is covered when the union of returned spans in the correct report completely covers at least one verified location for that fact. Partial overlap is insufficient. Multiple hits on the same fact do not add credit. Several facts can fit in one span, and adjacent spans can jointly cover a fact. -Evidence locations are aligned to complete FinQA support text and table -context, with checks on numeric values and formatting. They are not inferred -by searching for the expected final answer number. +Evidence locations are aligned to complete FinQA support text and table context, with checks on numeric values and formatting. They are not inferred by searching for the expected final answer number. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.6831800740440966` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.6831800740440966` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query IDs, span count, report IDs, Unicode offsets and the 512-character limit. -Duplicate output rows invalidate their query. Repeated evidence spans do not -increase recall. Completed valid JSONL rows remain usable after a query timeout; -missing or invalid query results score zero. A non-timeout query-command failure -invalidates that call. +The verifier checks successful index construction, executable behavior, query IDs, span count, report IDs, Unicode offsets and the 512-character limit. Duplicate output rows invalidate their query. Repeated evidence spans do not increase recall. Completed valid JSONL rows remain usable after a query timeout; missing or invalid query results score zero. A non-timeout query-command failure invalidates that call. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -The commands below apply in a checkout with this package installed at -`tasks/financial-report-qa/`: +The commands below apply in a checkout with this package installed at `tasks/financial-report-qa/`: ```bash python scripts/assets/download_assets.py --task financial-report-qa @@ -162,11 +113,7 @@ bash scripts/evaluation/run_task.sh --task financial-report-qa --agent codex --o --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/financial-report-qa/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/financial-report-qa/`. ### Task Files @@ -184,4 +131,6 @@ credentials or hardware. Results are written under `jobs/financial-report-qa/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [DocFinQA (ACL 2024)](https://aclanthology.org/2024.acl-short.42/) +- **Data source** — DocFinQA reports and questions aligned with FinQA supporting facts. +- **Provenance details** — [Evidence alignment, input revisions, and usage terms](SOURCES.md) diff --git a/tasks/icsi-meeting-memory/README.md b/tasks/icsi-meeting-memory/README.md index 407eb8d..6739919 100644 --- a/tasks/icsi-meeting-memory/README.md +++ b/tasks/icsi-meeting-memory/README.md @@ -11,21 +11,16 @@ | Compute | 8 CPUs; 8 GiB RAM; 8 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 5400 s | | Dataset | ICSI Meeting Corpus | +| Public queries | 5 | | Hidden queries | 143 | -Build a compact memory and a retrieval-augmented system that answers questions about meeting transcripts. +## Overview -### Overview +Build a compact memory and a retrieval-augmented system that answers questions about meeting transcripts. -The complete meeting history is available during development, but the submitted -system must answer from a finished memory occupying at most five percent of the -dialogue text. Index construction, retrieval and answering run separately. -Only the question and retrieved notes reach the answerer. +The complete meeting history is available during development, but the submitted system must answer from a finished memory occupying at most five percent of the dialogue text. Index construction, retrieval and answering run separately. Only the question and retrieved notes reach the answerer. -The history covers 67 meetings from three series: Bmr (29), Bro (23) and Bed (15). -It contains 53,600 utterances and 719,788 whitespace-delimited words. -The task evaluates both the evidence preserved in memory and the answers -supported by that evidence. +The history covers 67 meetings from three series: Bmr (29), Bro (23) and Bed (15). It contains 53,600 utterances and 719,788 whitespace-delimited words. The task evaluates both the evidence preserved in memory and the answers supported by that evidence. ### Task Setup @@ -38,50 +33,25 @@ supported by that evidence. | `data/validation/ground_truth.jsonl` | Public reference answers and required facts | | `data/validation/evidence.jsonl` | Supporting transcript excerpts | -Public inputs are mounted read-only under `/task/data`. The 143 held-out -questions concern the same history and are disjoint from the five public -examples. Their questions, answers and evidence are in `tests/data/` and -excluded from the agent environment. +Public inputs are mounted read-only under `/task/data`. The 143 held-out questions concern the same history and are disjoint from the five public examples. Their questions, answers and evidence are in `tests/data/` and excluded from the agent environment. -The [ICSI Meeting Corpus](https://groups.inf.ed.ac.uk/ami/icsi/download/) contains -research-meeting recordings and human transcripts. ICSI stands for -International Computer Science Institute; the corpus is described by Janin -et al., *The ICSI Meeting Corpus*, ICASSP 2003. The original -[license notice](ICSI_LICENSE.html) is included. -The 148 question-answer examples were authored for this task, are linked to -transcript evidence, and are not original ICSI annotations. They have not -received independent human certification. +The [ICSI Meeting Corpus](https://groups.inf.ed.ac.uk/ami/icsi/download/) contains research-meeting recordings and human transcripts. ICSI stands for International Computer Science Institute; the corpus is described by Janin et al., *The ICSI Meeting Corpus*, ICASSP 2003. The original [license notice](ICSI_LICENSE.html) is included. The 148 question-answer examples were authored for this task, are linked to transcript evidence, and are not original ICSI annotations. They have not received independent human certification. -The history and public examples are downloaded from immutable Hugging Face -revisions pinned in [assets.json](assets.json). Public validation files are -restored directly under `data/validation/`. +The history and public examples are downloaded from immutable Hugging Face revisions pinned in [assets.json](assets.json). Public validation files are restored directly under `data/validation/`. #### Fixed Components and Allowed Changes -The history, submission interfaces, memory budget and execution limits are -fixed. Memory structure, information selection, indexing, retrieval and -answer generation are implementation choices. No starter is supplied. +The history, submission interfaces, memory budget and execution limits are fixed. Memory structure, information selection, indexing, retrieval and answer generation are implementation choices. No starter is supplied. -Local computation and Jina embedding and reranking APIs are available for memory -preparation and retrieval. Only the answerer may use the four allowed OpenRouter -generation models, subject to the [resource policy](environment/docs/available_resources.md). +Local computation and Jina embedding and reranking APIs are available for memory preparation and retrieval. Only the answerer may use the four allowed OpenRouter generation models, subject to the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The CPU Python 3.12 environment provides eight CPU cores, 8 GiB RAM, -8 GiB storage and no GPU. The agent has two hours; the verifier has 90 minutes. -Both Compose overlays enforce the eight-core quota. +The CPU Python 3.12 environment provides eight CPU cores, 8 GiB RAM, 8 GiB storage and no GPU. The agent has two hours; the verifier has 90 minutes. Both Compose overlays enforce the eight-core quota. -Index construction has 300 seconds. Retrieval across all questions has -150 seconds, and answering has 1,800 seconds. These stage limits do not extend -the overall verifier budget. Each answer permits at most two generation calls, -2,000 output tokens per call and 2,000 Unicode characters in the final text. +Index construction has 300 seconds. Retrieval across all questions has 150 seconds, and answering has 1,800 seconds. These stage limits do not extend the overall verifier budget. Each answer permits at most two generation calls, 2,000 output tokens per call and 2,000 Unicode characters in the final text. -The readable UTF-8 `memory.json` file may occupy at most 183,981 bytes, -five percent of the 3,679,621 dialogue-text bytes. Its formatting and metadata -count toward this limit. The three scripts contain corpus-independent code and -are outside the memory-file budget; the index is built from that memory during -evaluation. +The readable UTF-8 `memory.json` file may occupy at most 183,981 bytes, five percent of the 3,679,621 dialogue-text bytes. Its formatting and metadata count toward this limit. The three scripts contain corpus-independent code and are outside the memory-file budget; the index is built from that memory during evaluation. ## Change Log @@ -100,95 +70,46 @@ evaluation. ### Submission Contract -Deliver exactly `/app/memory.json` and executable `/app/build.sh`, -`/app/run.sh` and `/app/answer.sh`. Each script is self-contained. -The build creates an index from the submitted memory. Search returns a JSON -array of at most ten memory strings for one question, and the answerer returns -plain answer text using only that question and those strings. +Deliver exactly `/app/memory.json` and executable `/app/build.sh`, `/app/run.sh` and `/app/answer.sh`. Each script is self-contained. The build creates an index from the submitted memory. Search returns a JSON array of at most ten memory strings for one question, and the answerer returns plain answer text using only that question and those strings. -The four files are transferred into a separate verifier. Each submitted command -runs as a non-root user with its own stage inputs and writable working directory. -Original transcripts, hidden references and judge credentials are inaccessible -to the submitted commands. Jina and OpenRouter requests use credential-isolated -transports during evaluation. +The four files are transferred into a separate verifier. Each submitted command runs as a non-root user with its own stage inputs and writable working directory. Original transcripts, hidden references and judge credentials are inaccessible to the submitted commands. Jina and OpenRouter requests use credential-isolated transports during evaluation. -See [instruction.md](instruction.md) for the full interface and -[raw-instruction.md](raw-instruction.md) for its structured authoring source. -Only the rewritten instruction and the mounted data and resource documentation -are exposed to the agent. +See [instruction.md](instruction.md) for the full interface and [raw-instruction.md](raw-instruction.md) for its structured authoring source. Only the rewritten instruction and the mounted data and resource documentation are exposed to the agent. ### Evaluation #### Search Quality -For each question, credit requires both an evidence hit and a correct answer. -A hit means that the retrieved notes faithfully preserve at least one relevant -reference fact, including valid summaries or paraphrases. Topic overlap alone -does not count. The answer judge checks the reference answer and required facts. -Evidence is judged without the answer, and the answer is judged without the -retrieved notes. - -Evidence extraction and answer generation each run once per question. The fixed -extracted evidence and fixed answer are each judged three times. In each round, -both judgments must pass for a score of 1; otherwise that round scores 0. The -question score is the arithmetic mean of the three round scores (0, 1/3, 2/3 or 1). -EvidenceGroundedAnswerAccuracy is the mean of these question scores over -143 held-out questions. Judge transport retries do not regenerate the answer -or create additional samples; an exhausted judge failure invalidates the measurement. -Evidence and answer accuracy are also reported separately. Semantic grading -remains subject to model variability. +For each question, credit requires both an evidence hit and a correct answer. A hit means that the retrieved notes faithfully preserve at least one relevant reference fact, including valid summaries or paraphrases. Topic overlap alone does not count. The answer judge checks the reference answer and required facts. Evidence is judged without the answer, and the answer is judged without the retrieved notes. + +Evidence extraction and answer generation each run once per question. The fixed extracted evidence and fixed answer are each judged three times. In each round, both judgments must pass for a score of 1; otherwise that round scores 0. The question score is the arithmetic mean of the three round scores (0, 1/3, 2/3 or 1). EvidenceGroundedAnswerAccuracy is the mean of these question scores over 143 held-out questions. Judge transport retries do not regenerate the answer or create additional samples; an exhausted judge failure invalidates the measurement. Evidence and answer accuracy are also reported separately. Semantic grading remains subject to model variability. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.06293706293706294` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.06293706293706294` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The four files, executable permissions, JSON syntax and size, index build, -script completion and output formats must satisfy the contract. A failed -submitted process or invalid output invalidates the submission. Empty retrieval -is an evidence miss. A malformed judge response or model-service failure -invalidates the measurement rather than establishing model quality. +The four files, executable permissions, JSON syntax and size, index build, script completion and output formats must satisfy the contract. A failed submitted process or invalid output invalidates the submission. Empty retrieval is an evidence miss. A malformed judge response or model-service failure invalidates the measurement rather than establishing model quality. #### Integrity Checks and Final Reward -The evidence and answer judges are separate from the trajectory audit. -The audit checks task compliance and can set the entire reward to zero. -An incomplete audit is an infrastructure failure. - -The trajectory audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through -pinned RewardKit 0.2.0. Evidence and answer judging use the separately configured -`ANSWER_JUDGE_MODEL_NAME`. Submitted build, search and answer processes receive -restricted API transports rather than provider credentials. The separate, -non-root trajectory-audit process holds its own model credential. Its shell-tool -environment filters credential variables, and an inherited Landlock policy -limits filesystem access to read-only audit inputs and runtime files, with -writes confined to audit state and output directories. - -### Running This Task - -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for model -configuration, and the [asset guide](../../docs/evaluation/assets.md) for fixed inputs. - -Optional retrieval calls use `JINA_API_KEY`. The verifier's answerer gateway -requires `OPENROUTER_API_KEY`; configure it even for local-only retrieval. -The CLI and native launcher check this requirement before starting. -Evidence and answer grading use `ANSWER_JUDGE_MODEL_NAME`, `ANSWER_JUDGE_BASE_URL` -and `ANSWER_JUDGE_API_KEY` from the repository `.env`. Trajectory auditing uses `VERIFIER_OPENAI_BASE_URL` -and `VERIFIER_OPENAI_API_KEY`. These are verifier-only credentials and must not -be exposed to submitted programs. +The evidence and answer judges are separate from the trajectory audit. The audit checks task compliance and can set the entire reward to zero. An incomplete audit is an infrastructure failure. + +The trajectory audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0. Evidence and answer judging use the separately configured `ANSWER_JUDGE_MODEL_NAME`. Submitted build, search and answer processes receive restricted API transports rather than provider credentials. The separate, non-root trajectory-audit process holds its own model credential. Its shell-tool environment filters credential variables, and an inherited Landlock policy limits filesystem access to read-only audit inputs and runtime files, with writes confined to audit state and output directories. + +## Running the Task + +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for model configuration, and the [asset guide](../../docs/evaluation/assets.md) for fixed inputs. + +Optional retrieval calls use `JINA_API_KEY`. The verifier's answerer gateway requires `OPENROUTER_API_KEY`; configure it even for local-only retrieval. The CLI and native launcher check this requirement before starting. Evidence and answer grading use `ANSWER_JUDGE_MODEL_NAME`, `ANSWER_JUDGE_BASE_URL` and `ANSWER_JUDGE_API_KEY` from the repository `.env`. Trajectory auditing uses `VERIFIER_OPENAI_BASE_URL` and `VERIFIER_OPENAI_API_KEY`. These are verifier-only credentials and must not be exposed to submitted programs. The commands below run the package at `tasks/icsi-meeting-memory/`. @@ -198,11 +119,7 @@ bash scripts/evaluation/run_task.sh --task icsi-meeting-memory --agent codex --o --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; it does not validate -assets, credentials or API access. Use a fresh output directory for each run. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; it does not validate assets, credentials or API access. Use a fresh output directory for each run. ### Task Files @@ -221,4 +138,6 @@ assets, credentials or API access. Use a fresh output directory for each run. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — Experience +- **Data source** — [ICSI Meeting Corpus](https://groups.inf.ed.ac.uk/ami/icsi/download/) transcripts with task-authored question and evidence examples. +- **Provenance details** — [Transcript preparation, attribution, and usage terms](SOURCES.md) diff --git a/tasks/incremental-vector-search/README.md b/tasks/incremental-vector-search/README.md index 8d73ed6..569550e 100644 --- a/tasks/incremental-vector-search/README.md +++ b/tasks/incremental-vector-search/README.md @@ -10,15 +10,15 @@ | Primary metric | Time-gated logarithmic missed-neighbor reduction over public reference | | Compute | 16 CPUs; 32 GiB RAM; 32 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 86400 s | +| Dataset | Qdrant DBpedia entity embeddings (1,536 and 3,072 dimensions) | +| Public queries | 1,000 per collection | +| Hidden queries | 10,000 per collection | + +## Overview Build an incremental vector index and maximize recall across five retrieval sizes under per-stage time budgets. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -35,6 +35,8 @@ The index must incorporate successive data additions and retain recall across fi For each collection, the verifier performs five independent complete incremental replays at five retrieval sizes, with fresh state and a fresh process for each replay. Each build, insertion and stage/K query gate uses its five-sample median; query quality comes from the replay corresponding to that cell's median time. A missing timing after timeout counts as infinity. Invalid execution or resource violations invalidate the collection. It counts missing exact neighbors, computes logarithmic error reduction over the fixed public reference, and aggregates the two collections. Each collection must pass its build, insertion, query and resource gates. See the [verification contract](raw-instruction.md#verification) for exact formulas, thresholds and failure handling. +## Running the Task + ### Restore inputs The task consumes 28 finished files listed in `assets.json`: 18 public corpus/validation files under `data/` and 10 hidden test files under `tests/data/`. The normal `search-swe run` command restores and verifies all of them. Only the public subdirectories are mounted into the agent; hidden files are mounted into the verifier and trusted preparation container. No original Parquet shards, sampling scripts, external hidden-test archive or data conversion are required. @@ -55,21 +57,13 @@ Completed caches live under ignored `tests/platform//`. A cache key i Public limits and current-runtime public validation are mounted read-only into both phases; prepared hidden targets are verifier-only. Failed preparation stops before the coding agent is launched. Direct container startup checks the supplied preparation and cannot silently reuse a different platform's time limits. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 32 GiB RAM and -32 GiB storage. Agent development has -7200 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 32 GiB RAM and 32 GiB storage. Agent development has 7200 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. This task uses no GPU. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials -are not submission inputs. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials are not submission inputs. Invoke the standard entrypoint directly: @@ -79,9 +73,7 @@ bash scripts/evaluation/run_task.sh --task incremental-vector-search --agent cod --output "jobs/incremental-vector-search-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -90,12 +82,11 @@ python scripts/validation/check_tasks.py tasks/incremental-vector-search python scripts/assets/download_assets.py --task incremental-vector-search --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. ## References -- [Source provenance and usage terms](SOURCES.md) -- [Validation evidence and unrun layers](VALIDATION.md) +- **Task source** — [PAG (ICML 2026)](https://proceedings.mlr.press/v306/lu26y.html) +- **Data source** — Two Qdrant releases of DBpedia entity embeddings, with 1,536 and 3,072 dimensions. +- **Provenance details** — [Dataset revisions, sampling, and usage terms](SOURCES.md) +- **Validation** — [Validation evidence and unrun layers](VALIDATION.md) diff --git a/tasks/instruction-following-embedding/README.md b/tasks/instruction-following-embedding/README.md index b0fbff7..c1b0f70 100644 --- a/tasks/instruction-following-embedding/README.md +++ b/tasks/instruction-following-embedding/README.md @@ -12,14 +12,11 @@ | Agent / verifier time limits | 7200 s / 7200 s | | Dataset | FollowIR Robust04/Core17/News21; topic-disjoint 20-group development and 84-group test partition | +## Overview + Adapt a compact E5-large-v2 query adapter within a 512KiB deployment budget while retaining the fixed base document space. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -40,6 +37,8 @@ Documents are prepared once. Each query/instruction version is measured five tim The primary wrapper allows 5,000 seconds, including up to 3,600 seconds for preparation and 840 one-second query measurements (84 groups × 2 versions × 5). The remaining primary time covers setup, reporting and bounded worker recovery. Primary/audit/finalization wrappers plus kill grace total 7,015 seconds (5,000 + 15 + 1,950 + 15 + 30 + 5), leaving 185 seconds within the 7,200-second verifier limit. `/app` and `/tmp` use disk; the runtime checks their logical file sizes plus mounted data/models against 32 GiB. Artifact collection is a separate phase with its existing 600-second limit. +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -51,22 +50,13 @@ python scripts/assets/download_assets.py --task instruction-following-embedding [assets.json](assets.json) fixes file sizes, hashes and source revisions. Keep verifier inputs outside agent mounts. The three required corpora restore to `data/corpus/{robust04,core17,news21}.jsonl`; processed training data and public validation groups restore to `data/train.jsonl` and `data/validation/dev-groups.json`. Runtime restoration does not download raw preparation inputs or require a preprocessing step. Source and license information is recorded in `DATA_SOURCES.md`. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 32 GiB RAM and -32 GiB storage. Agent development has -7200 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 32 GiB RAM and 32 GiB storage. Agent development has 7200 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. -Both phases use one NVIDIA GPU with support for the fixed CUDA/BF16/SDPA runtime. Use `--gpu-device` to select the same -host GPU for both phases. GPU model and memory capacity are not task requirements; changing hardware still requires runtime and timing validation. +Both phases use one NVIDIA GPU with support for the fixed CUDA/BF16/SDPA runtime. Use `--gpu-device` to select the same host GPU for both phases. GPU model and memory capacity are not task requirements; changing hardware still requires runtime and timing validation. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials -are not submission inputs. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials are not submission inputs. Invoke the standard entrypoint directly: @@ -76,9 +66,7 @@ bash scripts/evaluation/run_task.sh --task instruction-following-embedding --gpu --output "jobs/instruction-following-embedding-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -87,13 +75,12 @@ python scripts/validation/check_tasks.py tasks/instruction-following-embedding python scripts/assets/download_assets.py --task instruction-following-embedding --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device compatible with the task runtime. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -None. +- **Task source** — [FollowIR (NAACL 2025)](https://aclanthology.org/2025.naacl-long.597/) +- **Data source** — FollowIR Robust04, Core17, and News21 with a task-specific topic-disjoint split. +- **Model source** — [intfloat/e5-large-v2](https://huggingface.co/intfloat/e5-large-v2). [Asset manifest](assets.json) diff --git a/tasks/join-aware-table-retrieval/README.md b/tasks/join-aware-table-retrieval/README.md index 45b56b2..cf29cbb 100644 --- a/tasks/join-aware-table-retrieval/README.md +++ b/tasks/join-aware-table-retrieval/README.md @@ -10,8 +10,12 @@ | Primary metric | Complete table-and-join coverage at 5 tables and 6 joins | | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 4800 s | +| Dataset | Spider 1.0 | +| Public queries | 10 | | Hidden queries | 10 | +## Overview + Build a CPU search engine over 1,056 tables in 206 opaque database groups. Given a natural-language question without a database ID, return exactly five tables and at most six public column-level equality relationships. A question scores one only when an acceptable table-and-join plan is completely covered. The raw score is the mean over all hidden questions; the final score additionally requires a healthy, accepting compliance audit. Author: **Bingyu**. ### Corpus and runtime @@ -108,7 +112,7 @@ The three public inputs are pinned in `assets.json` to `search-swe/Search-SWE` r See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -120,8 +124,6 @@ bash scripts/evaluation/run_task.sh --task join-aware-table-retrieval --agent co ## References -### Attribution - -Source: [Spider 1.0](https://yale-lily.github.io/spider), by Tao Yu and collaborators, under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). The captured official archive has 205,800,266 bytes and SHA-256 `00636695dabed6b5f4b8328a16b13e069a2f16591d5efcce57660669c85b121b`. Attribution and adaptation details are in `LICENSE.data.md`. - -- [Task reference](https://arxiv.org/abs/1809.08887). +- **Task source** — [JAR (ACL 2024)](https://aclanthology.org/2024.acl-long.148/) +- **Data source** — [Spider 1.0](https://yale-lily.github.io/spider) ([EMNLP 2018 paper](https://arxiv.org/abs/1809.08887)), by Tao Yu and collaborators, under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). The captured official archive has 205,800,266 bytes and SHA-256 `00636695dabed6b5f4b8328a16b13e069a2f16591d5efcce57660669c85b121b`. +- **Provenance details** — [Attribution, adaptation, and data license](LICENSE.data.md) diff --git a/tasks/khmer-embedding-training/README.md b/tasks/khmer-embedding-training/README.md index fc3a606..e063fa3 100644 --- a/tasks/khmer-embedding-training/README.md +++ b/tasks/khmer-embedding-training/README.md @@ -14,17 +14,13 @@ | Public queries | 3 | | Hidden queries | 1000 | -Adapt a supplied embedding backbone and retrieve English documents for Khmer questions. +## Overview -### Overview +Adapt a supplied embedding backbone and retrieve English documents for Khmer questions. -Cross-language retrieval must connect a Khmer question to an English -document even when they share no words. This task supplies a large English -collection, a multilingual embedding backbone and three examples. +Cross-language retrieval must connect a Khmer question to an English document even when they share no words. This task supplies a large English collection, a multilingual embedding backbone and three examples. -Development can use an additional local generative model. That model is absent -from evaluation, where the trained embedding checkpoint and submitted search -pipeline must operate offline. +Development can use an additional local generative model. That model is absent from evaluation, where the trained embedding checkpoint and submitted search pipeline must operate offline. ### Task Setup @@ -38,31 +34,19 @@ pipeline must operate offline. | `models/multilingual-e5-large/` | Embedding backbone | | `models/Qwen3.5-9B/` | Optional development-only local generative model | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. The three public questions and answers are restored into `data/validation/` from the immutable official HF revision recorded in [assets.json](assets.json). This is a layout change only; their content, IDs and order are unchanged. Corpus and model sources retain their existing upstream pins. -The collection is [BEIR/NQ](https://huggingface.co/datasets/BeIR/nq). -Question and answer aliases originate from filtered MKQA records checked -against the original data. The question pool contains three public examples, -1,000 held-out questions and 5,616 unused questions. +The collection is [BEIR/NQ](https://huggingface.co/datasets/BeIR/nq). Question and answer aliases originate from filtered MKQA records checked against the original data. The question pool contains three public examples, 1,000 held-out questions and 5,616 unused questions. -The supplied backbone is intfloat/multilingual-e5-large, and the optional -generative checkpoint is Qwen/Qwen3.5-9B. Upstream model revisions and restored -files are recorded in [assets.json](assets.json). No extra labeled training -questions are supplied. +The supplied backbone is intfloat/multilingual-e5-large, and the optional generative checkpoint is Qwen/Qwen3.5-9B. Upstream model revisions and restored files are recorded in [assets.json](assets.json). No extra labeled training questions are supplied. #### Fixed Components and Allowed Changes -The embedding backbone architecture, parameter names and shapes, configuration -and tokenizer are fixed. Its weights are trainable. Training-data preparation, -index structure and the retrieval implementation are submission choices. -No starter is supplied, and no external API or network resource is available. +The embedding backbone architecture, parameter names and shapes, configuration and tokenizer are fixed. Its weights are trainable. Training-data preparation, index structure and the retrieval implementation are submission choices. No starter is supplied, and no external API or network resource is available. -The optional generative model is a development resource. Neither it nor an -already built corpus index is transferred as a runtime retrieval resource. +The optional generative model is a development resource. Neither it nor an already built corpus index is transferred as a runtime retrieval resource. #### Environment and Resource Limits @@ -87,17 +71,9 @@ The primary evaluator has 48,000 seconds, covering these 47,100 seconds of candi ### Submission Contract -Submit executable `/app/build.sh`, `/app/run.sh` and the trained checkpoint -under `/app/submission/model/`, including `model.safetensors`, `config.json` -and unchanged tokenizer files. The checkpoint must load locally with standard -Hugging Face AutoModel and AutoTokenizer and without remote code. +Submit executable `/app/build.sh`, `/app/run.sh` and the trained checkpoint under `/app/submission/model/`, including `model.safetensors`, `config.json` and unchanged tokenizer files. The checkpoint must load locally with standard Hugging Face AutoModel and AutoTokenizer and without remote code. -Build creates a fresh collection index before evaluation queries are exposed. -Each query returns 100 unique zero-based corpus positions and finite scores, -ordered by decreasing score and then increasing corpus position for ties. -Build and retrieval run under separate non-root roles with read-only code and -inputs. Unlike the other tasks, the index directory initially does not exist; -its parent is writable. After construction, retrieval sees a read-only index. +Build creates a fresh collection index before evaluation queries are exposed. Each query returns 100 unique zero-based corpus positions and finite scores, ordered by decreasing score and then increasing corpus position for ties. Build and retrieval run under separate non-root roles with read-only code and inputs. Unlike the other tasks, the index directory initially does not exist; its parent is writable. After construction, retrieval sees a read-only index. The full commands and output contract are in [instruction.md](instruction.md). @@ -105,32 +81,22 @@ The full commands and output contract are in [instruction.md](instruction.md). #### Search Quality -Recall@100 uses the source answer-token hit rule: a question succeeds when -at least one of the first 100 retrieved documents contains an accepted answer. -Recall@20 is diagnostic. +Recall@100 uses the source answer-token hit rule: a question succeeds when at least one of the first 100 retrieved documents contains an accepted answer. Recall@20 is diagnostic. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.595` and integer score anchor `a = 15` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.595` and integer score anchor `a = 15` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. The primary evaluation report and finalizer use this same mapping. The stored untrained-backbone Recall@100 of 0.279 is a historical diagnostic, not the score anchor or denominator. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. The primary evaluation report and finalizer use this same mapping. The stored untrained-backbone Recall@100 of 0.279 is a historical diagnostic, not the score anchor or denominator. #### Correctness and Resource Gates -The verifier checks local checkpoint loading, preserved architecture and -tokenizer, a successful fresh build, complete query coverage, 100 valid unique -positions per query, finite sorted scores and time limits. Hidden questions, -answer aliases, the generative model and judge credentials are unavailable -to submitted build and retrieval processes. +The verifier checks local checkpoint loading, preserved architecture and tokenizer, a successful fresh build, complete query coverage, 100 valid unique positions per query, finite sorted scores and time limits. Hidden questions, answer aliases, the generative model and judge credentials are unavailable to submitted build and retrieval processes. #### Integrity Checks and Final Reward @@ -138,21 +104,15 @@ A separate trajectory audit runs once, checks task compliance and gates the qual Recall@100 uses deterministic answer matching. Execution times are diagnostic and subject to hard deadlines; they do not contribute to the quality score. There is no answer-quality LLM judge and no repeated latency metric in this task. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Prepare the GPU runtime and independent trajectory-audit credentials. -Submitted task programs run offline and receive no provider credentials. +Prepare the GPU runtime and independent trajectory-audit credentials. Submitted task programs run offline and receive no provider credentials. -The commands below apply in a checkout with this package installed at -`tasks/khmer-embedding-training/`: +The commands below apply in a checkout with this package installed at `tasks/khmer-embedding-training/`: ```bash python scripts/assets/download_assets.py --task khmer-embedding-training @@ -160,11 +120,7 @@ bash scripts/evaluation/run_task.sh --task khmer-embedding-training --agent code --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/khmer-embedding-training/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/khmer-embedding-training/`. ### Task Files @@ -185,4 +141,6 @@ credentials or hardware. Results are written under `jobs/khmer-embedding-trainin ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [BGE-M3 (Findings of ACL 2024)](https://aclanthology.org/2024.findings-acl.137/) +- **Data source** — Khmer MKQA questions from the BGE-M3 data release and English passages from BEIR Natural Questions. +- **Provenance details** — [Dataset preparation, multilingual E5 checkpoint, and usage terms](SOURCES.md) diff --git a/tasks/large-scale-formula-retrieval/README.md b/tasks/large-scale-formula-retrieval/README.md index a14c477..7ffad72 100644 --- a/tasks/large-scale-formula-retrieval/README.md +++ b/tasks/large-scale-formula-retrieval/README.md @@ -10,17 +10,15 @@ | Primary metric | nDCG_prime | | Compute | 2 CPUs; 4 GiB RAM; 64 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 67800 s | +| Dataset | ARQMath v3 | | Public queries | 5 | | Hidden queries | 76 | +## Overview + Retrieve relevant formulas from the complete ARQMath v3 corpus with 34 MiB prepared artifacts in a 40 MiB serving filesystem and 50 ms CPU queries. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -38,10 +36,15 @@ The verifier builds once and runs five independent serving passes, with fresh pr Candidate deadlines remain 3,600 seconds for building, 120 seconds for each load and 30 seconds for each warmup. The maximum five-pass restart path permits 60,619 seconds of candidate work. The primary supervisor has 66,000 seconds for those stages, cleanup and scoring; the audit wrapper has 1,200 seconds, finalization has 30 seconds and the outer verifier has 67,800 seconds. Normal runs build only once; the larger supervisor budget accommodates the existing per-query recovery policy. -Harbor enforces the agent deadline and transfers the available submission to the -verifier. Agent command completion is not a separate scoring gate: the verifier -checks the submitted build and service normally. Trusted development OOM evidence -remains mandatory, and a recorded memory violation still makes the score zero. +Harbor enforces the agent deadline and transfers the available submission to the verifier. Agent command completion is not a separate scoring gate: the verifier checks the submitted build and service normally. Trusted development OOM evidence remains mandatory, and a recorded memory violation still makes the score zero. + +### Local checks (2026-10-28) + +From `tasks/large-scale-formula-retrieval/tests`, `python -m unittest test_development test_scoring test_ipc_cleanup test_integrity_gate -v` passed all 25 tests. These cover development-gate acceptance without agent completion logs, retained OOM rejection, missing/malformed/private memory evidence, scoring and integrity gates. `scripts/validation/check_tasks.py tasks/large-scale-formula-retrieval`, shell syntax and diff whitespace checks also passed. The instruction, input assets and numeric scoring are unchanged. + +Container isolation/storage tests and evaluation of archived submissions were not run in this revision; they remain follow-up validation. No coding-model run or judge API call was made. + +## Running the Task ### Restore inputs @@ -52,52 +55,23 @@ python scripts/assets/download_assets.py --task large-scale-formula-retrieval python scripts/assets/download_assets.py --task large-scale-formula-retrieval --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model cards, -licenses and data-use restrictions are described in the resource document and -[SOURCES.md](SOURCES.md). +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model cards, licenses and data-use restrictions are described in the resource document and [SOURCES.md](SOURCES.md). Public corpus files restore directly under `data/`; the five public queries and their judgments restore as `data/validation/queries.jsonl` and `data/validation/qrels.tsv`. Existing official HF files, immutable revisions, sizes and hashes are reused without changing data. Historical dataset filenames retain `public/dev/`; those remote filenames do not determine the local restored layout. Host FUSE tools are cached outside public inputs, under `jobs/.task-storage/large-scale-formula-retrieval/.tools/` by default. -### Run +### Launch evaluation -Development logs from the selected harness share the bounded writable filesystem. -After development ends, trusted collection freezes those logs and the private -memory evidence; Harbor prepares the ATIF artifact for the separate verifier. -Expanded archives are checked against the existing 512 MiB diagnostic reserve. -An oversized archive is reported as an infrastructure error, with source logs -retained in the run storage for inspection. +Development logs from the selected harness share the bounded writable filesystem. After development ends, trusted collection freezes those logs and the private memory evidence; Harbor prepares the ATIF artifact for the separate verifier. Expanded archives are checked against the existing 512 MiB diagnostic reserve. An oversized archive is reported as an infrastructure error, with source logs retained in the run storage for inspection. -The task allocates 2 CPU cores, 4 GiB RAM and -64 GiB storage. Agent development has -7200 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 2 CPU cores, 4 GiB RAM and 64 GiB storage. Agent development has 7200 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. This task uses no GPU. Development and the timed final build may optionally use the OpenRouter/Jina APIs listed in [available resources](environment/docs/available_resources.md). Configure `OPENROUTER_API_KEY` and/or `JINA_API_KEY` for the services used; these submission credentials are separate from coding-agent and judge credentials. Follow the [submission API key profile](../../docs/evaluation/submission-models.md). Model-weight and extra-dataset/package downloads are prohibited. Loading, warmup and queries remain offline. API waits count toward the existing time budgets, and stored outputs count toward the existing storage limits. -Use a native Linux x86_64 Docker host with `/dev/fuse`, `mkfs.ext4`, -`dpkg-deb`, Landlock support, and root or sudo access. The standard launcher prepares fresh -bounded agent, verifier and serving storage, chooses 2 logical CPUs from its -available affinity, and unmounts storage after the run's containers exit. -Backing images remain under `jobs/.task-storage/large-scale-formula-retrieval/`. -Set `FORMULA_CPUSET` to preserve a particular 2-CPU allocation when reproducing -a run. See [bounded task storage](../../docs/evaluation/runtime.md#bounded-task-storage) -for host setup, permissions, recovery and caller-managed storage. +Use a native Linux x86_64 Docker host with `/dev/fuse`, `mkfs.ext4`, `dpkg-deb`, Landlock support, and root or sudo access. The standard launcher prepares fresh bounded agent, verifier and serving storage, chooses 2 logical CPUs from its available affinity, and unmounts storage after the run's containers exit. Backing images remain under `jobs/.task-storage/large-scale-formula-retrieval/`. Set `FORMULA_CPUSET` to preserve a particular 2-CPU allocation when reproducing a run. See [bounded task storage](../../docs/evaluation/runtime.md#bounded-task-storage) for host setup, permissions, recovery and caller-managed storage. Both Compose overlays require the selected CPU variable rather than assuming particular host CPU numbers. The standard launcher supplies it automatically. The 40 MiB serving filesystem is an enforced disk quota, not an optional tmpfs allocation; retain it on other supported hosts. CPU selection portability does not guarantee identical 50 ms performance across machines. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -Also configure `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` for the independent -`deepseek/deepseek-v4.1-flash` integrity judge. These credentials are injected only -into the verifier. Its service timeout includes a separate 1200-second audit -allowance; submission phase limits remain unchanged. A positive final reward -requires a successful accepting audit of the protected trajectory and submission. -The audit runs as UID 10002 with a filtered environment and filesystem restrictions. It can read the submission and a protected trajectory copy, write its own scratch/output, and cannot read hidden inputs or modify grading reports. Aggregate, raw and normalized criterion decisions must agree. Missing, malformed or inconsistent audits are infrastructure failures, while a confirmed rejection is a valid zero. -Inspect `audit-status.json`, `audit.json` and `reward-details.json` alongside the -deterministic report; missing or unhealthy audits cannot produce a positive reward. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. Also configure `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` for the independent `deepseek/deepseek-v4.1-flash` integrity judge. These credentials are injected only into the verifier. Its service timeout includes a separate 1200-second audit allowance; submission phase limits remain unchanged. A positive final reward requires a successful accepting audit of the protected trajectory and submission. The audit runs as UID 10002 with a filtered environment and filesystem restrictions. It can read the submission and a protected trajectory copy, write its own scratch/output, and cannot read hidden inputs or modify grading reports. Aggregate, raw and normalized criterion decisions must agree. Missing, malformed or inconsistent audits are infrastructure failures, while a confirmed rejection is a valid zero. Inspect `audit-status.json`, `audit.json` and `reward-details.json` alongside the deterministic report; missing or unhealthy audits cannot produce a positive reward. Invoke the standard entrypoint directly: @@ -107,9 +81,7 @@ bash scripts/evaluation/run_task.sh --task large-scale-formula-retrieval --agent --output "jobs/large-scale-formula-retrieval-codex-openrouter-luna-max" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -118,27 +90,10 @@ python scripts/validation/check_tasks.py tasks/large-scale-formula-retrieval python scripts/assets/download_assets.py --task large-scale-formula-retrieval --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. - -### Local checks (2026-10-28) - -From `tasks/large-scale-formula-retrieval/tests`, -`python -m unittest test_development test_scoring test_ipc_cleanup test_integrity_gate -v` -passed all 25 tests. These cover development-gate acceptance without agent completion logs, retained -OOM rejection, missing/malformed/private memory evidence, scoring and integrity -gates. `scripts/validation/check_tasks.py tasks/large-scale-formula-retrieval`, shell syntax -and diff whitespace checks also passed. The instruction, input assets and -numeric scoring are unchanged. - -Container isolation/storage tests and evaluation of archived submissions were -not run in this revision; they remain follow-up validation. No coding-model run -or judge API call was made. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. ## References -- [Task reference](https://aclanthology.org/2026.findings-acl.1277/). - -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [MaRF (Findings of ACL 2026)](https://aclanthology.org/2026.findings-acl.1277/) +- **Data source** — ARQMath formulas, forum posts, topics, and relevance judgments. +- **Provenance details** — [Original archives, corpus transformation, and usage terms](SOURCES.md) diff --git a/tasks/layout-page-search/README.md b/tasks/layout-page-search/README.md index 4ab9b86..1a353b3 100644 --- a/tasks/layout-page-search/README.md +++ b/tasks/layout-page-search/README.md @@ -14,17 +14,13 @@ | Public queries | 5 | | Hidden queries | 515 | -Find the complete set of supporting pages within a specified visual document. +## Overview -### Overview +Find the complete set of supporting pages within a specified visual document. -A question about a chart, figure or page layout may require more than one -page of evidence. The system must return a compact set of pages that together -support the question within the document named by the request. +A question about a chart, figure or page layout may require more than one page of evidence. The system must return a compact set of pages that together support the question within the document named by the request. -The task evaluates page selection rather than answer generation. The document -is supplied in the query; it is not a collection-wide document-identification -task. +The task evaluates page selection rather than answer generation. The document is supplied in the query; it is not a collection-wide document-identification task. ### Task Setup @@ -37,35 +33,21 @@ task. | `models/page-encoder/` | ColQwen2.5 adapter and processor | | `models/vision-backbone/` | Compatible local retrieval backbone | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Questions and original evidence-page annotations come from MMLongBench-Doc -through the [DocLens dataset release](https://huggingface.co/datasets/dwzhu/DocLensDatasets). -Retained questions have chart, figure or generalized-text/layout evidence, -existing evidence pages and a complete reference page set within ten pages. +Questions and original evidence-page annotations come from MMLongBench-Doc through the [DocLens dataset release](https://huggingface.co/datasets/dwzhu/DocLensDatasets). Retained questions have chart, figure or generalized-text/layout evidence, existing evidence pages and a complete reference page set within ten pages. -The resulting 520 unchanged questions are split into five public examples and -515 held-out questions. All 119 documents are shared. The source annotations -identify visual evidence, but do not certify that text-only retrieval must fail. -This task overlaps the document source used by -`visual-document-qa`; the output and metric differ. +The resulting 520 unchanged questions are split into five public examples and 515 held-out questions. All 119 documents are shared. The source annotations identify visual evidence, but do not certify that text-only retrieval must fail. This task overlaps the document source used by `visual-document-qa`; the output and metric differ. #### Fixed Components and Allowed Changes -The corpus, specified document, evidence labels and output interface are fixed. -Supplied encoder weights remain fixed. At most 40 pages per query may receive -query-dependent token, region or learned pairwise comparisons. +The corpus, specified document, evidence labels and output interface are fixed. Supplied encoder weights remain fixed. At most 40 pages per query may receive query-dependent token, region or learned pairwise comparisons. -Representations, index structure and page selection are implementation choices. -No precomputed vectors, starter or external API resource is supplied. +Representations, index structure and page selection are implementation choices. No precomputed vectors, starter or external API resource is supplied. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -GPU. Development has six hours. Build has 3,600 seconds; each of two query -calls has 2,700 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one GPU. Development has six hours. Build has 3,600 seconds; each of two query calls has 2,700 seconds. ## Change Log @@ -83,13 +65,9 @@ calls has 2,700 seconds. ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Return up to ten distinct page IDs from the specified document, -with finite nonincreasing scores. No answer text or bounding box is required. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Return up to ten distinct page IDs from the specified document, with finite nonincreasing scores. No answer text or bounding box is required. -Commands run as a non-root user with code and inputs read-only. The supplied -index directory remains writable across calls, while its parent is not writable. -Use the supplied index, output, cache and temporary paths for generated files. +Commands run as a non-root user with code and inputs read-only. The supplied index directory remains writable across calls, while its parent is not writable. Use the supplied index, output, cache and temporary paths for generated files. The full schema and invocation details are in [instruction.md](instruction.md). @@ -97,60 +75,38 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -For each question, compute set F1 between the returned pages and the complete -original evidence-page set. Quality is mean F1 over 515 held-out questions. - Domain means are diagnostic. +For each question, compute set F1 between the returned pages and the complete original evidence-page set. Quality is mean F1 over 515 held-out questions. Domain means are diagnostic. -The set metric penalizes both missing evidence and extra pages. Returning the -complete annotated evidence set achieves full per-query credit. It does not -measure answer accuracy or bounding-box localization. +The set metric penalizes both missing evidence and extra pages. Returning the complete annotated evidence set achieves full per-query credit. It does not measure answer accuracy or bounding-box localization. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.5734305608092015` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.5734305608092015` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Prepare the GPU runtime and independent trajectory-audit credentials. -Submitted task programs run offline and receive no provider credentials. +Prepare the GPU runtime and independent trajectory-audit credentials. Submitted task programs run offline and receive no provider credentials. -The commands below apply in a checkout with this package installed at -`tasks/layout-page-search/`: +The commands below apply in a checkout with this package installed at `tasks/layout-page-search/`: ```bash python scripts/assets/download_assets.py --task layout-page-search @@ -158,11 +114,7 @@ bash scripts/evaluation/run_task.sh --task layout-page-search --agent codex --op --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/layout-page-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/layout-page-search/`. ### Task Files @@ -182,4 +134,6 @@ credentials or hardware. Results are written under `jobs/layout-page-search/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [AGREE (SIGIR 2026)](https://doi.org/10.1145/3805712.3809532) +- **Data source** — MMLongBench-Doc pages and evidence annotations from DocLensDatasets. +- **Provenance details** — [Evidence selection, ColQwen2.5 assets, and usage terms](SOURCES.md) diff --git a/tasks/legal-stance-retrieval/README.md b/tasks/legal-stance-retrieval/README.md index 246ea5d..7c1359f 100644 --- a/tasks/legal-stance-retrieval/README.md +++ b/tasks/legal-stance-retrieval/README.md @@ -10,13 +10,12 @@ | Primary metric | Baseline-normalized mean NDCG@10 | | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 20100 s | +| Dataset | CaseFacts | | Hidden queries | 311 | -Given a legal claim and `supported`, `refuted` or `all`, retrieve ten ranked -court-summary document IDs. `all` is the union of both evidence directions; -either direction can be absent. This is retrieval over recorded majority -holdings in a fixed snapshot, not a current-law validity check or verdict -classification. The supplied Qwen3-Embedding-0.6B and public examples are available to the search system. Designated preparation/retrieval APIs remain permitted. +## Overview + +Given a legal claim and `supported`, `refuted` or `all`, retrieve ten ranked court-summary document IDs. `all` is the union of both evidence directions; either direction can be absent. This is retrieval over recorded majority holdings in a fixed snapshot, not a current-law validity check or verdict classification. The supplied Qwen3-Embedding-0.6B and public examples are available to the search system. Designated preparation/retrieval APIs remain permitted. ### Frozen data and metric @@ -28,46 +27,20 @@ classification. The supplied Qwen3-Embedding-0.6B and public examples are availa | Hidden inputs | 311 | | Hidden positive query-document pairs | 732 | -All 311 inputs come from the quality-reviewed original official test. There is -no difficulty threshold, authored-query replacement or per-baseline filtering. -The 457 original binary test rows were resolved as 311 retained, 123 excluded -for source/query problems, 21 quarantined and two duplicate propositions removed. -Forty-three Overruled source rows are outside this binary stance task. Retained -claims preserve their original wording. The test stances are 130 supported, -80 refuted and 101 all. The corpus remains byte-identical to the frozen -screening corpus, including original metadata, opaque IDs and shuffled order. - -Public training uses the original positive evidence seeds after removing -19 reviewed near-equivalent training propositions and both of their input -variants. Labels have not been exhaustively corrected: cleaning and splitting -these public examples is part of the task. No additional validation set is -removed from these 5,318 propositions. The task exposes no hidden queries or -review artifacts in public mounts. Training/test cases can overlap, while the -reviewed duplicate propositions were removed; this is not case-disjoint testing. - -The primary raw metric is mean **binary document-ID NDCG@10**. Relevant documents -have gain 1, other returned IDs gain 0. Ideal DCG uses the first `min(10, |gold|)` -relevant positions. Each query has nonempty qrels. Output order determines rank; -score ties do not require a separate sorting rule. Different document IDs are -scored separately, including records with the same case name. Duplicate IDs in -one answer invalidate the output. +All 311 inputs come from the quality-reviewed original official test. There is no difficulty threshold, authored-query replacement or per-baseline filtering. The 457 original binary test rows were resolved as 311 retained, 123 excluded for source/query problems, 21 quarantined and two duplicate propositions removed. Forty-three Overruled source rows are outside this binary stance task. Retained claims preserve their original wording. The test stances are 130 supported, 80 refuted and 101 all. The corpus remains byte-identical to the frozen screening corpus, including original metadata, opaque IDs and shuffled order. + +Public training uses the original positive evidence seeds after removing 19 reviewed near-equivalent training propositions and both of their input variants. Labels have not been exhaustively corrected: cleaning and splitting these public examples is part of the task. No additional validation set is removed from these 5,318 propositions. The task exposes no hidden queries or review artifacts in public mounts. Training/test cases can overlap, while the reviewed duplicate propositions were removed; this is not case-disjoint testing. + +The primary raw metric is mean **binary document-ID NDCG@10**. Relevant documents have gain 1, other returned IDs gain 0. Ideal DCG uses the first `min(10, |gold|)` relevant positions. Each query has nonempty qrels. Output order determines rank; score ties do not require a separate sorting rule. Different document IDs are scored separately, including records with the same case name. Duplicate IDs in one answer invalidate the output. ``` B = 0.5610484855098774 reward = max(0, min(1, (mean_ndcg_at_10 - B) / (1 - B))) ``` -Normalize after taking the mean. The anchor comes from the unfinetuned local -0.6B serial run rescored on the frozen 311 inputs and reviewed qrels. Its model, -corpus, query, qrels and output fingerprints are in -[tests/data/normalization.json](tests/data/normalization.json). Do not silently -change these inputs or replace B with a rounded value. Minor fresh-run numerical -variation does not change this fixed reward reference. +Normalize after taking the mean. The anchor comes from the unfinetuned local 0.6B serial run rescored on the frozen 311 inputs and reviewed qrels. Its model, corpus, query, qrels and output fingerprints are in [tests/data/normalization.json](tests/data/normalization.json). Do not silently change these inputs or replace B with a rounded value. Minor fresh-run numerical variation does not change this fixed reward reference. -The reviewed evidence is pooled annotation, not exhaustive expert certification -of every corpus pair. Added positives have explicit author-agent decisions. -Machine-neutral and out-of-pool pairs are not exhaustively adjudicated. Original -training labels remain noisy. The task retains these documented limitations. +The reviewed evidence is pooled annotation, not exhaustive expert certification of every corpus pair. Added positives have explicit author-agent decisions. Machine-neutral and out-of-pool pairs are not exhaustively adjudicated. Original training labels remain noisy. The task retains these documented limitations. ## Change Log @@ -83,65 +56,23 @@ A precedent can be topically relevant while expressing the wrong stance. The sys ### Execution and resources -The agent receives 16 CPUs, 32 GiB RAM, 100 GiB storage, one NVIDIA GPU and a -6-hour development phase. Both images use the standard GPU base. -`/app/build.sh` receives `--corpus` and `--index-dir`, with a 3,600-second build -budget. `/app/run.sh` receives `--index-dir`, `--queries`, `--output` and -`--top-k 10`. All hidden inputs are passed in one batch with a **20-second wall-clock deadline**, including command startup/loading, API waits and writing. Evaluate five rounds with the same query order, rebuilding from an empty index directory and restarting services each round; submission-owned IPC is cleared between rounds, while operating-system file caches are not flushed. Score the rankings from the median-time batch, with failed, late or invalid batches ordered last and timing ties broken by round order. Fewer than three successful batches gives zero. Each build retains its 3,600-second deadline; any build failure gives zero. The primary wrapper has 18,600 seconds and the outer verifier 20,100 seconds to cover five rounds and the existing single audit/finalization stages. -There is no per-query or network extension. Build-started services may persist within a round; -agent-container services do not transfer to the separate verifier. Learned -weights and implementation files must be under the transferred `/app`. - -The verifier mounts only the fixed corpus, local model and resource docs. -It stages query text only after build completion and runs submission commands -as UID 10001 with a filtered environment. `/app` is read-only to that UID; -the index and result locations are writable. Hidden labels, grading code, -trajectory and reward paths are root-owned. A failed build gives total zero. Failed commands, invalid results and batch timeouts count as unsuccessful attempts in the five-round selection; no partial batch receives credit. The single audit must have matching aggregate, raw and normalized decisions and complete judge output. Missing or inconsistent audit details produce zero and a nonzero verifier exit; a consistent rejection is a valid zero. -The required DeepSeek trajectory audit remains separate from deterministic -ranking quality and fails closed. No training recipe or minimum weight-change -threshold is imposed by the audit; an honest baseline is a valid zero-improvement -submission. Optional task API credentials are shared `OPENROUTER_API_KEY` and -`JINA_API_KEY`; judge keys are never passed to submission commands. +The agent receives 16 CPUs, 32 GiB RAM, 100 GiB storage, one NVIDIA GPU and a 6-hour development phase. Both images use the standard GPU base. `/app/build.sh` receives `--corpus` and `--index-dir`, with a 3,600-second build budget. `/app/run.sh` receives `--index-dir`, `--queries`, `--output` and `--top-k 10`. All hidden inputs are passed in one batch with a **20-second wall-clock deadline**, including command startup/loading, API waits and writing. Evaluate five rounds with the same query order, rebuilding from an empty index directory and restarting services each round; submission-owned IPC is cleared between rounds, while operating-system file caches are not flushed. Score the rankings from the median-time batch, with failed, late or invalid batches ordered last and timing ties broken by round order. Fewer than three successful batches gives zero. Each build retains its 3,600-second deadline; any build failure gives zero. The primary wrapper has 18,600 seconds and the outer verifier 20,100 seconds to cover five rounds and the existing single audit/finalization stages. There is no per-query or network extension. Build-started services may persist within a round; agent-container services do not transfer to the separate verifier. Learned weights and implementation files must be under the transferred `/app`. + +The verifier mounts only the fixed corpus, local model and resource docs. It stages query text only after build completion and runs submission commands as UID 10001 with a filtered environment. `/app` is read-only to that UID; the index and result locations are writable. Hidden labels, grading code, trajectory and reward paths are root-owned. A failed build gives total zero. Failed commands, invalid results and batch timeouts count as unsuccessful attempts in the five-round selection; no partial batch receives credit. The single audit must have matching aggregate, raw and normalized decisions and complete judge output. Missing or inconsistent audit details produce zero and a nonzero verifier exit; a consistent rejection is a valid zero. The required DeepSeek trajectory audit remains separate from deterministic ranking quality and fails closed. No training recipe or minimum weight-change threshold is imposed by the audit; an honest baseline is a valid zero-improvement submission. Optional task API credentials are shared `OPENROUTER_API_KEY` and `JINA_API_KEY`; judge keys are never passed to submission commands. ### Provenance and local assets -The source is [IDIRLab/CaseFacts](https://github.com/idirlab/CaseFacts), downloaded -at repository snapshot `16a4072067c39daa463495e10e3bb029c29beb5b`. -Its downloaded README advertises **CC BY-NC 4.0**; GitHub's license field was -unset. Retain attribution and the noncommercial restriction when distributing -these derived data. The case summaries originate from Oyez, as retained in -original record metadata. See [source and annotation record](VALIDATION.md#source-and-annotation-record) for exact input hashes, -transformations and licensing scope. This package is an adaptation, not the -original paper's task, scoring implementation or official benchmark release. -Dataset branding and author-side audit material are kept outside agent docs. - -The model is Qwen/Qwen3-Embedding-0.6B (Apache-2.0), pinned to -`97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3`; all local bytes were verified against -the pinned inventory. Runtime corpus/example/model files are restored under -ignored `data/` and `models/`. Hidden test files are copied only into the -verifier image. +The source is [IDIRLab/CaseFacts](https://github.com/idirlab/CaseFacts), downloaded at repository snapshot `16a4072067c39daa463495e10e3bb029c29beb5b`. Its downloaded README advertises **CC BY-NC 4.0**; GitHub's license field was unset. Retain attribution and the noncommercial restriction when distributing these derived data. The case summaries originate from Oyez, as retained in original record metadata. See [source and annotation record](VALIDATION.md#source-and-annotation-record) for exact input hashes, transformations and licensing scope. This package is an adaptation, not the original paper's task, scoring implementation or official benchmark release. Dataset branding and author-side audit material are kept outside agent docs. + +The model is Qwen/Qwen3-Embedding-0.6B (Apache-2.0), pinned to `97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3`; all local bytes were verified against the pinned inventory. Runtime corpus/example/model files are restored under ignored `data/` and `models/`. Hidden test files are copied only into the verifier image. Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [recorded model run](VALIDATION.md#recorded-model-run) for historical run evidence and publication status. Existing source terms and attribution remain applicable. ### Structural precedents and validation -The reviewed `tasks/query-encoder-alignment` and -`tasks/reasoning-query-rewriting` packages at checkout -`46197a43f8cbb364e72b6d63d5db873ae7d2cac8` supply the GPU/model mounts and -build/run search interface respectively. The existing -`tasks/negative-constraint-retrieval` package supplies the already-inspected -unprivileged execution and judge transport pattern; it was an untracked local -package, not claimed as a merged precedent. Intentional differences are a -trainable 0.6B backbone, a whole-suite deadline, no fixed public validation -holdout, and baseline-normalized NDCG. There is no starter or reference solution -inside the task package. - -Use [VALIDATION.md](VALIDATION.md) for commands, measured execution, negative-case -checks and outstanding release/model-evaluation layers. The instruction rewrite -keeps fenced build/run examples because the user explicitly requested that format; -this overrides the skill's generic prose-only convention. All source obligations -were checked against the request and grader; see -[instruction contract review](VALIDATION.md#instruction-contract-review). +The reviewed `tasks/query-encoder-alignment` and `tasks/reasoning-query-rewriting` packages at checkout `46197a43f8cbb364e72b6d63d5db873ae7d2cac8` supply the GPU/model mounts and build/run search interface respectively. The existing `tasks/negative-constraint-retrieval` package supplies the already-inspected unprivileged execution and judge transport pattern; it was an untracked local package, not claimed as a merged precedent. Intentional differences are a trainable 0.6B backbone, a whole-suite deadline, no fixed public validation holdout, and baseline-normalized NDCG. There is no starter or reference solution inside the task package. + +Use [VALIDATION.md](VALIDATION.md) for commands, measured execution, negative-case checks and outstanding release/model-evaluation layers. The instruction rewrite keeps fenced build/run examples because the user explicitly requested that format; this overrides the skill's generic prose-only convention. All source obligations were checked against the request and grader; see [instruction contract review](VALIDATION.md#instruction-contract-review). ### Instruction revision 0.1.1 @@ -155,7 +86,7 @@ Public examples are now under `/task/data/examples`, with `queries.jsonl` and `g See [recorded model run](VALIDATION.md#recorded-model-run) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -169,4 +100,7 @@ bash scripts/evaluation/run_task.sh --task legal-stance-retrieval --agent codex ## References -- [Data, model and method provenance](VALIDATION.md#source-and-annotation-record). +- **Task source** — [CaseFacts (ACL 2026)](https://aclanthology.org/2026.acl-long.785/) +- **Data source** — [CaseFacts](https://github.com/idirlab/CaseFacts) court documents and task-reviewed stance judgments. +- **Model source** — [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B). +- **Provenance details** — [Source revisions, annotation history, and usage terms](SOURCES.md) diff --git a/tasks/legal-stance-retrieval/SOURCES.md b/tasks/legal-stance-retrieval/SOURCES.md new file mode 100644 index 0000000..f2bc8de --- /dev/null +++ b/tasks/legal-stance-retrieval/SOURCES.md @@ -0,0 +1,56 @@ +# Sources and Preparation + +## Source and annotation record + +Upstream repository [CaseFacts](https://github.com/idirlab/CaseFacts). + +Downloaded commit: `16a4072067c39daa463495e10e3bb029c29beb5b`. +The downloaded repository README identifies the paper as *CaseFacts: A Benchmark +for Legal Fact-Checking and Precedent Retrieval*, links IDIRLab/CaseFacts on +Hugging Face and advertises CC BY-NC 4.0. The collected GitHub repository metadata +has `license: null`; this is not a basis for claiming unrestricted redistribution. +Preserve the source attribution and noncommercial notice for derived data. +The source's case summaries retain Oyez URLs and original metadata. No new +court facts or precise decision dates were invented. + +| Original file | SHA-256 | +| --- | --- | +| `supreme_court_cases.json` | `fbbc56fb34a0d5b2b7303d22d88699b2e6edac71d40aa09d3d5b9d230bcf47a5` | +| `train.json` | `c3bddcb5c520824cb8b6dd612830e1095bf4041e0de7b7f03cb40456aef45936` | +| `test.json` | `57823bf939cec038d813ab75d8a4a79b411e4b3207fa83f2dfbedde2d32864c2` | + +The full corpus is the earlier deterministic shuffled JSONL conversion: all +3,126 source records, stable opaque IDs, all original source fields and rendered +case/term/facts/question/conclusion text. Its SHA-256 is +`5e83cadbf0d47762a1a3aadb0883aaed6ce5d155206c22b4b6c1d89523cb8fc5`. +The model card declares Apache-2.0 for Qwen3-Embedding-0.6B. Exact model file pins +and hashes are in `assets.json`. + +The annotation lineage is retained outside agent mounts at +`task_development/legal-precedent-retrieval/screening/official-test-cleaning`: + +- `cleaned/manifest.jsonl` accounts for every original binary test row. +- `agent-source-decisions.json` and `agent-pair-decisions.json` distinguish final + review decisions from raw local model proposals. +- `cleaned/test/evidence.jsonl` retains accepted stance, original case text and + reasons; `cleaned/test-cases.md` is the readable review record. +- `training-overlap-decisions.jsonl` and `test-dedup-decisions.json` record the + reviewed proposition exclusions without removing every shared case. +- `cleaned/validation.json` and `checksums.json` preserve export verification. + +Packaging copies the accepted test query/qrels bytes unchanged. Training query +rows retain only `query_id`, `query`, `stance`; original positive document-ID +seeds become binary `relevance` maps. The original training labels are not +claimed as fully corrected. An `all` training example therefore has the same +known positive seeds as its source direction, not a guarantee of exhaustive +support/refutation coverage. Training and all-mode variants remain associated +through their input IDs for agent-chosen splitting. + +The 311 frozen test propositions are quality-selected, not selected for poor +model scores. Binary relevance reflects recorded majority holdings even when a +historical rule later changed. These judgments do not certify current legal +validity. All accepted positives have explicit review decisions, but unreviewed +pairs can still contain missed positives; the metric uses the frozen pooled +qrels and treats other IDs as zero gain. The original packaging step did not publish data or model assets; later publication status is recorded in [the validation history](VALIDATION.md#recorded-model-run) and pinned in [assets.json](assets.json). + +Public packaging now uses `data/examples`. The source query ID prefix `train_` is replaced bijectively by `example_` in both examples files. Original source IDs remain in the author audit; no query text, stance, case ID or relevance map changes. The frozen hidden query IDs and qrels are untouched. diff --git a/tasks/legal-stance-retrieval/VALIDATION.md b/tasks/legal-stance-retrieval/VALIDATION.md index 45e1820..aba12a3 100644 --- a/tasks/legal-stance-retrieval/VALIDATION.md +++ b/tasks/legal-stance-retrieval/VALIDATION.md @@ -210,58 +210,7 @@ The verifier and frozen hidden inputs were fingerprint-compared against the prev # Source and annotation record -Upstream repository: https://github.com/idirlab/CaseFacts - -Downloaded commit: `16a4072067c39daa463495e10e3bb029c29beb5b`. -The downloaded repository README identifies the paper as *CaseFacts: A Benchmark -for Legal Fact-Checking and Precedent Retrieval*, links IDIRLab/CaseFacts on -Hugging Face and advertises CC BY-NC 4.0. The collected GitHub repository metadata -has `license: null`; this is not a basis for claiming unrestricted redistribution. -Preserve the source attribution and noncommercial notice for derived data. -The source's case summaries retain Oyez URLs and original metadata. No new -court facts or precise decision dates were invented. - -| Original file | SHA-256 | -| --- | --- | -| `supreme_court_cases.json` | `fbbc56fb34a0d5b2b7303d22d88699b2e6edac71d40aa09d3d5b9d230bcf47a5` | -| `train.json` | `c3bddcb5c520824cb8b6dd612830e1095bf4041e0de7b7f03cb40456aef45936` | -| `test.json` | `57823bf939cec038d813ab75d8a4a79b411e4b3207fa83f2dfbedde2d32864c2` | - -The full corpus is the earlier deterministic shuffled JSONL conversion: all -3,126 source records, stable opaque IDs, all original source fields and rendered -case/term/facts/question/conclusion text. Its SHA-256 is -`5e83cadbf0d47762a1a3aadb0883aaed6ce5d155206c22b4b6c1d89523cb8fc5`. -The model card declares Apache-2.0 for Qwen3-Embedding-0.6B. Exact model file pins -and hashes are in `assets.json`. - -The annotation lineage is retained outside agent mounts at -`task_development/legal-precedent-retrieval/screening/official-test-cleaning`: - -- `cleaned/manifest.jsonl` accounts for every original binary test row. -- `agent-source-decisions.json` and `agent-pair-decisions.json` distinguish final - review decisions from raw local model proposals. -- `cleaned/test/evidence.jsonl` retains accepted stance, original case text and - reasons; `cleaned/test-cases.md` is the readable review record. -- `training-overlap-decisions.jsonl` and `test-dedup-decisions.json` record the - reviewed proposition exclusions without removing every shared case. -- `cleaned/validation.json` and `checksums.json` preserve export verification. - -Packaging copies the accepted test query/qrels bytes unchanged. Training query -rows retain only `query_id`, `query`, `stance`; original positive document-ID -seeds become binary `relevance` maps. The original training labels are not -claimed as fully corrected. An `all` training example therefore has the same -known positive seeds as its source direction, not a guarantee of exhaustive -support/refutation coverage. Training and all-mode variants remain associated -through their input IDs for agent-chosen splitting. - -The 311 frozen test propositions are quality-selected, not selected for poor -model scores. Binary relevance reflects recorded majority holdings even when a -historical rule later changed. These judgments do not certify current legal -validity. All accepted positives have explicit review decisions, but unreviewed -pairs can still contain missed positives; the metric uses the frozen pooled -qrels and treats other IDs as zero gain. The original packaging step did not publish data or model assets; the later publication status is recorded below and pinned in `assets.json`. - -Public packaging now uses `data/examples`. The source query ID prefix `train_` is replaced bijectively by `example_` in both examples files. Original source IDs remain in the author audit; no query text, stance, case ID or relevance map changes. The frozen hidden query IDs and qrels are untouched. +See [source and annotation record](SOURCES.md#source-and-annotation-record). # Recorded model run diff --git a/tasks/lightweight-query-retrieval/README.md b/tasks/lightweight-query-retrieval/README.md index b489944..dbd6e60 100644 --- a/tasks/lightweight-query-retrieval/README.md +++ b/tasks/lightweight-query-retrieval/README.md @@ -11,14 +11,14 @@ | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 4500 s | | Dataset | BEIR SciFact, NFCorpus and FiQA; author-released LightRetriever examples | +| Public queries | 0 | | Hidden queries | 1271 | +## Overview + Author: Bingyu. Built with Llama. -Build a fast batch retrieval service, subject to a required search-quality -threshold. The agent receives the original Llama-3.2-1B base model and 80,000 -original labeled examples. The task does not supply a trained retrieval model, -reference implementation, prebuilt index, or test answers. +Build a fast batch retrieval service, subject to a required search-quality threshold. The agent receives the original Llama-3.2-1B base model and 80,000 original labeled examples. The task does not supply a trained retrieval model, reference implementation, prebuilt index, or test answers. ### Data and provenance @@ -29,37 +29,13 @@ reference implementation, prebuilt index, or test answers. | FiQA | 57,638 | 648 | | Total | 66,454 | 1,271 | -Keep original titles, passages, questions, test membership and relevance grades. -Each query names its collection; results are judged against that collection's -complete corpus. The adaptation adds anonymous collection tags and remaps identifiers. -No relevance judgments are generated, and unlabeled documents in other -collections are not added as negatives. No separate public retrieval validation -set is supplied. - -Examples come from -[the LightRetriever author release](https://huggingface.co/datasets/lightretriever/lightretriever-finetune-data/tree/840793a0229ead35a9c820e9803092c3f1383e07), -using its original 23-source experiment configuration at -[code revision 9ce35eb](https://github.com/caskcsg/lightretriever/tree/9ce35eb6f3fb96772bcff21fc73a5c973d98f38d). -Allocate exactly 80,000 rows by the authors' source weights using largest -remainders, sample uniformly without replacement within each complete source, -and shuffle with seed 20261018. Preserve original query, positive and negative -passage contents. Empty/invalid rows and normalized exact test-query overlaps -are replaced from the same source without changing its quota. This is a reduced -training input, not the authors' full training run. - -The base model is the original -[Meta Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B/tree/4e20de362430cd3b72f300e6b0f18e50e7166e08), -not the Instruct model or the LightRetriever adapter. Its exact official bytes -were acquired from the ModelScope LLM-Research mirror and checked against the -Meta Git/LFS objects. See [third-party notices](VALIDATION.md#third-party-materials) and retained model license files. - -Source archives: -[SciFact](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/scifact.zip), -[NFCorpus](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/nfcorpus.zip), -[FiQA](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/fiqa.zip). -Source checksums, row-level sampling provenance, audit records and reproducible -preparation scripts are retained in -`../../../task_development/lightretriever`, outside this task package. +Keep original titles, passages, questions, test membership and relevance grades. Each query names its collection; results are judged against that collection's complete corpus. The adaptation adds anonymous collection tags and remaps identifiers. No relevance judgments are generated, and unlabeled documents in other collections are not added as negatives. No separate public retrieval validation set is supplied. + +Examples come from [the LightRetriever author release](https://huggingface.co/datasets/lightretriever/lightretriever-finetune-data/tree/840793a0229ead35a9c820e9803092c3f1383e07), using its original 23-source experiment configuration at [code revision 9ce35eb](https://github.com/caskcsg/lightretriever/tree/9ce35eb6f3fb96772bcff21fc73a5c973d98f38d). Allocate exactly 80,000 rows by the authors' source weights using largest remainders, sample uniformly without replacement within each complete source, and shuffle with seed 20261018. Preserve original query, positive and negative passage contents. Empty/invalid rows and normalized exact test-query overlaps are replaced from the same source without changing its quota. This is a reduced training input, not the authors' full training run. + +The base model is the original [Meta Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B/tree/4e20de362430cd3b72f300e6b0f18e50e7166e08), not the Instruct model or the LightRetriever adapter. Its exact official bytes were acquired from the ModelScope LLM-Research mirror and checked against the Meta Git/LFS objects. See [third-party notices](VALIDATION.md#third-party-materials) and retained model license files. + +Source archives: [SciFact](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/scifact.zip), [NFCorpus](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/nfcorpus.zip), [FiQA](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/fiqa.zip). Source checksums, row-level sampling provenance, audit records and reproducible preparation scripts are retained in `../../../task_development/lightretriever`, outside this task package. ## Change Log @@ -75,92 +51,39 @@ The objective covers complete query processing, including representation and sea ### Runtime and scoring -One GPU, 16 CPU cores, 32 GiB RAM, 100 GiB storage, six hours of -development, and no task network/API access. The shared GPU image supplies -Python 3.12 and CUDA 13.0. Index construction has 1,200 seconds; each fresh -service instance has 120 seconds to load. A warm-up uses 24 queries from the -public examples and has 60 seconds. Each complete hidden batch has a 120-second -failure deadline. - -The verifier launches candidate code as UID 10001 with a clean environment, -protected hidden inputs and reward files, a read-only submission and built -index, and fresh runtime scratch. Candidate processes and System V IPC objects -are removed between runs. The harness transfers `/app` and the agent execution -trajectory; examples and development processes are unavailable in the separate -verifier. The trajectory is root-only and is inspected alongside the submission -by the required integrity judge. - -The verifier permits `openrouter.ai` only for this root-side audit. Candidate -build/service processes receive no judge credentials or proxies and inherit a -seccomp socket filter before dropping privileges, so they remain offline. - -For each collection, average original graded nDCG@10 over all its test queries; -take the equal mean across the three collections. Gain is the original qrel -grade, matching `pytrec_eval` / BEIR `ndcg_cut_10`, rather than exponential or -binary conversion. The ideal ranking uses all positive grades up to rank ten. - -The index is built once. Let `Q` be the minimum quality across the five fresh service runs and `T` their median -timed duration. If `Q < 0.45`, reward is zero. Otherwise the raw retrieval reward is: +One GPU, 16 CPU cores, 32 GiB RAM, 100 GiB storage, six hours of development, and no task network/API access. The shared GPU image supplies Python 3.12 and CUDA 13.0. Index construction has 1,200 seconds; each fresh service instance has 120 seconds to load. A warm-up uses 24 queries from the public examples and has 60 seconds. Each complete hidden batch has a 120-second failure deadline. + +The verifier launches candidate code as UID 10001 with a clean environment, protected hidden inputs and reward files, a read-only submission and built index, and fresh runtime scratch. Candidate processes and System V IPC objects are removed between runs. The harness transfers `/app` and the agent execution trajectory; examples and development processes are unavailable in the separate verifier. The trajectory is root-only and is inspected alongside the submission by the required integrity judge. + +The verifier permits `openrouter.ai` only for this root-side audit. Candidate build/service processes receive no judge credentials or proxies and inherit a seccomp socket filter before dropping privileges, so they remain offline. + +For each collection, average original graded nDCG@10 over all its test queries; take the equal mean across the three collections. Gain is the original qrel grade, matching `pytrec_eval` / BEIR `ndcg_cut_10`, rather than exponential or binary conversion. The ideal ranking uses all positive grades up to rank ten. + +The index is built once. Let `Q` be the minimum quality across the five fresh service runs and `T` their median timed duration. If `Q < 0.45`, reward is zero. Otherwise the raw retrieval reward is: ```text retrieval_reward = max(0, 1 - T / 0.8) ``` -A score of one is the theoretical upper bound at zero seconds. Every positive -runtime receives less than one; 0.8 seconds or more receives zero. The user -selected this continuous linear rule after reviewing the single-A100 measurements. -The full run records and rationale are in the authoring `calibration-final.json`. - -The timed interval includes pipe transfer of the query batch, candidate query -processing and retrieval, response transfer, and response JSON decoding. It -excludes evaluator request serialization, offline build, service loading and -warm-up. Response validation and metric calculation happen after timing. -Malformed output, invalid IDs, missing/duplicate queries, nonfinite or ascending -scores, command failure or exceeded deadlines fail closed to zero. - -Final reward equals the raw retrieval reward only when the execution is valid -and the trajectory judge succeeds with a numeric binary pass. Missing or -malformed trajectories, missing/failed audits and nonbinary judge output yield -zero. The grader writes raw results to `report.json`; judge output stays under -`.private/`, and public reward files remain zero until finalization. A confirmed -integrity violation yields zero regardless of retrieval quality or speed. - -The rubric distinguishes precomputed benchmark answers from legitimate -corpus-derived indexes, token lookup tables, preprocessing, learned adapters and -parameters trained using the supplied resources. Low quality or slow execution -alone is not an integrity violation. - -The judge uses the repository's pinned RewardKit 0.2.0 / DeepSeek V4.1 Flash -wrapper. Configure `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and -`VERIFIER_OPENAI_API_KEY` locally through the launcher's ignored environment -configuration. The overall verifier budget is 4,500 seconds, including a -2,900-second retrieval supervisor, the audit, finalization and cleanup. The -candidate build, loading, warm-up and query deadlines remain unchanged. +A score of one is the theoretical upper bound at zero seconds. Every positive runtime receives less than one; 0.8 seconds or more receives zero. The user selected this continuous linear rule after reviewing the single-A100 measurements. The full run records and rationale are in the authoring `calibration-final.json`. + +The timed interval includes pipe transfer of the query batch, candidate query processing and retrieval, response transfer, and response JSON decoding. It excludes evaluator request serialization, offline build, service loading and warm-up. Response validation and metric calculation happen after timing. Malformed output, invalid IDs, missing/duplicate queries, nonfinite or ascending scores, command failure or exceeded deadlines fail closed to zero. + +Final reward equals the raw retrieval reward only when the execution is valid and the trajectory judge succeeds with a numeric binary pass. Missing or malformed trajectories, missing/failed audits and nonbinary judge output yield zero. The grader writes raw results to `report.json`; judge output stays under `.private/`, and public reward files remain zero until finalization. A confirmed integrity violation yields zero regardless of retrieval quality or speed. + +The rubric distinguishes precomputed benchmark answers from legitimate corpus-derived indexes, token lookup tables, preprocessing, learned adapters and parameters trained using the supplied resources. Low quality or slow execution alone is not an integrity violation. + +The judge uses the repository's pinned RewardKit 0.2.0 / DeepSeek V4.1 Flash wrapper. Configure `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and `VERIFIER_OPENAI_API_KEY` locally through the launcher's ignored environment configuration. The overall verifier budget is 4,500 seconds, including a 2,900-second retrieval supervisor, the audit, finalization and cleanup. The candidate build, loading, warm-up and query deadlines remain unchanged. ### Validation and release state -Before the 0.4.0 audit integration, local assets, images, GPU forward/backward, scoring and isolation checks were -executed. A legal implementation trained from the supplied original base and -only supplied examples passed the complete separate verifier with minimum -quality **0.454410**, median **0.860873 seconds** -and reward **0.000000**. See `VALIDATION.md` for the evidence and limits. -The later v0.4.0 verifier run completed its live integrity audit. Macro nDCG@10 -was 0.4303102260205993, below the 0.45 gate, and median query-batch time was -0.41057249531149864 seconds. See [VALIDATION.md](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) -for that measurement, its remaining validation limits and the separate local checks. - -The two derived data assets are published in -[`search-swe/Search-SWE`](https://huggingface.co/datasets/search-swe/Search-SWE/tree/ff16485accd6d258610c158fce45e36b50a47c3f/tasks/lightweight-query-retrieval) -at immutable revision `ff16485accd6d258610c158fce45e36b50a47c3f`. -Their official manifest sizes and SHA-256 hashes match the local inputs. -`assets.json` pins those paths and retains the original upstream model revision; -access to Meta's gated model must also be configured. -Authoring scripts, baselines and trained witness checkpoints are not included -in the agent mounts. +Before the 0.4.0 audit integration, local assets, images, GPU forward/backward, scoring and isolation checks were executed. A legal implementation trained from the supplied original base and only supplied examples passed the complete separate verifier with minimum quality **0.454410**, median **0.860873 seconds** and reward **0.000000**. See `VALIDATION.md` for the evidence and limits. The later v0.4.0 verifier run completed its live integrity audit. Macro nDCG@10 was 0.4303102260205993, below the 0.45 gate, and median query-batch time was 0.41057249531149864 seconds. See [VALIDATION.md](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) for that measurement, its remaining validation limits and the separate local checks. + +The two derived data assets are published in [`search-swe/Search-SWE`](https://huggingface.co/datasets/search-swe/Search-SWE/tree/ff16485accd6d258610c158fce45e36b50a47c3f/tasks/lightweight-query-retrieval) at immutable revision `ff16485accd6d258610c158fce45e36b50a47c3f`. Their official manifest sizes and SHA-256 hashes match the local inputs. `assets.json` pins those paths and retains the original upstream model revision; access to Meta's gated model must also be configured. Authoring scripts, baselines and trained witness checkpoints are not included in the agent mounts. See [VALIDATION.md](VALIDATION.md) for recorded run outcomes, judge health, validation evidence and third-party notices. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -174,4 +97,6 @@ bash scripts/evaluation/run_task.sh --task lightweight-query-retrieval --agent c ## References -None. +- **Task source** — [LightRetriever (ICLR 2026)](https://proceedings.iclr.cc/paper_files/paper/2026/hash/bcd11db0b26d8fc2266b91d3ff982ed1-Abstract-Conference.html) +- **Data source** — BEIR SciFact, NFCorpus, and FiQA evaluation collections and the LightRetriever authors’ training examples. +- **Provenance details** — [Data preparation and base Llama checkpoint](#data-and-provenance) diff --git a/tasks/long-document-reranking/README.md b/tasks/long-document-reranking/README.md index 52c2b51..0bb0ff2 100644 --- a/tasks/long-document-reranking/README.md +++ b/tasks/long-document-reranking/README.md @@ -14,19 +14,13 @@ | Public queries | 100 | | Hidden queries | 100 | -Improve long-document ranking without changing the candidate pool or the relevance model. +## Overview -### Overview +Improve long-document ranking without changing the candidate pool or the relevance model. -A relevant passage in a long document may lie far beyond the first 512 model -tokens. Simply truncating every candidate can therefore discard the evidence -needed to rank it correctly. +A relevant passage in a long document may lie far beyond the first 512 model tokens. Simply truncating every candidate can therefore discard the evidence needed to rank it correctly. -This task starts from a fixed reranking pipeline for NarrativeQA retrieval. -The system receives a BM25 Top-100 candidate pool and must use the supplied -BGE reranker. The engineering opportunity is in how documents are prepared, -which windows are scored, and how local scores inform a document-level decision. -Finding more evidence must remain practical within the runtime budget. +This task starts from a fixed reranking pipeline for NarrativeQA retrieval. The system receives a BM25 Top-100 candidate pool and must use the supplied BGE reranker. The engineering opportunity is in how documents are prepared, which windows are scored, and how local scores inform a document-level decision. Finding more evidence must remain practical within the runtime budget. ### Task Setup @@ -39,29 +33,17 @@ Finding more evidence must remain practical within the runtime budget. | `models/bge-reranker-large/` | The pinned `BAAI/bge-reranker-large` model | | `environment/starter/` | An editable build/query pipeline | -Downloaded data and models are mounted read-only under `/task/data` and -`/task/models`. The hidden evaluation contains 100 disjoint queries. -The [starter implementation](environment/starter/) includes the build and query entry points. +Downloaded data and models are mounted read-only under `/task/data` and `/task/models`. The hidden evaluation contains 100 disjoint queries. The [starter implementation](environment/starter/) includes the build and query entry points. #### Fixed Components and Allowed Changes -The candidate documents and reranker model, tokenizer, and configuration are -fixed. The agent may optimize preprocessing, window selection, score aggregation, -caching, and runtime organization. It may not retrieve additional candidates, -replace or train the model, distill it, or modify its weights through quantization. +The candidate documents and reranker model, tokenizer, and configuration are fixed. The agent may optimize preprocessing, window selection, score aggregation, caching, and runtime organization. It may not retrieve additional candidates, replace or train the model, distill it, or modify its weights through quantization. -The Docker mounts and instructions place the model at -`/task/models/bge-reranker-large`. +The Docker mounts and instructions place the model at `/task/models/bge-reranker-large`. #### Environment and Resource Limits -The CPU Python 3.12 environment provides 16 CPUs, 16 GiB memory, 100 GiB storage, -and no GPU. The agent has two hours and the Harbor verifier 13,200 seconds -(3 hours 40 minutes). The verifier window covers a 1,800-second build, two -query runs of up to 3,600 seconds each, a 3,600-second trajectory judge, -and 600 seconds for setup and cleanup: -`1800 + 2 * 3600 + 3600 + 600 = 13200`. -Each submission stage remains subject to its own time limit. +The CPU Python 3.12 environment provides 16 CPUs, 16 GiB memory, 100 GiB storage, and no GPU. The agent has two hours and the Harbor verifier 13,200 seconds (3 hours 40 minutes). The verifier window covers a 1,800-second build, two query runs of up to 3,600 seconds each, a 3,600-second trajectory judge, and 600 seconds for setup and cleanup: `1800 + 2 * 3600 + 3600 + 600 = 13200`. Each submission stage remains subject to its own time limit. ## Change Log @@ -80,52 +62,33 @@ Each submission stage remains subject to its own time limit. ### Submission Contract -The deliverable is `/app/build.sh` and `/app/run.sh` with the implementation -needed to rebuild preprocessing artifacts and serve reranking requests. -Each question returns five ranked document IDs and scores from its original -candidate pool. +The deliverable is `/app/build.sh` and `/app/run.sh` with the implementation needed to rebuild preprocessing artifacts and serve reranking requests. Each question returns five ranked document IDs and scores from its original candidate pool. -The verifier uses a separate environment and unprivileged submission execution. -The index directory is supplied by the caller. Consult -[instruction.md](instruction.md) for the complete CLI and result format. +The verifier uses a separate environment and unprivileged submission execution. The index directory is supplied by the caller. Consult [instruction.md](instruction.md) for the complete CLI and result format. ### Evaluation #### Search Quality -A hidden query is a hit if a relevant document is among the five returned -candidates. Accuracy@5 is the fraction of hits over all hidden queries. -Valid runs receive this fraction as a continuous quality score. +A hidden query is a hit if a relevant document is among the five returned candidates. Accuracy@5 is the fraction of hits over all hidden queries. Valid runs receive this fraction as a continuous quality score. #### Correctness and Resource Gates -The verifier checks executable behavior, complete outputs, valid ranking -fields, candidate membership, and compliance with the fixed-model rules. -Retrieval outside the pool is not a valid way to improve this task's score. -Both sequential query invocations must pass the same output checks; their -bytes, scores and rankings need not match. Only the first invocation determines -Accuracy@5. The second checks that the service remains available and produces -valid outputs. +The verifier checks executable behavior, complete outputs, valid ranking fields, candidate membership, and compliance with the fixed-model rules. Retrieval outside the pool is not a valid way to improve this task's score. Both sequential query invocations must pass the same output checks; their bytes, scores and rankings need not match. Only the first invocation determines Accuracy@5. The second checks that the service remains available and produces valid outputs. #### Integrity Checks and Final Reward -A separate trajectory judge checks task compliance. Final reward equals -Accuracy@5 only when evaluation is valid and the judge passes; otherwise zero. -The model being optimized around is the fixed reranker, not the trajectory judge. -The trajectory judge itself uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit -0.2.0 and receives its credentials only in the verifier. +A separate trajectory judge checks task compliance. Final reward equals Accuracy@5 only when evaluation is valid and the judge passes; otherwise zero. The model being optimized around is the fixed reranker, not the trajectory judge. The trajectory judge itself uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 and receives its credentials only in the verifier. + +### Instruction source + +`raw-instruction.md` is the structured source for `instruction.md`. Both now state the existing build/query limits, repeat schedule and first-run scoring. The fixed model, candidate/model restrictions and Accuracy@5 definition remain unchanged. Local regression evidence is recorded in [VALIDATION.md](VALIDATION.md). -### Running This Task +## Running the Task -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -Download both data and model assets with the command below. Configure the -verifier's integrity judge separately from the coding agent. The submission -uses the local reranker and does not need external reranking-service credentials. +Download both data and model assets with the command below. Configure the verifier's integrity judge separately from the coding agent. The submission uses the local reranker and does not need external reranking-service credentials. ```bash python scripts/assets/download_assets.py --task long-document-reranking @@ -133,12 +96,7 @@ bash scripts/evaluation/run_task.sh --task long-document-reranking --agent codex --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/long-document-reranking/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/long-document-reranking/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -153,13 +111,8 @@ assets, credentials, or hardware. | [Starter implementation](environment/starter/) | Build and query scripts for the initial pipeline | | [Verifier notes](tests/README.md) | Additional verification details | -### Instruction source - -`raw-instruction.md` is the structured source for `instruction.md`. Both now -state the existing build/query limits, repeat schedule and first-run scoring. -The fixed model, candidate/model restrictions and Accuracy@5 definition remain -unchanged. Local regression evidence is recorded in [VALIDATION.md](VALIDATION.md). - ## References -None. +- **Task source** — Experience +- **Data source** — MTEB NarrativeQARetrieval with a fixed BM25 candidate pool. +- **Model source** — [BAAI/bge-reranker-large](https://huggingface.co/BAAI/bge-reranker-large). [Asset manifest](assets.json) diff --git a/tasks/long-pdf-evidence-vectorless/README.md b/tasks/long-pdf-evidence-vectorless/README.md index 6fb8da0..5635a9e 100644 --- a/tasks/long-pdf-evidence-vectorless/README.md +++ b/tasks/long-pdf-evidence-vectorless/README.md @@ -11,8 +11,11 @@ | Compute | 16 CPUs; 16 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 14400 s | | Dataset | single long PDF | +| Public queries | 10 | | Hidden queries | 12 | +## Overview + Build a reusable, embedding-free index over the supplied *War and Peace* PDF and its fixed sentence inventory. Return up to five complete original sentence units supporting each interpretive question. The task uses **SentenceEvidenceAccuracy** and the sentence-evidence inputs attributed in [SOURCES.md](SOURCES.md). The unchanged PDF has 2,043 physical pages; the question-independent inventory has 28,798 units. Ten public questions include support requirements and sufficient evidence. Twelve private questions use disjoint reference units. Page numbers are provenance only; alternative correct sentence evidence is accepted. See [instruction.md](instruction.md) for the agent request and [raw-instruction.md](raw-instruction.md) for the structured contract. @@ -39,22 +42,25 @@ The evidence judge uses the configured `ANSWER_JUDGE_MODEL_NAME`, `ANSWER_JUDGE_ ### Evidence judge calibration -The judge evaluates requirements by their semantic support in the question and -candidate evidence. Equivalent explanations may establish a distinction without -repeating the reference's wording or separately negating alternatives. Requested -comparisons, qualifications and causal links remain necessary. Extra evidence affects -support when it creates a material contradiction or an unresolved essential referent; -harmless redundancy is allowed. Rejection reasons identify the missing necessary -relationship or concrete conflict. +The judge evaluates requirements by their semantic support in the question and candidate evidence. Equivalent explanations may establish a distinction without repeating the reference's wording or separately negating alternatives. Requested comparisons, qualifications and causal links remain necessary. Extra evidence affects support when it creates a material contradiction or an unresolved essential referent; harmless redundancy is allowed. Rejection reasons identify the missing necessary relationship or concrete conflict. + +`tests/judge_calibration.json` contains ten synthetic positive/negative cases covering causality, contrast, qualifications, reference resolution, contradiction and temporal context. These author-only cases are not part of scored data or the production prompt. `tests/test_judge_request.py` mocks HTTP to check request contents and failure handling; it does not establish the model's semantic decisions. See [VALIDATION.md](VALIDATION.md) for local checks and the pending live calibration/re-evaluation handoff. + +### Sources and validation status + +All four public inputs use the reviewed original task's published immutable pins, sizes and SHA-256 hashes. Private queries/references are reused unchanged from its v0.4.1 verifier. See [SOURCES.md](SOURCES.md) for provenance and publication limits. Private files are excluded from agent mounts but remain visible to repository readers, so this is not a secret evaluation set. + +Reviewed precedent: `tasks/long-pdf-evidence` at `f1c4f57`, selected for the same data, sentence-evidence scorer, semantic judge, CPU environment and submission interfaces. This variant preserves its own no-embedding policy, index-only boundary, build-worker termination, private grader corpus and strict binary audit gate. It does not inherit the original task's embedding APIs or persistent build service. -`tests/judge_calibration.json` contains ten synthetic positive/negative cases covering -causality, contrast, qualifications, reference resolution, contradiction and temporal -context. These author-only cases are not part of scored data or the production prompt. -`tests/test_judge_request.py` mocks HTTP to check request contents and failure handling; -it does not establish the model's semantic decisions. See [VALIDATION.md](VALIDATION.md) -for local checks and the pending live calibration/re-evaluation handoff. +Authoring and validation evidence is recorded outside the package in `contributing/dev/long-pdf-evidence-vectorless/2026-10-16/`. All four assets, 20 task tests, 173 shared tests, both image builds and a disposable-container boundary check passed. At the contributor's request, that historical revision used DeepSeek v4.1 Flash through OpenRouter for answer judging. A public positive/negative probe passed using the existing authorized verifier credential. At that time, the default local `.env` also assigned that credential to answer judging; the separate solver credential was unchanged. + +The historical October 16 Codex + OpenRouter Luna max trial used 64 GiB RAM and completed verification with **SentenceEvidenceAccuracy = 0.25 (3/12)**, compliance audit **1**, and final reward **0.25**. All twelve hidden queries executed successfully in 438.15 seconds; output-invalid and answer-judge-error counts were both zero. The coding agent exhausted its 7,200-second development budget, so Harbor records `AgentTimeoutError` even though its saved submission received a valid score. This was one formal attempt with no retry, not an uninterrupted agent completion. Results are in `jobs/long-pdf-evidence-vectorless-codex-openrouter-luna-max-20261016-attempt1/2026-10-16__20-03-01/`; the author report is `contributing/dev/long-pdf-evidence-vectorless/2026-10-16/RESULTS.md`. + +The four public inputs intentionally reuse the original task's published paths and immutable pins. Search-SWE `ac7dcc1` supports cross-task reuse while retaining source-path and integrity checks. On October 17, both checkouts and remote main contained that fix; this package passed the contribution checkout's merge-ready checker without asset changes. All 4 asset hashes, 20 task tests and the 174-test shared suite passed. The proposed duplicate upload was cancelled, and no data was published. See `contributing/dev/contribution-readiness/2026-10-17/REVIEW.md` for the current review. + +A public cart-purpose question omits the requester, allowing competing original scenes. Its supplied public reference requirements identify the intended furniture request; this observation does not invalidate the separate hidden-set measurement. On October 17 the contributor requested retaining wording unless modification was necessary, so the original public data are retained and this optional clarification is not a submission blocker. The diagnostic and proposed wording remain recorded in `public-query-ambiguity.md` under the October 16 author evidence directory. No question, grader or resource budget was changed in this review. -### Credentials and evaluation +## Running the Task Configure the ignored repository `.env`: `AGENT_OPENROUTER_API_KEY` for the coding agent; `ANSWER_JUDGE_MODEL_NAME`, `ANSWER_JUDGE_BASE_URL` and `ANSWER_JUDGE_API_KEY` for the evidence judge; and `VERIFIER_OPENAI_API_KEY` / `VERIFIER_OPENAI_BASE_URL` for the trajectory audit. All three evidence-judge settings are required and passed only to the verifier, with no fixed model or base URL. Optional solver calls use the separate `OPENROUTER_API_KEY` and only the models/endpoints in [available_resources.md](environment/docs/available_resources.md). The judge model is not a solver resource. Never include credential values in this package or artifacts. @@ -70,20 +76,8 @@ bash scripts/evaluation/run_task.sh --task long-pdf-evidence-vectorless --agent --output jobs/long-pdf-evidence-vectorless-codex-openrouter-luna-max-RUN_ID ``` -### Sources and validation status - -All four public inputs use the reviewed original task's published immutable pins, sizes and SHA-256 hashes. Private queries/references are reused unchanged from its v0.4.1 verifier. See [SOURCES.md](SOURCES.md) for provenance and publication limits. Private files are excluded from agent mounts but remain visible to repository readers, so this is not a secret evaluation set. - -Reviewed precedent: `tasks/long-pdf-evidence` at `f1c4f57`, selected for the same data, sentence-evidence scorer, semantic judge, CPU environment and submission interfaces. This variant preserves its own no-embedding policy, index-only boundary, build-worker termination, private grader corpus and strict binary audit gate. It does not inherit the original task's embedding APIs or persistent build service. - -Authoring and validation evidence is recorded outside the package in `contributing/dev/long-pdf-evidence-vectorless/2026-10-16/`. All four assets, 20 task tests, 173 shared tests, both image builds and a disposable-container boundary check passed. At the contributor's request, that historical revision used DeepSeek v4.1 Flash through OpenRouter for answer judging. A public positive/negative probe passed using the existing authorized verifier credential. At that time, the default local `.env` also assigned that credential to answer judging; the separate solver credential was unchanged. - -The historical October 16 Codex + OpenRouter Luna max trial used 64 GiB RAM and completed verification with **SentenceEvidenceAccuracy = 0.25 (3/12)**, compliance audit **1**, and final reward **0.25**. All twelve hidden queries executed successfully in 438.15 seconds; output-invalid and answer-judge-error counts were both zero. The coding agent exhausted its 7,200-second development budget, so Harbor records `AgentTimeoutError` even though its saved submission received a valid score. This was one formal attempt with no retry, not an uninterrupted agent completion. Results are in `jobs/long-pdf-evidence-vectorless-codex-openrouter-luna-max-20261016-attempt1/2026-10-16__20-03-01/`; the author report is `contributing/dev/long-pdf-evidence-vectorless/2026-10-16/RESULTS.md`. - -The four public inputs intentionally reuse the original task's published paths and immutable pins. Search-SWE `ac7dcc1` supports cross-task reuse while retaining source-path and integrity checks. On October 17, both checkouts and remote main contained that fix; this package passed the contribution checkout's merge-ready checker without asset changes. All 4 asset hashes, 20 task tests and the 174-test shared suite passed. The proposed duplicate upload was cancelled, and no data was published. See `contributing/dev/contribution-readiness/2026-10-17/REVIEW.md` for the current review. - -A public cart-purpose question omits the requester, allowing competing original scenes. Its supplied public reference requirements identify the intended furniture request; this observation does not invalidate the separate hidden-set measurement. On October 17 the contributor requested retaining wording unless modification was necessary, so the original public data are retained and this optional clarification is not a submission blocker. The diagnostic and proposed wording remain recorded in `public-query-ambiguity.md` under the October 16 author evidence directory. No question, grader or resource budget was changed in this review. - ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — Experience +- **Data source** — The 2016 PDF edition of *War and Peace* and the sentence inventory from long-pdf-evidence. +- **Provenance details** — [Edition, sentence preparation, and usage terms](SOURCES.md) diff --git a/tasks/long-pdf-evidence/README.md b/tasks/long-pdf-evidence/README.md index 4f269b3..24d5bb5 100644 --- a/tasks/long-pdf-evidence/README.md +++ b/tasks/long-pdf-evidence/README.md @@ -11,8 +11,11 @@ | Compute | 16 CPUs; 16 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 14400 s | | Dataset | single long PDF | +| Public queries | 10 | | Hidden queries | 12 | +## Overview + Retrieve up to five original sentence units that fully support a short interpretive question about *War and Peace*. The task uses **SentenceEvidenceAccuracy** with a configurable evidence judge and a 30-second limit per query. The unchanged PDF has 2,043 physical pages. Its question-independent inventory contains 28,798 units, preserving source-page provenance and normalizing PDF typography and whitespace. Unit boundaries are fixed for consistent evaluation, including dialogue and sentences crossing pages. The ten public and twelve hidden questions use disjoint reference units and opaque shuffled IDs. Questions ask about motives, tensions, reversals, or relationships without restating the relevant passage. @@ -55,20 +58,9 @@ Author development and calibration records live outside the package in `task_dev ### Evidence judge calibration -The judge evaluates requirements by their semantic support in the question and -candidate evidence. Equivalent explanations may establish a distinction without -repeating the reference's wording or separately negating alternatives. Requested -comparisons, qualifications and causal links remain necessary. Extra evidence affects -support when it creates a material contradiction or an unresolved essential referent; -harmless redundancy is allowed. Rejection reasons identify the missing necessary -relationship or concrete conflict. - -`tests/judge_calibration.json` contains ten synthetic positive/negative cases covering -causality, contrast, qualifications, reference resolution, contradiction and temporal -context. These author-only cases are not part of scored data or the production prompt. -`tests/test_judge_request.py` mocks HTTP to check request contents and failure handling; -it does not establish the model's semantic decisions. See [VALIDATION.md](VALIDATION.md) -for local checks and the pending live calibration/re-evaluation handoff. +The judge evaluates requirements by their semantic support in the question and candidate evidence. Equivalent explanations may establish a distinction without repeating the reference's wording or separately negating alternatives. Requested comparisons, qualifications and causal links remain necessary. Extra evidence affects support when it creates a material contradiction or an unresolved essential referent; harmless redundancy is allowed. Rejection reasons identify the missing necessary relationship or concrete conflict. + +`tests/judge_calibration.json` contains ten synthetic positive/negative cases covering causality, contrast, qualifications, reference resolution, contradiction and temporal context. These author-only cases are not part of scored data or the production prompt. `tests/test_judge_request.py` mocks HTTP to check request contents and failure handling; it does not establish the model's semantic decisions. See [VALIDATION.md](VALIDATION.md) for local checks and the pending live calibration/re-evaluation handoff. ### Historical judge-model revision @@ -78,7 +70,7 @@ The earlier DeepSeek rejudgment of a Luna-generated submission returned 8/20 on See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -90,4 +82,6 @@ bash scripts/evaluation/run_task.sh --task long-pdf-evidence --agent codex --ope ## References -None. +- **Task source** — Experience +- **Data source** — Leo Tolstoy’s *War and Peace*, translated by Louise and Aylmer Maude, in the 2016 PDF edition edited by Daniel Studzinski. [Edition and usage terms](../long-pdf-evidence-vectorless/SOURCES.md#origin-and-terms) +- **Provenance details** — [Asset manifest](assets.json) diff --git a/tasks/memory-constrained-dense-retrieval/README.md b/tasks/memory-constrained-dense-retrieval/README.md index a276a8f..175c139 100644 --- a/tasks/memory-constrained-dense-retrieval/README.md +++ b/tasks/memory-constrained-dense-retrieval/README.md @@ -11,21 +11,16 @@ | Compute | 16 CPUs; 0.5 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 7200 s | | Dataset | NaturalQuestions | +| Public queries | 20 | | Hidden queries | 20 | -Search a fixed vector collection larger than available RAM while meeting strict query deadlines. +## Overview -### Overview +Search a fixed vector collection larger than available RAM while meeting strict query deadlines. -This task contains 1.5 million precomputed NaturalQuestions document vectors, -each with 1,024 float32 dimensions. The raw vectors occupy about 6.14 GB, -while the runtime has only 512 MiB of memory. +This task contains 1.5 million precomputed NaturalQuestions document vectors, each with 1,024 float32 dimensions. The raw vectors occupy about 6.14 GB, while the runtime has only 512 MiB of memory. -The challenge is to design an index, storage layout, and query path that work -together under that mismatch. Retrieval quality alone is insufficient: -the system must become ready quickly and serve independent query invocations -within a tight end-to-end deadline. The architecture is open, so memory -management and service lifecycle are as important as the search algorithm. +The challenge is to design an index, storage layout, and query path that work together under that mismatch. Retrieval quality alone is insufficient: the system must become ready quickly and serve independent query invocations within a tight end-to-end deadline. The architecture is open, so memory management and service lifecycle are as important as the search algorithm. ### Task Setup @@ -37,32 +32,15 @@ management and service lifecycle are as important as the search algorithm. | `data/metadata.jsonl` and `data/vector_config.json` | Document mapping and vector layout | | `data/validation/` | 20 public examples, query vectors, metadata, and labels | -Files are restored under the task's `data/` and mounted at `/task/data`. -The hidden workload contains 20 queries, disjoint from public validation. -Every hidden query is scored for both retrieval correctness and latency. - -The asset manifest fixes the packaged revision and each file's size and SHA-256. -Its [source record](https://huggingface.co/datasets/search-swe/Search-SWE/blob/6713b1eb7474e0768e906a0151c76af92f0cfcdd/SOURCES.md) -identifies BGE-large-en-v1.5 with L2 normalization, but does not record the -original encoder revision. These are preserved frozen vectors, not a newly -reconstructed embedding dataset. Original source attribution and terms apply; -the collection does not grant a blanket license for all underlying materials. - -Document and query IDs are independent opaque random identifiers. Corpus -vector rows and metadata are shuffled together, with vector values preserved -bit for bit and relevance labels mapped consistently. Labels remain original -NQ relevance judgments. Both splits were selected from full-corpus exact -Top-3 hits, favoring small relevant-document margins over rank four and -balancing those margins between splits. This margin is a difficulty proxy, -not evidence of failure by a measured ANN baseline. +Files are restored under the task's `data/` and mounted at `/task/data`. The hidden workload contains 20 queries, disjoint from public validation. Every hidden query is scored for both retrieval correctness and latency. + +The asset manifest fixes the packaged revision and each file's size and SHA-256. Its [source record](https://huggingface.co/datasets/search-swe/Search-SWE/blob/6713b1eb7474e0768e906a0151c76af92f0cfcdd/SOURCES.md) identifies BGE-large-en-v1.5 with L2 normalization, but does not record the original encoder revision. These are preserved frozen vectors, not a newly reconstructed embedding dataset. Original source attribution and terms apply; the collection does not grant a blanket license for all underlying materials. + +Document and query IDs are independent opaque random identifiers. Corpus vector rows and metadata are shuffled together, with vector values preserved bit for bit and relevance labels mapped consistently. Labels remain original NQ relevance judgments. Both splits were selected from full-corpus exact Top-3 hits, favoring small relevant-document margins over rank four and balancing those margins between splits. This margin is a difficulty proxy, not evidence of failure by a measured ANN baseline. #### Fixed Components and Allowed Changes -Document and query vectors are supplied inputs. Index organization, compression, -storage access, and the retrieval implementation may change. External models, -retrieval services, and answer mappings are not part of the task. -An internal representation must still produce valid results for the supplied -vectors and preserve their document identities. +Document and query vectors are supplied inputs. Index organization, compression, storage access, and the retrieval implementation may change. External models, retrieval services, and answer mappings are not part of the task. An internal representation must still produce valid results for the supplied vectors and preserve their document identities. #### Environment and Resource Limits @@ -72,9 +50,7 @@ For representative query tests, first terminate only your own build-started sear The supplied index workspace is `/task/index`, a fresh 64 MiB (67,108,864-byte) tmpfs mounted in both phases. Use it as `--index-dir` for representative development tests and final execution. All final build and query artifacts, including indexes, document lookup tables, executables, logs, temporary files and caches, must fit there throughout the final build and query workload; the kernel rejects writes beyond its capacity. The requested result JSONL file is the exception and must be written to the supplied `--output` path. Sparse files also count by logical size for the grader limit. This workspace is charged to the same 512 MiB memory cgroup, not an additional memory allowance. Keep submitted source files and development scratch files under `/app` within the general storage allowance. The timed final build must derive corpus-dependent search state from the supplied inputs; it must not reuse prebuilt corpus indexes or learned search tables bundled with the source. Do not place generated search state elsewhere or use other persistent writable paths or query-output directories to evade the workspace budget. Anonymous memory and IPC shared memory are permitted within the total memory budget, but POSIX shared-memory files and submission-owned System V IPC objects are removed and checked during the post-build restart and cannot preserve an index across it. The supplied corpus remains read-only and may be read for genuine retrieval and reranking. -The submitted build must finish within **150 seconds**, including service -startup. Every query invocation has a **0.5-second wall-clock limit**, measured -from process start through exit and protected output capture, including the full query path. The grader records index size. +The submitted build must finish within **150 seconds**, including service startup. Every query invocation has a **0.5-second wall-clock limit**, measured from process start through exit and protected output capture, including the full query path. The grader records index size. ## Change Log @@ -93,34 +69,19 @@ from process start through exit and protected output capture, including the full ### Submission Contract -The deliverable contains `/app/build.sh` and `/app/run.sh`. The first builds the -index and starts a reusable service; the second accepts query-vector files and -returns exactly three ranked document IDs with scores per query. +The deliverable contains `/app/build.sh` and `/app/run.sh`. The first builds the index and starts a reusable service; the second accepts query-vector files and returns exactly three ranked document IDs with scores per query. -The verifier supplies file and index paths and may invoke the query entry point -separately for each question. Submission execution is unprivileged, with -persistent and runtime artifacts written to the supplied index directory. -The complete interface is in [instruction.md](instruction.md). +The verifier supplies file and index paths and may invoke the query entry point separately for each question. Submission execution is unprivileged, with persistent and runtime artifacts written to the supplied index directory. The complete interface is in [instruction.md](instruction.md). ### Evaluation #### Search Quality -Each query earns 1 only when its invocation exits successfully, its valid output -is captured within 0.5 seconds, and its top three results contain a relevant -document. Otherwise that query earns 0. The primary metric is the mean of -these 20 binary scores; 17 passing queries give Accuracy@3 = 0.85 and fail the minimum 0.95 quality requirement. The report -also records retrieval accuracy without the latency gate for diagnosis. These primary results come from the median-P95 round; all five rounds are retained in the report. +Each query earns 1 only when its invocation exits successfully, its valid output is captured within 0.5 seconds, and its top three results contain a relevant document. Otherwise that query earns 0. The primary metric is the mean of these 20 binary scores; 17 passing queries give Accuracy@3 = 0.85 and fail the minimum 0.95 quality requirement. The report also records retrieval accuracy without the latency gate for diagnosis. These primary results come from the median-P95 round; all five rounds are retained in the report. #### Correctness and Resource Gates -The verifier checks output coverage, document IDs, finite scores, ordering, -and the execution deadline for each invocation. Incorrect answers, malformed -outputs, failed invocations, and timeouts reduce the corresponding query score; -the remaining queries still run, and the aggregate quality floor still applies. A query timeout terminates its invocation -process group while preserving the separately started query service. Build -failure, an invalid index, or invalid evaluator inputs still invalidate the -evaluation. The 512 MiB container memory limit applies throughout execution. +The verifier checks output coverage, document IDs, finite scores, ordering, and the execution deadline for each invocation. Incorrect answers, malformed outputs, failed invocations, and timeouts reduce the corresponding query score; the remaining queries still run, and the aggregate quality floor still applies. A query timeout terminates its invocation process group while preserving the separately started query service. Build failure, an invalid index, or invalid evaluator inputs still invalidate the evaluation. The 512 MiB container memory limit applies throughout execution. #### Integrity Checks and Final Reward @@ -128,20 +89,13 @@ A trajectory audit independently checks task compliance. Let `A` be the mean of The verifier performs five independent measurement rounds. Each round starts from an empty index workspace and a fresh build, with previous submission processes, IPC state, query inputs and output directories cleared. After the successful build, it terminates all submission processes while preserving the workspace and clearing POSIX shared-memory files and submission-owned System V shared memory, message queues and semaphores, to verify that the stored index can be deployed independently. The first run.sh call must automatically load that stored state and start its service if needed; this cold startup is included in that call's 0.5-second deadline and latency. Later calls may reuse the service for one sequential pass over the same 20 distinct hidden queries in fixed stored order within each round. There is no query warmup. Query-result caches do not carry over between rounds. Each round produces its own Accuracy@3 and P95; sort rounds by P95, breaking ties by round order, and use the third round in that order for both the accuracy and latency terms of the final score. Do not pool the 100 measurements or select a round by accuracy. The verifier does not flush the operating-system file cache; file pages and index state created during the build may remain cached. P95 is the nearest-rank quantile: sort all 20 end-to-end durations and take the 19th (one-based, `ceil(0.95 * 20)`). Timeouts and failed launches contribute 0.5 seconds; all other invocations, including nonzero exits and invalid outputs, contribute their externally measured duration capped at 0.5 seconds. Timing uses a monotonic clock and Linux process-exit events. Build time ends at observed process exit. Query time runs from immediately before process creation until the verifier has captured the bounded output into protected storage after client exit; input reading, communication, retrieval, result output, exit and output capture are included. Both P95 and the 0.5-second query deadline use this capture-inclusive duration. Process-exit and output-capture durations are also reported separately. The verifier does not wait for late results: it attempts capture immediately after observing exit, and capture failure or completion after the deadline earns no query credit. Timeout termination and cleanup are recorded separately and do not inflate completed-query latency. A timed-out client is terminated while a separately started query service remains available for subsequent queries. Nonpositive or nonfinite timings invalidate evaluation. Independent author reruns start a fresh build and service; they measure stability and do not increase the count of distinct queries. -It uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 and receives its -DeepSeek endpoint and key only in the verifier. +It uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 and receives its DeepSeek endpoint and key only in the verifier. -### Running This Task +## Running the Task -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -Configure the verifier's integrity-judge credentials using the evaluation guide. -The candidate search system uses supplied vectors and does not require -external model-service credentials. +Configure the verifier's integrity-judge credentials using the evaluation guide. The candidate search system uses supplied vectors and does not require external model-service credentials. ```bash python scripts/assets/download_assets.py --task memory-constrained-dense-retrieval @@ -149,12 +103,7 @@ bash scripts/evaluation/run_task.sh --task memory-constrained-dense-retrieval -- --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/memory-constrained-dense-retrieval/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/memory-constrained-dense-retrieval/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -175,4 +124,6 @@ The verifier snapshots each output immediately after observing client exit, in a ## References -None. +- **Task source** — Experience +- **Data source** — Natural Questions corpus with frozen BGE-large-en-v1.5 vectors. +- **Provenance details** — [Published source record](https://huggingface.co/datasets/search-swe/Search-SWE/blob/6713b1eb7474e0768e906a0151c76af92f0cfcdd/SOURCES.md) and [asset manifest](assets.json) diff --git a/tasks/methodology-inspiration-retrieval/README.md b/tasks/methodology-inspiration-retrieval/README.md index 63a43db..7b917dd 100644 --- a/tasks/methodology-inspiration-retrieval/README.md +++ b/tasks/methodology-inspiration-retrieval/README.md @@ -14,11 +14,9 @@ | Public queries | 0 | | Hidden queries | 122 | -Build a working search engine that retrieves papers offering methodological -inspiration for a research problem and motivation. The solver receives a fixed -abstract collection, citation examples, Stella 400M, one GPU and the -documented OpenRouter/Jina APIs. No implementation or training procedure is -required. Author: **Bingyu**. +## Overview + +Build a working search engine that retrieves papers offering methodological inspiration for a research problem and motivation. The solver receives a fixed abstract collection, citation examples, Stella 400M, one GPU and the documented OpenRouter/Jina APIs. No implementation or training procedure is required. Author: **Bingyu**. ### Package contract @@ -34,59 +32,21 @@ required. Author: **Bingyu**. | Retrieval | 12 seconds for the entire batch, including API waiting and output | | Output | Up to 3 ranked corpus IDs per query | -`build.sh` and `run.sh` follow the commands in `instruction.md`. The separate -verifier transfers `/app`, recreates an empty writable index, and runs submitted -code as UID 10001. Hidden queries are exposed only after initialization. Public -examples are available only during development. Source abstracts of test -proposals are absent from the public collection and examples. +`build.sh` and `run.sh` follow the commands in `instruction.md`. The separate verifier transfers `/app`, recreates an empty writable index, and runs submitted code as UID 10001. Hidden queries are exposed only after initialization. Public examples are available only during development. Source abstracts of test proposals are absent from the public collection and examples. -Both images use the standard GPU base. `/opt/conda/bin/python` retains the -shared environment. `/opt/stella/bin/python` supplies an isolated Transformers -4.44.2 environment compatible with the original model's custom code, sharing -the base PyTorch installation. Model loading and readiness belong to the build -budget; initialization deferred to `run.sh` counts against the 12-second limit. +Both images use the standard GPU base. `/opt/conda/bin/python` retains the shared environment. `/opt/stella/bin/python` supplies an isolated Transformers 4.44.2 environment compatible with the original model's custom code, sharing the base PyTorch installation. Model loading and readiness belong to the build budget; initialization deferred to `run.sh` counts against the 12-second limit. ### Data and provenance -Source: [MIR: Methodology Inspiration Retrieval for Scientific Research Problems](https://aclanthology.org/2025.acl-long.1390/), -Garikaparthi et al., ACL 2025; -[official repository](https://github.com/Anikethh/Methodology-Inspiration-Retrieval), -commit `5a793828a6894856123819cefa637b3e21bd5477`. - -The corpus is the fixed union of cited abstracts in the four published CSVs. -Nine malformed/non-abstract records were removed, five exact duplicate abstract -aliases were merged, and four test-source abstracts were excluded. No external -paper content, guessed title, citation path, or additional relevance label was -invented. The original 139 test proposals were reviewed before scoring: 15 -clear citation-binding errors were excluded and two unresolved cases held out. -The retained proposal text and its complete positive set are unchanged apart -from exact duplicate alias mapping. This is an audited derivative, not a claim -to reproduce the paper's exact corpus construction or reported 49.34% result. - -Public examples retain every field, duplicate row and label from the original -22,793-row augmented CSV, with **no quality filtering**. Only split isolation is -applied: 3,106 rows from 55 original test-source groups and 74 rows quoting a -test-source abstract as a cited abstract are excluded. The original train CSV -is already included in the augmented CSV and is not appended a second time. -Rows are citation contexts, not 19,613 independent research proposals. Original -development proposals are not shipped as an additional public split. Overlap -in cited target papers across training and test is allowed; test source papers -and test proposal text are isolated. - -The public record fields remain those of the source CSV, including `proposal`, -`citation_text`, `intent`, `inspirational`, paper IDs and the two abstracts. -Unjudged corpus papers receive zero gain in the fixed evaluation; this does not -establish that every other paper is methodologically irrelevant. Labels are -not exhaustive human relevance judgments, and the examples are not claimed to -have passed the test-set content audit. - -See [LICENSE.data.md](LICENSE.data.md) and -[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). MIR's original contributions -are CC BY 4.0; MultiCite-derived material retains CC BY-NC 2.0 and paper content -retains its applicable source terms. The source does not supply a complete -per-paper redistribution license inventory. No blanket unrestricted license is -claimed. Stella's upstream model card declares MIT; its revision is -`ffeb2b7ee715c226d4ffe5e4619f7dbb48624c20`. +Source: [MIR: Methodology Inspiration Retrieval for Scientific Research Problems](https://aclanthology.org/2025.acl-long.1390/), Garikaparthi et al., ACL 2025; [official repository](https://github.com/Anikethh/Methodology-Inspiration-Retrieval), commit `5a793828a6894856123819cefa637b3e21bd5477`. + +The corpus is the fixed union of cited abstracts in the four published CSVs. Nine malformed/non-abstract records were removed, five exact duplicate abstract aliases were merged, and four test-source abstracts were excluded. No external paper content, guessed title, citation path, or additional relevance label was invented. The original 139 test proposals were reviewed before scoring: 15 clear citation-binding errors were excluded and two unresolved cases held out. The retained proposal text and its complete positive set are unchanged apart from exact duplicate alias mapping. This is an audited derivative, not a claim to reproduce the paper's exact corpus construction or reported 49.34% result. + +Public examples retain every field, duplicate row and label from the original 22,793-row augmented CSV, with **no quality filtering**. Only split isolation is applied: 3,106 rows from 55 original test-source groups and 74 rows quoting a test-source abstract as a cited abstract are excluded. The original train CSV is already included in the augmented CSV and is not appended a second time. Rows are citation contexts, not 19,613 independent research proposals. Original development proposals are not shipped as an additional public split. Overlap in cited target papers across training and test is allowed; test source papers and test proposal text are isolated. + +The public record fields remain those of the source CSV, including `proposal`, `citation_text`, `intent`, `inspirational`, paper IDs and the two abstracts. Unjudged corpus papers receive zero gain in the fixed evaluation; this does not establish that every other paper is methodologically irrelevant. Labels are not exhaustive human relevance judgments, and the examples are not claimed to have passed the test-set content audit. + +See [LICENSE.data.md](LICENSE.data.md) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). MIR's original contributions are CC BY 4.0; MultiCite-derived material retains CC BY-NC 2.0 and paper content retains its applicable source terms. The source does not supply a complete per-paper redistribution license inventory. No blanket unrestricted license is claimed. Stella's upstream model card declares MIT; its revision is `ffeb2b7ee715c226d4ffe5e4619f7dbb48624c20`. ## Change Log @@ -102,50 +62,23 @@ Relevant papers may share a useful methodology with a research proposal without ### Evaluation -For each query, `recall_q = |top3 ∩ positives_q| / |positives_q|`. -`Q` is the arithmetic mean over all 122 queries. Positive-set sizes are -1 for 74 queries, 2 for 37, 3 for 8 and 5 for 3. Consequently the attainable -mean Recall@3 is `U = mean(min(3, |positives_q|) / |positives_q|)` = -`0.9901639344262295`. - -The user-approved fixed zero anchor is **B = 0.310109**. Deterministic quality -reward is `clip((Q - B) / (U - B), 0, 1)`. This preserves standard macro -Recall@3 while allowing an ideal Top-3 list for every query to earn full credit. -The source measurement was `0.3101092896174863` for untrained Stella without a -query prompt on this exact corpus/test set. Rounding the anchor to six decimal -places is intentional. The archived result is `models.stella_plain.recall3` in -`../../../task_development/methodology-inspiration-retrieval/research/stella400m-v1/screened-v2-results.json`. -Neither the published paper result nor a new trial score replaces this frozen -anchor. - -Invalid build/output, a whole-batch timeout or a confirmed integrity violation -receives zero. A successful passing trajectory audit is required for final -reward; unavailable or failed judges never silently pass. The numerical -normalization is author/verifier information, not solver implementation advice. +For each query, `recall_q = |top3 ∩ positives_q| / |positives_q|`. `Q` is the arithmetic mean over all 122 queries. Positive-set sizes are 1 for 74 queries, 2 for 37, 3 for 8 and 5 for 3. Consequently the attainable mean Recall@3 is `U = mean(min(3, |positives_q|) / |positives_q|)` = `0.9901639344262295`. + +The user-approved fixed zero anchor is **B = 0.310109**. Deterministic quality reward is `clip((Q - B) / (U - B), 0, 1)`. This preserves standard macro Recall@3 while allowing an ideal Top-3 list for every query to earn full credit. The source measurement was `0.3101092896174863` for untrained Stella without a query prompt on this exact corpus/test set. Rounding the anchor to six decimal places is intentional. The archived result is `models.stella_plain.recall3` in `../../../task_development/methodology-inspiration-retrieval/research/stella400m-v1/screened-v2-results.json`. Neither the published paper result nor a new trial score replaces this frozen anchor. + +Invalid build/output, a whole-batch timeout or a confirmed integrity violation receives zero. A successful passing trajectory audit is required for final reward; unavailable or failed judges never silently pass. The numerical normalization is author/verifier information, not solver implementation advice. ### Authoring and release status -Construction scripts, source maps, review decisions, baseline implementations -and runtime evidence live in the sibling author workspace -`task_development/methodology-inspiration-retrieval/`, outside both task images. -`package_data.py` reconstructs the fixed inputs. `package-build/design.md` -records decisions; `package-build/input-inventory.json` fingerprints inputs; -`research/stella400m-v1/REPORT.txt` records the original audit and measurements. - -Reviewed merged precedents at checkout -`46197a43f8cbb364e72b6d63d5db873ae7d2cac8` were -`tasks/reasoning-query-rewriting` (retrieval CLI, API policy, separate audit) -and `tasks/code-embedding-finetuning` (GPU and fixed local model assets). -The already exercised local `tasks/chunqiu-temporal-retrieval` supplied the -whole-batch process/isolation structure. MIR uses different inputs, model, -metric, normalization and deadlines. Fenced command examples follow the user's -preferred instruction style. No starter or reference solution is shipped. +Construction scripts, source maps, review decisions, baseline implementations and runtime evidence live in the sibling author workspace `task_development/methodology-inspiration-retrieval/`, outside both task images. `package_data.py` reconstructs the fixed inputs. `package-build/design.md` records decisions; `package-build/input-inventory.json` fingerprints inputs; `research/stella400m-v1/REPORT.txt` records the original audit and measurements. + +Reviewed merged precedents at checkout `46197a43f8cbb364e72b6d63d5db873ae7d2cac8` were `tasks/reasoning-query-rewriting` (retrieval CLI, API policy, separate audit) and `tasks/code-embedding-finetuning` (GPU and fixed local model assets). The already exercised local `tasks/chunqiu-temporal-retrieval` supplied the whole-batch process/isolation structure. MIR uses different inputs, model, metric, normalization and deadlines. Fenced command examples follow the user's preferred instruction style. No starter or reference solution is shipped. Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [RUN_RESULTS.md](RUN_RESULTS.md) for the current run evidence and publication status. Existing source terms and attribution remain applicable. See [RUN_RESULTS.md](RUN_RESULTS.md) for recorded run outcomes and judge health, and [VALIDATION.md](VALIDATION.md) for validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -159,4 +92,7 @@ bash scripts/evaluation/run_task.sh --task methodology-inspiration-retrieval --a ## References -- [Task reference](https://aclanthology.org/2025.acl-long.1390/). +- **Task source** — [MIR (ACL 2025)](https://aclanthology.org/2025.acl-long.1390/) +- **Data source** — [MIR](https://github.com/Anikethh/Methodology-Inspiration-Retrieval) with task-specific fixed-corpus screening. +- **Model source** — [NovaSearch/stella_en_400M_v5](https://huggingface.co/NovaSearch/stella_en_400M_v5). +- **Provenance details** — [Dataset attribution and license scope](LICENSE.data.md) diff --git a/tasks/multilingual-vector-postprocessing/README.md b/tasks/multilingual-vector-postprocessing/README.md index f22a8e4..c911685 100644 --- a/tasks/multilingual-vector-postprocessing/README.md +++ b/tasks/multilingual-vector-postprocessing/README.md @@ -11,15 +11,14 @@ | Compute | 16 CPUs; 16 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 45600 s | | Dataset | Belebele and XQuAD full multilingual pools, original-content-grouped development/test partition | +| Public queries | 3138 | +| Hidden queries | 13002 | + +## Overview Improve multilingual retrieval by postprocessing frozen 1024-dimensional vectors with one GPU within six hours. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -35,6 +34,8 @@ Only transformations of frozen vectors are available. Improvements must transfer The verifier normalizes transformed vectors, ranks by FP32 cosine and computes binary nDCG@20 using the full positive sets. It averages equally across query languages and datasets, then linearly normalizes improvement from the fixed baseline B=0.9127469497437668 to the full-score point Q=1. Five fresh measurement rounds use a fixed order and fixed consistency probes. Each query is scored from its median-duration sample; failed samples occupy the deadline, and quality is never used to select a sample. Query failures retain their denominator; preparation, resource and integrity failures invalidate the submission. See the [verification contract](raw-instruction.md#verification) for exact formulas, thresholds and failure handling. +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -44,26 +45,15 @@ python scripts/assets/download_assets.py --task multilingual-vector-postprocessi python scripts/assets/download_assets.py --task multilingual-vector-postprocessing --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model cards, -licenses and data-use restrictions are described in the resource document. +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model cards, licenses and data-use restrictions are described in the resource document. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 16 GiB RAM and -100 GiB storage. Agent development has -21600 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. The primary supervisor is 43,500 seconds, the audit wrapper is 1,200 seconds, and the outer verifier allows 45,600 seconds. +The task allocates 16 CPU cores, 16 GiB RAM and 100 GiB storage. Agent development has 21600 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. The primary supervisor is 43,500 seconds, the audit wrapper is 1,200 seconds, and the outer verifier allows 45,600 seconds. -Both phases require one GPU. Use `--gpu-device` to select the same -host GPU for both phases. +Both phases require one GPU. Use `--gpu-device` to select the same host GPU for both phases. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials -are not submission inputs. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials are not submission inputs. Invoke the standard entrypoint directly: @@ -73,9 +63,7 @@ bash scripts/evaluation/run_task.sh --task multilingual-vector-postprocessing -- --output "jobs/multilingual-vector-postprocessing-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -84,13 +72,11 @@ python scripts/validation/check_tasks.py tasks/multilingual-vector-postprocessin python scripts/assets/download_assets.py --task multilingual-vector-postprocessing --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -None. +- **Task source** — [LangSAE Editing (ACL 2026)](https://aclanthology.org/2026.acl-long.1685/) +- **Data source** — Belebele and XQuAD multilingual pools with frozen embeddings and original-content-grouped splits. [Asset manifest](assets.json) diff --git a/tasks/narrative-clue-search/README.md b/tasks/narrative-clue-search/README.md index 21097b4..507d8a3 100644 --- a/tasks/narrative-clue-search/README.md +++ b/tasks/narrative-clue-search/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 445 | -Find a work from a user's long, incomplete and uncertain recollection. +## Overview -### Overview +Find a work from a user's long, incomplete and uncertain recollection. -A user may remember a film through scattered plot details, comparisons and -uncertain impressions rather than its title. The system must search article -text and return the matching work near the start of its ranking. +A user may remember a film through scattered plot details, comparisons and uncertain impressions rather than its title. The system must search article text and return the matching work near the start of its ranking. -This task uses human recollections and their released relevance judgments. -It leaves query interpretation and retrieval design to the implementation. +This task uses human recollections and their released relevance judgments. It leaves query interpretation and retrieval design to the implementation. ### Task Setup @@ -35,34 +32,19 @@ It leaves query interpretation and retrieval design to the implementation. | `data/validation/` | Five public recollections and qrels | | `data/training/sentence_labels.jsonl` | Original sentence annotations for public queries only | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs use the [TREC Tip-of-the-Tongue 2023 movie collection](https://trec-tot.github.io/guidelines-2023). -The [official 2024 dev2 release](https://trec-tot.github.io/guidelines-2024) -republishes the 2023 test judgments used here. +Inputs use the [TREC Tip-of-the-Tongue 2023 movie collection](https://trec-tot.github.io/guidelines-2023). The [official 2024 dev2 release](https://trec-tot.github.io/guidelines-2024) republishes the 2023 test judgments used here. -All 450 original questions are retained: five public and 445 held out. -The 231,852-row source archive contains 26 empty-text entries and two articles -with the same ID; these 28 entries are removed, with all relevance targets -verified unaffected. Questions retain their original recollections but omit -target links and answer metadata. Public sentence annotations add no hidden-query -supervision. +All 450 original questions are retained: five public and 445 held out. The 231,852-row source archive contains 26 empty-text entries and two articles with the same ID; these 28 entries are removed, with all relevance targets verified unaffected. Questions retain their original recollections but omit target links and answer metadata. Public sentence annotations add no hidden-query supervision. #### Fixed Components and Allowed Changes -The article collection, questions, relevance labels and ranked-output interface -are fixed. Index design, query formulations, candidate selection and ranking -are implementation choices. There is no required BM25 pipeline, fixed rewrite -count or ban on semantic reranking. Optional OpenRouter and Jina services follow -the [resource policy](environment/docs/available_resources.md). No starter is supplied. +The article collection, questions, relevance labels and ranked-output interface are fixed. Index design, query formulations, candidate selection and ranking are implementation choices. There is no required BM25 pipeline, fixed rewrite count or ban on semantic reranking. Optional OpenRouter and Jina services follow the [resource policy](environment/docs/available_resources.md). No starter is supplied. #### Environment and Resource Limits -The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and -no GPU. Development has two hours. Index construction has 3,600 seconds; -each of two query calls has 2,700 seconds. +The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and no GPU. Development has two hours. Index construction has 3,600 seconds; each of two query calls has 2,700 seconds. ## Change Log @@ -80,13 +62,9 @@ each of two query calls has 2,700 seconds. ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Each request contains the query ID and recollection text. -Return up to ten distinct article IDs with finite nonincreasing scores. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Each request contains the query ID and recollection text. Return up to ten distinct article IDs with finite nonincreasing scores. -Commands run as a non-root user with code and corpus read-only. The supplied -index directory stays writable across calls; its parent is not writable. -Use the supplied index, output, cache and temporary paths for generated files. +Commands run as a non-root user with code and corpus read-only. The supplied index directory stays writable across calls; its parent is not writable. Use the supplied index, output, cache and temporary paths for generated files. The full schema and invocation details are in [instruction.md](instruction.md). @@ -94,60 +72,38 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Compute nDCG@10 using complete original qrels, then average equally over -445 held-out questions. +Compute nDCG@10 using complete original qrels, then average equally over 445 held-out questions. -Four category means based on original human uncertainty annotations and a fixed -median narrative length are diagnostics. They do not change query weights or -introduce model-generated categories. +Four category means based on original human uncertainty annotations and a fixed median narrative length are diagnostics. They do not change query weights or introduce model-generated categories. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.40178618363049623` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.40178618363049623` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -The commands below apply in a checkout with this package installed at -`tasks/narrative-clue-search/`: +The commands below apply in a checkout with this package installed at `tasks/narrative-clue-search/`: ```bash python scripts/assets/download_assets.py --task narrative-clue-search @@ -155,11 +111,7 @@ bash scripts/evaluation/run_task.sh --task narrative-clue-search --agent codex - --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/narrative-clue-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/narrative-clue-search/`. ### Task Files @@ -177,4 +129,6 @@ credentials or hardware. Results are written under `jobs/narrative-clue-search/` ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [Tip-of-the-Tongue (TREC 2023)](https://trec-tot.github.io/guidelines-2023) +- **Data source** — TREC Tip-of-the-Tongue movie collection and human recollections. The 2024 dev2 release supplies the 2023 test judgments. +- **Provenance details** — [Input releases, preparation, and usage terms](SOURCES.md) diff --git a/tasks/negative-constraint-retrieval/README.md b/tasks/negative-constraint-retrieval/README.md index 82ac39c..d395de8 100644 --- a/tasks/negative-constraint-retrieval/README.md +++ b/tasks/negative-constraint-retrieval/README.md @@ -14,52 +14,19 @@ | Public queries | 10 | | Hidden queries | 10 | -Build a Top-1 search engine over 8,011 fixed passages. The 20 authored queries -require a named subject and semantic exclusions such as roles, events, named -works, institutions or other content. There are 10 public validation and 10 -hidden test queries, with 19 subject groups and no subject overlap between folds. -Each query has one author-reviewed compliant passage; the 20 positives are distinct. - -The deterministic score is hidden Accuracy@1, correct predictions / 10. -A query timeout or valid incorrect prediction loses only that query's credit; -evaluation continues and all 10 queries remain in the denominator. Other invalid -execution/output still gives zero for the submission. A required RewardKit trajectory audit separately enforces the -resource and integrity policy; an unavailable or failed audit gives zero final -reward and is an infrastructure failure, not evidence of poor retrieval. +## Overview + +Build a Top-1 search engine over 8,011 fixed passages. The 20 authored queries require a named subject and semantic exclusions such as roles, events, named works, institutions or other content. There are 10 public validation and 10 hidden test queries, with 19 subject groups and no subject overlap between folds. Each query has one author-reviewed compliant passage; the 20 positives are distinct. + +The deterministic score is hidden Accuracy@1, correct predictions / 10. A query timeout or valid incorrect prediction loses only that query's credit; evaluation continues and all 10 queries remain in the denominator. Other invalid execution/output still gives zero for the submission. A required RewardKit trajectory audit separately enforces the resource and integrity policy; an unavailable or failed audit gives zero final reward and is an infrastructure failure, not evidence of poor retrieval. ### Fixed inputs and provenance -The original text comes from `xgl-git/NS-IR-main` at historical commit -`ebdfa4f62b3c2af01d43cf30560910fba3003c73`, archive `NegConstraint.zip` with SHA-256 -`a10dc25f13b816b4cd7c17c221b2916a97c981b0b8f086dbf3826a1c6e47cbfe`. -Its 3,946 raw document IDs become 3,907 documents after exact-text deduplication. -All original passage texts and IDs remain unchanged. The corpus includes 4,104 -source-conditioned passages generated locally with Qwen3.5-9B across 365 topic -cohorts: 3,889 background passages and 215 evaluated-subject negatives. The same -generation, fact-preservation and automatic filtering policy covers both groups. -Eight passages received source-based family-relationship corrections; sampled -unsupported details, truncations and duplicate generations were removed. -Queries and relevance decisions are newly authored; -original qrels are not used as the new ground truth. Some corpus paragraphs look -constructed; this package does not claim that all are original Wikipedia excerpts. - -Every document receives an opaque random ID, independently of a shuffled row -order. Original numeric IDs, provenance, label files, baseline outputs and the -private ID map/seed are absent from Agent mounts and build context. The pair with -original ID 10221 is therefore neither numerically identifiable nor adjacent to -its original partner by construction order. Randomization is not a guarantee -against every possible corpus shortcut; original and generated passage styles -remain visible. All 8,011 rows were shuffled together after augmentation. -Queries also receive opaque IDs. The two Henry Avery queries share a fold. - -For the original corpus, the author inspected every complete passage matching -the required subject names. Every admitted new matching passage preserves an -affirmative, author-reviewed fact that violates at least one query exclusion; -new Avery passages violate both Avery queries. Whole-corpus subject scans verify -that the 20 original unique positives remain the only compliant passages. -Generation factual review was sampled, with source corrections recorded in the -author ledger. These are assistant annotations, not independent human adjudication -or exhaustive certification of every generated factual detail. +The original text comes from `xgl-git/NS-IR-main` at historical commit `ebdfa4f62b3c2af01d43cf30560910fba3003c73`, archive `NegConstraint.zip` with SHA-256 `a10dc25f13b816b4cd7c17c221b2916a97c981b0b8f086dbf3826a1c6e47cbfe`. Its 3,946 raw document IDs become 3,907 documents after exact-text deduplication. All original passage texts and IDs remain unchanged. The corpus includes 4,104 source-conditioned passages generated locally with Qwen3.5-9B across 365 topic cohorts: 3,889 background passages and 215 evaluated-subject negatives. The same generation, fact-preservation and automatic filtering policy covers both groups. Eight passages received source-based family-relationship corrections; sampled unsupported details, truncations and duplicate generations were removed. Queries and relevance decisions are newly authored; original qrels are not used as the new ground truth. Some corpus paragraphs look constructed; this package does not claim that all are original Wikipedia excerpts. + +Every document receives an opaque random ID, independently of a shuffled row order. Original numeric IDs, provenance, label files, baseline outputs and the private ID map/seed are absent from Agent mounts and build context. The pair with original ID 10221 is therefore neither numerically identifiable nor adjacent to its original partner by construction order. Randomization is not a guarantee against every possible corpus shortcut; original and generated passage styles remain visible. All 8,011 rows were shuffled together after augmentation. Queries also receive opaque IDs. The two Henry Avery queries share a fold. + +For the original corpus, the author inspected every complete passage matching the required subject names. Every admitted new matching passage preserves an affirmative, author-reviewed fact that violates at least one query exclusion; new Avery passages violate both Avery queries. Whole-corpus subject scans verify that the 20 original unique positives remain the only compliant passages. Generation factual review was sampled, with source corrections recorded in the author ledger. These are assistant annotations, not independent human adjudication or exhaustive certification of every generated factual detail. The upstream dataset redistribution-license question remains unresolved. Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [recorded run evidence](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) for historical run outcomes and publication status. Existing source terms and attribution remain applicable. @@ -73,110 +40,43 @@ The upstream dataset redistribution-license question remains unresolved. Public ### Difficulty evidence -The expanded corpus uses the 20 conversational queries, -labels, unique-positive texts, 8-second deadline and 4-CPU verifier. Evaluated -subjects now have 6–20 matching passages, and 346 additional background cohorts -also receive generated passages. No query, label, split, source map or generation -marker is added to corpus records. - -An offline comparison of the frozen v0.2.2 Luna implementation gives hidden gold -ranks `[11,12,6,6,14,15,13,10,20,11]`, median 11.5, versus median 2 before expansion. -Its Top-8 recall falls from 10/10 to 2/10; always selecting the second candidate -falls from 9/10 to 0/10. Full-query BM25 with the same tokenizer (`k1=1.5,b=.75`) -has hidden median gold rank 12.5 and Top-8 recall 2/10. These protocols are -recorded in `corpus-expanded-v030/rank-comparison.json`; they are distinct from -the older screening protocols below. Queries and augmentation were frozen -before measuring these ranks or replaying the API. Style clues may remain, and -low scores from a frozen Top-8 solver do not establish difficulty for a fresh -agent that can adapt its retrieval strategy. - -The frozen submission replay scores **0/10 public and 0/10 hidden** with its -original internal timeouts plus the 8-second grader. Removing query-related -waiting limits gives **0/10 public and 2/10 hidden**. No grader query times out; -all unlimited test invocations also finish within 8 seconds. Eight hidden gold -passages are absent from the Top-8 pool. The other two encounter the program's -own HTTP read timeout in the original setting and are answered correctly in the -unlimited replay. This is a raw-score diagnostic using the real grader, not a -fresh coding-agent Harbor trial or an audited final reward. Full evidence is in -`task_results/negative-constraint-retrieval/frozen-luna-expanded-v030-20261014T113140Z/` -in the surrounding workspace. +The expanded corpus uses the 20 conversational queries, labels, unique-positive texts, 8-second deadline and 4-CPU verifier. Evaluated subjects now have 6–20 matching passages, and 346 additional background cohorts also receive generated passages. No query, label, split, source map or generation marker is added to corpus records. + +An offline comparison of the frozen v0.2.2 Luna implementation gives hidden gold ranks `[11,12,6,6,14,15,13,10,20,11]`, median 11.5, versus median 2 before expansion. Its Top-8 recall falls from 10/10 to 2/10; always selecting the second candidate falls from 9/10 to 0/10. Full-query BM25 with the same tokenizer (`k1=1.5,b=.75`) has hidden median gold rank 12.5 and Top-8 recall 2/10. These protocols are recorded in `corpus-expanded-v030/rank-comparison.json`; they are distinct from the older screening protocols below. Queries and augmentation were frozen before measuring these ranks or replaying the API. Style clues may remain, and low scores from a frozen Top-8 solver do not establish difficulty for a fresh agent that can adapt its retrieval strategy. + +The frozen submission replay scores **0/10 public and 0/10 hidden** with its original internal timeouts plus the 8-second grader. Removing query-related waiting limits gives **0/10 public and 2/10 hidden**. No grader query times out; all unlimited test invocations also finish within 8 seconds. Eight hidden gold passages are absent from the Top-8 pool. The other two encounter the program's own HTTP read timeout in the original setting and are answered correctly in the unlimited replay. This is a raw-score diagnostic using the real grader, not a fresh coding-agent Harbor trial or an audited final reward. Full evidence is in `task_results/negative-constraint-retrieval/frozen-luna-expanded-v030-20261014T113140Z/` in the surrounding workspace. The following v0.2.x results use the earlier 3,907-document corpus. -Version 0.2.2 rewrites all 20 queries again as conversational reading requests. -They use preferences, questions, reading context and references across sentences, -without repeated accept/reject explanations. The common requirement to name the -requested subjects now appears once in the task instruction; surnames suffice -for people. Preferences to leave content out remain hard exclusions, and allowed -exceptions retain their scope. Corpus text, query/document IDs, labels and the -10/10 split are unchanged. The 8-second deadline and per-query timeout scoring -from v0.2.1 are unchanged. The author-only before/after ledger and semantic review -are in `task_development/negative-constraint-retrieval/construction/natural-language-v3/`. -The historical `freeze_task_dataset.py` is guarded against overwriting v0.3.0; -use the audited `corpus-expanded-v030` artifacts for the expanded version. - -The following screening results describe **the original wording**, not the current queries. All 20 original queries fail Top-1 for four fixed local baselines: BM25, BGE-M3 dense, -Qwen3-Embedding-8B, and Qwen3-Reranker-8B over the union of each retriever's Top-100. -The first three score all 3,907 documents. The reranker evaluates the candidate -union; the claim is not an exhaustive full-corpus reranking experiment. Each -failure has a strictly higher-scoring wrong-document witness, so corpus shuffle -or tie-breaking cannot remove it. The stronger negative-constraint reranker -instruction solves 3/20; 17/20 remain misses. Many gold documents rank second: -these are Top-1 failures, not necessarily Top-10 failures. Selection against -these baselines is deliberate and does not imply unseen Agents will fail. +Version 0.2.2 rewrites all 20 queries again as conversational reading requests. They use preferences, questions, reading context and references across sentences, without repeated accept/reject explanations. The common requirement to name the requested subjects now appears once in the task instruction; surnames suffice for people. Preferences to leave content out remain hard exclusions, and allowed exceptions retain their scope. Corpus text, query/document IDs, labels and the 10/10 split are unchanged. The 8-second deadline and per-query timeout scoring from v0.2.1 are unchanged. The author-only before/after ledger and semantic review are in `task_development/negative-constraint-retrieval/construction/natural-language-v3/`. The historical `freeze_task_dataset.py` is guarded against overwriting v0.3.0; use the audited `corpus-expanded-v030` artifacts for the expanded version. + +The following screening results describe **the original wording**, not the current queries. All 20 original queries fail Top-1 for four fixed local baselines: BM25, BGE-M3 dense, Qwen3-Embedding-8B, and Qwen3-Reranker-8B over the union of each retriever's Top-100. The first three score all 3,907 documents. The reranker evaluates the candidate union; the claim is not an exhaustive full-corpus reranking experiment. Each failure has a strictly higher-scoring wrong-document witness, so corpus shuffle or tie-breaking cannot remove it. The stronger negative-constraint reranker instruction solves 3/20; 17/20 remain misses. Many gold documents rank second: these are Top-1 failures, not necessarily Top-10 failures. Selection against these baselines is deliberate and does not imply unseen Agents will fail. For v0.2.0, the same fixed BM25 protocol scores 1/10 on public queries and 0/10 on hidden queries. The archived luna local fallback with API calls disabled scores 2/10 public and 0/10 hidden; these are historical offline diagnostics, not a coding-model trial of the current revision. -For v0.2.2, frozen-wording offline diagnostics give BM25 0/10 on each split -and the archived luna fallback 3/10 public, 0/10 hidden. The fallback's candidate -recall at 8 is 8/10 public and 7/10 hidden. These mixed changes do not establish -that a new coding agent will score lower; no query was retuned using the results. - -One v0.2.2 Harbor trial of Codex + OpenRouter `openai/gpt-6-luna`, effort `max`, -scored raw 1/10 on hidden queries, with no query timeouts and 3.318–5.032 seconds -per query. Public self-tests scored 10/10. Final Harbor reward was zero because -RewardKit retried an already completed audit after a recovered stream event and -exhausted its audit deadline. v0.2.3 fixes that transport handling, with unchanged -queries, retrieval scoring and budgets. These are historical trial records. -The reconciled v0.3.0 verifier-only run scored 1/10 with a passing audit; -see [recorded run evidence](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) for that saved-submission measurement. - -The Agent implements the search engine under `/app` from the documented interfaces. -Author construction evidence lives outside this task package at -`task_development/negative-constraint-retrieval/construction/final-20/` in the -surrounding author workspace, including `review.md` and `evidence.jsonl`. +For v0.2.2, frozen-wording offline diagnostics give BM25 0/10 on each split and the archived luna fallback 3/10 public, 0/10 hidden. The fallback's candidate recall at 8 is 8/10 public and 7/10 hidden. These mixed changes do not establish that a new coding agent will score lower; no query was retuned using the results. + +One v0.2.2 Harbor trial of Codex + OpenRouter `openai/gpt-6-luna`, effort `max`, scored raw 1/10 on hidden queries, with no query timeouts and 3.318–5.032 seconds per query. Public self-tests scored 10/10. Final Harbor reward was zero because RewardKit retried an already completed audit after a recovered stream event and exhausted its audit deadline. v0.2.3 fixes that transport handling, with unchanged queries, retrieval scoring and budgets. These are historical trial records. The reconciled v0.3.0 verifier-only run scored 1/10 with a passing audit; see [recorded run evidence](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) for that saved-submission measurement. + +The Agent implements the search engine under `/app` from the documented interfaces. Author construction evidence lives outside this task package at `task_development/negative-constraint-retrieval/construction/final-20/` in the surrounding author workspace, including `review.md` and `evidence.jsonl`. ## Verification Explanation ### Interface, runtime and isolation -`instruction.md` is the complete Agent request; `raw-instruction.md` is its -structured authoring source. Corpus records use `doc_id,text`, queries use -`query_id,text`, and ground truth uses `query_id,relevant_doc_ids` (singleton). -The engine returns one `results` item with `doc_id` and a finite numeric `score`. - -Runtime: 4 CPU cores, 32 GiB RAM, 100 GiB storage, no GPU; Agent phase 7,200 s; -build 1,800 s. Verification builds once and runs queries sequentially in separate -invocations, each with one input row and an 8-second wall-clock deadline (3-second -base plus 5-second fixed network allowance). Startup, index loading and all API -waits count; budgets cannot be pooled. A query timeout scores zero only for that -query, ignores its output, and preserves evaluation of all remaining queries. -Each invocation has distinct input/output files; its process group is terminated -on timeout while build-started services remain available. Build failures/timeouts -and non-timeout execution/output errors still invalidate the submission. -The CPU allocation does not cap asynchronous API concurrency. Local GPUs were used only for author-side screening and corpus generation. The user chose the existing CPU/API resource profile for submissions. -OpenRouter/Jina retrieval and the three explicit Qwen generation models are -permitted. Generation may check constraints on supplied passages, in addition to -query rewriting. No external web or benchmark lookup is permitted. - -Only `/app` and the Agent trajectory are transferred. The verifier rebuilds in -a fresh directory as UID 10001 using `runuser`, `setpriv --no-new-privs`, an -explicit environment and process timeouts. `/app` is read-only to the submission; -only index/cache/temp and output locations are writable. `/tests`, labels, -trajectory and reward logs are root-private. Judge credentials are not passed -to submitted programs. Both phases use the pinned repository CPU base image. - -### Validation and local configuration +`instruction.md` is the complete Agent request; `raw-instruction.md` is its structured authoring source. Corpus records use `doc_id,text`, queries use `query_id,text`, and ground truth uses `query_id,relevant_doc_ids` (singleton). The engine returns one `results` item with `doc_id` and a finite numeric `score`. + +Runtime: 4 CPU cores, 32 GiB RAM, 100 GiB storage, no GPU; Agent phase 7,200 s; build 1,800 s. Verification builds once and runs queries sequentially in separate invocations, each with one input row and an 8-second wall-clock deadline (3-second base plus 5-second fixed network allowance). Startup, index loading and all API waits count; budgets cannot be pooled. A query timeout scores zero only for that query, ignores its output, and preserves evaluation of all remaining queries. Each invocation has distinct input/output files; its process group is terminated on timeout while build-started services remain available. Build failures/timeouts and non-timeout execution/output errors still invalidate the submission. The CPU allocation does not cap asynchronous API concurrency. Local GPUs were used only for author-side screening and corpus generation. The user chose the existing CPU/API resource profile for submissions. OpenRouter/Jina retrieval and the three explicit Qwen generation models are permitted. Generation may check constraints on supplied passages, in addition to query rewriting. No external web or benchmark lookup is permitted. + +Only `/app` and the Agent trajectory are transferred. The verifier rebuilds in a fresh directory as UID 10001 using `runuser`, `setpriv --no-new-privs`, an explicit environment and process timeouts. `/app` is read-only to the submission; only index/cache/temp and output locations are writable. `/tests`, labels, trajectory and reward logs are root-private. Judge credentials are not passed to submitted programs. Both phases use the pinned repository CPU base image. + +### Structural precedent + +Reviewed base: `46197a43f8cbb364e72b6d63d5db873ae7d2cac8`. `tasks/reasoning-query-rewriting` supplied the full-corpus search CLI, CPU/API budgets, separate-verifier isolation, RewardKit 0.2.0 integration, and final reward gating. Its corpus, queries, gold, metric and narrower generation-use restriction were not inherited. This task uses Accuracy@1, unique-positive semantic constraints and allowed query-passage reasoning. The task name is absent from the local base and existing directories; active remote PR collision checking was not performed. The two existing repository test inventories and the network-policy table were extended with this task's network profile and RewardKit use. Existing unrelated network-policy and join-aware task changes were preserved. + +See [VALIDATION.md](VALIDATION.md) for recorded run outcomes, judge health and validation evidence. + +## Running the Task From the Search-SWE root: @@ -188,36 +88,12 @@ docker build -t search-swe-local:nc-agent tasks/negative-constraint-retrieval/en docker build -t search-swe-local:nc-verifier tasks/negative-constraint-retrieval/tests ``` -Public inputs use the immutable revisions, exact sizes and hashes in -`assets.json`. [VALIDATION.md](VALIDATION.md) retains the original development -checks and the reconciled verifier result. +Public inputs use the immutable revisions, exact sizes and hashes in `assets.json`. [VALIDATION.md](VALIDATION.md) retains the original development checks and the reconciled verifier result. -For a future configured trial, preserve any existing ignored checkout `.env` -and set the chosen coding model/provider and its credential, for example -`AGENT_MODEL` and `AGENT_OPENROUTER_API_KEY`. The required trajectory judge needs -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and -`VERIFIER_OPENAI_API_KEY`. Optional submission resources need -the shared `OPENROUTER_API_KEY` and/or `JINA_API_KEY`, as in `agentic-search`. -Do not share secret values in chat or write them into artifacts. The archived v0.1.1 luna trial achieved 8/10 with about 59 seconds for the whole batch; it does not validate the revised setting. The historical trial and completed saved-submission regrade are recorded above. For a separately authorized fresh trial, launch with -`bash scripts/evaluation/run_task.sh --task negative-constraint-retrieval` and the chosen -model/provider flags, previewing with `--dry-run` first. - -### Structural precedent - -Reviewed base: `46197a43f8cbb364e72b6d63d5db873ae7d2cac8`. -`tasks/reasoning-query-rewriting` supplied the full-corpus search CLI, -CPU/API budgets, separate-verifier isolation, RewardKit 0.2.0 integration, -and final reward gating. Its corpus, queries, gold, metric and narrower -generation-use restriction were not inherited. This task uses Accuracy@1, -unique-positive semantic constraints and allowed query-passage reasoning. -The task name is absent from the local base and existing directories; active -remote PR collision checking was not performed. The two existing repository test -inventories and the network-policy table were extended with this task's network -profile and RewardKit use. -Existing unrelated network-policy and join-aware task changes were preserved. - -See [VALIDATION.md](VALIDATION.md) for recorded run outcomes, judge health and validation evidence. +For a future configured trial, preserve any existing ignored checkout `.env` and set the chosen coding model/provider and its credential, for example `AGENT_MODEL` and `AGENT_OPENROUTER_API_KEY`. The required trajectory judge needs `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and `VERIFIER_OPENAI_API_KEY`. Optional submission resources need the shared `OPENROUTER_API_KEY` and/or `JINA_API_KEY`, as in `agentic-search`. Do not share secret values in chat or write them into artifacts. The archived v0.1.1 luna trial achieved 8/10 with about 59 seconds for the whole batch; it does not validate the revised setting. The historical trial and completed saved-submission regrade are recorded above. For a separately authorized fresh trial, launch with `bash scripts/evaluation/run_task.sh --task negative-constraint-retrieval` and the chosen model/provider flags, previewing with `--dry-run` first. ## References -None. +- **Task source** — [NegConstraint (Findings of ACL 2025)](https://aclanthology.org/2025.findings-acl.92/) +- **Data source** — Original NegConstraint passages, augmented locally with Qwen3.5-9B and evaluated with task-authored queries. +- **Provenance details** — [Fixed inputs, source archive, and preparation](#fixed-inputs-and-provenance) diff --git a/tasks/paper-metadata-retrieval/README.md b/tasks/paper-metadata-retrieval/README.md index b32f7b8..fb6dbc8 100644 --- a/tasks/paper-metadata-retrieval/README.md +++ b/tasks/paper-metadata-retrieval/README.md @@ -14,6 +14,8 @@ | Public queries | 3 | | Hidden queries | 8 | +## Overview + Author: Cooki-e. Implement reusable Top-1 paper retrieval for natural-language research needs with source conditions. The CPU package provides 70,000 complete papers, 3 public validation requests and 8 verifier-only test requests. No training or fine-tuning. The public database is `data/corpus.sqlite`, with a single raw `documents` table containing document IDs, bibliographic IDs, titles, abstracts, complete text, metadata JSON and body checksums. It contains no search index, answer annotations, extracted eligibility masks or authoring traces. Source-collection and construction provenance is retained separately in the authoring workspace. Each paper keeps its actual per-record bibliographic and licensing metadata; no blanket redistribution license is asserted for the collection. @@ -54,7 +56,7 @@ The executable contract is in [instruction.md](instruction.md); [raw-instruction See [VALIDATION.md](VALIDATION.md) for recorded run outcomes, judge health and validation evidence. -### Running the task +## Running the Task From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -66,4 +68,5 @@ bash scripts/evaluation/run_task.sh --task paper-metadata-retrieval --agent code ## References -None. +- **Task source** — Experience +- **Data source** — Fixed full-text research-paper collection with task-authored requests. [Asset manifest](assets.json) diff --git a/tasks/protein-text-bidirectional-retrieval/README.md b/tasks/protein-text-bidirectional-retrieval/README.md index 52b9f0b..165b0fb 100644 --- a/tasks/protein-text-bidirectional-retrieval/README.md +++ b/tasks/protein-text-bidirectional-retrieval/README.md @@ -10,15 +10,15 @@ | Primary metric | Equal-weight mean of per-dataset strict reciprocal-top1 paired success fractions | | Compute | 16 CPUs; 16 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 3600 s / 130000 s | +| Dataset | ProtT3 Swiss-Prot and ProteinKG25 | +| Public queries | 10 per dataset and direction | +| Hidden queries | 10,000 per dataset and direction | + +## Overview Learn compact 64-dimensional protein/text embeddings and maximize strict reciprocal-top1 pair recovery under online latency and submission limits. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -38,6 +38,8 @@ A pair succeeds only when its independently executed protein-to-text and text-to [Validation evidence](VALIDATION.md) distinguishes the deployment limits from measured results and records the remaining need for a trial under the current 16 GiB memory limit. It also documents the public/runtime boundary and checks for the documentation cleanup. +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -47,26 +49,15 @@ python scripts/assets/download_assets.py --task protein-text-bidirectional-retri python scripts/assets/download_assets.py --task protein-text-bidirectional-retrieval --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Model provenance, -licenses and data-use terms are described in [SOURCES.md](SOURCES.md). +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. Model provenance, licenses and data-use terms are described in [SOURCES.md](SOURCES.md). -### Run +### Launch evaluation -The task allocates 16 CPU cores, 16 GiB RAM and -100 GiB storage. Agent development has -3600 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 16 GiB RAM and 100 GiB storage. Agent development has 3600 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. -Both phases require one GPU; the verifier does not restrict its model or memory capacity. Use `--gpu-device` to select the same -host GPU for both phases. +Both phases require one GPU; the verifier does not restrict its model or memory capacity. Use `--gpu-device` to select the same host GPU for both phases. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials -are not submission inputs. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials are not submission inputs. Invoke the standard entrypoint directly: @@ -76,9 +67,7 @@ bash scripts/evaluation/run_task.sh --task protein-text-bidirectional-retrieval --output "jobs/protein-text-bidirectional-retrieval-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -87,15 +76,12 @@ python scripts/validation/check_tasks.py tasks/protein-text-bidirectional-retrie python scripts/assets/download_assets.py --task protein-text-bidirectional-retrieval --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. ## References -- [Task reference](https://aclanthology.org/2024.acl-long.324/). - -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [ProtT3 (ACL 2024)](https://aclanthology.org/2024.acl-long.324/) +- **Data source** — Swiss-Prot and ProteinKG25 pairs from the ProtT3 data release. +- **Provenance details** — [Paired archives, ESM-2 and BiomedBERT checkpoints, and usage terms](SOURCES.md) diff --git a/tasks/quantity-aware-retrieval/README.md b/tasks/quantity-aware-retrieval/README.md index bc54007..d0831e2 100644 --- a/tasks/quantity-aware-retrieval/README.md +++ b/tasks/quantity-aware-retrieval/README.md @@ -14,11 +14,9 @@ | Public queries | 0 | | Hidden queries | 209 | -Author: **Bingyu**. This Search-SWE task uses -MedQuant. The required deliverable is an executable retrieval system. Resources -include labeled examples, Qwen3-Embedding-0.6B and documented OpenRouter/Jina APIs. No -baseline implementation, authoring helper, or precomputed document vectors are -provided to the agent. +## Overview + +Author: **Bingyu**. This Search-SWE task uses MedQuant. The required deliverable is an executable retrieval system. Resources include labeled examples, Qwen3-Embedding-0.6B and documented OpenRouter/Jina APIs. No baseline implementation, authoring helper, or precomputed document vectors are provided to the agent. ### Data and split @@ -29,25 +27,11 @@ provided to the agent. | Public retrieval validation | None | | Private evaluation | 209 queries retained from the original 210 | -One query with invalid positive labels has been removed; see -[the validation record](VALIDATION.md). Corpus text and the retained queries and -positive sets are unchanged, except opaque ID renaming. Corpus order is preserved. The source corpus's -quantity fields and query condition/unit/value annotations are not exposed. -The examples include synthetic edited passages and do not form a corpus-ID -relevance file. The agent-facing instructions describe inputs, outputs, -constraints and scoring without prescribing an implementation method. - -All retained evaluation questions remain private. Benchmark concepts and their -source expansion components were excluded during training generation. A later -review also checked physical/clinical examinations, death-rate, rebleeding, -placebo, uric-acid and pain/VAS families. This automatic exclusion and limited -family review do not prove universal semantic isolation. The retained query texts -and positive sets have not been rewritten. - -Authoring sources, the split manifest, calibration evidence and validation -fixtures are in `../../../task_development/quantity-aware-retrieval/`, outside -this task. No `authoring/`, `bundled/`, `environment/tools/` or public starter is -part of the package. +One query with invalid positive labels has been removed; see [the validation record](VALIDATION.md). Corpus text and the retained queries and positive sets are unchanged, except opaque ID renaming. Corpus order is preserved. The source corpus's quantity fields and query condition/unit/value annotations are not exposed. The examples include synthetic edited passages and do not form a corpus-ID relevance file. The agent-facing instructions describe inputs, outputs, constraints and scoring without prescribing an implementation method. + +All retained evaluation questions remain private. Benchmark concepts and their source expansion components were excluded during training generation. A later review also checked physical/clinical examinations, death-rate, rebleeding, placebo, uric-acid and pain/VAS families. This automatic exclusion and limited family review do not prove universal semantic isolation. The retained query texts and positive sets have not been rewritten. + +Authoring sources, the split manifest, calibration evidence and validation fixtures are in `../../../task_development/quantity-aware-retrieval/`, outside this task. No `authoring/`, `bundled/`, `environment/tools/` or public starter is part of the package. ## Change Log @@ -63,42 +47,26 @@ Clinical relevance depends on numerical conditions as well as topic similarity. ### Evaluation -The engine implements `/app/build.sh` and `/app/run.sh`, as specified in -`instruction.md`. A separate verifier runs the submission as UID 10001, with -`/app` read-only and hidden data/reward paths protected. It reveals one question -per call with a fresh request ID. Build/service startup has 1,200 seconds; -queries have a hard **5 seconds**, including API/network waiting. A timeout -scores that query zero. Other executable/output failures invalidate the run. +The engine implements `/app/build.sh` and `/app/run.sh`, as specified in `instruction.md`. A separate verifier runs the submission as UID 10001, with `/app` read-only and hidden data/reward paths protected. It reveals one question per call with a fresh request ID. Build/service startup has 1,200 seconds; queries have a hard **5 seconds**, including API/network waiting. A timeout scores that query zero. Other executable/output failures invalidate the run. -Quality is mean binary nDCG@10, using the complete original positive set for -IDCG, capped at ten positions. The frozen reference is BM25 and -Qwen3-Embedding-8B, top-1000 each, fused with RRF constant 60. +Quality is mean binary nDCG@10, using the complete original positive set for IDCG, capped at ten positions. The frozen reference is BM25 and Qwen3-Embedding-8B, top-1000 each, fused with RRF constant 60. | Reference scope | Mean nDCG@10 | | --- | ---: | | Retained 209 questions | 0.18472070182938527 | | Four-decimal reward anchor | **0.1847** | -For raw private score Q and B = 0.1847, reward is -`max(0, min(1, (Q-B)/(1-B)))`. The anchor uses the four-decimal rounding explicitly -chosen by the user. The reference is recalculated over the retained queries from -the archived single-A100 hybrid retrieval results in -`../../../task_development/quantity-aware-retrieval/research/medquant-baselines-v1/per-query-results.jsonl` -(`methods.hybrid`); [VALIDATION.md](VALIDATION.md) records the exclusion and calculation. No per-query baseline -oracle or choice of the best model on private results is used. +For raw private score Q and B = 0.1847, reward is `max(0, min(1, (Q-B)/(1-B)))`. The anchor uses the four-decimal rounding explicitly chosen by the user. The reference is recalculated over the retained queries from the archived single-A100 hybrid retrieval results in `../../../task_development/quantity-aware-retrieval/research/medquant-baselines-v1/per-query-results.jsonl` (`methods.hybrid`); [VALIDATION.md](VALIDATION.md) records the exclusion and calculation. No per-query baseline oracle or choice of the best model on private results is used. -An independent trajectory integrity judge uses the repository's pinned -RewardKit 0.2.0/DeepSeek configuration. Its credentials are not passed to -submission processes. A failed or rejecting mandatory judge cannot yield a -positive final reward. Deterministic grader checks and synthetic perfect-answer -fixtures do not substitute for a live coding-agent/judge trial. +An independent trajectory integrity judge uses the repository's pinned RewardKit 0.2.0/DeepSeek configuration. Its credentials are not passed to submission processes. A failed or rejecting mandatory judge cannot yield a positive final reward. Deterministic grader checks and synthetic perfect-answer fixtures do not substitute for a live coding-agent/judge trial. -The environment is one A100 40GB, 16 CPU cores, 32 GiB RAM, 100 GiB storage, and -a 21,600-second (6-hour) agent phase shared by implementation, optional training and -validation. Both phases use the repository shared CUDA 13.0/Python 3.12 image. -The GPU environment document is copied from `docker/gpu/environment.md`. +The environment is one A100 40GB, 16 CPU cores, 32 GiB RAM, 100 GiB storage, and a 21,600-second (6-hour) agent phase shared by implementation, optional training and validation. Both phases use the repository shared CUDA 13.0/Python 3.12 image. The GPU environment document is copied from `docker/gpu/environment.md`. -### Local operation and validation +### Verifier query order + +The verifier shuffles the private query list with a fixed local seed for reproducible request ordering. Each invocation still assigns fresh opaque request IDs; IDs must be echoed without assuming a relationship to document labels. Building and retrieval are not repeated. This removes unnecessary order variation while preserving the original per-query deadline and normalized nDCG metric. + +## Running the Task Public inputs are published and pinned to immutable revisions in `assets.json`, with exact sizes and SHA-256 hashes. Unchanged model pins are retained. See [recorded run evidence](VALIDATION.md#run-evidence-reconciled-on-2026-10-23) for historical run outcomes and publication status. Existing source terms and attribution remain applicable. @@ -109,47 +77,15 @@ python scripts/evaluation/run_task.py --task quantity-aware-retrieval --agent co --model openai/gpt-6-luna --reasoning-effort max --dry-run ``` -The coding model and verifier credentials are configured in the repository's -ignored `.env`; do not place credentials in this task. Task APIs are optional. -The verifier judge requires `VERIFIER_OPENAI_BASE_URL` and -`VERIFIER_OPENAI_API_KEY`. A real coding-model trial and live judge health check -are separate from package/unit/container smoke tests. See `VALIDATION.md` for -commands actually run, observed results, and unperformed release/evaluation steps. +The coding model and verifier credentials are configured in the repository's ignored `.env`; do not place credentials in this task. Task APIs are optional. The verifier judge requires `VERIFIER_OPENAI_BASE_URL` and `VERIFIER_OPENAI_API_KEY`. A real coding-model trial and live judge health check are separate from package/unit/container smoke tests. See `VALIDATION.md` for commands actually run, observed results, and unperformed release/evaluation steps. See [VALIDATION.md](VALIDATION.md) for recorded run outcomes, judge health and validation evidence. `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. -### Verifier query order - -The verifier shuffles the private query list with a fixed local seed for reproducible request ordering. Each invocation still assigns fresh opaque request IDs; IDs must be echoed without assuming a relationship to document labels. Building and retrieval are not repeated. This removes unnecessary order variation while preserving the original per-query deadline and normalized nDCG metric. - ## References -### Provenance and limitations - -MedQuant and the underlying training material are from -[QuantityAwareRankers](https://github.com/satya77/QuantityAwareRankers), associated -with [Numbers Matter!](https://aclanthology.org/2024.findings-emnlp.707/). -[DeepQuant](https://aclanthology.org/2025.findings-acl.1220/) is the motivating -quantity-aware retrieval paper; this package does not claim to reproduce its -unreleased exact 150k MedQuant training split. - -The benchmark ZIP SHA-256 is -`223fc8c7fcc6fded6a58a16c9d2bf3784c010568310b56355a0682956908e0c8`. -The generated training parent SHA-256 is -`80667d66bf0de233a6d4f0b112daa77c0b4b8f185d78c934642078a95cfef576`. -Generation reused the author functions at commit -`5d2c2e59c938fc816d1614d7cdc56763e54748ed`, with deterministic group seeds, -concept exclusion, deduplication and exact-pair conflict removal. No generation -API calls were made. Labels remain synthetic and noisy; training efficacy has -not been established by a 50k/80k ablation. Original positive-only evaluation -qrels can omit relevant passages. Units follow the source convention; physical -unit conversion or new multi-constraint semantics would require new labels. - -[Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B/tree/97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3) -is pinned to `97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3`. All ten installed model -files were independently checked against their manifest sizes and SHA-256. -The model card declares Apache-2.0. The enclosing repository's code license does -not establish redistribution rights for the MedQuant/training sources; those -terms remain unresolved and are recorded in the published source notices. +- **Task source** — [DeepQuant (Findings of ACL 2025)](https://aclanthology.org/2025.findings-acl.1220/) +- **Data source** — MedQuant passages and judgments from [QuantityAwareRankers](https://github.com/satya77/QuantityAwareRankers). [Numbers Matter! (Findings of EMNLP 2024)](https://aclanthology.org/2024.findings-emnlp.707/) +- **Model source** — [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B). +- **Provenance details** — [Training data construction, source revisions, and limitations](SOURCES.md) diff --git a/tasks/quantity-aware-retrieval/SOURCES.md b/tasks/quantity-aware-retrieval/SOURCES.md new file mode 100644 index 0000000..eb0be6c --- /dev/null +++ b/tasks/quantity-aware-retrieval/SOURCES.md @@ -0,0 +1,29 @@ +# Sources and Preparation + +## Provenance and limitations + +MedQuant and the underlying training material are from +[QuantityAwareRankers](https://github.com/satya77/QuantityAwareRankers), associated +with [Numbers Matter!](https://aclanthology.org/2024.findings-emnlp.707/). +[DeepQuant](https://aclanthology.org/2025.findings-acl.1220/) is the motivating +quantity-aware retrieval paper; this package does not claim to reproduce its +unreleased exact 150k MedQuant training split. + +The benchmark ZIP SHA-256 is +`223fc8c7fcc6fded6a58a16c9d2bf3784c010568310b56355a0682956908e0c8`. +The generated training parent SHA-256 is +`80667d66bf0de233a6d4f0b112daa77c0b4b8f185d78c934642078a95cfef576`. +Generation reused the author functions at commit +`5d2c2e59c938fc816d1614d7cdc56763e54748ed`, with deterministic group seeds, +concept exclusion, deduplication and exact-pair conflict removal. No generation +API calls were made. Labels remain synthetic and noisy; training efficacy has +not been established by a 50k/80k ablation. Original positive-only evaluation +qrels can omit relevant passages. Units follow the source convention; physical +unit conversion or new multi-constraint semantics would require new labels. + +[Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B/tree/97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3) +is pinned to `97b0c614be4d77ee51c0cef4e5f07c00f9eb65b3`. All ten installed model +files were independently checked against their manifest sizes and SHA-256. +The model card declares Apache-2.0. The enclosing repository's code license does +not establish redistribution rights for the MedQuant/training sources; those +terms remain unresolved and are recorded in the published source notices. diff --git a/tasks/query-encoder-alignment/README.md b/tasks/query-encoder-alignment/README.md index 9cb7704..60b276f 100644 --- a/tasks/query-encoder-alignment/README.md +++ b/tasks/query-encoder-alignment/README.md @@ -14,19 +14,13 @@ | Public queries | 100 | | Hidden queries | 100 | -Improve a compact query encoder against a document collection whose embeddings cannot change. +## Overview -### Overview +Improve a compact query encoder against a document collection whose embeddings cannot change. -Replacing or tuning a query encoder does not automatically preserve its -compatibility with an existing document index. This task fixes the document -embeddings and asks the agent to improve retrieval from the query side using -the supplied Qwen3-Embedding-0.6B backbone. +Replacing or tuning a query encoder does not automatically preserve its compatibility with an existing document index. This task fixes the document embeddings and asks the agent to improve retrieval from the query side using the supplied Qwen3-Embedding-0.6B backbone. -The system must be accurate and materially faster than a larger teacher-side -reference. It is therefore a joint representation and execution problem: -a query vector must land in the right document space, and the complete query -pipeline must stay within the relative runtime budget. +The system must be accurate and materially faster than a larger teacher-side reference. It is therefore a joint representation and execution problem: a query vector must land in the right document space, and the complete query pipeline must stay within the relative runtime budget. ### Task Setup @@ -41,34 +35,17 @@ pipeline must stay within the relative runtime budget. | `environment/time_reference/` | 4B time reference runner and validation notes | | `environment/quality_reference/` | Frozen 0.6B ridge baseline, fit/inference code and configuration | -The manifest also restores the Qwen3-Embedding-4B reference assets. -The development root user can read the 4B reference, including for teacher -signals on public inputs. Its private permissions keep it inaccessible to the -unprivileged final process; it is not an allowed final inference backbone. -There are 100 hidden evaluation queries, isolated from the agent environment. +The manifest also restores the Qwen3-Embedding-4B reference assets. The development root user can read the 4B reference, including for teacher signals on public inputs. Its private permissions keep it inaccessible to the unprivileged final process; it is not an allowed final inference backbone. There are 100 hidden evaluation queries, isolated from the agent environment. #### Fixed Components and Allowed Changes -The query-side system may be adapted within the supplied 0.6B backbone -requirement. Document vectors must not be modified, re-encoded, replaced, -or reordered. Task network access during development is restricted to -`openrouter.ai` and `api.jina.ai`. Do not acquire replacement backbones, -evaluation labels, or external retrieval results. The final submission must -be self-contained and offline. +The query-side system may be adapted within the supplied 0.6B backbone requirement. Document vectors must not be modified, re-encoded, replaced, or reordered. Task network access during development is restricted to `openrouter.ai` and `api.jina.ai`. Do not acquire replacement backbones, evaluation labels, or external retrieval results. The final submission must be self-contained and offline. #### Environment and Resource Limits -The Python 3.12 runtime uses CUDA-enabled PyTorch, 8 CPUs, 32 GiB memory, and -a 100 GiB storage budget. The local Docker backend does not enforce that budget -with a filesystem quota; the completed calibration stayed well below it. -Both Compose configurations and `task.toml` request **one -NVIDIA GPU**. Use `--gpu-device ` to select the same host GPU for both phases. +The Python 3.12 runtime uses CUDA-enabled PyTorch, 8 CPUs, 32 GiB memory, and a 100 GiB storage budget. The local Docker backend does not enforce that budget with a filesystem quota; the completed calibration stayed well below it. Both Compose configurations and `task.toml` request **one NVIDIA GPU**. Use `--gpu-device ` to select the same host GPU for both phases. -The agent has 6 hours. Task-specific verification has 340 minutes inside -the 535-minute Harbor verifier phase. The integrity audit has a separate -185-minute envelope, with each judge attempt limited to 60 minutes. -The candidate must finish within **60% of the measured reference runtime**. -The evaluation runner also caps each reference/candidate run at 1,800 seconds. +The agent has 6 hours. Task-specific verification has 340 minutes inside the 535-minute Harbor verifier phase. The integrity audit has a separate 185-minute envelope, with each judge attempt limited to 60 minutes. The candidate must finish within **60% of the measured reference runtime**. The evaluation runner also caps each reference/candidate run at 1,800 seconds. ## Change Log @@ -87,27 +64,15 @@ The evaluation runner also caps each reference/candidate run at 1,800 seconds. ### Submission Contract -The complete deliverable lives under `/app/submission` and includes an executable -`run.sh`. It accepts document vectors and query files, and returns one ranked -document per query. The verifier copies only this directory. +The complete deliverable lives under `/app/submission` and includes an executable `run.sh`. It accepts document vectors and query files, and returns one ranked document per query. The verifier copies only this directory. -Outputs must be deterministic and preserve query order, and execution must -leave no background processes. [instruction.md](instruction.md) defines the -complete interface; no separate submitted build step is required. +Outputs must be deterministic and preserve query order, and execution must leave no background processes. [instruction.md](instruction.md) defines the complete interface; no separate submitted build step is required. ### Evaluation #### Search Quality -The public quality reference freezes Qwen3-Embedding-0.6B and fits centered -ridge once on all public corpus/text-vector pairs. Its fixed settings and -reproduction commands are in [the baseline README](environment/quality_reference/README.md). -Every verifier run independently fits the pinned baseline using public corpus -pairs, then measures A0 on the same hidden queries and hardware as the candidate. -The baseline definition and inputs are fixed in `tests/quality_baseline_lock.json`; -its accuracy and prediction fingerprint are recorded from the current run. -The 4B time reference is also measured on that hardware. Use a compatible NVIDIA -GPU with enough memory for both reference models and the submission. +The public quality reference freezes Qwen3-Embedding-0.6B and fits centered ridge once on all public corpus/text-vector pairs. Its fixed settings and reproduction commands are in [the baseline README](environment/quality_reference/README.md). Every verifier run independently fits the pinned baseline using public corpus pairs, then measures A0 on the same hidden queries and hardware as the candidate. The baseline definition and inputs are fixed in `tests/quality_baseline_lock.json`; its accuracy and prediction fingerprint are recorded from the current run. The 4B time reference is also measured on that hardware. Use a compatible NVIDIA GPU with enough memory for both reference models and the submission. ```text quality = clip((candidate Accuracy@1 - A0) / (1 - A0), 0, 1) @@ -115,15 +80,9 @@ reward = quality if all gates pass else 0 score = 100 * reward ``` -A reference failure or A0=1 is an invalid benchmark measurement, not a -candidate zero. Quality baseline configuration is frozen before hidden -measurement or model evaluation. The separate 4B reference supplies time only; -its accuracy is retained as a diagnostic. Raw candidate accuracy, A0, quality, runtime gate, judge health and -final reward are recorded separately. +A reference failure or A0=1 is an invalid benchmark measurement, not a candidate zero. Quality baseline configuration is frozen before hidden measurement or model evaluation. The separate 4B reference supplies time only; its accuracy is retained as a diagnostic. Raw candidate accuracy, A0, quality, runtime gate, judge health and final reward are recorded separately. -Both references exclude same-ID documents and all canonical-text copies: -NFKC, collapse whitespace, casefold. They rank all unchanged vectors, filter, -then refill; ties use corpus row order. The grader rejects excluded results. +Both references exclude same-ID documents and all canonical-text copies: NFKC, collapse whitespace, casefold. They rank all unchanged vectors, filter, then refill; ties use corpus row order. The grader rejects excluded results. #### Correctness and Resource Gates @@ -131,38 +90,36 @@ Candidate wall time must be at most `0.60 × time reference wall time`, measured #### Integrity Checks and Final Reward -The normalized quality reward is accepted only after runtime and validity gates -and the independent trajectory audit pass. Failure at any gate produces zero. -Judge and reference failures leave zero in the fail-closed reward artifact and are marked `measurement_valid=false`, not reported as evidence of model difficulty. Task-verification or integrity-judge timeouts also yield zero. Hidden baseline predictions, projection provenance and metrics stay in protected verifier logs. -Submitted processes run as UID 10001 with no credentials, -read-only runtime, protected reference/log directories and inherited seccomp -network denial. -The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with -verifier-only DeepSeek endpoint and key settings. -Its binary decision must agree with the complete, error-free RewardKit details. -Both an internal judge timeout and an outer process timeout invalidate the -measurement; a completed integrity rejection is a valid zero. - -For verifier-only reevaluation, restore the original `/app/submission` and -`/logs/agent/trajectory.json` into a fresh independent verifier with the current -task files, pinned assets, GPU allocation and judge credentials. Run the full -`/tests/test.sh` so the quality baseline, five timing pairs and integrity audit -are evaluated together. Keep the original submission and trajectory unchanged, -and save new verifier results separately with the task revision and hardware. -Use the resulting measured A0 and final reward; an earlier score's denominator -alone is insufficient to establish a valid reevaluation. - -### Running This Task - -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. - -Prepare the GPU runtime and configure the independent integrity judge. Download -as a host user distinct from submission UID 10001, following the asset guide, -so the reference model's private file permissions retain their intended effect. +The normalized quality reward is accepted only after runtime and validity gates and the independent trajectory audit pass. Failure at any gate produces zero. Judge and reference failures leave zero in the fail-closed reward artifact and are marked `measurement_valid=false`, not reported as evidence of model difficulty. Task-verification or integrity-judge timeouts also yield zero. Hidden baseline predictions, projection provenance and metrics stay in protected verifier logs. Submitted processes run as UID 10001 with no credentials, read-only runtime, protected reference/log directories and inherited seccomp network denial. The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with verifier-only DeepSeek endpoint and key settings. Its binary decision must agree with the complete, error-free RewardKit details. Both an internal judge timeout and an outer process timeout invalidate the measurement; a completed integrity rejection is a valid zero. + +For verifier-only reevaluation, restore the original `/app/submission` and `/logs/agent/trajectory.json` into a fresh independent verifier with the current task files, pinned assets, GPU allocation and judge credentials. Run the full `/tests/test.sh` so the quality baseline, five timing pairs and integrity audit are evaluated together. Keep the original submission and trajectory unchanged, and save new verifier results separately with the task revision and hardware. Use the resulting measured A0 and final reward; an earlier score's denominator alone is insufficient to establish a valid reevaluation. + +### Data provenance and local checks + +The packaged ArguAna corpus matches mteb/arguana commit `6c1bcf74b13dfd823aff056b79d4d93e702f19c7`, with task-specific IDs; its source license is CC BY-SA 4.0. The model family is described in [Qwen3 Embedding](https://arxiv.org/abs/2506.05176v3), licensed Apache-2.0. This frozen-index alignment task and its ridge reference are engineering adaptations, not reported paper experiments. The original fixed matrix is preserved byte-for-byte; its generation recipe is not reconstructed here. The manifest pins 30 files totaling 8.72 GiB at immutable revisions, exact sizes and hashes; public split and hidden split remain unchanged. + +```bash +python -m unittest discover -s tasks/query-encoder-alignment/authoring/tests -p 'test_*.py' -v +python scripts/validation/check_tasks.py tasks/query-encoder-alignment +``` + +Author calibration records and runtime evidence are kept under `contributing/dev/query-encoder-alignment/v020/`, never mounted into a solving agent. Public first-fit ridge Accuracy@1 is 54/100 with approximately 107 s fit time on one A100 40GB. Two independent fits and public predictions are byte-identical. The historical hidden A0 on that platform was 62/100. Current verifier runs measure their own A0 using the same pinned implementation and inputs. The repaired 4B reference scores 68/100. Known-baseline submission passes the runtime, output and determinism checks and scores zero at its own quality anchor. Historical artifact replay: Opus xhigh 76%, 36.8421/100 and time gate passed; Luna xhigh 64%, quality 5.2632/100, time gate failed and retrieval reward zero. These are retrieval replays, not new model solves or newly accepted judge runs. The historical Codex 0.157.1 + OpenRouter `openai/gpt-6-luna`, effort `max` run used the 12-hour development limit and scored **18.4211/100**: hidden Accuracy@1 69%, A0 62%, candidate 12.1705 s against a 25.2756 s reference (15.1654 s limit). The repeat output is byte-identical. The independent DeepSeek integrity judge accepted the submission; `measurement_valid=true`, with no infrastructure exception. The solve took 36m48s and verification 6m51s, on a reserved A100 40GB. Agent/verifier memory peaks were 10.80/10.88 GiB. Job: `jobs/query-encoder-alignment-codex-openrouter-luna-max-v020-20261022-r2/2026-10-22__20-15-17/`. The preceding r1 attempt was canceled before submission when an external service occupied its reserved GPU; it has no valid model score. Both records are retained. No scoring parameter changed between attempts. + +This historical Luna/max solve supports the approximate 20-point difficulty target; the historical Opus artifact replay scores below 50. A legal author solution achieving 100% hidden accuracy has not been demonstrated; synthetic grader tests establish the full-score numeric boundary only. Model-run evidence for the six-hour budget will come from the release evaluations. + +`--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. + +### Repeated measurements + +The primary supervisor allows 20,400 seconds: one quality fit/run plus five reference and five candidate calls at up to 1,800 seconds each (19,800 seconds), with 600 seconds for setup and cleanup. + +The integrity audit allows 3,600 seconds per attempt. Its 11,100-second supervisor covers RewardKit 0.2.0's existing maximum of three attempts for process or output-format errors, plus 300 seconds of overhead. A valid decision ends the audit immediately; a timed-out attempt invalidates the measurement. The 32,100-second verifier envelope covers primary evaluation, the audit and 600 seconds for finalization, termination grace periods and other overhead. + +## Running the Task + +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. + +Prepare the GPU runtime and configure the independent integrity judge. Download as a host user distinct from submission UID 10001, following the asset guide, so the reference model's private file permissions retain their intended effect. ```bash python scripts/assets/download_assets.py --task query-encoder-alignment @@ -171,13 +128,7 @@ bash scripts/evaluation/run_task.sh --task query-encoder-alignment --gpu-device --model openai/gpt-6-luna --reasoning-effort max --output jobs/query-encoder-alignment-UNIQUE_RUN_ID ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/query-encoder-alignment/`. -Configure `AGENT_OPENROUTER_API_KEY`, `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in the ignored repository -`.env`. Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/query-encoder-alignment/`. Configure `AGENT_OPENROUTER_API_KEY`, `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL=https://openrouter.ai/api/v1` in the ignored repository `.env`. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -192,66 +143,9 @@ assets, credentials, or hardware. | [Time reference notes](environment/time_reference/README.md) | 4B timing reference and public validation | | [Resource policy](environment/docs/available_resources.md) | Development access and offline submission rules | -### Data provenance and local checks - -The packaged ArguAna corpus matches mteb/arguana commit -`6c1bcf74b13dfd823aff056b79d4d93e702f19c7`, with task-specific IDs; its source -license is CC BY-SA 4.0. The model family is described in -[Qwen3 Embedding](https://arxiv.org/abs/2506.05176v3), licensed Apache-2.0. -This frozen-index alignment task and its ridge reference are engineering -adaptations, not reported paper experiments. The original fixed matrix is -preserved byte-for-byte; its generation recipe is not reconstructed here. -The manifest pins 30 files totaling 8.72 GiB at immutable revisions, exact -sizes and hashes; public split and hidden split remain unchanged. - -```bash -python -m unittest discover -s tasks/query-encoder-alignment/authoring/tests -p 'test_*.py' -v -python scripts/validation/check_tasks.py tasks/query-encoder-alignment -``` - -Author calibration records and runtime evidence are kept under -`contributing/dev/query-encoder-alignment/v020/`, never mounted into a solving -agent. Public first-fit ridge Accuracy@1 is 54/100 with approximately 107 s -fit time on one A100 40GB. Two independent fits and public predictions are byte-identical. -The historical hidden A0 on that platform was 62/100. Current verifier runs -measure their own A0 using the same pinned implementation and inputs. -The repaired 4B reference scores 68/100. Known-baseline submission passes the -runtime, output and determinism checks and scores zero at its own quality anchor. -Historical artifact replay: Opus xhigh 76%, 36.8421/100 and time gate passed; -Luna xhigh 64%, quality 5.2632/100, time gate failed and retrieval reward zero. -These are retrieval replays, not new model solves or newly accepted judge runs. -The historical Codex 0.157.1 + OpenRouter `openai/gpt-6-luna`, effort `max` run -used the 12-hour development limit and scored **18.4211/100**: hidden Accuracy@1 -69%, A0 62%, candidate 12.1705 s -against a 25.2756 s reference (15.1654 s limit). The repeat output is -byte-identical. The independent DeepSeek integrity judge accepted the submission; -`measurement_valid=true`, with no infrastructure exception. The solve took -36m48s and verification 6m51s, on a reserved A100 40GB. Agent/verifier memory -peaks were 10.80/10.88 GiB. Job: -`jobs/query-encoder-alignment-codex-openrouter-luna-max-v020-20261022-r2/2026-10-22__20-15-17/`. -The preceding r1 attempt was canceled before submission when an external -service occupied its reserved GPU; it has no valid model score. Both records -are retained. No scoring parameter changed between attempts. - -This historical Luna/max solve supports the approximate 20-point difficulty -target; the historical Opus artifact replay scores below 50. A legal author -solution achieving 100% hidden accuracy has not been demonstrated; synthetic -grader tests establish the full-score numeric boundary only. Model-run evidence -for the six-hour budget will come from the release evaluations. - -`--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. - -### Repeated verifier measurements - -The primary supervisor allows 20,400 seconds: one quality fit/run plus five reference and five candidate calls at up to 1,800 seconds each (19,800 seconds), with 600 seconds for setup and cleanup. - -The integrity audit allows 3,600 seconds per attempt. Its 11,100-second supervisor -covers RewardKit 0.2.0's existing maximum of three attempts for process or -output-format errors, plus 300 seconds of overhead. A valid decision ends the -audit immediately; a timed-out attempt invalidates the measurement. The -32,100-second verifier envelope covers primary evaluation, the audit and -600 seconds for finalization, termination grace periods and other overhead. - ## References -- [Task reference](https://arxiv.org/abs/2506.05176v3). +- **Task source** — Experience +- **Data source** — ArguAna corpus with task-specific identifiers and frozen document embeddings. +- **Model source** — Qwen3-Embedding-0.6B and 4B. [Qwen3 Embedding technical report](https://arxiv.org/abs/2506.05176v3) +- **Provenance details** — [Data, model, and local checks](#data-provenance-and-local-checks) diff --git a/tasks/reasoning-query-rewriting/README.md b/tasks/reasoning-query-rewriting/README.md index d8edf4b..e28aaaa 100644 --- a/tasks/reasoning-query-rewriting/README.md +++ b/tasks/reasoning-query-rewriting/README.md @@ -14,19 +14,13 @@ | Public queries | 10 | | Hidden queries | 10 | -Build a retrieval system that connects difficult biology questions to supporting documents. +## Overview -### Overview +Build a retrieval system that connects difficult biology questions to supporting documents. -A question can describe a biological mechanism without using the terminology -of the document that explains it. This task tests whether a coding agent can -turn that mismatch into a working retrieval pipeline over 57,359 BRIGHT biology -short documents. +A question can describe a biological mechanism without using the terminology of the document that explains it. This task tests whether a coding agent can turn that mismatch into a working retrieval pipeline over 57,359 BRIGHT biology short documents. -The engineering challenge is to connect query interpretation with candidate -retrieval and ranking. A useful rewrite must improve access to evidence without -losing the original information need. The benchmark evaluates the executable -system on held-out questions, rather than judging the wording of its rewrites. +The engineering challenge is to connect query interpretation with candidate retrieval and ranking. A useful rewrite must improve access to evidence without losing the original information need. The benchmark evaluates the executable system on held-out questions, rather than judging the wording of its rewrites. ### Task Setup @@ -38,36 +32,19 @@ system on held-out questions, rather than judging the wording of its rewrites. | `data/validation/` | Ten public questions and relevance labels | | `environment/docs/` | Runtime information and permitted retrieval/generation resources | -The download script restores task-relative `data/`; the container exposes it -read-only under `/task/data`. Ten different questions and their labels are -reserved for verification and are not mounted in the agent environment. +The download script restores task-relative `data/`; the container exposes it read-only under `/task/data`. Ten different questions and their labels are reserved for verification and are not mounted in the agent environment. -Document IDs are independent random identifiers, and the corpus rows are -shuffled. IDs expose no topic, title, path, or canonical/chunk structure. -Document contents and relevance judgments are preserved from the source; -the original ID mapping is retained only in the author's private workspace. +Document IDs are independent random identifiers, and the corpus rows are shuffled. IDs expose no topic, title, path, or canonical/chunk structure. Document contents and relevance judgments are preserved from the source; the original ID mapping is retained only in the author's private workspace. -Both splits were selected from cases missed at Top-3 by the recorded -content-only BM25, BM25 Top-100 + Qwen3-Reranker-8B, and Qwen3-Embedding-8B -baselines. After shuffling, BM25 was recomputed and the neural scores were -rechecked with the new tie-break order; all selected cases still missed. +Both splits were selected from cases missed at Top-3 by the recorded content-only BM25, BM25 Top-100 + Qwen3-Reranker-8B, and Qwen3-Embedding-8B baselines. After shuffling, BM25 was recomputed and the neural scores were rechecked with the new tie-break order; all selected cases still missed. #### Fixed Components and Allowed Changes -The corpus and submission interface are fixed. Query rewriting, indexing, -candidate selection, and ranking are implementation choices. Selected -OpenRouter and Jina resources are permitted under the -[resource policy](environment/docs/available_resources.md). Connectivity does -not authorize arbitrary external search, answer services, or evaluation data. -The resource document lists exact providers and model IDs. +The corpus and submission interface are fixed. Query rewriting, indexing, candidate selection, and ranking are implementation choices. Selected OpenRouter and Jina resources are permitted under the [resource policy](environment/docs/available_resources.md). Connectivity does not authorize arbitrary external search, answer services, or evaluation data. The resource document lists exact providers and model IDs. #### Environment and Resource Limits -The CPU Python 3.12 environment provides 16 CPUs, 32 GiB memory, and 100 GiB -storage. The agent has 120 minutes; the Harbor verifier phase has 90 minutes. -Within verification, the current grader allows 1,800 seconds for the submitted -build and 900 seconds for the query run. These submission deadlines are -distinct from Docker image construction. +The CPU Python 3.12 environment provides 16 CPUs, 32 GiB memory, and 100 GiB storage. The agent has 120 minutes; the Harbor verifier phase has 90 minutes. Within verification, the current grader allows 1,800 seconds for the submitted build and 900 seconds for the query run. These submission deadlines are distinct from Docker image construction. ## Change Log @@ -86,63 +63,29 @@ distinct from Docker image construction. ### Submission Contract -The deliverable is an executable system under `/app`, with `build.sh` preparing -an index and `run.sh` returning three ranked corpus documents per question. -Results carry document IDs and finite scores. The caller supplies the index -location; the verifier runs the submission unprivileged with `/app` read-only. +The deliverable is an executable system under `/app`, with `build.sh` preparing an index and `run.sh` returning three ranked corpus documents per question. Results carry document IDs and finite scores. The caller supplies the index location; the verifier runs the submission unprivileged with `/app` read-only. -See [instruction.md](instruction.md) for arguments, result schema, and tie-breaking. -Transferred files must recreate the required runtime: a development-time -background process is not itself a submission. +See [instruction.md](instruction.md) for arguments, result schema, and tie-breaking. Transferred files must recreate the required runtime: a development-time background process is not itself a submission. ### Evaluation #### Search Quality -A question is a hit when at least one relevant document appears in its top three. -The verifier reports Accuracy@3 as the number of hits divided by the ten hidden -questions. For example, seven hits produce `0.7`; each missed query contributes -zero for that query. The instruction expresses the same accuracy on a 0–100 -scale; the stored metric and reward use the 0–1 scale. +A question is a hit when at least one relevant document appears in its top three. The verifier reports Accuracy@3 as the number of hits divided by the ten hidden questions. For example, seven hits produce `0.7`; each missed query contributes zero for that query. The instruction expresses the same accuracy on a 0–100 scale; the stored metric and reward use the 0–1 scale. #### Correctness and Resource Gates -Build/run success, complete query coverage, valid corpus IDs, ranking format, -and the execution budgets must all pass. +Build/run success, complete query coverage, valid corpus IDs, ranking format, and the execution budgets must all pass. #### Integrity Checks and Final Reward -A separate trajectory judge checks task and resource compliance. Final reward -equals Accuracy@3 when the execution, output, and integrity checks pass; -otherwise it is `0`. -The judge assesses the agent's trajectory, not answer quality. -It uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0; configure its -verifier-only DeepSeek endpoint and key as described in the evaluation guide. - -### Running This Task - -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. - -Configure the verifier's integrity-judge credentials independently of the coding -agent. If the submission uses permitted APIs, `reasoning-query-rewriting` uses -`REASONING_QUERY_REWRITING_OPENROUTER_API_KEY` and the shared `JINA_API_KEY`. -The OpenRouter key is dedicated to this task's submission API. Assign it a -[model-allowlist guardrail](https://openrouter.ai/docs/guides/features/guardrails) -with this task's **required 17 models: 3 generation, 9 embedding and 5 rerank**. -The [complete model-ID list and setup guide](../../docs/evaluation/submission-models.md#reasoning-query-rewriting-17-models) -also provide a JSON export command. This list excludes `qwen/qwen3-reranker-8b` -for cost. Save the guardrail and assign it to this key; check its effective model -restrictions in OpenRouter. Keep coding-agent and judge keys independent of this -allowlist. The [resource policy](environment/docs/available_resources.md) defines -the permitted uses. The CLI checks this enabled key with three out-of-list -requests (`max_tokens=1`) before saving configuration or starting a batch; -accepted requests or inconclusive responses stop the operation. Run -`search-swe configure reasoning-query-rewriting` before using the native commands -below. See the [check details](../../docs/evaluation/submission-models.md#required-cli-checks). +A separate trajectory judge checks task and resource compliance. Final reward equals Accuracy@3 when the execution, output, and integrity checks pass; otherwise it is `0`. The judge assesses the agent's trajectory, not answer quality. It uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0; configure its verifier-only DeepSeek endpoint and key as described in the evaluation guide. + +## Running the Task + +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. + +Configure the verifier's integrity-judge credentials independently of the coding agent. If the submission uses permitted APIs, `reasoning-query-rewriting` uses `REASONING_QUERY_REWRITING_OPENROUTER_API_KEY` and the shared `JINA_API_KEY`. The OpenRouter key is dedicated to this task's submission API. Assign it a [model-allowlist guardrail](https://openrouter.ai/docs/guides/features/guardrails) with this task's **required 17 models: 3 generation, 9 embedding and 5 rerank**. The [complete model-ID list and setup guide](../../docs/evaluation/submission-models.md#reasoning-query-rewriting-17-models) also provide a JSON export command. This list excludes `qwen/qwen3-reranker-8b` for cost. Save the guardrail and assign it to this key; check its effective model restrictions in OpenRouter. Keep coding-agent and judge keys independent of this allowlist. The [resource policy](environment/docs/available_resources.md) defines the permitted uses. The CLI checks this enabled key with three out-of-list requests (`max_tokens=1`) before saving configuration or starting a batch; accepted requests or inconclusive responses stop the operation. Run `search-swe configure reasoning-query-rewriting` before using the native commands below. See the [check details](../../docs/evaluation/submission-models.md#required-cli-checks). ```bash python scripts/assets/download_assets.py --task reasoning-query-rewriting @@ -150,12 +93,7 @@ bash scripts/evaluation/run_task.sh --task reasoning-query-rewriting --agent cod --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/reasoning-query-rewriting/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/reasoning-query-rewriting/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -171,4 +109,5 @@ assets, credentials, or hardware. ## References -None. +- **Task source** — [BRIGHT (ICLR 2025)](https://proceedings.iclr.cc/paper_files/paper/2025/file/7a0f8055c838df8e62329a76c7c6403d-Paper-Conference.pdf) +- **Data source** — [BRIGHT](https://huggingface.co/datasets/xlangai/BRIGHT) biology short documents with task-specific query selection. [Asset manifest](assets.json) diff --git a/tasks/rust-bm25-search/README.md b/tasks/rust-bm25-search/README.md index 6358b80..3d3a30e 100644 --- a/tasks/rust-bm25-search/README.md +++ b/tasks/rust-bm25-search/README.md @@ -10,12 +10,12 @@ | Primary metric | quality-gated BM25 quality/time/disk tradeoff | | Compute | 4 CPUs; 16 GiB RAM; 64 GiB storage; 0 GPUs | | Agent / verifier time limits | 10800 s / 93600 s | +| Dataset | MS MARCO Passage v1 | +| Hidden queries | 54 | -This CPU task asks an agent to implement a complete Rust inverted index and -BM25 searcher from the 8,841,823 raw MS MARCO Passage v1 passages. Generic crates -are allowed; existing search engines and prebuilt indexes are not. A separate -verifier recompiles the source, rebuilds an empty index, and evaluates all -6,980 standard dev queries. +## Overview + +This CPU task asks an agent to implement a complete Rust inverted index and BM25 searcher from the 8,841,823 raw MS MARCO Passage v1 passages. Generic crates are allowed; existing search engines and prebuilt indexes are not. A separate verifier recompiles the source, rebuilds an empty index, and evaluates all 6,980 standard dev queries. ## Change Log @@ -31,55 +31,27 @@ The system must build an inverted index from millions of raw passages and match ### Scoring and recorded validation -The exact Pyserini -quality floor has been measured, and an independently built author Rust -implementation passed it on all dev queries (MRR@10 0.1872948219). A Harbor -Oracle trial also passed the actual source-artifact transfer and independent -verifier flow. An independent GPT-5.6 Sol / max trial through Codex collaboration -also completed the full verifier: MRR@10 0.1839805908 falls just below the exact -floor, so it earns zero. Frozen model and author sources were revalidated after -review fixes; full outputs match their previous runs. Current timings and -regression evidence are in [review-fixes-observation.json](authoring/review-fixes-observation.json). -The coding trial used a context-free hosted agent with an isolated task container; Harbor's Codex API -route remains untested because the API preflight found exhausted credits. -See -[validation.md](authoring/validation.md) for the evidence and limitations. -Author: MXueguang (`x93ma@edu.uwaterloo.ca`). - -The reference is Pyserini 1.4.0, BM25 k1=0.9, b=0.4, default English analysis, -text only. It omits stored raw text, positions and document vectors. Its -MRR@10 is exactly **3236243/17589600 = 0.18398616227770956**. The candidate must -meet this exact floor, rather than a rounded 0.18 or 0.1840. - -For valid candidates, quality, hot batch time and index bytes have equal -geometric weights, normalized as `U/(1+U)` with reference-equivalent score 0.5. -Reference timing and disk are remeasured inside each verifier run, rather than -copied from one author's hardware. Five fresh-process startup measurements, -hot p50/p95, sequential QPS, build time and sampled process RSS are also -reported. Cold means a new process with no query warmup, **without evicting the -OS file cache**. QPS is concurrency-one throughput, not server saturation. -RSS is diagnostic process memory, while the container cap includes children -and page cache. These limitations are explicit in both instructions. - -Both phases use the shared CPU image, Rust 1.85.1 and the same offline Cargo -lock. Resource envelope: 4 CPUs, 16 GiB memory, 64 GiB workspace, no network or -GPU. Agent budget is 3 hours; compilation 10 minutes, index build 2 hours, -individual requests 120 seconds and each warmup/measured batch 1 hour. These -are engineering budgets to validate with a real model, not universal claims -about hardware performance. The host needs Linux Landlock ABI 1 or newer and -seccomp filters; root-owned files additionally enforce read-only search on older ABIs. -Reference or environment failures invalidate the run and must not be interpreted as model failures. - -Only `/app/submission` transfers to the verifier. Candidate code runs as UID -10001, separate from root-owned tests, qrels and reward files. Search is -restricted to its immutable index, binary and system libraries. Source-only -recompilation and these controls support the contract; they do not replace -review that the implementation is actually self-built BM25 and contains no -hard-coded answers. No API or model judge is part of deterministic grading. -All candidate phases block persistent IPC, kernel keyrings and extended-attribute -access, including through io_uring. Index files, directories and the root must -have no extended attributes. These checks prevent IPC and xattr payloads from -bypassing the measured index-file bytes. +The exact Pyserini quality floor has been measured, and an independently built author Rust implementation passed it on all dev queries (MRR@10 0.1872948219). A Harbor Oracle trial also passed the actual source-artifact transfer and independent verifier flow. An independent GPT-5.6 Sol / max trial through Codex collaboration also completed the full verifier: MRR@10 0.1839805908 falls just below the exact floor, so it earns zero. Frozen model and author sources were revalidated after review fixes; full outputs match their previous runs. Current timings and regression evidence are in [review-fixes-observation.json](authoring/review-fixes-observation.json). The coding trial used a context-free hosted agent with an isolated task container; Harbor's Codex API route remains untested because the API preflight found exhausted credits. See [validation.md](authoring/validation.md) for the evidence and limitations. Author: MXueguang (`x93ma@edu.uwaterloo.ca`). + +The reference is Pyserini 1.4.0, BM25 k1=0.9, b=0.4, default English analysis, text only. It omits stored raw text, positions and document vectors. Its MRR@10 is exactly **3236243/17589600 = 0.18398616227770956**. The candidate must meet this exact floor, rather than a rounded 0.18 or 0.1840. + +For valid candidates, quality, hot batch time and index bytes have equal geometric weights, normalized as `U/(1+U)` with reference-equivalent score 0.5. Reference timing and disk are remeasured inside each verifier run, rather than copied from one author's hardware. Five fresh-process startup measurements, hot p50/p95, sequential QPS, build time and sampled process RSS are also reported. Cold means a new process with no query warmup, **without evicting the OS file cache**. QPS is concurrency-one throughput, not server saturation. RSS is diagnostic process memory, while the container cap includes children and page cache. These limitations are explicit in both instructions. + +Both phases use the shared CPU image, Rust 1.85.1 and the same offline Cargo lock. Resource envelope: 4 CPUs, 16 GiB memory, 64 GiB workspace, no network or GPU. Agent budget is 3 hours; compilation 10 minutes, index build 2 hours, individual requests 120 seconds and each warmup/measured batch 1 hour. These are engineering budgets to validate with a real model, not universal claims about hardware performance. The host needs Linux Landlock ABI 1 or newer and seccomp filters; root-owned files additionally enforce read-only search on older ABIs. Reference or environment failures invalidate the run and must not be interpreted as model failures. + +Only `/app/submission` transfers to the verifier. Candidate code runs as UID 10001, separate from root-owned tests, qrels and reward files. Search is restricted to its immutable index, binary and system libraries. Source-only recompilation and these controls support the contract; they do not replace review that the implementation is actually self-built BM25 and contains no hard-coded answers. No API or model judge is part of deterministic grading. All candidate phases block persistent IPC, kernel keyrings and extended-attribute access, including through io_uring. Index files, directories and the root must have no extended attributes. These checks prevent IPC and xattr payloads from bypassing the measured index-file bytes. + +### Reviewed precedent and instruction audit + +The structural precedent is `tasks/sparse-retrieval-pruning`, reviewed on base commit `46197a43f8cbb364e72b6d63d5db873ae7d2cac8`. Reused patterns: CPU runtime, explicit source artifact, separate verifier, clean rebuild, unprivileged candidate and baseline-relative optimization behind a quality gate. Differences: raw text and complete Rust BM25 indexing, standard passage dev MRR, measured Pyserini reference, startup measurements and disk in the objective. None of that task's data IDs, thresholds, resource/API policies or author fields was copied. This draft deliberately needs no trajectory-judge API. + +The structured contract is [raw-instruction.md](raw-instruction.md). The agent-facing [instruction.md](instruction.md) is a prose rewrite; the mapping and review boundaries are in [instruction-equivalence.md](authoring/instruction-equivalence.md). Author candidates, full indexes and trial logs live in ignored local paths; they are not included in the agent image or a public solution directory. + +### Repeated measurements + +Each index is built once. Candidate and reference each run five warm batches in fresh processes with the existing disjoint query warmup. The score uses the median of each system's five complete batch times; all repeated rankings must agree. The five cold-start samples remain diagnostics. Raw warm samples are saved in metrics.json. The reference measurement subprocess allows 37,200 seconds: five warmups and batches at up to 3,600 seconds each, five cold probes at up to 120 seconds each, and 600 seconds for cleanup. Its 7,500-second build limit is separate. The verifier has 93,600 seconds to cover both systems, candidate compilation/indexing and corpus preparation; preparation stages still run once. + +## Running the Task ### Restore and check @@ -98,19 +70,11 @@ docker run --rm --network none --cpus 4 --memory 16g --memory-swap 16g --pids-li search-swe-local:rust-bm25-verifier python /check.py ``` -The data manifest pins existing Tevatron repositories. Hidden queries/qrels are small files in `tests/data`, with -immutable source URLs and fingerprints. Restore them if necessary using -`python tasks/rust-bm25-search/authoring/prepare_queries.py`. Input terms and -toolchain provenance are in [SOURCES.md](authoring/SOURCES.md); the original -MS MARCO/TREC terms apply to the data. +The data manifest pins existing Tevatron repositories. Hidden queries/qrels are small files in `tests/data`, with immutable source URLs and fingerprints. Restore them if necessary using `python tasks/rust-bm25-search/authoring/prepare_queries.py`. Input terms and toolchain provenance are in [SOURCES.md](authoring/SOURCES.md); the original MS MARCO/TREC terms apply to the data. ### Reproduce the reference -The author wrappers invoke the same trusted converter and reference code used -by the verifier. Create fresh output paths; these commands refuse to overwrite -existing indexes or measurements. The measured reference is recorded in -[reference-observation.json](authoring/reference-observation.json); its timing -is a local observation, not a portable threshold. +The author wrappers invoke the same trusted converter and reference code used by the verifier. Create fresh output paths; these commands refuse to overwrite existing indexes or measurements. The measured reference is recorded in [reference-observation.json](authoring/reference-observation.json); its timing is a local observation, not a portable threshold. ```bash python tasks/rust-bm25-search/authoring/prepare_corpus.py \ @@ -118,9 +82,7 @@ python tasks/rust-bm25-search/authoring/prepare_corpus.py \ --output tasks/rust-bm25-search/authoring/output/collection ``` -Run these commands inside the pinned verifier image with the task mounted at -`/task-package`, 4 CPUs, 16 GiB memory, no network, and a hostname resolvable -through `/etc/hosts`. No API credential is needed: +Run these commands inside the pinned verifier image with the task mounted at `/task-package`, 4 CPUs, 16 GiB memory, no network, and a hostname resolvable through `/etc/hosts`. No API credential is needed: ```bash python /task-package/authoring/reference.py build \ @@ -134,30 +96,7 @@ python /task-package/authoring/reference.py measure \ --output /task-package/authoring/output/reference-measurement ``` -Pyserini 1.4.0 imports optional encoder modules alongside LuceneSearcher; one -constructs an unused OpenAI client. The reference worker supplies a non-secret -sentinel solely to satisfy that constructor. BM25 makes no API request and -runs with networking disabled. Startup measurements include Python/JVM/module -startup as well as index opening, as required by the process-cold definition. - -### Reviewed precedent and instruction audit - -The structural precedent is `tasks/sparse-retrieval-pruning`, reviewed on base -commit `46197a43f8cbb364e72b6d63d5db873ae7d2cac8`. Reused patterns: CPU runtime, -explicit source artifact, separate verifier, clean rebuild, unprivileged -candidate and baseline-relative optimization behind a quality gate. Differences: -raw text and complete Rust BM25 indexing, standard passage dev MRR, measured -Pyserini reference, startup measurements and disk in the objective. None of -that task's data IDs, thresholds, resource/API policies or author fields was -copied. This draft deliberately needs no trajectory-judge API. - -The structured contract is [raw-instruction.md](raw-instruction.md). The -agent-facing [instruction.md](instruction.md) is a prose rewrite; the mapping -and review boundaries are in [instruction-equivalence.md](authoring/instruction-equivalence.md). -Author candidates, full indexes and trial logs live in ignored local paths; -they are not included in the agent image or a public solution directory. - -### Running the task +Pyserini 1.4.0 imports optional encoder modules alongside LuceneSearcher; one constructs an unused OpenAI client. The reference worker supplies a non-secret sentinel solely to satisfy that constructor. BM25 makes no API request and runs with networking disabled. Startup measurements include Python/JVM/module startup as well as index opening, as required by the process-cold definition. From the repository root, configure the agent and any task-specific judge credentials using the [evaluation guide](../../docs/evaluation/runtime.md), then run: @@ -167,10 +106,8 @@ bash scripts/evaluation/run_task.sh --task rust-bm25-search --agent codex --open --model openai/gpt-6-luna --reasoning-effort max ``` -### Repeated verifier measurements - -Each index is built once. Candidate and reference each run five warm batches in fresh processes with the existing disjoint query warmup. The score uses the median of each system's five complete batch times; all repeated rankings must agree. The five cold-start samples remain diagnostics. Raw warm samples are saved in metrics.json. The reference measurement subprocess allows 37,200 seconds: five warmups and batches at up to 3,600 seconds each, five cold probes at up to 120 seconds each, and 600 seconds for cleanup. Its 7,500-second build limit is separate. The verifier has 93,600 seconds to cover both systems, candidate compilation/indexing and corpus preparation; preparation stages still run once. - ## References -- [Data, reference implementation and toolchain sources](authoring/SOURCES.md). +- **Task source** — Experience +- **Data source** — MS MARCO passage corpus and TREC Deep Learning 2020 queries. +- **Provenance details** — [Data, reference implementation, and toolchain sources](authoring/SOURCES.md) diff --git a/tasks/same-place-image-search/README.md b/tasks/same-place-image-search/README.md index 821e220..608a388 100644 --- a/tasks/same-place-image-search/README.md +++ b/tasks/same-place-image-search/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 135 | -Retrieve photographs of the same physical building across viewpoints, scale and occlusion. +## Overview -### Overview +Retrieve photographs of the same physical building across viewpoints, scale and occlusion. -A cropped photograph may show only part of a building. The system must find -other views of that physical place rather than buildings with similar style. -Each request includes gallery image IDs that are excluded from its ranking. +A cropped photograph may show only part of a building. The system must find other views of that physical place rather than buildings with similar style. Each request includes gallery image IDs that are excluded from its ranking. -The scope is retrieval within the supplied landmark galleries. The task does -not ask for web geolocation or external webpage evidence. +The scope is retrieval within the supplied landmark galleries. The task does not ask for web geolocation or external webpage evidence. ### Task Setup @@ -36,34 +33,19 @@ not ask for web geolocation or external webpage evidence. | `data/validation/` | Five public queries with relevance labels | | `models/clip/` | Local fixed CLIP ViT-B/32 weights and processor | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Source labels use the [Revisited Oxford/Paris Hard protocol](https://github.com/filipradenovic/revisitop), -with the source [Oxford](https://www.robots.ox.ac.uk/~vgg/data/oxbuildings/) and -[Paris](https://www.robots.ox.ac.uk/~vgg/data/parisbuildings/) image releases. -Of 140 query crops, five are public and 135 are held out. The gallery is shared. +Source labels use the [Revisited Oxford/Paris Hard protocol](https://github.com/filipradenovic/revisitop), with the source [Oxford](https://www.robots.ox.ac.uk/~vgg/data/oxbuildings/) and [Paris](https://www.robots.ox.ac.uk/~vgg/data/parisbuildings/) image releases. Of 140 query crops, five are public and 135 are held out. The gallery is shared. -Original Hard positives are retained. Original Easy and Junk images are -per-query exclusions, not relabeled negatives. Exact decoded duplicates of -query-source images are excluded from the gallery. No GPS-derived or generated -same-place labels are added. The limited landmark families do not establish -worldwide geographic generalization. +Original Hard positives are retained. Original Easy and Junk images are per-query exclusions, not relabeled negatives. Exact decoded duplicates of query-source images are excluded from the gallery. No GPS-derived or generated same-place labels are added. The limited landmark families do not establish worldwide geographic generalization. #### Fixed Components and Allowed Changes -The gallery, query crops, Hard labels and output interface are fixed. -CLIP weights remain fixed. Index structure, global and local representations -and ranking are implementation choices; no precomputed vectors or starter -are supplied. Additional pixel-based geometric verification may examine at -most 20 candidates per request. External APIs are unavailable. +The gallery, query crops, Hard labels and output interface are fixed. CLIP weights remain fixed. Index structure, global and local representations and ranking are implementation choices; no precomputed vectors or starter are supplied. Additional pixel-based geometric verification may examine at most 20 candidates per request. External APIs are unavailable. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has two hours. Index construction has 3,600 seconds; -each of two query calls has 2,700 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has two hours. Index construction has 3,600 seconds; each of two query calls has 2,700 seconds. ## Change Log @@ -83,14 +65,9 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with their supporting -files under `/app`. For each cropped image and exclusion list, return up to -five distinct eligible gallery IDs with finite nonincreasing scores. +Submit executable `/app/build.sh` and `/app/run.sh` with their supporting files under `/app`. For each cropped image and exclusion list, return up to five distinct eligible gallery IDs with finite nonincreasing scores. -Commands run as a non-root user with code and inputs read-only. The supplied -index directory is writable during build, while its parent is not writable. -The completed index is read-only during retrieval. Query outputs and caches -use the supplied writable output and temporary paths. +Commands run as a non-root user with code and inputs read-only. The supplied index directory is writable during build, while its parent is not writable. The completed index is read-only during retrieval. Query outputs and caches use the supplied writable output and temporary paths. The full schema and invocation details are in [instruction.md](instruction.md). @@ -98,59 +75,38 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Compute binary nDCG@5 against the original Hard positives after removing -excluded images. Average within Oxford and Paris, then give the two sources -equal weight. +Compute binary nDCG@5 against the original Hard positives after removing excluded images. Average within Oxford and Paris, then give the two sources equal weight. -This task uses the source Hard relevance protocol with a task-specific top-five -metric. Invalid or excluded returned IDs invalidate that query. +This task uses the source Hard relevance protocol with a task-specific top-five metric. Invalid or excluded returned IDs invalidate that query. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.5364309790092764` and integer score anchor `a = 15` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.5364309790092764` and integer score anchor `a = 15` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Prepare the GPU runtime and independent trajectory-audit credentials. -Submitted task programs run offline and receive no provider credentials. +Prepare the GPU runtime and independent trajectory-audit credentials. Submitted task programs run offline and receive no provider credentials. -The commands below apply in a checkout with this package installed at -`tasks/same-place-image-search/`: +The commands below apply in a checkout with this package installed at `tasks/same-place-image-search/`: ```bash python scripts/assets/download_assets.py --task same-place-image-search @@ -158,11 +114,7 @@ bash scripts/evaluation/run_task.sh --task same-place-image-search --agent codex --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/same-place-image-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/same-place-image-search/`. ### Task Files @@ -182,4 +134,6 @@ credentials or hardware. Results are written under `jobs/same-place-image-search ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [GeoSearch (SIGIR 2026)](https://doi.org/10.1145/3805712.3809936) +- **Data source** — Revisited Oxford and Paris photographs and expert relevance judgments. +- **Provenance details** — [Original image collections, CLIP checkpoint, and usage terms](SOURCES.md) diff --git a/tasks/scientific-paper-qa/README.md b/tasks/scientific-paper-qa/README.md index b9abb06..f803941 100644 --- a/tasks/scientific-paper-qa/README.md +++ b/tasks/scientific-paper-qa/README.md @@ -11,20 +11,16 @@ | Compute | 16 CPUs; 16 GiB RAM; 100 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 14400 s | | Dataset | research-paper PDFs | +| Public queries | 10 | | Hidden queries | 10 | -Build a RAG system that answers scientific questions and identifies the supporting paper. +## Overview -### Overview +Build a RAG system that answers scientific questions and identifies the supporting paper. -Finding a related paper is only one part of scientific question answering. -The system must recover relevant evidence from PDFs, interpret it, and -produce an answer attributable to the correct source. +Finding a related paper is only one part of scientific question answering. The system must recover relevant evidence from PDFs, interpret it, and produce an answer attributable to the correct source. -This task combines retrieval and generation over 300 local research papers. -It evaluates the complete pipeline: an otherwise plausible answer receives no -credit when the submitted evidence document is wrong. It also tests whether -the system can share its index and services reliably across concurrent questions. +This task combines retrieval and generation over 300 local research papers. It evaluates the complete pipeline: an otherwise plausible answer receives no credit when the submitted evidence document is wrong. It also tests whether the system can share its index and services reliably across concurrent questions. ### Task Setup @@ -36,29 +32,17 @@ the system can share its index and services reliably across concurrent questions | `data/validation/queries.jsonl` | 10 public development questions | | `data/validation/golden_answers.jsonl` | Public answers and supporting document IDs | -Public assets are mounted under `/task/data`. The 10 held-out questions use -the same PDF corpus, but their questions and labels are separated from the -agent environment. [Long-PDF evidence](../long-pdf-evidence/README.md) instead evaluates page -localization within a single long PDF. +Public assets are mounted under `/task/data`. The 10 held-out questions use the same PDF corpus, but their questions and labels are separated from the agent environment. [Long-PDF evidence](../long-pdf-evidence/README.md) instead evaluates page localization within a single long PDF. #### Fixed Components and Allowed Changes -The corpus and output interface are fixed. PDF processing, index design, -retrieval, evidence selection, and answer synthesis are implementation choices. -Optional OpenRouter and Jina services are subject to the -[resource policy](environment/docs/available_resources.md); they do not permit -replacing corpus-grounded work with external answers. +The corpus and output interface are fixed. PDF processing, index design, retrieval, evidence selection, and answer synthesis are implementation choices. Optional OpenRouter and Jina services are subject to the [resource policy](environment/docs/available_resources.md); they do not permit replacing corpus-grounded work with external answers. #### Environment and Resource Limits -The CPU Python 3.12 environment provides 16 CPUs, 16 GiB memory, 100 GiB storage, -and no GPU. The agent has two hours and the Harbor verifier four hours. -The submitted build has a 3,600-second limit. The verifier launches up to five -query processes at once, each with 900 seconds from process start; queue time -is excluded and workers share the same resources. +The CPU Python 3.12 environment provides 16 CPUs, 16 GiB memory, 100 GiB storage, and no GPU. The agent has two hours and the Harbor verifier four hours. The submitted build has a 3,600-second limit. The verifier launches up to five query processes at once, each with 900 seconds from process start; queue time is excluded and workers share the same resources. -The verifier also bounds query execution, answer scoring, and trajectory review -as stages inside its overall budget. Stage limits do not extend that budget. +The verifier also bounds query execution, answer scoring, and trajectory review as stages inside its overall budget. Stage limits do not extend that budget. ## Change Log @@ -79,11 +63,7 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -The deliverable is `/app/build.sh` plus `/app/run.sh` and the implementation -they need. Each query produces a concise `answer` and one evidence document ID -(the PDF filename without `.pdf`), along with its query ID. The build must -recreate any service in the separate verifier, and the query path must support -concurrent invocations. +The deliverable is `/app/build.sh` plus `/app/run.sh` and the implementation they need. Each query produces a concise `answer` and one evidence document ID (the PDF filename without `.pdf`), along with its query ID. The build must recreate any service in the separate verifier, and the query path must support concurrent invocations. The full schema and invocation details live in [instruction.md](instruction.md). @@ -91,11 +71,7 @@ The full schema and invocation details live in [instruction.md](instruction.md). #### Search Quality -A question scores one only when **both** conditions hold: the evidence document -matches the reference, and an answer judge accepts the answer as semantically -equivalent to the reference. LLMJudgeAccuracy is the mean of these binary -outcomes over 10 hidden questions. The report's 0–100 score is 100 times the -normalized reward. The answer judge is called only after the evidence document matches the reference. +A question scores one only when **both** conditions hold: the evidence document matches the reference, and an answer judge accepts the answer as semantically equivalent to the reference. LLMJudgeAccuracy is the mean of these binary outcomes over 10 hidden questions. The report's 0–100 score is 100 times the normalized reward. The answer judge is called only after the evidence document matches the reference. #### Correctness and Resource Gates @@ -103,31 +79,21 @@ Execution, complete query coverage, valid answers and document IDs, and runtime #### Integrity Checks and Final Reward -The answer judge and trajectory audit are separate. The first evaluates answer -equivalence; the second checks task compliance and can set the whole reward -to zero. Their credentials are isolated from submission processes and from -each other. -The trajectory audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0; -the answer judge keeps its independently configured model. +The answer judge and trajectory audit are separate. The first evaluates answer equivalence; the second checks task compliance and can set the whole reward to zero. Their credentials are isolated from submission processes and from each other. The trajectory audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0; the answer judge keeps its independently configured model. + +The 300 source PDFs are unchanged. Public and hidden questions were rebuilt to combine paper-identification conditions with evidence from tables, figures, and experimental details. The splits have disjoint query IDs, questions, and reference papers; the hidden split uses ten distinct reference papers. Current task identity and execution settings are recorded in `task.toml`. + +### Repeated measurements + +After evidence matching, the fixed submitted answer is judged independently three times. The score is the mean of the three binary decisions, averaged equally across queries. Retrieval, answer generation and evidence comparison run once. -The 300 source PDFs are unchanged. Public and hidden questions were rebuilt -to combine paper-identification conditions with evidence from tables, figures, -and experimental details. The splits have disjoint query IDs, questions, and -reference papers; the hidden split uses ten distinct reference papers. -Current task identity and execution settings are recorded in `task.toml`. +The `answer-judge-v2` protocol starts each vote at 512 output tokens. It accepts the first parseable decision, including a negative vote. Empty or malformed replies and transport errors retry within the same three 120-second attempts. If the provider reports a length limit and the decision is incomplete, the next attempt gets four times the output budget, up to 8,192 tokens. Each completed vote is saved in the verifier's private results directory. Restarting the grader there with the same inputs, judge and protocol reuses those votes. A missing required vote invalidates the measurement and leaves zero reward. The answer-grader supervisor allows 2,700 seconds for up to 30 judgments with five workers. The overall verifier budget is 14,400 seconds and includes one trajectory audit. -### Running This Task +## Running the Task -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -This task needs both `ANSWER_JUDGE_*` settings for answer scoring and -`VERIFIER_OPENAI_*` settings for the trajectory audit. Optional submission APIs -use shared `OPENROUTER_API_KEY` and `JINA_API_KEY`. The evaluation guide explains -the separate credential groups and their API requirements. +This task needs both `ANSWER_JUDGE_*` settings for answer scoring and `VERIFIER_OPENAI_*` settings for the trajectory audit. Optional submission APIs use shared `OPENROUTER_API_KEY` and `JINA_API_KEY`. The evaluation guide explains the separate credential groups and their API requirements. ```bash python scripts/assets/download_assets.py --task scientific-paper-qa @@ -135,12 +101,7 @@ bash scripts/evaluation/run_task.sh --task scientific-paper-qa --agent codex --o --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/scientific-paper-qa/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/scientific-paper-qa/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -154,12 +115,7 @@ assets, credentials, or hardware. | [Verifier](tests/) | Execution, output validation, and scoring implementation | | [Resource policy](environment/docs/available_resources.md) | Allowed submission APIs and model restrictions | -### Repeated verifier measurements - -After evidence matching, the fixed submitted answer is judged independently three times. The score is the mean of the three binary decisions, averaged equally across queries. Retrieval, answer generation and evidence comparison run once. - -The `answer-judge-v2` protocol starts each vote at 512 output tokens. It accepts the first parseable decision, including a negative vote. Empty or malformed replies and transport errors retry within the same three 120-second attempts. If the provider reports a length limit and the decision is incomplete, the next attempt gets four times the output budget, up to 8,192 tokens. Each completed vote is saved in the verifier's private results directory. Restarting the grader there with the same inputs, judge and protocol reuses those votes. A missing required vote invalidates the measurement and leaves zero reward. The answer-grader supervisor allows 2,700 seconds for up to 30 judgments with five workers. The overall verifier budget is 14,400 seconds and includes one trajectory audit. - ## References -None. +- **Task source** — Experience +- **Data source** — Fixed collection of 300 research-paper PDFs with task-authored questions. [Asset manifest](assets.json) diff --git a/tasks/sketch-text-search/README.md b/tasks/sketch-text-search/README.md index 010e020..fb5fa24 100644 --- a/tasks/sketch-text-search/README.md +++ b/tasks/sketch-text-search/README.md @@ -14,16 +14,13 @@ | Public queries | 15 | | Hidden queries | 1242 | -Retrieve an artwork from a partial sketch and its written description. +## Overview -### Overview +Retrieve an artwork from a partial sketch and its written description. -A rough sketch may omit parts of the desired scene. The system must combine -the visible drawing and description to locate the target artwork. +A rough sketch may omit parts of the desired scene. The system must combine the visible drawing and description to locate the target artwork. -The collection retains three description levels. Each sketch-description pair -is processed independently; descriptions for other requests are not extra -query context. +The collection retains three description levels. Each sketch-description pair is processed independently; descriptions for other requests are not extra query context. ### Task Setup @@ -37,34 +34,19 @@ query context. | `data/validation/` | 15 public rows: five query families at three description levels | | `models/clip/` | Local fixed CLIP ViT-B/32 weights and processor | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs derive from [CIRThan](https://github.com/jinyuxu-whut/CIRThan/tree/b1499eb9393b12f1499a983f8fedfe7d14869024). -The original descriptions, targets and training families are retained. -Five evaluation families are public and 414 are held out, giving 15 public and -1,242 held-out rows. Description levels of one family do not cross the split. +Inputs derive from [CIRThan](https://github.com/jinyuxu-whut/CIRThan/tree/b1499eb9393b12f1499a983f8fedfe7d14869024). The original descriptions, targets and training families are retained. Five evaluation families are public and 414 are held out, giving 15 public and 1,242 held-out rows. Description levels of one family do not cross the split. -The sketch input is an explicit task adaptation: a deterministic left or right -60 percent of each original sketch is retained in its coordinate frame, and -the remaining 40 percent is masked. Selection uses only the opaque sketch ID. -Complete original sketches are not supplied. This is a partial-sketch task, -not a claim to reproduce the original paper's input condition. +The sketch input is an explicit task adaptation: a deterministic left or right 60 percent of each original sketch is retained in its coordinate frame, and the remaining 40 percent is masked. Selection uses only the opaque sketch ID. Complete original sketches are not supplied. This is a partial-sketch task, not a claim to reproduce the original paper's input condition. #### Fixed Components and Allowed Changes -The gallery, partial sketches, description levels and output interface are -fixed. Supplied encoders remain fixed; optional scoring or fusion components -may use up to 30 minutes of adaptation. Indexing and ranking are implementation -choices. No precomputed vectors, starter or external APIs are supplied. +The gallery, partial sketches, description levels and output interface are fixed. Supplied encoders remain fixed; optional scoring or fusion components may use up to 30 minutes of adaptation. Indexing and ranking are implementation choices. No precomputed vectors, starter or external APIs are supplied. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has six hours, including the adaptation allowance. -Build has 3,600 seconds. Each of three query calls, one per description level, -has 1,800 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has six hours, including the adaptation allowance. Build has 3,600 seconds. Each of three query calls, one per description level, has 1,800 seconds. ## Change Log @@ -84,15 +66,9 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting code and -learned files under `/app`. Each request contains a sketch path and description; -return up to ten distinct gallery IDs with finite nonincreasing scores. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting code and learned files under `/app`. Each request contains a sketch path and description; return up to ten distinct gallery IDs with finite nonincreasing scores. -Commands run as a non-root user with code and inputs read-only. The supplied -index directory is writable during build, but its parent is not writable. -Retrieval sees a read-only index and uses the supplied writable output and -temporary paths. A development-only permissions helper is available at -`/task/tools/check_runtime.py`; it performs no scoring. +Commands run as a non-root user with code and inputs read-only. The supplied index directory is writable during build, but its parent is not writable. Retrieval sees a read-only index and uses the supplied writable output and temporary paths. A development-only permissions helper is available at `/task/tools/check_runtime.py`; it performs no scoring. The full schema and invocation details are in [instruction.md](instruction.md). @@ -100,60 +76,38 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Per-query quality is `0.5 × Recall@3 + 0.5 × MRR@3`. -Average within each of the three description levels, then give the levels -equal weight. +Per-query quality is `0.5 × Recall@3 + 0.5 × MRR@3`. Average within each of the three description levels, then give the levels equal weight. -Up to ten results are accepted by the interface, but only the first three -affect the metric. The composite and partial-sketch input are task adaptations; -they do not reproduce the source paper's reported scores. +Up to ten results are accepted by the interface, but only the first three affect the metric. The composite and partial-sketch input are task adaptations; they do not reproduce the source paper's reported scores. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.32306763285024154` and integer score anchor `a = 15` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.32306763285024154` and integer score anchor `a = 15` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Prepare the GPU runtime and independent trajectory-audit credentials. -Submitted task programs run offline and receive no provider credentials. +Prepare the GPU runtime and independent trajectory-audit credentials. Submitted task programs run offline and receive no provider credentials. -The commands below apply in a checkout with this package installed at -`tasks/sketch-text-search/`: +The commands below apply in a checkout with this package installed at `tasks/sketch-text-search/`: ```bash python scripts/assets/download_assets.py --task sketch-text-search @@ -161,11 +115,7 @@ bash scripts/evaluation/run_task.sh --task sketch-text-search --agent codex --op --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/sketch-text-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/sketch-text-search/`. ### Task Files @@ -186,4 +136,6 @@ credentials or hardware. Results are written under `jobs/sketch-text-search/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [CIRThan (SIGIR 2026)](https://doi.org/10.1145/3805712.3808581) +- **Data source** — CIRThan artwork, descriptions, targets, and sketch inputs adapted for partial-sketch retrieval. +- **Provenance details** — [Dataset transformation, CLIP checkpoint, and usage terms](SOURCES.md) diff --git a/tasks/sparse-retrieval-pruning/README.md b/tasks/sparse-retrieval-pruning/README.md index 074f8ba..e5cff4e 100644 --- a/tasks/sparse-retrieval-pruning/README.md +++ b/tasks/sparse-retrieval-pruning/README.md @@ -11,24 +11,16 @@ | Compute | 1 CPUs; 32 GiB RAM; 80 GiB storage; 0 GPUs | | Agent / verifier time limits | 7200 s / 16200 s | | Dataset | MS MARCO Passage v1 with frozen SPLADE sparse vectors | +| Public queries | 200 | | Hidden queries | 1000 | -Optimize a sparse retrieval system while preserving strict quality requirements. +## Overview -### Overview +Optimize a sparse retrieval system while preserving strict quality requirements. -Sparse retrieval efficiency depends on how terms, document identities, and -posting lists fit together. A compact index is not useful if remapped terms -point to the wrong postings, and aggressive pruning is not useful if it -removes relevant results. +Sparse retrieval efficiency depends on how terms, document identities, and posting lists fit together. A compact index is not useful if remapped terms point to the wrong postings, and aggressive pruning is not useful if it removes relevant results. -The task packages one million MS MARCO documents as sets of opaque, -unweighted term IDs derived from frozen sparse representations. It evaluates -a Python implementation against the unpruned reference starter. -The goal is to preserve strong retrieval quality while reducing total query -wall time relative to that reference. Quality thresholds are hard gates; -passing submissions receive `clip((speedup - 4) / 12, 0, 1)`: 4× starts scoring, -10× earns 50 points and 16× earns 100 points. +The task packages one million MS MARCO documents as sets of opaque, unweighted term IDs derived from frozen sparse representations. It evaluates a Python implementation against the unpruned reference starter. The goal is to preserve strong retrieval quality while reducing total query wall time relative to that reference. Quality thresholds are hard gates; passing submissions receive `clip((speedup - 4) / 12, 0, 1)`: 4× starts scoring, 10× earns 50 points and 16× earns 100 points. ### Task Setup @@ -41,37 +33,21 @@ passing submissions receive `clip((speedup - 4) / 12, 0, 1)`: 4× starts scoring | `environment/starter/` | Unpruned retrieval starter | | `environment/starter/README.md` | Starter dictionary, posting, and metadata layout | -The verifier has 1,000 hidden queries, relevance labels, and reference data, -isolated from the agent environment. It runs its own unpruned reference starter -when measuring the runtime baseline. +The verifier has 1,000 hidden queries, relevance labels, and reference data, isolated from the agent environment. It runs its own unpruned reference starter when measuring the runtime baseline. -The public assets are pinned to an immutable dataset revision in -[assets.json](assets.json). Downloading verifies file sizes and SHA-256 checksums. -Their Hugging Face source paths are under `tasks/sparse-retrieval-pruning/`. +The public assets are pinned to an immutable dataset revision in [assets.json](assets.json). Downloading verifies file sizes and SHA-256 checksums. Their Hugging Face source paths are under `tasks/sparse-retrieval-pruning/`. #### Fixed Components and Allowed Changes -The corpus, executable interface, and quality/runtime requirements are fixed. -The agent may replace the starter's index format or retrieval algorithm. -All indexing, scoring, pruning, and ranking logic must remain Python source; -thin Bash launch wrappers and normal use of preinstalled packages such as NumPy -are allowed. +The corpus, executable interface, and quality/runtime requirements are fixed. The agent may replace the starter's index format or retrieval algorithm. All indexing, scoring, pruning, and ranking logic must remain Python source; thin Bash launch wrappers and normal use of preinstalled packages such as NumPy are allowed. -The submission must be single-process and single-threaded. Native submission -code, compiled submission executables, and parallel query execution are outside -the task. The input is set-valued; readers should not assume that weighted -encoder outputs or a retrainable transformer are supplied. +The submission must be single-process and single-threaded. Native submission code, compiled submission executables, and parallel query execution are outside the task. The input is set-valued; readers should not assume that weighted encoder outputs or a retrainable transformer are supplied. #### Environment and Resource Limits -The CPU Python 3.12 environment has one CPU, 32 GiB memory, 80 GiB storage, -and no GPU. The agent has two hours; the Harbor verifier has 270 minutes (worst-case stage budget). -The current execution wrapper caps the candidate build at 3,600 seconds and -each query run at 900 seconds; the starter build is capped at 1,800 seconds. The starter-relative latency reward is measured -within those bounds, and all verification stages share the overall phase budget. +The CPU Python 3.12 environment has one CPU, 32 GiB memory, 80 GiB storage, and no GPU. The agent has two hours; the Harbor verifier has 270 minutes (worst-case stage budget). The current execution wrapper caps the candidate build at 3,600 seconds and each query run at 900 seconds; the starter build is capped at 1,800 seconds. The starter-relative latency reward is measured within those bounds, and all verification stages share the overall phase budget. -The formal build/search path requires no external service, credentials, or -downloads. The private integrity judge's API access is a separate concern. +The formal build/search path requires no external service, credentials, or downloads. The private integrity judge's API access is a separate concern. ## Change Log @@ -90,22 +66,15 @@ downloads. The private integrity judge's API access is a separate concern. ### Submission Contract -The transferred system includes `/app/build.sh` and `/app/run.sh`. The build -creates all persistent state under the caller's index directory; the query -entry point returns the required ranked Top-100 corpus documents. -The verifier runs submission commands unprivileged with the submission tree -read-only. +The transferred system includes `/app/build.sh` and `/app/run.sh`. The build creates all persistent state under the caller's index directory; the query entry point returns the required ranked Top-100 corpus documents. The verifier runs submission commands unprivileged with the submission tree read-only. -The exact fields and CLI are in [instruction.md](instruction.md). The -[starter reference](environment/starter/README.md) explains the starter, -but that particular storage format is not a required output artifact. +The exact fields and CLI are in [instruction.md](instruction.md). The [starter reference](environment/starter/README.md) explains the starter, but that particular storage format is not a required output artifact. ### Evaluation #### Search Quality -Quality is measured using mean NDCG@10 and qrels-based Recall@100. The current -minimums are **0.89** and **0.99** respectively. +Quality is measured using mean NDCG@10 and qrels-based Recall@100. The current minimums are **0.89** and **0.99** respectively. #### Correctness and Latency Reward @@ -117,24 +86,31 @@ Let `s = median(starter wall time) / median(candidate wall time)`. If every roun #### Integrity Checks and Final Reward -If either quality threshold, output and execution checks, or the trajectory -audit fails, final reward is `0`. Otherwise the final reward is the speedup -reward described above. The verifier measures reference wall time afresh for each run. -The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with -verifier-only DeepSeek endpoint and key settings. +If either quality threshold, output and execution checks, or the trajectory audit fails, final reward is `0`. Otherwise the final reward is the speedup reward described above. The verifier measures reference wall time afresh for each run. The audit uses `deepseek/deepseek-v4.1-flash` via OpenRouter through pinned RewardKit 0.2.0 with verifier-only DeepSeek endpoint and key settings. + +### Revision 0.5.2 validation + +This revision implements the fixed 4×–16× reward range and five-round alternating protocol. Linux x86_64 Landlock and seccomp are required by the verifier (missing kernel support fails closed). Submission temporary writes are confined to the current output and scratch directories; source and built index are read-only in search. Metrics, hidden labels and prior round results are inaccessible. Shell-wrapper subprocesses are permitted only for serial launching; Python workers are sampled during execution and the existing judge audits the full single-process policy. The single-thread policy is also enforced by a kernel filter and library environment settings. The 80 GiB storage value is a declared harness budget, not a kernel filesystem quota. + +On verifier exit, build/search metrics, stdout/stderr and each round's result file are retained under `verifier/runner-artifacts/` in the job. This diagnostic copy runs after measurement and also preserves logs when a build/search fails. Indexes and temporary scratch files are not exported. + +Run task-local regression tests with `python -m unittest discover -s tasks/sparse-retrieval-pruning/authoring/tests -p 'test_*.py'`. Runtime evidence and full-score feasibility are recorded by the author in the calibration delivery report; they are not established by static validation. + +That external report is not included in this package. The quality floors and 4×–16× reward range remain fixed task-design parameters; a complete, reproducible record for the current five-round protocol, including reference/candidate measurements and full-score feasibility, is still needed for independent calibration review. + +Revision 0.5.1 also unifies login-shell Python aliases with `/opt/conda` and sets single-thread library defaults in both images. This repairs the 0.5.0 trial's environment mismatch; its incomplete run is not difficulty evidence. + +Revision 0.5.2 removes a per-UID `RLIMIT_NPROC` that incorrectly counted unrelated containers on the host and could block the starter's serial shell launch. The container PID limit, kernel thread prohibition, worker monitoring, quality gates and scoring are unchanged. + +### Repeated measurements + +The build remains single-pass for each system. Five alternating measurement rounds use the ratio of median wall times to determine speedup. Every round must pass both quality gates; failed or timed-out rounds cannot be dropped. The existing 16,200-second verifier budget covers 5,400 seconds of builds, 9,000 seconds of searches, the 1,200-second integrity audit and 600 seconds of overhead. -### Running This Task +## Running the Task -From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) -to install Search-SWE and prepare Docker. Use the -[evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and -task credential profile. The -[asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. +From the repository root, follow the [quick start](../../docs/evaluation/quickstart.md) to install Search-SWE and prepare Docker. Use the [evaluation guide](../../docs/evaluation/runtime.md) to configure the selected agent and task credential profile. The [asset guide](../../docs/evaluation/assets.md) covers downloads, checksums, and cache options. -Configure the verifier's integrity-judge credentials independently of the coding -agent. The submission itself does not need task-resource API keys or a model -download. The standard asset command restores the published corpus and -validation files directly. +Configure the verifier's integrity-judge credentials independently of the coding agent. The submission itself does not need task-resource API keys or a model download. The standard asset command restores the published corpus and validation files directly. ```bash python scripts/assets/download_assets.py --task sparse-retrieval-pruning @@ -142,12 +118,7 @@ bash scripts/evaluation/run_task.sh --task sparse-retrieval-pruning --agent code --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex, also supports Pi and Claude Code, and -writes results under `jobs/sparse-retrieval-pruning/`. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -command construction without starting an evaluation; this does not validate -assets, credentials, or hardware. +The shared launcher defaults to Codex, also supports Pi and Claude Code, and writes results under `jobs/sparse-retrieval-pruning/`. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect command construction without starting an evaluation; this does not validate assets, credentials, or hardware. ### Task Files @@ -162,35 +133,7 @@ assets, credentials, or hardware. | [Starter reference](environment/starter/README.md) | Starter layout and consistency relationships | | [Resource policy](environment/docs/available_resources.md) | Python dependency and execution restrictions | -### Revision 0.5.2 validation - -This revision implements the fixed 4×–16× reward range and five-round alternating protocol. Linux x86_64 Landlock and seccomp are required by the verifier (missing kernel support fails closed). Submission temporary writes are confined to the current output and scratch directories; source and built index are read-only in search. Metrics, hidden labels and prior round results are inaccessible. Shell-wrapper subprocesses are permitted only for serial launching; Python workers are sampled during execution and the existing judge audits the full single-process policy. The single-thread policy is also enforced by a kernel filter and library environment settings. The 80 GiB storage value is a declared harness budget, not a kernel filesystem quota. - -On verifier exit, build/search metrics, stdout/stderr and each round's result -file are retained under `verifier/runner-artifacts/` in the job. This diagnostic -copy runs after measurement and also preserves logs when a build/search fails. -Indexes and temporary scratch files are not exported. - -Run task-local regression tests with -`python -m unittest discover -s tasks/sparse-retrieval-pruning/authoring/tests -p 'test_*.py'`. -Runtime evidence and full-score feasibility are recorded by the author in the -calibration delivery report; they are not established by static validation. - -That external report is not included in this package. The quality floors and 4×–16× reward range remain fixed task-design parameters; a complete, reproducible record for the current five-round protocol, including reference/candidate measurements and full-score feasibility, is still needed for independent calibration review. - -Revision 0.5.1 also unifies login-shell Python aliases with `/opt/conda` and -sets single-thread library defaults in both images. This repairs the 0.5.0 -trial's environment mismatch; its incomplete run is not difficulty evidence. - -Revision 0.5.2 removes a per-UID `RLIMIT_NPROC` that incorrectly counted -unrelated containers on the host and could block the starter's serial shell -launch. The container PID limit, kernel thread prohibition, worker monitoring, -quality gates and scoring are unchanged. - -### Repeated verifier measurements - -The build remains single-pass for each system. Five alternating measurement rounds use the ratio of median wall times to determine speedup. Every round must pass both quality gates; failed or timed-out rounds cannot be dropped. The existing 16,200-second verifier budget covers 5,400 seconds of builds, 9,000 seconds of searches, the 1,200-second integrity audit and 600 seconds of overhead. - ## References -None. +- **Task source** — Experience +- **Data source** — MS MARCO Passage v1 with frozen SPLADE sparse vectors. [Asset manifest](assets.json) diff --git a/tasks/spoken-query-search/README.md b/tasks/spoken-query-search/README.md index 9abd8b7..1f8ff3d 100644 --- a/tasks/spoken-query-search/README.md +++ b/tasks/spoken-query-search/README.md @@ -14,17 +14,13 @@ | Public queries | 10 | | Hidden queries | 4550 | -Retrieve documents from fixed, uncertain speech transcriptions and their alternatives. +## Overview -### Overview +Retrieve documents from fixed, uncertain speech transcriptions and their alternatives. -Speech recognition can mishear names and important query terms. This task -provides a best transcription, alternative hypotheses and confidence information -rather than clean question text. The system must use those inputs to retrieve -relevant documents. +Speech recognition can mishear names and important query terms. This task provides a best transcription, alternative hypotheses and confidence information rather than clean question text. The system must use those inputs to retrieve relevant documents. -The recognizer is fixed. Document indexing, uncertainty handling and ranked -retrieval belong to the submission. +The recognizer is fixed. Document indexing, uncertainty handling and ranked retrieval belong to the submission. ### Task Setup @@ -36,42 +32,23 @@ retrieval belong to the submission. | `data/validation/` | Ten public rows from five original question families | | `models/encoder/` | Local multilingual-e5-small weights and tokenizer | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs come from [SQuTR](https://github.com/ttoyekk1a/SQuTR-Spoken-Query-to-Text-Retrieval) -at dataset revision `2f1b041e2e98e0d28ed68fbcf22126ef247eb719`. -The original corpora and qrels are retained. Audio was synthesized from source -questions and mixed with noise; it is not natural human speech. +Inputs come from [SQuTR](https://github.com/ttoyekk1a/SQuTR-Spoken-Query-to-Text-Retrieval) at dataset revision `2f1b041e2e98e0d28ed68fbcf22126ef247eb719`. The original corpora and qrels are retained. Audio was synthesized from source questions and mixed with noise; it is not natural human speech. -This task supplies fixed Whisper-small N-best transcriptions prepared without -clean question text or qrels as recognition inputs. Conditional token -probabilities are aggregated into hypothesis and word confidence information. -This recognizer differs from the systems evaluated in the source paper. +This task supplies fixed Whisper-small N-best transcriptions prepared without clean question text or qrels as recognition inputs. Conditional token probabilities are aggregated into hypothesis and word confidence information. This recognizer differs from the systems evaluated in the source paper. -Five original families are public in clean and SNR20 conditions, giving ten -public rows. The private split has 4,550 rows across four acoustic conditions. -SNR0/SNR10 variants of the public families are unused. No question family crosses -the split. Here clean names an acoustic condition; clean reference text and audio -are not runtime inputs. +Five original families are public in clean and SNR20 conditions, giving ten public rows. The private split has 4,550 rows across four acoustic conditions. SNR0/SNR10 variants of the public families are unused. No question family crosses the split. Here clean names an acoustic condition; clean reference text and audio are not runtime inputs. #### Fixed Components and Allowed Changes -Transcriptions, confidence fields, document collections and source relevance -labels are fixed. At most five retrieval formulations and 50 further -query-document reranking pairs are allowed per request. No new speech -recognition is available. +Transcriptions, confidence fields, document collections and source relevance labels are fixed. At most five retrieval formulations and 50 further query-document reranking pairs are allowed per request. No new speech recognition is available. -Indexing and ranking are implementation choices. No document or query vectors -or starter are supplied. Optional OpenRouter and Jina access follows the -[resource policy](environment/docs/available_resources.md). +Indexing and ranking are implementation choices. No document or query vectors or starter are supplied. Optional OpenRouter and Jina access follows the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has two hours. Build has 10,800 seconds; each of four -query calls has 1,350 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has two hours. Build has 10,800 seconds; each of four query calls has 1,350 seconds. ## Change Log @@ -91,15 +68,9 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Requests name a collection domain and provide the best -transcription and alternatives. Return up to ten distinct documents from that -domain, with finite nonincreasing scores. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Requests name a collection domain and provide the best transcription and alternatives. Return up to ten distinct documents from that domain, with finite nonincreasing scores. -Commands run as a non-root user with code and inputs read-only. Build writes -inside the supplied index directory, whose parent is not writable. The index -is read-only for query calls. Acoustic conditions are executed in separate -calls with fresh scratch; requests must be processed independently. +Commands run as a non-root user with code and inputs read-only. Build writes inside the supplied index directory, whose parent is not writable. The index is read-only for query calls. Acoustic conditions are executed in separate calls with fresh scratch; requests must be processed independently. The full schema and invocation details are in [instruction.md](instruction.md). @@ -107,63 +78,41 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Compute original graded nDCG@10, average within each collection and acoustic -condition, then give the six collections and four conditions equal weight. +Compute original graded nDCG@10, average within each collection and acoustic condition, then give the six collections and four conditions equal weight. -The split separates question families, but it is not an independently verified -speaker-disjoint benchmark. Per-condition and per-collection scores are reported -to show the effect of recognition noise. +The split separates question families, but it is not an independently verified speaker-disjoint benchmark. Per-condition and per-collection scores are reported to show the effect of recognition noise. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.4530094614433184` and integer score anchor `a = 15` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.4530094614433184` and integer score anchor `a = 15` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. The reference quality and score anchor are fixed task-design parameters. This package does not include a reproducible calibration record tying the reference value to a specific implementation, run and output fingerprint; that evidence remains to be supplied before claiming empirical calibration. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query coverage, IDs, duplicate handling, finite scores and stage limits. -Completed valid JSONL rows remain usable after a query timeout; missing or -invalid rows score zero. A non-timeout query-command failure invalidates -that call. See [instruction.md](instruction.md) and the verifier for the exact -task-specific validity checks. +The verifier checks successful index construction, executable behavior, query coverage, IDs, duplicate handling, finite scores and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid rows score zero. A non-timeout query-command failure invalidates that call. See [instruction.md](instruction.md) and the verifier for the exact task-specific validity checks. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -The commands below apply in a checkout with this package installed at -`tasks/spoken-query-search/`: +The commands below apply in a checkout with this package installed at `tasks/spoken-query-search/`: ```bash python scripts/assets/download_assets.py --task spoken-query-search @@ -171,11 +120,7 @@ bash scripts/evaluation/run_task.sh --task spoken-query-search --agent codex --o --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/spoken-query-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/spoken-query-search/`. ### Task Files @@ -195,4 +140,6 @@ credentials or hardware. Results are written under `jobs/spoken-query-search/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [SQuTR (SIGIR 2026)](https://doi.org/10.1145/3805712.3808600) +- **Data source** — SQuTR corpora, questions, and relevance judgments with task-prepared Whisper transcripts. +- **Provenance details** — [ASR preparation, multilingual E5 checkpoint, and usage terms](SOURCES.md) diff --git a/tasks/training-error-tracing/README.md b/tasks/training-error-tracing/README.md index cb2cc86..14cf4a0 100644 --- a/tasks/training-error-tracing/README.md +++ b/tasks/training-error-tracing/README.md @@ -10,15 +10,15 @@ | Primary metric | quality-gated paired query-latency and GPU-memory cost | | Compute | 16 CPUs; 16 GiB RAM; 64 GiB storage; 1 GPU | | Agent / verifier time limits | 14400 s / 11400 s | +| Dataset | Stanford Alpaca derivative | +| Public queries | 50 | +| Hidden queries | 100 | + +## Overview Improve a working training-record retriever beyond training-text routing and layer-streamed fixed-base fallback. -The complete task contract is in [raw-instruction.md](raw-instruction.md). -The coding agent receives [instruction.md](instruction.md), -[available resources](environment/docs/available_resources.md), and -[environment instructions](environment/docs/environment.md). -Those documents specify the submission interface, allowed inputs, scoring, -failure behavior and public self-check commands. +The complete task contract is in [raw-instruction.md](raw-instruction.md). The coding agent receives [instruction.md](instruction.md), [available resources](environment/docs/available_resources.md), and [environment instructions](environment/docs/environment.md). Those documents specify the submission interface, allowed inputs, scoring, failure behavior and public self-check commands. ## Change Log @@ -34,6 +34,52 @@ The retriever must identify influential training records beyond the provided rou The verifier measures the proportion of modified training records among the returned Top-10, requiring mean quality of at least 0.98 and at least 0.80 for every group on every repetition. Passing quality earns a 20-point milestone; the remaining credit measures paired latency and sampled GPU-memory improvement over a fresh run of the immutable public control. Harbor stores the displayed score divided by 100. See the [verification contract](raw-instruction.md#verification) for exact formulas, thresholds and failure handling. +### Maintainer notes + +#### Data construction and probe provenance + +The hidden workload has 100 queries in ten groups, ten queries per group. The groups form five shared-error-entity families. Each family has two groups with disjoint relevant-record sets, so a single fixed Top-10 list chosen only by error entity has group-macro Precision@10 at most 0.5. The families stay together for quality uncertainty estimates. These are construction and shortcut-analysis facts, not solver instructions; the agent only needs to know that the current request can distinguish different sources sharing an erroneous entity. + +The corpus derives from Alpaca revision `dce01c9b08f87459cf36a430d809084718273017`, corresponding to Stanford `alpaca_data.json` at `761dc5bfbdeeffa89b8bff5d038781a4055f796a`. One record without retained response loss was excluded. The fixed probe derives from Qwen/Qwen2.5-7B revision `d149729398750b98c0af14eb82c78cfe92750796`: all 28 decoder layers in serialized NF4/double-quantized state, complete BF16 input embeddings and 64,439 original BF16 output rows. The output rows come from training text, training alternative-token IDs and vocabulary tokens sharing a nonempty token surface with those alternatives; no error-query labels or source-target group mappings select them. The supplied asset-size target is below 5,000,000,000 bytes and is separate from the runtime storage allowance. + +The Alpaca derivative uses CC BY-NC 4.0 terms. The included model's Apache-2.0 license does not replace the data terms. + +#### Package layout + +- `environment/starter/` is the single source for the working retriever. The agent image copies it into editable `/app/submission`; both phases mount the original read-only at `/task/starter`, and the verifier copies that original into a private directory before freezing and running its paired control. +- `environment/runtime/` contains only the shared training-input loader, compact-probe API, native query client and public quality checker. Both phases mount it read-only at `/task/runtime`. +- `environment/docs/` documents the installed environment, allowed resources and public interfaces. +- `assets/model/` and `assets/diagnostics/` contain five bundled metadata files. `assets.json` restores them into the unchanged model/data paths with the same file hashes. Metadata is not mounted as a separate runtime directory. +- `tests/` contains the private verifier, hidden data and regression tests. Optional alternative retrievers, their training scripts and unused adapter configuration are not part of the task package. + +The starter's `submission.json` records hashes for its three source/entry-point files and four shared runtime files. Update these hashes when changing those files. The verifier's control is copied from the read-only canonical starter and frozen by the existing runner, never copied from the agent's edited `/app/submission`. + +#### Scoring parameters and validation limits + +The current score is defined by `tests/efficiency_metrics.py` and `tests/data/evaluation-config.json`, with the precision-only development helper at `environment/runtime/score_dev.py`. There is no additional public reward implementation or obsolete quality-only B/U normalization. + +| Parameter | Role in the fixed task design | +| --- | --- | +| Q >= 0.98; every group P@10 >= 0.80 | Quality acceptance gates on every repetition. | +| 20 quality points; 80 efficiency points | Credit split after all quality gates pass. | +| C = 0.9 | Efficiency-credit threshold; improvements within 10% receive no extra credit. | +| Reference cost ratio 0.5 | Full-credit target: halve the paired latency-memory product. | +| 1 GiB GPU-memory floor | Finite memory accounting for low-GPU-memory or CPU-only systems. | + +These are frozen task-design parameters. The repository currently lacks a complete empirical calibration report for the quality gates, credit split and 10% threshold, including a measured noise distribution under the current protocol. The parameter name `noise_ratio` is not evidence that such a distribution was measured. Record independent reference/candidate runs and resource measurements before claiming empirical calibration or full-credit reachability; documentation cleanup does not provide that evidence. + +#### Runtime implementation + +The verifier discovers the allocated GPU UUID and samples GPU memory at nominal 10-ms intervals. It runs the immutable control after candidate processes exit, with a 300-second preparation limit and five seconds per control request; control failure is an infrastructure error. These scheduling details do not change the candidate's published 1,800-second preparation and ten-second request limits. + +The 64 GiB storage allowance is audited rather than enforced by a Docker filesystem quota. Storage inspection runs during work and after commands; device/inode identity avoids counting hard links or repeated references twice. Inspection failures fail closed. Supervisor capabilities and host requirements are described in the validation section above; submitted commands remain unprivileged. + +### Repeated measurements + +Each candidate/control preparation runs once. Each query runs in five independently shuffled passes; latency uses the median of its five times, then averages queries within each group and gives groups equal weight. All five quality passes must satisfy the existing gates, and failed or missing requests remain in the quality denominators. GPU memory remains the sampled peak across preparation and queries. The 9,900-second primary budget covers candidate preparation/requests (1,800 + 5,000 seconds), control preparation/requests (300 + 2,500 seconds) and 300 seconds of overhead. The 11,400-second verifier envelope also covers the unchanged 1,200-second integrity audit and finalization. Earlier three-pass timing records do not establish calibration for this five-pass protocol. + +## Running the Task + ### Restore inputs Run from the repository root using the repository's existing Python environment: @@ -43,26 +89,15 @@ python scripts/assets/download_assets.py --task training-error-tracing python scripts/assets/download_assets.py --task training-error-tracing --verify-only ``` -[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled -restoration paths. Keep verifier inputs outside agent mounts. Data provenance and -license notices are recorded below for maintainers. +[assets.json](assets.json) fixes file sizes, hashes and source revisions or bundled restoration paths. Keep verifier inputs outside agent mounts. See the [data construction and probe provenance](#data-construction-and-probe-provenance) for data sources and license notices. -### Run +### Launch evaluation -The task allocates 16 CPU cores, 16 GiB RAM and -64 GiB storage. Agent development has -14400 seconds. Final-stage limits and accounting are -specified in the task contract; the verifier service timeout also includes its -trusted setup and checks. +The task allocates 16 CPU cores, 16 GiB RAM and 64 GiB storage. Agent development has 14400 seconds. Final-stage limits and accounting are specified in the task contract; the verifier service timeout also includes its trusted setup and checks. -Both phases require one GPU; the verifier does not restrict its model or memory capacity. Use `--gpu-device` to select the same -host GPU for both phases. +Both phases require one GPU; the verifier does not restrict its model or memory capacity. Use `--gpu-device` to select the same host GPU for both phases. -Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or -authorized process environment, following the repository README. -The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and -`VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials -are not submission inputs. +Configure `AGENT_OPENROUTER_API_KEY` through the existing ignored `.env` or authorized process environment, following the repository README. The independent verifier audit also needs `VERIFIER_OPENAI_API_KEY` and `VERIFIER_OPENAI_BASE_URL` as documented by the repository runner. Credentials are not submission inputs. Invoke the standard entrypoint directly: @@ -72,9 +107,7 @@ bash scripts/evaluation/run_task.sh --task training-error-tracing --gpu-device 0 --output "jobs/training-error-tracing-codex-openrouter-luna-max-RUN_ID" ``` -Inspect the resulting agent trajectory, submission and verifier report under the -job directory. The score alone does not distinguish an invalid submission from -an infrastructure error. +Inspect the resulting agent trajectory, submission and verifier report under the job directory. The score alone does not distinguish an invalid submission from an infrastructure error. ### Validate the package @@ -83,10 +116,7 @@ python scripts/validation/check_tasks.py tasks/training-error-tracing python scripts/assets/download_assets.py --task training-error-tracing --verify-only ``` -Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective -directories as build contexts. Run the public helper and verifier with the task's -resource controls and mounts. Tests that exercise process isolation or GPU -enforcement belong in disposable task containers, not the shared host. +Build both `environment/Dockerfile` and `tests/Dockerfile` with their respective directories as build contexts. Run the public helper and verifier with the task's resource controls and mounts. Tests that exercise process isolation or GPU enforcement belong in disposable task containers, not the shared host. `authoring/tests/test_public_runtime.py` covers input alignment, retrieval routing, public quality checks, metadata hashes, submission-user readability and isolation of the control copy. Run it in a disposable verifier container with the task source mounted read-only at `/package`, the verifier Compose mounts, and public inputs prepared as in `tests/test.sh`: `/opt/conda/bin/python -m unittest discover -s /package/authoring/tests -p test_public_runtime.py -v`. It uses synthetic inputs and mocks model inference; it does not replace a full GPU trial or efficiency calibration. @@ -96,50 +126,9 @@ The verifier Compose service grants `SYS_PTRACE` and `CHECKPOINT_RESTORE` so the `--gpu-device 0` selects host GPU 0; a full GPU UUID is also accepted. Omit the option to use the default single-GPU allocation. Choose an available device with the task's required capacity. The [GPU guide](../../docs/evaluation/runtime.md#gpu-device-selection) explains selection and per-run records. -## Maintainer notes - -### Data construction and probe provenance - -The hidden workload has 100 queries in ten groups, ten queries per group. The groups form five shared-error-entity families. Each family has two groups with disjoint relevant-record sets, so a single fixed Top-10 list chosen only by error entity has group-macro Precision@10 at most 0.5. The families stay together for quality uncertainty estimates. These are construction and shortcut-analysis facts, not solver instructions; the agent only needs to know that the current request can distinguish different sources sharing an erroneous entity. - -The corpus derives from Alpaca revision `dce01c9b08f87459cf36a430d809084718273017`, corresponding to Stanford `alpaca_data.json` at `761dc5bfbdeeffa89b8bff5d038781a4055f796a`. One record without retained response loss was excluded. The fixed probe derives from Qwen/Qwen2.5-7B revision `d149729398750b98c0af14eb82c78cfe92750796`: all 28 decoder layers in serialized NF4/double-quantized state, complete BF16 input embeddings and 64,439 original BF16 output rows. The output rows come from training text, training alternative-token IDs and vocabulary tokens sharing a nonempty token surface with those alternatives; no error-query labels or source-target group mappings select them. The supplied asset-size target is below 5,000,000,000 bytes and is separate from the runtime storage allowance. - -The Alpaca derivative uses CC BY-NC 4.0 terms. The included model's Apache-2.0 license does not replace the data terms. - -### Package layout - -- `environment/starter/` is the single source for the working retriever. The agent image copies it into editable `/app/submission`; both phases mount the original read-only at `/task/starter`, and the verifier copies that original into a private directory before freezing and running its paired control. -- `environment/runtime/` contains only the shared training-input loader, compact-probe API, native query client and public quality checker. Both phases mount it read-only at `/task/runtime`. -- `environment/docs/` documents the installed environment, allowed resources and public interfaces. -- `assets/model/` and `assets/diagnostics/` contain five bundled metadata files. `assets.json` restores them into the unchanged model/data paths with the same file hashes. Metadata is not mounted as a separate runtime directory. -- `tests/` contains the private verifier, hidden data and regression tests. Optional alternative retrievers, their training scripts and unused adapter configuration are not part of the task package. - -The starter's `submission.json` records hashes for its three source/entry-point files and four shared runtime files. Update these hashes when changing those files. The verifier's control is copied from the read-only canonical starter and frozen by the existing runner, never copied from the agent's edited `/app/submission`. - -### Scoring parameters and validation limits - -The current score is defined by `tests/efficiency_metrics.py` and `tests/data/evaluation-config.json`, with the precision-only development helper at `environment/runtime/score_dev.py`. There is no additional public reward implementation or obsolete quality-only B/U normalization. - -| Parameter | Role in the fixed task design | -| --- | --- | -| Q >= 0.98; every group P@10 >= 0.80 | Quality acceptance gates on every repetition. | -| 20 quality points; 80 efficiency points | Credit split after all quality gates pass. | -| C = 0.9 | Efficiency-credit threshold; improvements within 10% receive no extra credit. | -| Reference cost ratio 0.5 | Full-credit target: halve the paired latency-memory product. | -| 1 GiB GPU-memory floor | Finite memory accounting for low-GPU-memory or CPU-only systems. | - -These are frozen task-design parameters. The repository currently lacks a complete empirical calibration report for the quality gates, credit split and 10% threshold, including a measured noise distribution under the current protocol. The parameter name `noise_ratio` is not evidence that such a distribution was measured. Record independent reference/candidate runs and resource measurements before claiming empirical calibration or full-credit reachability; documentation cleanup does not provide that evidence. - -### Runtime implementation - -The verifier discovers the allocated GPU UUID and samples GPU memory at nominal 10-ms intervals. It runs the immutable control after candidate processes exit, with a 300-second preparation limit and five seconds per control request; control failure is an infrastructure error. These scheduling details do not change the candidate's published 1,800-second preparation and ten-second request limits. - -The 64 GiB storage allowance is audited rather than enforced by a Docker filesystem quota. Storage inspection runs during work and after commands; device/inode identity avoids counting hard links or repeated references twice. Inspection failures fail closed. Supervisor capabilities and host requirements are described in the validation section above; submitted commands remain unprivileged. - -### Repeated verifier measurements - -Each candidate/control preparation runs once. Each query runs in five independently shuffled passes; latency uses the median of its five times, then averages queries within each group and gives groups equal weight. All five quality passes must satisfy the existing gates, and failed or missing requests remain in the quality denominators. GPU memory remains the sampled peak across preparation and queries. The 9,900-second primary budget covers candidate preparation/requests (1,800 + 5,000 seconds), control preparation/requests (300 + 2,500 seconds) and 300 seconds of overhead. The 11,400-second verifier envelope also covers the unchanged 1,200-second integrity audit and finalization. Earlier three-pass timing records do not establish calibration for this five-pass protocol. - ## References -[assets.json](assets.json) records the immutable input sources and hashes; [assets/model/probe.json](assets/model/probe.json) records the probe representation and provenance. +- **Task source** — [RapidIn (ACL 2024)](https://aclanthology.org/2024.acl-long.48/) +- **Data source** — Stanford Alpaca derivative with task-prepared training and error-tracing records. +- **Model source** — Fixed Qwen2.5-7B probe. [Probe representation and provenance](assets/model/probe.json) +- **Provenance details** — [Data construction and license terms](#data-construction-and-probe-provenance) and [asset manifest](assets.json) diff --git a/tasks/video-moment-search/README.md b/tasks/video-moment-search/README.md index 72bd0ba..2a7f0cd 100644 --- a/tasks/video-moment-search/README.md +++ b/tasks/video-moment-search/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 450 | -Locate the time interval matching a natural-language description within a specified video. +## Overview -### Overview +Locate the time interval matching a natural-language description within a specified video. -Searching within a video requires finding both the right event and its time -boundaries. Each request names a video and an original description. The system -returns one interval on the video's supplied time grid. +Searching within a video requires finding both the right event and its time boundaries. Each request names a video and an original description. The system returns one interval on the video's supplied time grid. -The task uses released frame features and local encoder weights, rather than -raw videos or precomputed query representations. +The task uses released frame features and local encoder weights, rather than raw videos or precomputed query representations. ### Task Setup @@ -36,42 +33,23 @@ raw videos or precomputed query representations. | `data/validation/` | Five public evaluation queries and interval labels | | `models/clip/` | Fixed CLIP ViT-B/32 weights matching the released features | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Annotations come from Charades-STA and ActivityNet Captions through the -[pinned Lighthouse release](https://github.com/line/lighthouse/tree/3e841d3d662c8440afed514908566fed2d5e82a7). -The final split contains 902 training, five public and 450 held-out queries. -Training videos are separate from evaluation videos; public and private -evaluation questions share the evaluation corpus. +Annotations come from Charades-STA and ActivityNet Captions through the [pinned Lighthouse release](https://github.com/line/lighthouse/tree/3e841d3d662c8440afed514908566fed2d5e82a7). The final split contains 902 training, five public and 450 held-out queries. Training videos are separate from evaluation videos; public and private evaluation questions share the evaluation corpus. -Source-video families with inconsistent feature coverage or a zero-length source -interval are excluded without creating replacement labels. Retained descriptions -and intervals are otherwise unchanged. The final endpoint of each time grid is -the source duration. Slight source endpoint discrepancies are handled by the -grid-attainable metric below. +Source-video families with inconsistent feature coverage or a zero-length source interval are excluded without creating replacement labels. Retained descriptions and intervals are otherwise unchanged. The final endpoint of each time grid is the source duration. Slight source endpoint discrepancies are handled by the grid-attainable metric below. -This supervised adaptation differs from the weak-supervision setting of the -seed paper. Raw videos, generated query vectors and tokenized descriptions -are not supplied. +This supervised adaptation differs from the weak-supervision setting of the seed paper. Raw videos, generated query vectors and tokenized descriptions are not supplied. #### Fixed Components and Allowed Changes -Video features, time grids and local encoders are fixed. An optional -temporal/scoring component may have at most five million trainable parameters -and use at most 45 minutes of training. At most 64 candidate intervals per -request may receive learned or token-level fine scoring. Cheap frame screening -and boundary proposals remain allowed. +Video features, time grids and local encoders are fixed. An optional temporal/scoring component may have at most five million trainable parameters and use at most 45 minutes of training. At most 64 candidate intervals per request may receive learned or token-level fine scoring. Cheap frame screening and boundary proposals remain allowed. -Indexing and interval selection are implementation choices. No starter or -external API resource is supplied. +Indexing and interval selection are implementation choices. No starter or external API resource is supplied. #### Environment and Resource Limits -The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one -40 GiB GPU. Development has six hours, including the optional training allowance. -Build has 3,600 seconds; each of two query calls has 2,700 seconds. +The environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and one 40 GiB GPU. Development has six hours, including the optional training allowance. Build has 3,600 seconds; each of two query calls has 2,700 seconds. ## Change Log @@ -91,13 +69,9 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Each request produces one nonempty start/end interval whose -endpoints belong to the specified video's grid. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Each request produces one nonempty start/end interval whose endpoints belong to the specified video's grid. -Commands run as a non-root user with code and inputs read-only. Build writes -inside the supplied index directory, whose parent is not writable. Retrieval -sees the completed index read-only and uses fresh output and temporary paths. +Commands run as a non-root user with code and inputs read-only. Build writes inside the supplied index directory, whose parent is not writable. Retrieval sees the completed index read-only and uses fresh output and temporary paths. The full schema and invocation details are in [instruction.md](instruction.md). @@ -105,69 +79,46 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -Let x be the best IoU between the predicted interval and the original -acceptable intervals. Its utility is: +Let x be the best IoU between the predicted interval and the original acceptable intervals. Its utility is: ```text u(x) = 0.7 * mean(I[x >= 0.5], I[x >= 0.7], I[x >= 0.9]) + 0.3 * x ``` -Divide each query's utility by the best utility attainable with one legal -interval on its supplied grid. Average within each source, then give the two -sources equal weight. +Divide each query's utility by the best utility attainable with one legal interval on its supplied grid. Average within each source, then give the two sources equal weight. -Grid-optimal witnesses remain verifier-only. Invalid, reversed, missing, -nonfinite or non-grid intervals score zero. The grid correction accounts for -boundary precision limits; a long interval still loses IoU when it includes -unrelated time. +Grid-optimal witnesses remain verifier-only. Invalid, reversed, missing, nonfinite or non-grid intervals score zero. The grid correction accounts for boundary precision limits; a long interval still loses IoU when it includes unrelated time. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.14696558206208937` and integer score anchor `a = 15` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.14696558206208937` and integer score anchor `a = 15` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. The utility weights, IoU thresholds and score-mapping anchor are fixed task-design parameters. This package does not include a complete calibration record for the 0.7/0.3 weighting or the reference-quality measurement. Keep those evidence gaps separate from the agent-facing optimization objective. #### Correctness and Resource Gates -The verifier checks successful index construction, executable behavior, -query IDs, finite start/end values, interval order, grid endpoints and stage -limits. Completed valid JSONL rows remain usable after a query timeout; -missing or invalid query results score zero. A non-timeout query-command failure -invalidates that call. +The verifier checks successful index construction, executable behavior, query IDs, finite start/end values, interval order, grid endpoints and stage limits. Completed valid JSONL rows remain usable after a query timeout; missing or invalid query results score zero. A non-timeout query-command failure invalidates that call. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Prepare the GPU runtime and independent trajectory-audit credentials. -Submitted task programs run offline and receive no provider credentials. +Prepare the GPU runtime and independent trajectory-audit credentials. Submitted task programs run offline and receive no provider credentials. -The commands below apply in a checkout with this package installed at -`tasks/video-moment-search/`: +The commands below apply in a checkout with this package installed at `tasks/video-moment-search/`: ```bash python scripts/assets/download_assets.py --task video-moment-search @@ -175,11 +126,7 @@ bash scripts/evaluation/run_task.sh --task video-moment-search --agent codex --o --model openai/gpt-6-luna --reasoning-effort max --gpu-device 0 ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/video-moment-search/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/video-moment-search/`. ### Task Files @@ -199,4 +146,6 @@ credentials or hardware. Results are written under `jobs/video-moment-search/`. ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [IMLR (ACL 2024)](https://aclanthology.org/2024.acl-long.247/) +- **Data source** — Charades-STA and ActivityNet Captions with CLIP features from the Lighthouse release. +- **Provenance details** — [Pinned release, sampling, feature provenance, and usage terms](SOURCES.md) diff --git a/tasks/visual-document-qa/README.md b/tasks/visual-document-qa/README.md index 8308ae0..e15167d 100644 --- a/tasks/visual-document-qa/README.md +++ b/tasks/visual-document-qa/README.md @@ -14,16 +14,13 @@ | Public queries | 5 | | Hidden queries | 2471 | -Answer questions from text, tables and figures in a specified long document. +## Overview -### Overview +Answer questions from text, tables and figures in a specified long document. -Relevant information in a long PDF may span prose, tables, charts and -several pages. The system must locate and read that evidence, then give a direct -answer or identify that the document does not contain the requested information. +Relevant information in a long PDF may span prose, tables, charts and several pages. The system must locate and read that evidence, then give a direct answer or identify that the document does not contain the requested information. -Each request identifies a document. Evidence-page citations are reported, while -final answer quality is the primary metric. +Each request identifies a document. Evidence-page citations are reported, while final answer quality is the primary metric. ### Task Setup @@ -34,35 +31,19 @@ final answer quality is the primary metric. | `data/corpus/` | 433 original PDFs, per-page extracted text and document metadata | | `data/validation/` | Five public questions, answers and page references | -Public data are mounted read-only under `/task/data`, local models where -provided under `/task/models`, and resource documents under `/task/docs`. -Held-out questions and labels are verifier-only. +Public data are mounted read-only under `/task/data`, local models where provided under `/task/models`, and resource documents under `/task/docs`. Held-out questions and labels are verifier-only. -Inputs use MMLongBench-Doc and FinRAGBench-V from -[DocLensDatasets](https://huggingface.co/datasets/dwzhu/DocLensDatasets/tree/7a54da77adf09d2c88c67f1bbb725718260f1dc1), -with evaluation adapted from [DocLens](https://github.com/dwzhu-pku/DocLens) -as described below. The shared collection contains 433 PDFs and 29,149 pages. +Inputs use MMLongBench-Doc and FinRAGBench-V from [DocLensDatasets](https://huggingface.co/datasets/dwzhu/DocLensDatasets/tree/7a54da77adf09d2c88c67f1bbb725718260f1dc1), with evaluation adapted from [DocLens](https://github.com/dwzhu-pku/DocLens) as described below. The shared collection contains 433 PDFs and 29,149 pages. -There are five public and 2,471 held-out questions. Identical source PDFs are -shared rather than duplicated, and documents associated with public examples -can also appear in private questions. Four upstream answer-type metadata fields -are corrected deterministically; the questions and canonical answers are unchanged. -Text, list and unanswerable answers use semantic comparison. +There are five public and 2,471 held-out questions. Identical source PDFs are shared rather than duplicated, and documents associated with public examples can also appear in private questions. Four upstream answer-type metadata fields are corrected deterministically; the questions and canonical answers are unchanged. Text, list and unanswerable answers use semantic comparison. #### Fixed Components and Allowed Changes -PDFs, original question/answer labels and output interfaces are fixed. -Parsing, rendering, indexing, retrieval and answer synthesis are implementation -choices. No starter, local GPU or precomputed vectors are supplied. -Optional OpenRouter and Jina resources follow the -[resource policy](environment/docs/available_resources.md). +PDFs, original question/answer labels and output interfaces are fixed. Parsing, rendering, indexing, retrieval and answer synthesis are implementation choices. No starter, local GPU or precomputed vectors are supplied. Optional OpenRouter and Jina resources follow the [resource policy](environment/docs/available_resources.md). #### Environment and Resource Limits -The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and -no GPU. Development has two hours. Build has 14,400 seconds; each of two -query calls has an independent 10,800-second allowance. These limits remain -inside the 59,400-second overall verifier budget. +The CPU environment provides eight CPU cores, 32 GiB RAM, 100 GiB storage and no GPU. Development has two hours. Build has 14,400 seconds; each of two query calls has an independent 10,800-second allowance. These limits remain inside the 59,400-second overall verifier budget. ## Change Log @@ -83,14 +64,9 @@ Author-side regressions are in `authoring/tests/` and are excluded from the veri ### Submission Contract -Submit executable `/app/build.sh` and `/app/run.sh` with supporting files -under `/app`. Each input names a document and question. Return the query ID, -a natural-language answer and the one-based supporting page numbers. -Use an empty page list when no supporting page exists. +Submit executable `/app/build.sh` and `/app/run.sh` with supporting files under `/app`. Each input names a document and question. Return the query ID, a natural-language answer and the one-based supporting page numbers. Use an empty page list when no supporting page exists. -Submitted commands run as a non-root user with code and inputs read-only. -The supplied index directory stays writable across calls; its parent is not -writable. Generated files must use the supplied index, output and temporary paths. +Submitted commands run as a non-root user with code and inputs read-only. The supplied index directory stays writable across calls; its parent is not writable. Generated files must use the supplied index, output and temporary paths. The full schema and invocation details are in [instruction.md](instruction.md). @@ -98,13 +74,7 @@ The full schema and invocation details are in [instruction.md](instruction.md). #### Search Quality -MMLongBench-Doc integer and float answers use the source answer-extraction -prompt and numeric comparators. Text, list and unanswerable answers receive -a binary semantic judgment directly from the question, reference and full -submitted answer. Equivalent wording receives credit; -incorrect entities, comparisons, missing list items or unsupported claims do -not. Each semantic judgment records a short reason. -FinRAGBench-V uses its original binary answer-judging prompt. Trusted model calls use `deepseek/deepseek-v4.1-flash-1017` through OpenRouter, with reasoning disabled and a 512-token output limit for the concise extraction or judgment. Routing requires support for the requested parameters; truncated outputs are retried and invalidate the measurement if retries are exhausted. Semantic judgments use `score`/`reason`; FinRAGBench-V uses `score`/`analysis`, matching its prompt. Each answer is judged three times and the results are averaged before source aggregation. +MMLongBench-Doc integer and float answers use the source answer-extraction prompt and numeric comparators. Text, list and unanswerable answers receive a binary semantic judgment directly from the question, reference and full submitted answer. Equivalent wording receives credit; incorrect entities, comparisons, missing list items or unsupported claims do not. Each semantic judgment records a short reason. FinRAGBench-V uses its original binary answer-judging prompt. Trusted model calls use `deepseek/deepseek-v4.1-flash-1017` through OpenRouter, with reasoning disabled and a 512-token output limit for the concise extraction or judgment. Routing requires support for the requested parameters; truncated outputs are retried and invalidate the measurement if retries are exhausted. Semantic judgments use `score`/`reason`; FinRAGBench-V uses `score`/`analysis`, matching its prompt. Each answer is judged three times and the results are averaged before source aggregation. Answer judging runs up to 32 questions concurrently, with each question's three calls kept sequential. Maintainers can set the positive integer `JUDGE_MAX_CONCURRENCY` before launching the verifier to adjust this limit. Higher concurrency does not reduce the request count, and its latency and error-rate effects depend on provider capacity. @@ -122,62 +92,44 @@ This command requires the original protected log directory and matching evaluati Average answers within each source, then give the two sources equal weight. -Evidence-page precision, recall and F1 are diagnostics, not part of the primary -answer score. Out-of-range source page references are excluded only from citation -diagnostics and do not remove the corresponding answer question. +Evidence-page precision, recall and F1 are diagnostics, not part of the primary answer score. Out-of-range source page references are excluded only from citation diagnostics and do not remove the corresponding answer question. #### Score Normalization -The final reward uses the raw quality described above, with fixed reference -quality `b = 0.4350989780543772` and integer score anchor `a = 20` on the 0–100 scale: +The final reward uses the raw quality described above, with fixed reference quality `b = 0.4350989780543772` and integer score anchor `a = 20` on the 0–100 scale: ```text reward(q) = (a / 100) * q / b if 0 <= q <= b a / 100 + (1 - a / 100) * (q - b) / (1 - b) if b < q <= 1 ``` -This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and -auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward -precision; a displayed 0–100 score is rounded to one decimal place. -Correctness and trajectory-audit gates take precedence over this conversion. +This maps raw quality 0, b and 1 to rewards 0, a / 100 and 1. Raw quality and auxiliary diagnostics are reported separately. Harbor retains the 0–1 reward precision; a displayed 0–100 score is rounded to one decimal place. Correctness and trajectory-audit gates take precedence over this conversion. The score-mapping anchor is a fixed task-design parameter. This package does not include a baseline measurement record tied to the current semantic answer-grading revision. Revalidate the anchor against that revision before claiming that it remains empirically calibrated. #### Correctness and Resource Gates -The verifier checks execution, output structure, document/page validity and -stage limits. Completed valid rows survive query-call timeout; missing or invalid -rows receive zero. Other query-command failures invalidate that call. -Unrecovered answer-extraction or judge failures leave the measurement incomplete, with completed samples retained for recovery, rather than establishing a low baseline or model score. +The verifier checks execution, output structure, document/page validity and stage limits. Completed valid rows survive query-call timeout; missing or invalid rows receive zero. Other query-command failures invalidate that call. Unrecovered answer-extraction or judge failures leave the measurement incomplete, with completed samples retained for recovery, rather than establishing a low baseline or model score. #### Integrity Checks and Final Reward -A separate trajectory audit checks task compliance and gates the quality -reward. A confirmed violation sets reward to zero; unavailable or incomplete -audit results are not valid evidence of model quality. The audit uses pinned -RewardKit 0.2.0 with verifier-only OpenRouter settings. +A separate trajectory audit checks task compliance and gates the quality reward. A confirmed violation sets reward to zero; unavailable or incomplete audit results are not valid evidence of model quality. The audit uses pinned RewardKit 0.2.0 with verifier-only OpenRouter settings. + +Private questions, reference labels and audit credentials are excluded from the agent environment and protected from submitted programs. Answer judges, where used, are distinct from trajectory auditing. + +### Repeated measurements -Private questions, reference labels and audit credentials are excluded from -the agent environment and protected from submitted programs. Answer judges, -where used, are distinct from trajectory auditing. +The submitted answer is held fixed while its source-specific answer evaluation runs three times. This includes the LLM extraction step for numeric answers, whose output can vary; its deterministic numeric comparator is applied to each extracted value. Semantic and FinRAG binary judgments are likewise averaged arithmetically, without majority voting. Citation diagnostics run once and source weighting and final score mapping stay unchanged. Any failed trusted call invalidates the measurement; transport retries are not independent votes. The primary supervisor allows 57,600 seconds (14,400 build + 21,600 query execution + 21,600 answer judging/setup); the overall verifier allows 59,400 seconds including the unchanged 1,200-second integrity audit and finalization. This triples the former answer-judging allowance; an unavailable/slow service can still exhaust it and invalidate the run. -### Running This Task +## Running the Task -Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor -and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and -credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for -restoring fixed inputs. +Follow the repository [quick start](../../docs/evaluation/quickstart.md) to prepare Harbor and Docker, the [evaluation guide](../../docs/evaluation/runtime.md) for agent and credential configuration, and the [asset guide](../../docs/evaluation/assets.md) for restoring fixed inputs. -Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the -resource policy permits them. Trajectory auditing uses the separate verifier -credential group `VERIFIER_OPENAI_*`. +Optional task APIs use `OPENROUTER_API_KEY` and `JINA_API_KEY` where the resource policy permits them. Trajectory auditing uses the separate verifier credential group `VERIFIER_OPENAI_*`. -Answer extraction and answer judging additionally require the verifier's -configured `DOCUMENT_JUDGE_MODEL` and its protected provider credential. -Submission API permission does not grant access to trusted judge settings. +Answer extraction and answer judging additionally require the verifier's configured `DOCUMENT_JUDGE_MODEL` and its protected provider credential. Submission API permission does not grant access to trusted judge settings. -The commands below apply in a checkout with this package installed at -`tasks/visual-document-qa/`: +The commands below apply in a checkout with this package installed at `tasks/visual-document-qa/`: ```bash python scripts/assets/download_assets.py --task visual-document-qa @@ -185,11 +137,7 @@ bash scripts/evaluation/run_task.sh --task visual-document-qa --agent codex --op --model openai/gpt-6-luna --reasoning-effort max ``` -The shared launcher defaults to Codex and also supports Pi and Claude Code. -Adjust `--model` and `--reasoning-effort` for another supported model. -Add `--dry-run` to inspect -launch construction without starting an evaluation; it does not validate assets, -credentials or hardware. Results are written under `jobs/visual-document-qa/`. +The shared launcher defaults to Codex and also supports Pi and Claude Code. Adjust `--model` and `--reasoning-effort` for another supported model. Add `--dry-run` to inspect launch construction without starting an evaluation; it does not validate assets, credentials or hardware. Results are written under `jobs/visual-document-qa/`. ### Task Files @@ -205,10 +153,8 @@ credentials or hardware. Results are written under `jobs/visual-document-qa/`. | [environment/docs/available_resources.md](environment/docs/available_resources.md) | Permitted APIs, models and credential handling | | [SOURCES.md](SOURCES.md) | Dataset provenance, preparation and runtime asset sources | -### Repeated verifier measurements - -The submitted answer is held fixed while its source-specific answer evaluation runs three times. This includes the LLM extraction step for numeric answers, whose output can vary; its deterministic numeric comparator is applied to each extracted value. Semantic and FinRAG binary judgments are likewise averaged arithmetically, without majority voting. Citation diagnostics run once and source weighting and final score mapping stay unchanged. Any failed trusted call invalidates the measurement; transport retries are not independent votes. The primary supervisor allows 57,600 seconds (14,400 build + 21,600 query execution + 21,600 answer judging/setup); the overall verifier allows 59,400 seconds including the unchanged 1,200-second integrity audit and finalization. This triples the former answer-judging allowance; an unavailable/slow service can still exhaust it and invalidate the run. - ## References -- [Data, model and method provenance](SOURCES.md). +- **Task source** — [DocLens (ACL 2026)](https://aclanthology.org/2026.acl-long.1234/) +- **Data source** — The MMLongBench-Doc and FinRAGBench-V branches of DocLensDatasets. +- **Provenance details** — [Dataset preparation, evaluation adaptations, and usage terms](SOURCES.md) From d8e3095ab6fa60eb4de34211d9d13f5a86fba65d Mon Sep 17 00:00:00 2001 From: Cooki-e <1291852105@qq.com> Date: Thu, 3 Dec 2026 20:06:08 +0800 Subject: [PATCH 2/2] docs: address task README review feedback --- .../assets/task/README.md.tmpl | 52 +++++++------------ .../references/task-authoring.md | 19 ++++--- .../scripts/test_scaffold_task.py | 10 +++- .../references/task-audit.md | 2 +- docs/contributing/tasks.md | 17 +++--- tasks/code-reranker-finetuning/README.md | 3 +- tasks/decision-model-training/README.md | 3 +- tasks/lightweight-query-retrieval/README.md | 3 +- tasks/rust-bm25-search/README.md | 3 +- tasks/rust-bm25-search/authoring/SOURCES.md | 2 +- tasks/training-error-tracing/README.md | 2 +- 11 files changed, 62 insertions(+), 54 deletions(-) diff --git a/.agents/skills/create-searchswe-task/assets/task/README.md.tmpl b/.agents/skills/create-searchswe-task/assets/task/README.md.tmpl index 920067c..65124cc 100644 --- a/.agents/skills/create-searchswe-task/assets/task/README.md.tmpl +++ b/.agents/skills/create-searchswe-task/assets/task/README.md.tmpl @@ -10,10 +10,14 @@ | Primary metric | To be defined in task.toml | | Compute | @@CPUS@@ CPUs; @@MEMORY_MB@@ MiB RAM; @@STORAGE_MB@@ MiB storage; @@GPUS@@ GPUs | | Agent / verifier time limits | @@AGENT_TIMEOUT@@ s / @@VERIFIER_TIMEOUT@@ s | -| Inputs and public/hidden query counts | To be defined from the actual inputs | +| Dataset | To be defined from the actual inputs | + +## Overview Describe the engineering objective, starting state, inputs and their provenance. +Add counts to the metadata table for the input roles that apply. Distinguish training examples, public validation queries, public warmup queries and hidden scored queries. + ## Change Log | Date | Version | Description | @@ -26,39 +30,23 @@ Explain the engineering challenges using observed evidence where available. ## Verification Explanation -Define the submission interface, metric, correctness/performance gates and -failure behavior consistently with raw-instruction.md and instruction.md. -The separate verifier combines the task metric with a trajectory integrity audit. +Define the submission interface, metric, correctness/performance gates and failure behavior consistently with `raw-instruction.md` and `instruction.md`. The separate verifier combines the task metric with a trajectory integrity audit. Describe repeated measurements here when the verifier uses them. ### Budgets and resources -The primary grader supervisor has @@GRADER_TIMEOUT@@ seconds. Document its -candidate build/query/training budgets, repeats and cleanup so they fit this -window. The trajectory session has @@JUDGE_TIMEOUT@@ seconds; its wrapper has -@@JUDGE_SUPERVISOR_TIMEOUT@@ seconds. The outer verifier includes a further -600 seconds for setup, finalization and cleanup, totaling @@VERIFIER_TIMEOUT@@ seconds. -Choose resource limits from the workload and validate their enforcement. +The primary grader supervisor has @@GRADER_TIMEOUT@@ seconds. Document the candidate build, query and training budgets, repeats and cleanup so they fit this window. The trajectory session has @@JUDGE_TIMEOUT@@ seconds and its wrapper has @@JUDGE_SUPERVISOR_TIMEOUT@@ seconds. The outer verifier includes a further 600 seconds for setup, finalization and cleanup, totaling @@VERIFIER_TIMEOUT@@ seconds. Choose resource limits from the workload and validate their enforcement. ### Local validation -Complete `raw-instruction.md`, then write the solver's request in the initially -empty `instruction.md`, following the authoring skill's instruction-rewrite -reference. The request must describe the real work, exact interfaces, resources, -constraints and acceptance criteria in connected prose. - -The generated `environment/docs/environment.md` starts with the target checkout's -shared CPU/GPU summary and a `Task resources` section. Add actual task dependencies, -paths and public commands there. In `available_resources.md`, describe the final -local inputs and resource policy; add retrieval or generative API sections only -when those services are permitted. Both documents address the solver directly. -Keep package-authoring guidance and validation records here or in `VALIDATION.md`, -outside the agent's images and mounts. - -Configure coding-agent credentials and verifier-only `VERIFIER_OPENAI_BASE_URL` -(`https://openrouter.ai/api/v1`) and `VERIFIER_OPENAI_API_KEY` in an ignored local -`.env`. Submission APIs, if supplied, have separate documented credentials. -The trajectory judge uses RewardKit 0.2.0 and -`deepseek/deepseek-v4.1-flash`; adapt its rubric to this task. +Complete `raw-instruction.md`, then write the solver's request in the initially empty `instruction.md`, following the authoring skill's instruction-rewrite reference. The request must describe the real work, exact interfaces, resources, constraints and acceptance criteria in connected prose. + +The generated `environment/docs/environment.md` starts with the target checkout's shared CPU/GPU summary and a `Task resources` section. Add actual task dependencies, paths and public commands there. In `available_resources.md`, describe the final local inputs and resource policy. Add retrieval or generative API sections only when those services are permitted. Both documents address the solver directly. Keep package-authoring guidance and validation records here or in `VALIDATION.md`, outside the agent's images and mounts. + +The trajectory judge uses RewardKit 0.2.0 and `deepseek/deepseek-v4.1-flash`. Adapt its rubric to this task. + +## Running the Task + +Configure coding-agent credentials and verifier-only `VERIFIER_OPENAI_BASE_URL` (`https://openrouter.ai/api/v1`) and `VERIFIER_OPENAI_API_KEY` in an ignored local `.env`. Submission APIs, if supplied, have separate documented credentials. ```bash python scripts/validation/check_tasks.py tasks/@@TASK_NAME@@ @@ -67,10 +55,10 @@ bash scripts/evaluation/run_task.sh --task @@TASK_NAME@@ --agent codex --openrou --model YOUR_MODEL --reasoning-effort YOUR_SUPPORTED_EFFORT --dry-run ``` -Restore actual inputs, test the grader and replace placeholders before running -the configured model. For GPU runs, add `--gpu-device `. -Record commands, results, model feedback and final revision in [VALIDATION.md](VALIDATION.md). +Restore actual inputs, test the grader and replace placeholders before running the configured model. For GPU runs, add `--gpu-device `. Record commands, results, model feedback and final revision in [VALIDATION.md](VALIDATION.md). ## References -None. +- **Task source** — To be defined + +Use `Experience` for an author-designed task or link to the paper, benchmark or project that informed the design. Include data and model attribution as applicable, and link to `SOURCES.md` when more detailed provenance is needed. diff --git a/.agents/skills/create-searchswe-task/references/task-authoring.md b/.agents/skills/create-searchswe-task/references/task-authoring.md index 4463ae9..66d5bf4 100644 --- a/.agents/skills/create-searchswe-task/references/task-authoring.md +++ b/.agents/skills/create-searchswe-task/references/task-authoring.md @@ -120,13 +120,18 @@ above; do not copy its task-specific values. When measuring improvement against a supplied starting system/model, document that baseline and the comparison criterion. -Use the task title as the README's level-one heading, followed by these -level-two headings in order: `Task Metadata`, `Change Log`, -`Difficulty Explanation`, `Verification Explanation`, and `References`. -Metadata covers identity, authors, inputs, metric and resource budgets. -Explain engineering difficulty with any measured evidence, and document scoring, -limits, setup and validation under verification; use level-three headings as needed. -List the papers, datasets or methods actually referenced by the task, or `None`. +Use the task title as the README's level-one heading. Follow it with level-two +headings `Task Metadata`, `Overview`, `Change Log`, `Difficulty Explanation`, +`Verification Explanation`, `Running the Task`, and `References`, in that order. +Metadata covers identity, authors, inputs, metric and resource budgets. Give +separate counts for training, public validation, warmup and hidden scored inputs +where applicable. Explain engineering difficulty with measured evidence. Put +scoring, limits, validation and repeated measurements under +`Verification Explanation`, and setup and launch commands under +`Running the Task`. Use level-three headings as needed. In `References`, use +`Task source` for the linked paper, benchmark or project that informed the design, +or `Experience` for an author-designed task. Include data and model attribution +where applicable and link to detailed provenance when needed. New tasks start at `1.0.0` with a dated `Added initial task` changelog entry. Keep the README and `task.version` aligned as the task evolves; retain original versions and fingerprints in historical validation reports. New packages keep diff --git a/.agents/skills/create-searchswe-task/scripts/test_scaffold_task.py b/.agents/skills/create-searchswe-task/scripts/test_scaffold_task.py index 0ecf803..88b0864 100644 --- a/.agents/skills/create-searchswe-task/scripts/test_scaffold_task.py +++ b/.agents/skills/create-searchswe-task/scripts/test_scaffold_task.py @@ -167,7 +167,13 @@ def test_resources_pins_and_budget_propagate(self): self.assertIn("Alice Example", readme) self.assertIn("16384 MiB", readme) self.assertEqual(re.findall(r"^## (.+)$", readme, re.M), - ["Task Metadata", "Change Log", "Difficulty Explanation", "Verification Explanation", "References"]) + ["Task Metadata", "Overview", "Change Log", "Difficulty Explanation", + "Verification Explanation", "Running the Task", "References"]) + before_running, running = readme.split("\n## Running the Task\n", 1) + running, references = running.split("\n## References\n", 1) + self.assertNotIn("scripts/evaluation/run_task.sh", before_running) + self.assertIn(f"scripts/evaluation/run_task.sh --task {task.name}", running) + self.assertIn("- **Task source**", references) def test_shared_summary_is_read_from_target_checkout(self): summary = self.repo / "docker/gpu/environment.md" @@ -203,7 +209,7 @@ def test_author_guidance_stays_outside_default_solver_mounts(self): self.assertFalse(mounts[0]["bind"]["create_host_path"]) dockerfile = (task / "environment/Dockerfile").read_text() self.assertIsNone(re.search(r"^(?:COPY|ADD)\b", dockerfile, re.M)) - self.assertIn("initially\nempty `instruction.md`", (task / "README.md").read_text()) + self.assertIn("initially empty `instruction.md`", (task / "README.md").read_text()) self.assertIn("visibility audit", (task / "VALIDATION.md").read_text()) resources = (task / "environment/docs/available_resources.md").read_text() self.assertEqual(re.findall(r"^## (.+)$", resources, re.M), diff --git a/.agents/skills/maintain-searchswe-task/references/task-audit.md b/.agents/skills/maintain-searchswe-task/references/task-audit.md index 774669b..24b32a7 100644 --- a/.agents/skills/maintain-searchswe-task/references/task-audit.md +++ b/.agents/skills/maintain-searchswe-task/references/task-audit.md @@ -11,7 +11,7 @@ workflow/tool modifications need independent scrutiny, not implicit acceptance. | Instructions | Compare `raw-instruction.md` with the final `instruction.md`: the agent-facing version starts from a concrete work need and preserves the goal, starting state, input/output schema and paths, executable interface, artifacts, thresholds and constraints. Both match every graded requirement. No secret-only correctness requirement or hidden solution hints. | | Objective/resources | Clear goal, starting state and measured outcomes. Supply a meaningful baseline when grading improvement. CPU default, GPU only for execution. Both Dockerfiles, both Compose reservations and `gpus` agree. Visible tools/API/model docs match injected resources and budgets. Pin dependencies/images; inspect build contexts. | | Environment format/audience | Agent Dockerfile uses the matching published base with task-specific additions; coding harnesses follow the launcher/registry and verifier judge pins stay independent. Check the environment/resource document layout below and all solver-visible Markdown, including linked starter READMEs/AGENTS.md. Benchmark-author/developer/maintainer instructions, scaffolding TODOs and review/repair notes are forbidden in that visibility. | -| Task README | One task title followed by `Task Metadata`, `Change Log`, `Difficulty Explanation`, `Verification Explanation`, and `References`. Current version matches `task.toml`; new tasks start at `1.0.0` with a dated `Added initial task` entry. Difficulty and validation claims match evidence. References identify existing paper/data/method sources, or `None`. Historical trial versions and fingerprints remain accurate. | +| Task README | One task title followed by `Task Metadata`, `Overview`, `Change Log`, `Difficulty Explanation`, `Verification Explanation`, `Running the Task`, and `References`. Current version matches `task.toml`. New tasks start at `1.0.0` with a dated `Added initial task` entry. Difficulty and validation claims match evidence. Repeated measurements are under verification and launch commands are under `Running the Task`. Query counts identify their role. `References` records a linked `Task source` or `Experience`, plus data and model attribution where applicable. Historical trial versions and fingerprints remain accurate. | | Solvability | Real known-good submission through the same separate verifier/artifact-transfer interface, expected vs observed reward and an authorized coding-agent trial. A scaffold's always-zero test, empty manifest, dry-run or static pass is not a working benchmark. No public author-only solution without approval. | | Model feedback | Trajectory, score and judge health inspected; task-setting changes explained, or a reason recorded for retaining the setting. Substantive task/scoring changes have relevant checks and a new model trial within the authorized budget, tied to the final evaluated revision. Missing evidence remains explicit; a valid low score alone is not a reason to weaken the task. | | Grader isolation | Separate verifier; hidden tests/labels/references absent from agent mounts/images. Submitted code actually runs unprivileged with timeout, restricted environment, no grader/reward writes or judge keys. Root in a separate container can still tamper with grading. Reward initializes to zero, numeric finite [0,1], failures propagate, cleanup/logs work. | diff --git a/docs/contributing/tasks.md b/docs/contributing/tasks.md index 53aebbc..2e434c4 100644 --- a/docs/contributing/tasks.md +++ b/docs/contributing/tasks.md @@ -49,14 +49,19 @@ task's dependencies. Verifier judge dependencies keep their independent pins. | `assets.json` | Fixed input paths, sources, immutable revisions, sizes and SHA-256 hashes | | `environment/` | Reproducible agent setup, starter code and resource documentation | | `tests/` | A separate verifier, task-specific grader, trajectory integrity audit and protected evaluation inputs | -| `README.md` | Task metadata, difficulty, verification and references | +| `README.md` | Task metadata, overview, difficulty, verification, run instructions and references | | `VALIDATION.md` | Design decisions, checks, model feedback, revisions and evidence for the final setting | -Keep the README sections generated by the scaffold: `Task Metadata`, -`Change Log`, `Difficulty Explanation`, `Verification Explanation`, and -`References`, under the task title. New tasks start at `1.0.0` with a dated -`Added initial task` entry; keep the README and `task.toml` versions aligned. -List the papers, datasets or methods used, or `None`. +Under the task title, keep the README sections generated by the scaffold in this +order. Use `Task Metadata`, `Overview`, `Change Log`, `Difficulty Explanation`, +`Verification Explanation`, `Running the Task`, and `References`. Keep repeated +measurements under `Verification Explanation` and launch commands under +`Running the Task`. Distinguish training examples, public validation queries, +warmup queries and hidden scored queries when listing counts. New tasks start at +`1.0.0` with a dated `Added initial task` entry. Keep the README and `task.toml` +versions aligned. In `References`, add a `Task source` entry with `Experience` +for an author-designed task or a link to the paper, benchmark or project that +informed the design. Include data and model attribution where applicable. Keep credentials, downloaded inputs/models, job outputs and author-only solutions outside Git. Isolate verifier inputs and grading code from the diff --git a/tasks/code-reranker-finetuning/README.md b/tasks/code-reranker-finetuning/README.md index 3b2be80..bed5f1f 100644 --- a/tasks/code-reranker-finetuning/README.md +++ b/tasks/code-reranker-finetuning/README.md @@ -11,7 +11,8 @@ | Compute | 8 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 10800 s | | Dataset | code-retrieval | -| Public queries | 0 | +| Training examples | 5,000 | +| Public validation queries | 0 | | Hidden queries | 200 | ## Overview diff --git a/tasks/decision-model-training/README.md b/tasks/decision-model-training/README.md index 982d042..28a49b7 100644 --- a/tasks/decision-model-training/README.md +++ b/tasks/decision-model-training/README.md @@ -11,7 +11,8 @@ | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 480 s | | Dataset | OpenJev mixture and held-out suite | -| Public queries | 0 | +| Training examples | 80,000 | +| Public validation queries | 0 | | Hidden queries | 4200 | ## Overview diff --git a/tasks/lightweight-query-retrieval/README.md b/tasks/lightweight-query-retrieval/README.md index dbd6e60..601d495 100644 --- a/tasks/lightweight-query-retrieval/README.md +++ b/tasks/lightweight-query-retrieval/README.md @@ -11,7 +11,8 @@ | Compute | 16 CPUs; 32 GiB RAM; 100 GiB storage; 1 GPU | | Agent / verifier time limits | 21600 s / 4500 s | | Dataset | BEIR SciFact, NFCorpus and FiQA; author-released LightRetriever examples | -| Public queries | 0 | +| Training examples | 80,000 | +| Public validation queries | 0 | | Hidden queries | 1271 | ## Overview diff --git a/tasks/rust-bm25-search/README.md b/tasks/rust-bm25-search/README.md index 3d3a30e..66afa3c 100644 --- a/tasks/rust-bm25-search/README.md +++ b/tasks/rust-bm25-search/README.md @@ -11,7 +11,8 @@ | Compute | 4 CPUs; 16 GiB RAM; 64 GiB storage; 0 GPUs | | Agent / verifier time limits | 10800 s / 93600 s | | Dataset | MS MARCO Passage v1 | -| Hidden queries | 54 | +| Public warmup queries | 54 | +| Hidden scored queries | 6,980 | ## Overview diff --git a/tasks/rust-bm25-search/authoring/SOURCES.md b/tasks/rust-bm25-search/authoring/SOURCES.md index 3b19871..470c4c6 100644 --- a/tasks/rust-bm25-search/authoring/SOURCES.md +++ b/tasks/rust-bm25-search/authoring/SOURCES.md @@ -3,7 +3,7 @@ The fixed runtime inputs are listed with exact sizes, SHA-256 digests and immutable HF commits in `../assets.json`. The corpus is the existing `Tevatron/msmarco-passage-corpus` mirror, revision -`21a2e1a8c6e7b1747c92f82cd2259a97077dc48d`. The 54 DL20 query texts come from +`21a2e1a8c6e7b1747c92f82cd2259a97077dc48d`. The 54 DL20 warmup queries come from `Tevatron/msmarco-passage`, revision `330a160b40a739d4c07d52c7ce562e2c549214c0`. No new public upload was made. diff --git a/tasks/training-error-tracing/README.md b/tasks/training-error-tracing/README.md index 14cf4a0..1db28d9 100644 --- a/tasks/training-error-tracing/README.md +++ b/tasks/training-error-tracing/README.md @@ -72,7 +72,7 @@ These are frozen task-design parameters. The repository currently lacks a comple The verifier discovers the allocated GPU UUID and samples GPU memory at nominal 10-ms intervals. It runs the immutable control after candidate processes exit, with a 300-second preparation limit and five seconds per control request; control failure is an infrastructure error. These scheduling details do not change the candidate's published 1,800-second preparation and ten-second request limits. -The 64 GiB storage allowance is audited rather than enforced by a Docker filesystem quota. Storage inspection runs during work and after commands; device/inode identity avoids counting hard links or repeated references twice. Inspection failures fail closed. Supervisor capabilities and host requirements are described in the validation section above; submitted commands remain unprivileged. +The 64 GiB storage allowance is audited rather than enforced by a Docker filesystem quota. Storage inspection runs during work and after commands; device/inode identity avoids counting hard links or repeated references twice. Inspection failures fail closed. [Validate the package](#validate-the-package) lists the supervisor capabilities and host requirements. Submitted commands remain unprivileged. ### Repeated measurements