Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 20 additions & 32 deletions .agents/skills/create-searchswe-task/assets/task/README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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@@
Expand All @@ -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 <host-index-or-UUID>`.
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 <host-index-or-UUID>`. 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.
19 changes: 12 additions & 7 deletions .agents/skills/create-searchswe-task/references/task-authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
17 changes: 11 additions & 6 deletions docs/contributing/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading
Loading