harness-hub/traj2envs-rl
traj2envs-rl: RL tasks generated with traj2envs: Harbor dataset on Hugging Face with 270 tasks. 270 Harbor tasks under tasks/, each with its environment image pinned in task.toml ( environment .docker image, with opencode preinstalled), a top-level difficulty and its solve rate in metadata …
Tasks
- I'm building a text adventure / RPG in Python (no external libraries) and I want to implement a ghost enemy with a proper state machine…
- Make cd /workspace && make all 2 &1 pass
- Make cd /workspace && npx vitest run 2 &1 pass
- Make cd /workspace/ecommerce-catalog && npm run build 2 &1 pass
- Make cd /workspace/business-graph && npm run build 2 &1 pass
- Make cd /workspace/crypto-dapp && npm run build 2 &1 pass
- Make cd /workspace/checkout-flow && npm run build 2 &1 pass
- Build a lightweight team OKR tracker with objectives, key results, confidence scores, owners, and weekly updates.
- Debug this scenario: a background job retry system retries forever for some permanent failures. Fix the retry policy and add clear…
- Make npm run build pass
- Build a migration helper CLI that renames files and updates imports according to a config file.
- Add dry-run output and rollback guidance.
- Build a webhook receiver service that validates signatures, stores events, retries failed processing, and exposes a status endpoint.
- Implement on-policy distillation: have the student generate completions, score them with a teacher, and update the student toward the…
- Add a KL-to-teacher and a self-entropy metric and explain what each tells you.
- Add a self-consistency filter and measure its effect on downstream eval.
- Segment tree with lazy propagation, and I want it fuzzed hard. Python segtree.py: iterative or recursive tree supporting range assign (set…
- Implement a treap (randomized balanced BST) as an ordered multiset in Python. treap.py: split/merge based implementation with insert(x)…
- Compressed radix tree (Patricia trie) for byte strings in Python. radix.py: class RadixSet with add(key: bytes), contains, discard, and…
- Matrix chain multiplication in Python with proof-by-evaluation. matrix chain.py: best order(dims) for matrices A i of dims i x dims i+1 …
- Expert geometry task: a working Bentley-Ottmann sweep line in Python reporting all intersection points among n segments. Package sweep/…
- Rotating calipers for point-set diameter in Python. calipers.py: diameter(points) — build the convex hull (monotone chain, include it in…
- Implement HyperLogLog from the paper, Python stdlib only. hll.py: class HLL(p) with 2^p registers, add(item) hashing with blake2b…
- Bloom filter with the math checked empirically, Python stdlib only. bloom.py: class BloomFilter.from capacity(n, fp rate) computing…
- External group-by aggregation, Python. groupby ext.py: input CSV with header "user id,amount"; compute per-user count and sum WITHOUT…
- Write a stable natural-merge sort and let hypothesis try to break it. Python project: sorting.py with merge sort(items, key=None) —…
- Hypothesis stateful testing against a TTL-LRU cache, Python. Build lru ttl.py: class TTLCache(capacity, ttl, clock=time.monotonic) with…
- Substring search shoot-out with adversarial inputs, Python. bench search.py: implement naive find all and kmp find all (both returning all…
- Write wc.py, a Python 3 stdlib-only clone of wc supporting -l, -w, and -c flags plus multiple file arguments, reading stdin when no files…
- Write pygrep.py, a grep clone: usage is pygrep.py options PATTERN FILE with -i, -v, -n, -c, -l, and -E (without -E the pattern is a fixed…
- Terse spec: commlite.py behaves like comm FILE1 FILE2 with -1 -2 -3 suppression flags and proper tab-indented columns. Inputs must be…
- From a click log CSV with columns user id,timestamp iso,url write sessionize.py: group each user's events into sessions that split when…
- Duplicate-file finder dedup.py: walk the given directories, group candidates by size first, then by sha256 of the first 4KB, then by full…
- cfgmerge.py merges multiple JSON config files left to right: objects merge recursively, scalars and arrays are replaced by later files…
- Template renderer stache.py implementing a Mustache subset: {{var}} with HTML escaping, {{{var}}} raw, sections {{ key}} that iterate…
- Build argonaut/, a small Python package implementing a declarative CLI parser with subcommands: register commands with typed options (int…
- Robust tree walker cyclesafe.py: with --follow it walks a directory following symlinks but never loops, tracking (st dev, st ino) of…
- Build kvlite.py, a persistent key-value CLI backed by an append-only log db.log with one record per line: operation, key, base64 value…
- Write collector.py, a long-running process that reads lines from stdin, buffers up to 100, and flushes the buffer as one JSON array per…
- teelite.py mirrors stdin to stdout and to each FILE argument, with -a to append. It must survive a downstream pipe closing: on…
- rotate.py CONF.json implements size-based log rotation: for each configured entry {path, max bytes, keep, compress}, when path exceeds max…
- csv2json.py converts CSV (first row headers) to a JSON array of objects with per-column type inference: int, float, true/false to…
- headlite.py implements head with -n N plus the GNU extension -n -K meaning all but the last K lines, and -c for byte counts supporting -c…
- crc32sum.py computes CRC-32 with the 0xEDB88320 polynomial using your own table-driven implementation (zlib.crc32 is banned in the tool)…
- Expert-level: chunkstore/, a content-addressed backup tool. backup SRC REPO splits every file into fixed 64KB chunks, stores each chunk…
- treelite.py prints a directory tree in the style of tree(1) with box-drawing prefixes for branch, last-branch, and vertical continuation…
- Configuration resolver conf.py with layered precedence, lowest to highest: defaults.toml, a --system file, a --user file, environment…
- Using fcntl.flock, write counter.py incr FILE which reads an integer from FILE, increments it, and writes it back, all under an exclusive…
- A teammate left this buggy shell-style argument splitter; save it as shsplit.py: def split args(s): out, cur, q = , '', None for ch in s…
- Write your own timeout context manager for asyncio: class deadline(seconds) usable as 'async with deadline(0.05):' that cancels the…
- Graceful drain on shutdown: build an asyncio worker pool (4 workers pulling jobs from a queue, each job is await asyncio.sleep(0.01) plus…
- Per-key rate limiter with idle eviction: KeyedLimiter(rate, burst, max keys=1000, clock) maintains an independent token bucket per key…
- Accuracy shoot-out: sliding-window-counter approximation vs exact sliding log. Implement both (clock injected), then write harness.py that…
- Budget: 50ms for common-element detection at n=100,000 per list. Start from this quadratic code placed verbatim in naive.py: def common(a…
- Deadline-aware retrying: give the whole operation a total budget rather than per-attempt counts. deadline retry.py: call with deadline(fn…
- Make cd /workspace && python3 -m unittest test deadline retry -v pass
- Auto-calibrating loop counts like timeit: the harness must pick number-of-loops n automatically - start at 1 and grow by 10x until one…
- Expert build: a persistent mini job scheduler in Python. Components: jobs stored in SQLite (id, payload, priority, state, attempts, not…
- Build a gaps-and-islands solution in SQLite. Create sensors.db with a table readings(sensor id TEXT, ts TEXT, status TEXT) and seed it…
- Cohort retention in pure SQL. Generate an events table in SQLite (user id INTEGER, event date TEXT) via a deterministic Python seeder…
- Quartile bucketing report in SQLite. orders(id, customer, amount cents) seeded with 48 deterministic rows spanning 500 to 250000 cents…
- Phone-number-keyed fuzzy dedup job. Generate data/leads.csv with 80 rows where the same real-world person appears up to 3 times with the…
- Daily-drop dedup with a persistent seen-keys store. Simulate three daily CSV drops of events (event id UUID-like strings, generated…
- Change-detection merge for a product catalog. Generator writes data/catalog monday.csv and data/catalog tuesday.csv (sku, name, price…
- Classic watermark-driven incremental load, simulated over three runs. Source: SQLite source.db table events(id INTEGER PRIMARY KEY…
- File-arrival ledger loader. Directory landing/ receives CSV files; build a generator creating day1: a.csv, b.csv; day2: c.csv plus a…
- SCD2 with delete handling. Source snapshots of suppliers arrive daily; when a supplier disappears from the snapshot, soft-close its…
- Late-arriving SCD2 correction (history splicing). Existing dimension for customer C1: version 1 city=Austin valid 2024-01-01 to…
- Mixed SCD1/SCD2 dimension. dim account tracks account id, email (SCD1: overwrite in place on ALL versions when it changes, since it is a…
- Out-of-order sessionization. Generate a JSONL log where each user's events are shuffled within a 2-hour arrival jitter (seeded) so file…
- TDD: here is the complete test file for a CSV-backed query function; write query.py to make it pass without modifying the tests. Save this…
- In-memory B-tree of order 4 (max 3 keys per node) with insert, search, delete, and in-order iteration, in btree.py under 400 lines, stdlib…
- Table-split migration proven by before/after assertions. Start: schema v1.sql creating customers(id, name, email, street, city, postal…
- Consolidation migration: merge legacy tables customers us(id, name, email, state) and customers intl(id, name, email, country) into one…
- Event-time windows with watermarks and allowed lateness. Generator emits 10k events with event time and PROCESSING order shuffled: 90…
- Tenant config bleed. Put this in /workspace/tenantcfg.py: BASE CONFIG = { "features": {"beta": False, "export": True}, "limits": {"rate"…
- Median has a planted bug; hunt it with hypothesis. Save /workspace/median.py: def median(xs): if not xs: raise ValueError("empty") s =…
- Make this rate limiter testable without a single sleep. Save /workspace/ratelimit.py: import time class SlidingWindowLimiter: def init…
- Filesystem-heavy code, tested cleanly with tmp path. Save /workspace/confloader.py: import json import os def load config(root): merge…
- Legacy refactor, characterization-first. Save the following as /workspace/sales report.py exactly as given, then lock in its behavior with…
- Your tests are green but weak. Save /workspace/overlap.py: def intervals overlap(a start, a end, b start, b end): half-open intervals…
- Mutation-hardening drill. Save /workspace/leap.py: def is leap(year): if year % 400 == 0: return True if year % 100 == 0: return False…
- Boundary mutants in pricing tiers. Save /workspace/tiers.py: def unit price cents(qty): if qty <= 0: raise ValueError("qty must be…
- This test fails a few days per month and nobody knows why. Save /workspace/subscription.py: from datetime import date def next billing…
- Characterize, then refactor this bank reconciliation script. Save as /workspace/reconcile.py exactly: import sys import csv MATCHED =…
- Stateful property-based testing: the cache has a planted bug that only shows through operation SEQUENCES. Save /workspace/lru.py: from…
- Create changelog.py: a stdlib-only Python tool that generates CHANGELOG.md from conventional commits (feat:, fix:, docs:, chore:, feat!…
- Write a custom lint rule as a standalone tool: nodup imports.py walks Python files given as CLI args, parses them with the ast module, and…
- Implement a Markdown linter mdlint.py with three rules: MD001 heading levels must not skip (h1 then h3 is a violation), MD009 no trailing…
- Write dep audit.py: parses a requirements.txt (handle ==, =, ~= pins, comments, blank lines, environment markers after ';' which you may…
- Build logrotate mini.py, a stdlib Python log rotation tool driven by rotate.json: {"path": "logs/app.log", "max bytes": 1024, "keep": 3…
- Write install hooks.py, a hook manager: it symlinks every executable file from a repo's hooks.d/ directory into .git/hooks/, backing up…
- Implement a size-tiered log compactor: compact logs.py scans a logs/ dir for app-YYYY-MM-DD.log files; files older than 7 days get gzipped…
- Implement release notes.py: given a git repo, it finds the latest two version tags matching vX.Y.Z (sort them by semver, not lexically, so…
- Write conventional bump.py: inspects commits since the latest vX.Y.Z tag and decides the next version automatically: any 'BREAKING CHANGE'…
- Implement a rollback-capable deploy simulator: deploysim.py manages releases/ directory with numbered release dirs and a current symlink…
- Create portpick + healthwait, two small ops utilities in one file netutil.py: portpick prints a currently-free TCP port (bind to 0…
- Small task: gitignore gen.py takes template names as args (support python, node, go with sensible hardcoded pattern sets embedded in the…
- Write touch p.py, a mkdir-plus-touch utility like mkdir -p for files: python3 touch p.py a/b/c.txt x/y.log creates all parent dirs and…
- Quick utility: dupfind.py scans a directory tree and reports groups of duplicate files (same content) efficiently: group by size first…
- Build git snapshot.py, an autosave tool for experiment tracking: snapshot 'message' commits ALL current changes to a hidden ref…
- Write a structured-logging shim and analyzer pair: jlog.py provides log(level, msg, fields) writing NDJSON lines with ts (ISO 8601 UTC)…
- Build pyproject lint.py, a metadata auditor for Python projects: checks a pyproject.toml for: project table present with…
- Small library plus CLI in one file: glob2re.py exposes translate(pattern) turning a shell glob with , ?, abc , !abc , and a-z into an…
- Implement translate(dna, frame=0, strict=False) in Python using the standard genetic code with the full 64-entry codon table written…
- Primer melting temperature calculator versus stated formulas. Implement tm wallace(seq) = 2 (A+T) + 4 (G+C) and tm gc(seq) = 64.9 + 41 (GC…
- Chemical equation balancer using the matrix nullspace method in Python with fractions.Fraction (no numpy). Parse formulas including nested…
- Molar mass calculator with a recursive-descent formula parser supporting nested parentheses and dot-hydrate notation, e.g. molar…
- Implement global alignment with AFFINE gap penalties (Gotoh three-matrix algorithm) in Python: gotoh(a, b, match=2, mismatch=-1, gap…
- Evolutionary distances then a tree, as a two-module Python package seqdist/. Module dist.py: p distance(a, b) and jukes cantor(a, b) =…
- Multi-sample VCF genotype summarizer. Write gt stats.py parsing a VCF whose records carry GT as the first FORMAT key. Create this fixture…
- Codon usage bias: compute RSCU (relative synonymous codon usage), where RSCU of a codon = observed count divided by (total count for its…
- Gas-law solver CLI in Python. gas.py ideal --solve V --n 1 --T 273.15 --P 1 solves PV=nRT with R=0.082057 L·atm/(mol·K) for whichever…
- Primer QC tool. primer check.py takes a primer sequence and prints a report with: length, GC fraction, Wallace Tm = 2(A+T)+4(G+C)…
- Paired-end FASTQ sync checker. pair check.py takes R1 and R2 FASTQ paths and verifies read IDs match in order after stripping a trailing…
- Lab solution calculators, quick. prep.py subcommands: mass (grams needed for V liters of M molarity given a formula mass), dilute…
- Small one: implement tick-based cooldowns for abilities in Python, no wall-clock anywhere. cooldowns.py offers register(name, cooldown…
- Spatial hash broadphase in Python. spatialhash.py buckets circle centers into cell size grid cells and yields candidate pairs from each…
- This Euler-method SIR integrator misbehaves with its shipped settings (beta=1.5, gamma=0.5, dt=1.0, N=100, I0=1, 60 steps): def run…
- English draughts (checkers) move generator with forced captures and multi-jumps, Python. Movegen must enforce mandatory capture and chain…
- Cribbage hand scorer, Python. Score a 4-card hand plus starter: fifteens (2 pts each), pairs (2), runs (length 3+, with multiplicities)…
- RFM scoring, stdlib only, no pandas or numpy. Single file rfm lite.py under 150 lines exposing score(orders: list tuple customer id, iso…
- RFM over SQLite with a view, verified against Python. Create schema.sql defining orders(customer id, order date, amount) and a view rfm…
- Minimal ECS in Python, medium. ecs.py : integer entities, per-component-type dict storage, systems as functions run in a registered order…
- Build a sample-size-aware A/B analyzer with a simulation check. abkit/power.py: required n per arm(p base, mde abs, alpha=0.05, power=0.8)…
- Behavior tree for a guard NPC, Python. Implement Sequence, Selector, Inverter, and condition/action leaves returning…
- Softlock detector for adventure games, Python. Model a game as items, doors (consuming or non-consuming key use — a consumed key is gone)…
- Plain-text invoice renderer with fixture comparisons, no PDF anywhere. invoice.py: render(invoice: dict) - str producing a fixed-width…
- Bank-statement text renderer. gen.py (seed 44) creates a month of transactions for one account: opening balance 2500.00, 60 transactions…
- Forecast accuracy regression gate. Scenario: CI must fail when a 'refactor' degrades forecasts. baseline.py implements a 14-day moving…
- Aggregation over irregular telemetry with event-time watermarks. Readings arrive out of order: gen.py (seed 23) creates 100000 events…
- Our analytics dashboard reports wrong medians for some samples; hunt the bug down with hypothesis rather than eyeballing. Save…
- A pricing-tier off-by-one slipped past this suite last quarter and undercharged bulk orders; make sure the boundaries are actually pinned…
- Security audit finding: our password-policy tests would still pass if the policy were badly broken. Save /workspace/policy.py: import…
- Write bench guard.py, a performance-regression gate for CI: it runs python3 -m timeit -style measurements of named snippets defined in…
- Write an auto-grading library grader.py plus a pytest suite, Python stdlib only. It grades three question types via grade(question spec…
- I need a roster importer for a gradebook. Write make roster.py that generates roster.csv with 200 rows and columns student id,last…
- Curriculum pacing calculator. Given a course start date, end date, a list of holiday dates, minutes of instruction per school day (Mon-Fri…
- This drop-lowest grading function ships in our gradebook and teachers are complaining. Save it as droplow.py exactly: def drop…
- Quick tool: histogram report.py reads a scores.csv with header 'student,score', prints count, mean, median, and population standard…
- Adaptive question selector for a practice session. adaptive.py keeps a student ability estimate a (start 0.0) and a bank of questions each…
- Transliteration engine, Russian Cyrillic to Latin, with round-trip guarantees on the unambiguous core. Mapping table inline in…
- Mini hyphenation engine in the Knuth-Liang style with an inline pattern set. hyphen.py: patterns are strings with digits marking break…
- Character n-gram language model with perplexity, stdlib only. ngram lm.py: train(text, n=3) builds counts of n-grams and (n-1)-gram…
- Word-level diff for grading student translations against a reference. textdiff.py: diff(reference tokens, student tokens) computes an…
- Morphological analyzer for the invented agglutinative language 'Voru'. Word structure is STEM + case + number + possessive, in that order…
- Pinyin tone converter: numbered syllables to diacritics. pinyin.py: convert(syllable) turns forms like 'ni3', 'hao3', 'lü4' (also accept…
- Anki-style deck round-tripper with hard escaping cases. deck.py handles a TSV flashcard format: header 'front\tback\ttags', fields may…
- Minimal-pair finder for pronunciation drills. Inline phonemic lexicon (word - phoneme tuple) of 40 entries, e.g. ship /ʃ ɪ p/, sheep /ʃ iː…
- Expert build: translation-memory system with fuzzy lookup. Package tm/: store.py (SQLite table of segment pairs source- target with a…
120 more tasks.