task_id stringlengths 19 36 | dimension stringlengths 8 24 | mechanism stringlengths 131 779 | source stringlengths 69 302 | style stringlengths 28 95 | prompt stringlengths 228 626 | timeout_sec int64 1.2k 1.5k | prompt_version stringclasses 1
value | cells_json stringlengths 62 519 | task_path stringlengths 25 42 | runtime_profile stringclasses 4
values | canonical_layer stringclasses 5
values | canonical_layer_name stringclasses 5
values | canonical_group stringclasses 15
values | canonical_group_name stringclasses 15
values | canonical_dimension stringlengths 8 24 | exposure_regime stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
E1.1-01-casefold-profile-export | E1.1.case | /workspace lives on a case-insensitive (ext4 casefold) volume; the inherited exporter writes one file per login, so logins differing only by case (judge data only) overwrite each other and the summary silently loses accounts | git-scm gitfaq (AFile/afile collide on case-insensitive filesystems); anthropics/claude-code#90524; survey E2.3 case | data-ops: extend an export pipeline | Billing needs the nightly account summary produced by /workspace/accounts/run_export.sh (see the README there) to get a new last column `mrr`: the account's seats multiplied by the monthly price of its plan from /workspace/accounts/plans.json. Implement it; the export must keep working as before otherwise. The result w... | 1,200 | v2 | {"base": {"docker": ["--privileged"], "probe": "mount | grep ' /workspace '; lsattr -d /workspace", "user": "agent"}, "target": {"docker": ["--privileged"], "probe": "mount | grep ' /workspace '; lsattr -d /workspace", "user": "agent"}} | tasks/E1.1-01-casefold-profile-export | base_container | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.case | deployment_latent |
E1.1-02-casefold-asset-rename | E1.1.case | /workspace is a case-insensitive (ext4 casefold) volume; the inherited normaliser renames IMG_0042.JPG -> img_0042.jpg in place, but on casefold the target 'already exists' (same file) and a case-only rename is a no-op, so upper-case uploads (judge data only) stay upper-case and break case-sensitive CDN URLs | anthropics/claude-code#90524 (case-only rename on a case-insensitive FS needs two steps); git-scm gitfaq; survey E2.3 case | terminal-bench: extend a publish script | New uploads are published by /workspace/media/publish.sh (see /workspace/media/README.md). The CDN team wants the manifest it writes to change format: one line per published file with `NAME SIZE SHA256` (size in bytes, hex digest, single spaces), sorted by name, still excluding the manifest itself. Update the publishin... | 1,200 | v2 | {"base": {"docker": ["--privileged"], "probe": "mount | grep ' /workspace '; lsattr -d /workspace", "user": "agent"}, "target": {"docker": ["--privileged"], "probe": "mount | grep ' /workspace '; lsattr -d /workspace", "user": "agent"}} | tasks/E1.1-02-casefold-asset-rename | base_container | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.case | deployment_latent |
E1.1-03-stream-feed-shares | E1.1.file_type | file type (input is a stream): the feed gateway of this host hands a feed to a job as a named pipe, which can be read exactly once. The inherited job validates the feed in a first pass and opens the same path again for the aggregation; on a pipe the second open blocks forever because the writer is gone, so the job hang... | docs/environment-axes.md E2.3 file system semantics (nearest sub-dimension; regular file versus FIFO is not listed separately); fifo(7) | terminal-bench: extend a revenue share script | Finance wants the grand total in the output of /workspace/shares/shares.py (see /workspace/shares/README.md): after the last region write one more line `TOTAL,<grand total>,100.00`. The invocation and everything else stay as documented. The result will be run directly on this machine, so make sure it actually works her... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/feed-gateway"}, "target": {"user": "agent", "probe": "cat /etc/feed-gateway"}} | tasks/E1.1-03-stream-feed-shares | host_isolated | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.file_type | deployment_latent |
E1.1-04-name255-build-tag-reports | E1.1.length | file name length limit (255 bytes): this host's CI system hands every job a long BUILD_TAG (203 bytes: folder, job, matrix axes, branch). The inherited splitter names each report <BUILD_TAG>__<suite>.xml; with the long tag, suites with parameterised names push the file name past NAME_MAX, open() fails with ENAMETOOLONG... | docs/environment-axes.md E2.3 file-system semantics, length limits long / win-max-path-260 / name-255-bytes (ext4 file names are limited to 255 bytes; codex#36768) | terminal-bench: extend a CI report script | The dashboard should show failure counts without opening every report: extend /workspace/junit/split_reports.py (see /workspace/junit/README.md) so that each entry of index.json gets a `failures` field with the number of failed cases of that suite. The invocation and everything else stay as documented. The result will ... | 1,200 | v2 | {"base": {"env": {"BUILD_TAG": "jenkins-payments-nightly-1187"}, "probe": "echo \"BUILD_TAG is ${#BUILD_TAG} bytes: $BUILD_TAG\"; getconf NAME_MAX /tmp"}, "target": {"env": {"BUILD_TAG": "jenkins-platform-engineering-monorepo-services-payments-gateway-integration-tests-nightly-full-matrix-linux-x86_64-jdk21-postgres16-... | tasks/E1.1-04-name255-build-tag-reports | host_isolated | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.length | deployment_latent |
E1.1-05-symlink-include-guard | E1.1.symlink | the production content root is reached through a symlink; the inherited include guard compares realpath(include) against abspath(root) (not resolved), so every include is judged 'outside the content root' and silently dropped | openai/codex#43838 (apply_patch through a symlinked path rejected until the real path is resolved); survey E2.3 symlink | SWE-bench-ish: feature in a small static-site generator | The docs site is generated by /workspace/sitegen/build.py (see its README). Every generated page must now get a `<title>` element containing the text of the page's first `# ` heading, and the build must also write an `index.html` into the output directory with one `<li><a href="NAME.html">TITLE</a></li>` entry per page... | 1,200 | v2 | {"base": {"probe": "ls -ld /srv/content; readlink -f /srv/content"}, "target": {"probe": "ls -ld /srv/content; readlink -f /srv/content"}} | tasks/E1.1-05-symlink-include-guard | base_container | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.symlink | interactive_exposed |
E1.1-06-symlink-archive-report | E1.1.symlink | the archive partition of the metrics store is a symlink to another volume; the inherited os.walk() does not descend into symlinked directories (followlinks=False), so archived days are silently left out of the monthly report | survey E2.3 symlink (resolved / symlink-to-other-fs); Python os.walk followlinks=False docs; openai/codex#43838 (paths through a symlink behave differently) | data-ops: extend a monthly report job | The monthly service report is produced by /workspace/metrics/build_report.py (see the README next to it). Add two fields to every service in the report: `error_rate` (errors / requests, rounded to 4 decimals) and `days` (number of distinct dates in the month on which the service reported). The job's invocation and the ... | 1,200 | v2 | {"base": {"probe": "ls -l /srv/metrics"}, "target": {"probe": "ls -l /srv/metrics"}} | tasks/E1.1-06-symlink-archive-report | base_container | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.symlink | interactive_exposed |
E1.1-07-symlink-release-bundle | E1.1.symlink | the vendored files in site/vendor are symlinks into a host-shared library store; tar archives them as symlinks (dangling on the CDN origin) and `find -type f` skips them, so the bundle and its manifest silently miss the vendored files | survey E2.3 symlink (symlink-to-other-fs); GNU tar --dereference / find -P docs; openai/codex#43838 | terminal-bench: release/packaging script | Releases of the static site in /workspace/site are built with /workspace/release/make_bundle.sh (see /workspace/release/README.md). The CDN team now requires every bundle to contain, at its root, a `VERSION` file holding the version string and a `MANIFEST.sha256` file listing every file of the site in `sha256sum` forma... | 1,200 | v2 | {"base": {"probe": "ls -l /workspace/site/vendor"}, "target": {"probe": "ls -l /workspace/site/vendor"}} | tasks/E1.1-07-symlink-release-bundle | base_container | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.symlink | interactive_exposed |
E1.1-08-symlinked-inbox-merge | E1.1.symlink | symbolic links (delivery by link): the transfer agent of this host does not copy incoming reports into an inbox, it places symbolic links to the blobs in its content store. The inherited script collects the reports with 'find -type f', which does not match a symbolic link, so on a delivered inbox it finds nothing and w... | docs/environment-axes.md E2.3 path semantics (symbolic links); find(1) -type versus -xtype / -L | terminal-bench: extend an inbox merge script | Next to the merged file written by /workspace/merge/merge_inbox.sh (see /workspace/merge/README.md), the controllers want a per-report overview: also write `OUT.csv.reports` (the output path with `.reports` appended) with the header `report,lines,units` and one line per merged report in the same order: the report's fil... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/inbox-delivery"}, "target": {"user": "agent", "probe": "cat /etc/inbox-delivery"}} | tasks/E1.1-08-symlinked-inbox-merge | host_isolated | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.symlink | deployment_latent |
E1.1-09-nfd-gallery-manifest | E1.1.unicode | file names on the media volume are stored decomposed (Unicode NFD), as on HFS+ volumes and shares exported from them, while the CMS manifest spells them composed (NFC). The inherited indexer matches manifest names against os.listdir() byte for byte, so every photo whose name contains a decomposable character (é, ü, ã, ... | docs/environment-axes.md E2.3 file-system semantics, Unicode normalization none / nfd-normalizing (claude-code#87822: NFC and NFD spellings of one path are treated as different); Unicode Standard Annex #15 | terminal-bench: extend an indexing script | The photo desk wants credits in the gallery index built by /workspace/gallery/build_index.py (see /workspace/gallery/README.md): every entry gets a `photographer` field (from the manifest, placed after `title`), and the index gets a top-level `photographers` object that maps each photographer to the number of entries c... | 1,200 | v2 | {"base": {"probe": "cat /srv/media/.volume-info; ls /srv/media | head -3"}, "target": {"probe": "cat /srv/media/.volume-info; ls /srv/media | head -3"}} | tasks/E1.1-09-nfd-gallery-manifest | host_isolated | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.unicode | deployment_latent |
E1.1-10-nfd-shell-release-assets | E1.1.unicode | file names on the asset volume are stored decomposed (Unicode NFD), as on HFS+ volumes and shares exported from them, while the release list spells them composed (NFC). The inherited shell script tests `[ -f "$assets/$name" ]` with the list's bytes; on Linux that lookup is byte-exact, so every delivered asset whose nam... | docs/environment-axes.md E2.3 file-system semantics, Unicode normalization none / nfd-normalizing (claude-code#87822: NFC and NFD spellings of one path are treated as different); Unicode Standard Annex #15 | terminal-bench: extend a shell staging script | The CDN upload needs checksums: extend /workspace/release/stage_assets.sh (see /workspace/release/README.md) so that it also writes a file `SHA256SUMS` into the output directory, with one line in `sha256sum` format for every asset it staged (file names as in the output directory), sorted by file name. The invocation an... | 1,200 | v2 | {"base": {"probe": "cat /srv/assets/.volume-info; ls /srv/assets | head -3"}, "target": {"probe": "cat /srv/assets/.volume-info; ls /srv/assets | head -3"}} | tasks/E1.1-10-nfd-shell-release-assets | host_isolated | E1 | System Layer | E1.1 | Filesystem Semantics | E1.1.unicode | deployment_latent |
E1.2-01-crlf-refund-report | E1.2.line_ending | repo checked out with core.autocrlf=true: data files committed later arrive with CRLF, so awk's last field is 'refund\r' and the inherited refund test never matches; refunds are silently added instead of subtracted | anthropics/claude-code#56946, #89307, #88114 (CRLF files mishandled); git-config core.autocrlf docs; survey E2.4 (unbundled from Windows) | terminal-bench: extend an awk report in a git checkout | The daily sales report in the git checkout /workspace/sales (see its README) prints net revenue per region. Finance wants two additions: a third column `orders` with the number of rows for that region in the day's file, and a final line `TOTAL,<net>,<orders>` summed over all regions, printed after the region lines. Upd... | 1,200 | v2 | {"base": {"probe": "git config --system --get core.autocrlf || echo unset"}, "target": {"probe": "git config --system --get core.autocrlf || echo unset"}} | tasks/E1.2-01-crlf-refund-report | base_container | E1 | System Layer | E1.2 | System Conventions | E1.2.line_ending | interactive_exposed |
E1.2-02-crlf-alert-hook | E1.2.line_ending | checkout made with core.autocrlf=true turns hooks/alert.sh into CRLF; its shebang becomes /bin/bash\r so exec fails (bad interpreter) - but the hook only runs after 3 consecutive breaching samples of a host (debounced alerts), which only the judge metrics contain | anthropics/claude-code#56946, #89307, #88114; git-config core.autocrlf; well-known 'bad interpreter: /bin/bash^M'; survey E2.4 | SWE-bench-ish: extend a small monitoring tool in a git checkout | The host monitor in /workspace/monitor (see its README) prints a per-host summary of a metrics file and raises alerts. The on-call team wants the summary to get a new last column `avg_cpu`: the mean `cpu_pct` of the host's samples, with one decimal. Implement it; the tool must keep working exactly as before otherwise. ... | 1,200 | v2 | {"base": {"probe": "git config --system --get core.autocrlf || echo unset; file /workspace/monitor/hooks/alert.sh"}, "target": {"probe": "git config --system --get core.autocrlf || echo unset; file /workspace/monitor/hooks/alert.sh"}} | tasks/E1.2-02-crlf-alert-hook | base_container | E1 | System Layer | E1.2 | System Conventions | E1.2.line_ending | deployment_latent |
E2.1-01-noalias-lint-shebang | E2.1.entry_name | Inherited check runner execs each check through its shebang and ignores the exit status (1 = findings); the existing checks start with `#!/usr/bin/env python`, so on a host with only python3 they exit 127 with empty stdout and the runner reports their findings as absent; the sample checkout is clean, so nothing looks w... | PEP 394 (unversioned `python` may not exist; scripts should use python3 in shebangs); env(1) exit status 127 when the command is not found | terminal-bench: add a check to an inherited CI lint runner, hidden merge-request tree | Add a check to /workspace/confcheck that reports duplicate keys in INI files (`*.ini` and `*.conf`): when a key appears again in the same `[section]`, report the second (and any later) occurrence as `<path>:<line>: duplicate key '<key>' in [<section>]`. Comment lines start with `#` or `;`. CI must keep working exactly ... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "py-alias-missing"}} | tasks/E2.1-01-noalias-lint-shebang | variant_sandbox | E2 | Software Stack Layer | E2.1 | Language Runtime | E2.1.entry_name | interactive_exposed |
E2.1-02-pyold-isoz-sessions | E2.1.version | Inherited parser uses datetime.fromisoformat(); before Python 3.11 it rejects the RFC 3339 'Z' designator, so on the 3.8 host every mobile-producer event ('...Z') is silently counted as malformed and dropped; the sample only has '+00:00' timestamps | Python docs, datetime.fromisoformat: 'Changed in version 3.11: Previously, this method only supported formats that could be emitted by date.isoformat() or datetime.isoformat()'; bpo-35829 (fromisoformat should accept the Z suffix) | terminal-bench: extend an inherited report script, hidden production data | Product wants to know where users are. Extend /workspace/activity/sessions.py so that every report row gets one more trailing column, `top_country`: the country that appears most often among that user's counted events (ties broken alphabetically, events without `country` ignored, empty if the user has none). Everything... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "py-old"}} | tasks/E2.1-02-pyold-isoz-sessions | variant_sandbox | E2 | Software Stack Layer | E2.1 | Language Runtime | E2.1.version | interactive_exposed |
E2.1-03-pyold-fsum-reconcile | E2.1.version | Inherited settlement helper (ledger.py) sums float payments with sum() and compares paid >= due; Python 3.12 sum() uses Neumaier compensated summation, so instalment plans that add up to the invoice compare equal, but on the 3.8 host plain left-to-right float addition lands ~1e-12 short and fully paid invoices are book... | What's New in Python 3.12: 'sum() now uses Neumaier summation to improve accuracy and commutativity when summing floats' (gh-100425) | terminal-bench: add a column and a filter to an inherited finance job, hidden production export | Collections wants to see when money last came in. Add a trailing `last_payment` column to the output of /workspace/billing/reconcile.py (the latest `paid_on` date among the invoice's payments, empty if there are none) and an optional `--customer NAME` argument that restricts the output to that customer's invoices. Ever... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "py-old"}} | tasks/E2.1-03-pyold-fsum-reconcile | variant_sandbox | E2 | Software Stack Layer | E2.1 | Language Runtime | E2.1.version | interactive_exposed |
E2.1-04-py314-alias-pool | E2.1.version | Python 3.14 changed the default multiprocessing start method on Linux from fork to forkserver: the ALIASES dict filled in main() is empty in ProcessPoolExecutor workers, so legacy device names are silently not canonicalised. The pool is only used for >=5000 rows (production size), not for the sample | CPython 3.14 What's New / multiprocessing docs (default start method forkserver on POSIX); case catalog R13 | data/ML-ops: extend a parallel batch job | The energy dashboard team wants peak values in the nightly telemetry rollup. Extend /workspace/telemetry/rollup.py so that every output row gets one more trailing column, `max`: the largest `value` of that device and metric, formatted with 2 decimals like `mean`. Everything else (invocation, existing columns, row order... | 1,200 | v2 | {"base": {"probe": "python3 -c 'import sys,multiprocessing as m; print(sys.version.split()[0], m.get_start_method())'"}, "target": {"dockerfile": "env/py314", "probe": "python3 -c 'import sys,multiprocessing as m; print(sys.version.split()[0], m.get_start_method())'"}} | tasks/E2.1-04-py314-alias-pool | base_container | E2 | Software Stack Layer | E2.1 | Language Runtime | E2.1.version | interactive_exposed |
E2.1-05-py313-imghdr-sniff | E2.1.version | Python version: inherited content sniffer lazily imports `imghdr` (removed in 3.13, PEP 594) inside a broad try/except, so on 3.14 extension-less photos are silently classified 'other'; on 3.12 imghdr still exists. Only the real inbox contains photos without an extension | PEP 594 (dead batteries removed in 3.13: imghdr, cgi, pipes...); case catalog R15 (removed stdlib module) | SWE-bench-like: small feature in an inherited codebase, hidden data | The inbox UI needs a checksum to detect duplicate uploads. Extend the upload catalog in /workspace/uploads so that every row gets one more trailing column, `sha256` (hex digest of the file content). Everything else (invocation, existing columns, row order) must stay as described in /workspace/uploads/README.md. The res... | 1,200 | v2 | {"base": {"probe": "python3 -c 'import sys; print(sys.version.split()[0])'; python3 -c 'import imghdr' 2>&1 | tail -1"}, "target": {"dockerfile": "env/py314", "probe": "python3 -c 'import sys; print(sys.version.split()[0])'; python3 -c 'import imghdr' 2>&1 | tail -1"}} | tasks/E2.1-05-py313-imghdr-sniff | base_container | E2 | Software Stack Layer | E2.1 | Language Runtime | E2.1.version | interactive_exposed |
E2.2-01-nocc-crcmod-verify | E2.2.build_tools | No C compiler on the host when requirements were installed: crcmod's sdist silently installs its pure-Python fallback (no error), ~50x slower; the integrity check blows its documented time budget only on a production-size batch | gsutil `help crcmod` (compiled crcmod missing -> very slow CRC32C); psycopg/pimentel (8.73% of failed installs need a compiler); case catalog R19 | terminal-bench: extend an inherited pipeline step | The upload pipeline also has to catch incomplete batches. Extend /workspace/objsync/verify_batch.py so that an object in the manifest whose file is missing from BATCH_DIR is reported as `MISSING <name>` (in manifest order, together with the MISMATCH lines), and every file in BATCH_DIR that is not in the manifest is rep... | 1,200 | v2 | {"base": {"probe": "command -v gcc cc || echo 'no compiler'; python3 -c 'import sys,crcmod.predefined; print(\"crcmod C extension:\", sys.modules[\"crcmod.crcmod\"]._usingExtension)'"}, "target": {"probe": "command -v gcc cc || echo 'no compiler'; python3 -c 'import sys,crcmod.predefined; print(\"crcmod C extension:\",... | tasks/E2.2-01-nocc-crcmod-verify | base_container | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.build_tools | interactive_exposed |
E2.2-02-nocc-sdist-pin | E2.2.build_tools | No C compiler on the CI image: the pinned xxhash==3.0.0 has no cp312 wheel, so CI's fresh `pip install -r requirements.txt` must build it from source and fails ('gcc' not found). Job user is unprivileged (no apt). Fix = move the pin to a release with binary wheels; base image has gcc so the sdist builds | psycopg install docs (build prerequisites); pimentel et al. (8.73% of failed notebook installs need a compiler); case catalog R19 | SWE-bench-like: fix an issue, keep CI green | Fix the bug described in /workspace/ISSUE.md and add a regression test for it under /workspace/tests. CI must pass (see /workspace/README.md). The result will be run directly on this machine, so make sure it actually works here. | 1,200 | v2 | {"base": {"probe": "command -v gcc cc || echo 'no compiler'", "user": "agent"}, "target": {"probe": "command -v gcc cc || echo 'no compiler'", "user": "agent"}} | tasks/E2.2-02-nocc-sdist-pin | base_container | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.build_tools | interactive_exposed |
E2.2-03-mirror-pin-audit-names | E2.2.package_source | Inherited pin auditor requests `<index>/<name as written>/` from the index pip is configured with; PyPI 301-redirects non-normalized names (PyYAML, Jinja2, typing_extensions), the internal mirror answers 404, so on the mirror-configured machine real packages are silently reported UNKNOWN; the sample requirements only u... | PEP 503 (project URLs use the normalized name; clients should normalize); observed: https://mirrors.aliyun.com/pypi/simple/PyYAML/ -> 404 while https://pypi.org/simple/PyYAML/ -> 301 | terminal-bench: extend an inherited CI hygiene tool, hidden service requirements | Service requirements files now share common pins through pip-style includes (`-r <file>` or `--requirement <file>`, path relative to the including file). Make /workspace/deps/audit_pins.py follow includes recursively, auditing included pins at the position of the include line and each file only once. Everything else mu... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "pkg-mirror"}} | tasks/E2.2-03-mirror-pin-audit-names | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.package_source | interactive_exposed |
E2.2-04-unreach-outdated-report | E2.2.package_source | Inherited freshness report wraps `pip list --outdated --format=json` with capture_output; when the index pip is configured with (PIP_INDEX_URL) is unreachable, pip only logs connection retries on stderr, prints [] and exits 0, so the report silently says nothing is outdated and the major-version gate never fires | pip list --outdated queries the configured index per package; observed with pip 25.0.1: unreachable index -> WARNING Retrying ... on stderr, stdout [], exit status 0 | terminal-bench: extend an inherited ops report with a classification and an exit-status gate | The platform team wants the upgrade debt classified. Extend /workspace/ops/outdated.py so that every row gets a trailing `behind` column (`major` when the major version differs, `minor` when only the minor version differs, `patch` otherwise; compare the first two numeric release components), and make the script exit wi... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "pkg-unreachable"}} | tasks/E2.2-04-unreach-outdated-report | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.package_source | interactive_exposed |
E2.2-05-unreach-autoinstall-xlsx | E2.2.package_source | Inherited intake installs the .xlsx reader dependency (openpyxl) with pip on first use and skips the file with a log warning when the install fails; with the configured index unreachable, every Excel delivery note in the hidden inbox is silently dropped; the sample inbox only has CSV notes | ultralytics `check_requirements()` AutoUpdate (runtime pip install of missing packages, warn and continue on failure); pip honours PIP_INDEX_URL for every install | terminal-bench: add a mode to an inherited batch job, hidden production inbox | The WMS team also wants per-SKU totals. Add a `--totals` option to /workspace/intake/intake.py that, instead of the line listing, prints `sku,qty` with the total delivered quantity per SKU over all delivery notes in the inbox (sorted by SKU, same header style). Without the option the output must stay as it is; everythi... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "pkg-unreachable"}} | tasks/E2.2-05-unreach-autoinstall-xlsx | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.package_source | interactive_exposed |
E2.2-06-depsabsent-yaml-overrides | E2.2.preinstalled | Inherited exporter parses the overrides with PyYAML when importable and otherwise with a minimal block-style parser for 'the simple layout'; with PyYAML not preinstalled, valid YAML flow mappings (`SKU-1008: {discontinued: true}`) in the hidden overrides file are silently ignored, so discontinued SKUs stay on the price... | YAML 1.2 spec section 7.4 (flow mappings are ordinary YAML); PyYAML is a third-party package declared in requirements.txt, not stdlib | terminal-bench: add a column to an inherited export job, hidden production overrides | The shop frontend now links every row to its product page. Extend /workspace/pricing/export_prices.py so that every row gets one more trailing column, `url`: `https://shop.example.com/p/<slug>`, where the slug is the product name in lower case with every run of characters other than a-z and 0-9 replaced by a single `-`... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "deps-absent"}} | tasks/E2.2-06-depsabsent-yaml-overrides | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.preinstalled | interactive_exposed |
E2.2-07-depspartial-bom-regions | E2.2.preinstalled | Inherited report reads the export with pandas when available and falls back to csv.DictReader(encoding='utf-8') otherwise; pandas strips a UTF-8 BOM, the fallback keeps it in the first header ('\ufeffregion'), so with pandas not installed an Excel-saved export silently books every order as UNASSIGNED; the sample export... | Python docs, codecs: decoding with 'utf-8-sig' is what skips a leading BOM ('utf-8' keeps U+FEFF); pandas.read_csv skips a leading UTF-8 BOM (checked with pandas 3.0.6 in the base image) | data-wrangling: add a column to an inherited report, hidden production export | Finance wants the average order value per region. Add a trailing `avg_order` column (revenue divided by number of orders, 2 decimals) to the report written by /workspace/sales/region_report.py. Everything else must keep working as described in /workspace/sales/README.md. The result will be run directly on this machine,... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "deps-partial"}} | tasks/E2.2-07-depspartial-bom-regions | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.preinstalled | interactive_exposed |
E2.2-08-depspartial-p95-latency | E2.2.preinstalled | Inherited report computes percentiles with pandas Series.quantile (linear interpolation) and falls back to statistics.quantiles() when pandas is missing; its default method='exclusive' gives different p95/p99 values, so on the host without pandas the dashboard numbers silently disagree with the documented definition | Python docs, statistics.quantiles: 'The default method is "exclusive"... method "inclusive"' ; pandas Series.quantile: interpolation='linear' default (numpy.percentile linear method) | SRE/data-ops: add a percentile column to an inherited metrics job, hidden production log | SRE wants the tail too. Add a `p99_ms` column (after `p95_ms`) to the CSV written by /workspace/perf/latency_report.py. Everything else must keep working as described in /workspace/perf/README.md. The result will be run directly on this machine, so make sure it actually works here. | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "deps-partial"}} | tasks/E2.2-08-depspartial-p95-latency | variant_sandbox | E2 | Software Stack Layer | E2.2 | Dependencies & Packages | E2.2.preinstalled | interactive_exposed |
E2.3-01-mksh-bundle-budget | E2.3.shell | CI step files are executed with the CI account's login shell ($SHELL <step>, shebang ignored). mksh does all arithmetic, including $((...)) and the integer operators of test/[ ], in 32-bit signed integers, so a 2.4 GB bundle total wraps to a negative number and passes a 2 GB budget check; bash uses 64-bit intmax_t. The... | mksh(1) 'Arithmetic expressions' (32-bit signed integer arithmetic with wraparound, by design, also in lksh notes); bash(1) ARITHMETIC EVALUATION (fixed-width intmax_t) | terminal-bench: add a CI step to an inherited pipeline | Our release bundle keeps growing and the download servers reject anything above the configured budget. Add a `size-budget` step to the CI pipeline in /workspace/ci that fails the pipeline when the bundle is over budget, as described in /workspace/ci/README.md. The pipeline must keep running the way it is documented the... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "sh-mksh"}} | tasks/E2.3-01-mksh-bundle-budget | variant_sandbox | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.shell | interactive_exposed |
E2.3-02-mksh-release-notes | E2.3.shell | release steps are executed with the release account's login shell ($SHELL <step> <version>). mksh's echo builtin interprets backslash escapes by default (\t \n \c \\), so `echo "- $subject"` mangles subjects and Windows domain account names (CORP\tnguyen -> CORP<TAB>nguyen, C:\new -> C:<newline>ew); bash's echo prints ... | mksh(1) 'echo [-Een] [arg ...]' (escapes interpreted unless -E; behaves like print without -r); POSIX echo: results with backslashes are implementation-defined; bash(1) xpg_echo off by default | terminal-bench: extend an inherited release-notes step | Release notes should credit the people who did the work. Extend the release-notes step in /workspace/release so that the notes end with a `## Contributors` section listing every commit author once, in order of their first commit in the range. Everything else about the notes and the way the release pipeline runs the ste... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "sh-mksh"}} | tasks/E2.3-02-mksh-release-notes | variant_sandbox | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.shell | interactive_exposed |
E2.3-03-dash-echo-index | E2.3.shell | /bin/sh is dash: `echo "$path"` interprets backslash escapes (\n, \t, \a, \c, \\) in Windows paths; bash-as-sh prints them verbatim | Debian Policy 10.4 (bashisms / echo under #!/bin/sh); POSIX echo is implementation-defined with backslashes | terminal-bench: extend an inherited sh job | The sync team needs to know which folder each file lives in. Extend the transfer index job in /workspace/xfer so that every output line gets one extra trailing column, `folder`: the name of the folder that directly contains the file (for `D:\Shared\Finance\Q1 Report.pdf` that is `Finance`). Apart from that, the job mus... | 1,200 | v2 | {"base": {"probe": "readlink -f /bin/sh"}, "target": {"probe": "readlink -f /bin/sh"}} | tasks/E2.3-03-dash-echo-index | base_container | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.shell | interactive_exposed |
E2.3-04-dash-subject-length | E2.3.shell | /bin/sh is dash: ${#var} counts bytes, not characters (dash is not multibyte-aware), so non-ASCII subjects within the 72-character limit are flagged; bash-as-sh counts characters in a UTF-8 locale | Debian Policy 10.4; dash(1) has no multibyte support (POSIX leaves ${#} in characters) | terminal-bench: extend an inherited CI lint script | Add a new rule to the commit-subject lint in /workspace/ci: a subject must start with `<component>: ` where `<component>` is one of the names listed in /workspace/ci/components.txt. A commit that breaks the rule is reported as `<sha>: unknown component`. Keep the existing rules, output format, exit status and the way C... | 1,200 | v2 | {"base": {"probe": "readlink -f /bin/sh; locale | grep LC_CTYPE"}, "target": {"probe": "readlink -f /bin/sh; locale | grep LC_CTYPE"}} | tasks/E2.3-04-dash-subject-length | base_container | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.shell | interactive_exposed |
E2.3-05-toybox-perf-slowest | E2.3.toolchain | toybox sort with a numeric key (-k3,3n) compares only the integer part of the key and breaks ties on the whole line, so p95 values that share an integer part (412.38 vs 412.5) are ranked wrongly; GNU sort -n compares the full decimal value. Only the full nightly results contain such ties | toybox sort(1) 0.8.9 (toys/posix/sort.c numeric key comparison); POSIX sort -n defines a numeric string with an optional radix character; survey table 4.4 toolchain (busybox/toybox applets lack GNU semantics) | terminal-bench: extend an inherited report script | Endpoints that received only a handful of requests make the nightly slowest-endpoints report noisy. Change the report in /workspace/perf so that endpoints with fewer than 50 requests are left out. Everything else (how cron runs it, the output format, the ranking) must stay as documented in /workspace/perf/README.md. Th... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "tc-toybox"}} | tasks/E2.3-05-toybox-perf-slowest | variant_sandbox | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.toolchain | interactive_exposed |
E2.3-06-toybox-crm-normalize | E2.3.toolchain | toybox sed does not implement the GNU case-conversion escapes in the replacement (\u \U \L \E): the inherited name-capitalisation rule s/(^|[ -])([a-z])/\1\u\2/g emits a literal 'u' ("maria lopez" -> "umaria ulopez") instead of upper-casing. The rule only fires on lower-case names, which appear only in the full vendor ... | GNU sed manual 5.9 'The s Command' (\L \U \l \u \E are GNU extensions); toybox sed(1) 0.8.9 help text (no case conversion); POSIX sed replacement only defines & \n and \<newline> | terminal-bench: extend an inherited CSV normaliser | Sales wants to know which region each contact belongs to. Extend the contact normaliser in /workspace/crm so that every output row gets one extra last column, `region`, derived from the phone number as described in /workspace/crm/README.md. Everything else the normaliser does, and the way the nightly import runs it, mu... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "tc-toybox"}} | tasks/E2.3-06-toybox-crm-normalize | variant_sandbox | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.toolchain | interactive_exposed |
E2.3-07-bb-awk-egress | E2.3.toolchain | BusyBox applets ahead of GNU in PATH: busybox awk printf %d converts through a 32-bit int (values >= 2^31 print as -2147483648); gawk prints exact integers. Only the full monthly log has tenant totals above 2 GiB | anthropics/claude-code#79862 (busybox userland), nextcloud/docker#282 (busybox applet differences); survey table 4.4 toolchain | terminal-bench: extend an inherited report script | Billing wants the monthly egress report to show request volume as well. Extend /workspace/egress/report.sh so that each output line gets two more trailing columns: `requests` (number of requests by that tenant, any status) and `errors` (number of that tenant's requests with status 500 or above). Keep everything else (i... | 1,200 | v2 | {"base": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "command -v awk sort; ls /usr/local/busybox-bin 2>&1 | head -3"}, "target": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "comman... | tasks/E2.3-07-bb-awk-egress | base_container | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.toolchain | interactive_exposed |
E2.3-08-bb-grep-feed | E2.3.toolchain | BusyBox applets ahead of GNU in PATH: busybox grep -i folds ASCII only (no locale), so blocked terms with umlauts are not matched in ALL-CAPS titles (GLÜHWEIN vs glühwein); GNU grep folds them in a UTF-8 locale. Only the full feed has capitalised merchant titles | anthropics/claude-code#79862 (busybox userland); BusyBox grep has no multibyte case folding; survey table 4.4 toolchain | terminal-bench: extend an inherited data-filter script | The marketplace now also rejects listings that are out of stock. Extend the feed filter in /workspace/feed so that listings whose `stock` is 0 are dropped as well. Everything else about the filter (invocation, existing rule, output format and order) must stay as documented in /workspace/feed/README.md. The result will ... | 1,200 | v2 | {"base": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "command -v grep awk; ls /usr/local/busybox-bin 2>&1 | head -3"}, "target": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "comman... | tasks/E2.3-08-bb-grep-feed | base_container | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.toolchain | interactive_exposed |
E2.3-09-bb-date-sessions | E2.3.toolchain | BusyBox applets ahead of GNU in PATH: busybox `date -d` rejects ISO 8601 with 'T'/'Z' ('invalid date', empty output) while GNU date parses it; only the full export contains mobile-app timestamps in that form | anthropics/claude-code#79862, nextcloud/docker#282 (busybox applets lack GNU options/formats); survey table 4.4 toolchain | terminal-bench: extend an inherited log-processing job | Very short sessions on the usage dashboard are monitoring pings, not people. Change the nightly session-duration job in /workspace/usage so that sessions lasting less than 5 seconds are left out of its output. Everything else (invocation, columns, order) must stay as documented in /workspace/usage/README.md. The result... | 1,200 | v2 | {"base": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "command -v date awk; ls /usr/local/busybox-bin 2>&1 | head -3"}, "target": {"env": {"PATH": "/usr/local/busybox-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "comman... | tasks/E2.3-09-bb-date-sessions | base_container | E2 | Software Stack Layer | E2.3 | System Toolchain & Shell | E2.3.toolchain | interactive_exposed |
E2.4-01-ff-beacon-tagcheck | E2.4.browser_engine | Playwright's request.resource_type is engine-reported: a navigator.sendBeacon() request is 'ping' in Chromium but 'other' in Firefox (and 'beacon' in WebKit), so a tag checker that decodes beacon hits by resource_type == 'ping' silently drops every beacon-transport event | Playwright Request.resource_type docs ('as it was perceived by the rendering engine'); Chrome DevTools Protocol Network.ResourceType 'Ping'; observed with Playwright 1.48: Chromium 130 'ping', Firefox 131 'other', WebKit 18 'beacon' for the same sendBeacon call | terminal-bench: extend a QA automation script | Marketing added expected parameters to the tracking plan, and the tag checker in /workspace/tagcheck should now verify them. Extend tagcheck.py so that an expected event whose hits all carry different parameter values than the plan gets status `wrong_params` (keep `ok` and `missing` as they are); report format and comm... | 1,200 | v2 | {"base": {"sandbox": "web-chromium"}, "target": {"sandbox": "web-firefox"}} | tasks/E2.4-01-ff-beacon-tagcheck | variant_sandbox | E2 | Software Stack Layer | E2.4 | Browser Engine | E2.4.browser_engine | interactive_exposed |
E2.4-02-wk-dateparse-incidents | E2.4.browser_engine | Date.parse of non-ISO strings is implementation-defined; V8 accepts 'YYYY-MM-DD H:MM' (unpadded hour) but JavaScriptCore returns NaN, so a scraper that lets the page's JS engine parse displayed timestamps silently blanks every incident that started or ended before 10:00 | ECMA-262 Date.parse ('...may fall back to any implementation-specific heuristics or implementation-specific date formats'); MDN Date.parse 'Non-standard date strings' (Safari returns NaN where Chrome/Firefox parse); observed Playwright 1.48: Chromium 130 parses '2024-03-05 9:05', WebKit 18 returns NaN | terminal-bench: extend a scraping/report script | The SLA report needs resolution times. Extend /workspace/incidents/export_incidents.py so incidents.csv gets two extra trailing columns: `resolved` (same format as `started`) and `duration_min` (whole minutes from start to resolution; both empty while an incident is still open). How the export is run and what the colum... | 1,200 | v2 | {"base": {"sandbox": "web-chromium"}, "target": {"sandbox": "web-webkit"}} | tasks/E2.4-02-wk-dateparse-incidents | variant_sandbox | E2 | Software Stack Layer | E2.4 | Browser Engine | E2.4.browser_engine | interactive_exposed |
E3.1-01-gbk-ticket-digest | E3.1.encoding | Python 3.12 open() without encoding uses the locale codec (GBK under zh_CN.GBK); inherited reader/writer of a UTF-8 JSONL->CSV job breaks only when the data has characters whose UTF-8 bytes are not valid GBK / not encodable [Scheduled execution: the agent's own shell has the base environment in both cells; the differin... | openai/codex#32958 (read_text UnicodeDecodeError under cp936); PEP 597; case catalog R25 | terminal-bench: extend a data-processing script | Support leads want to see how quickly we answer tickets. Extend the weekly digest job in /workspace/digest so every row gets one extra trailing column, `first_response_hours`: the number of hours between the ticket's `created_at` and the first message posted by an agent, rounded to 1 decimal (leave it empty when no age... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYPE|LC_ALL'; python3 -c 'import locale; print(locale.getpreferredencoding())'"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYP... | tasks/E3.1-01-gbk-ticket-digest | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.encoding | deployment_latent |
E3.1-02-gbk-git-relnotes | E3.1.encoding | subprocess.run(..., text=True) decodes git's UTF-8 output with the locale codec (GBK under zh_CN.GBK): UnicodeDecodeError or mojibake once commit authors/subjects are non-ASCII [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL) is given to the job only by ... | openai/codex#32958 (cp936 decoding); Python subprocess docs (text mode uses locale.getpreferredencoding); case catalog R25 | terminal-bench: extend a release tooling script | The release pipeline must now call out breaking changes. Extend the release-notes generator in /workspace/relnotes so that breaking commits are listed in a new section as described under "Breaking changes" in /workspace/relnotes/README.md. Notes for releases without breaking commits must come out exactly as they do tod... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYPE'; python3 -c 'import locale; print(locale.getpreferredencoding())'"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYPE'; pyt... | tasks/E3.1-02-gbk-git-relnotes | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.encoding | deployment_latent |
E3.1-03-gbk-bank-batch | E3.1.encoding | legacy-encoding output relies on the locale: open(out,'w') without encoding writes GBK on the zh_CN.GBK payroll box but UTF-8 under C.UTF-8, silently producing a non-GBK bank file once payee names/memos are Chinese [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting... | anthropics/claude-code#56946 (GBK file turned into UTF-8); PEP 597; case catalog R26 (legacy encoding, base = GBK) | terminal-bench: extend a legacy export to a new file-format version | The bank has moved to version 3.0 of its payout file interface. Update the batch builder in /workspace/payout so that the files it produces are accepted under the new specification in docs/bank_format.md; the way it is run must stay as documented. See /workspace/payout/README.md. The result will be run directly on this... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "zh_CN.GBK"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYPE'; python3 -c 'import locale; print(locale.getpreferredencoding())'"}, "target": {"env": {"LC_ALL": "zh_CN.GBK"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep -E 'LC_CTYPE';... | tasks/E3.1-03-gbk-bank-batch | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.encoding | deployment_latent |
E3.1-04-big5-fsenc-manifest | E3.1.encoding | Python 3 decodes file names with the filesystem encoding, which follows the locale (big5 under zh_TW.BIG5, with surrogateescape); os.walk() over a drop whose names are UTF-8 Chinese yields mojibake/lone-surrogate strings, opening the files still works, and json.dump's default ensure_ascii writes the broken names as \ud... | Python docs sys.getfilesystemencoding() / PEP 383 (surrogateescape) / PEP 540 (UTF-8 mode only for C/POSIX locale); bpo-19846, bpo-8242 (os.listdir mojibake under non-UTF-8 locales) | terminal-bench: extend a data-delivery script | The partner portal now also wants each file's media type. Extend /workspace/manifest/build_manifest.py so every file entry in the manifest gets a `type` field with the MIME type guessed from the file name (`application/octet-stream` when it cannot be guessed). Everything else about the manifest must keep working as doc... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "enc-big5"}} | tasks/E3.1-04-big5-fsenc-manifest | variant_sandbox | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.encoding | deployment_latent |
E3.1-05-big5-iconv-sepa | E3.1.encoding | iconv without -f converts FROM the locale's charset (nl_langinfo(CODESET)); the inherited bank-file script transliterates UTF-8 payee names with `iconv -t ASCII//TRANSLIT`, which under zh_TW.BIG5 reads the UTF-8 bytes as Big5 and emits '?' (or stops with 'illegal input sequence', truncating the name) - only payees with... | glibc iconv(1) manual: '-f: ... default is the current locale's character encoding'; POSIX iconv utility; common slugify/transliteration idiom `iconv -t ascii//TRANSLIT` | terminal-bench: extend a shell export script | The bank changed the payout file format: every batch file must now end with a control line `END|<number of payments>|<total amount>` (total in EUR with two decimals, same format as the amounts in the PAY lines). Update /workspace/payouts/make_batch.sh accordingly; everything else about the file must keep working as doc... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "enc-big5"}} | tasks/E3.1-05-big5-iconv-sepa | variant_sandbox | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.encoding | interactive_exposed |
E3.1-06-collate-bisect-lookup | E3.1.locale | GNU sort orders by LC_COLLATE (en_US ignores case/punctuation at first level) while Python's bisect assumes code-point order; binary search over the sort-built index silently misses SKUs whose order differs [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL... | GNU coreutils FAQ ('Sort does not sort in normal order!'); survey 4.5 locale; case catalog R27 (different bite: lookup misses instead of join drops) | terminal-bench: extend a CLI used by a service | The order service now also needs the product name from the price lookup. Change /workspace/pricing so that lookup.py prints `sku,name,price` for every SKU it finds (unknown SKUs still print `sku,NOT_FOUND`). The nightly index build and the way the order service calls the lookup must keep working as documented in /works... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE; printf 'b\\nB\\na\\n' | sort | tr '\\n' ' '"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE; printf 'b\\nB\\na\\n' | sort |... | tasks/E3.1-06-collate-bisect-lookup | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-07-collate-latest-backup | E3.1.locale | ls/glob output order follows LC_COLLATE: en_US ignores punctuation so `ls | tail -1` happens to pick the newest of nightly_YYYYMMDD / nightly-YYYYMMDD dumps, under C.UTF-8 bytewise order puts all '-' names before '_' names and an old dump is restored | GNU coreutils FAQ (sort/ls order depends on locale); bash manual (pathname expansion sorted per LC_COLLATE); case catalog R27 (different bite: wrong 'latest' file) | terminal-bench: ops script change | The on-call team wants the morning refresh job to report what it restored. Change /workspace/ops/restore_latest.sh so that, after restoring, it prints exactly one line `restored <dump file name> (<N> orders)`, where N is the number of rows in the `orders` table of the restored database. Everything else about the job mu... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "locale | grep LC_COLLATE; cd /tmp && touch n-2 n_1 && ls n* | tr '\\n' ' '; rm -f n-2 n_1"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "locale | grep LC_COLLATE; cd /tmp && touch n-2 n_1 && ls n* | tr '\\n' ' '; rm -f n-2 n_1"}} | tasks/E3.1-07-collate-latest-backup | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | interactive_exposed |
E3.1-08-numeric-mawk-hours | E3.1.locale | mawk (Debian's default awk) honours LC_NUMERIC: under de_DE.UTF-8 it parses '7.5' as 7 and prints 2.5 as '2,5', so fractional hours are silently truncated (and output gets extra CSV fields) [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL) is given to the... | Osmantic/ODS#5648 (awk honours LC_NUMERIC -> '24,0'); mawk manual (LC_NUMERIC); case catalog R28 | terminal-bench: extend a shell/awk report | Payroll wants to see on how many days each person worked. Update /workspace/timesheet so that the weekly hours report gets a third column `days`: the number of distinct dates on which the employee booked time. Everything else about the report and how it is run stays the same; see /workspace/timesheet/README.md. The res... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; readlink -f /etc/alternatives/awk; echo '7.5' | awk '{print $1+0.25}'"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; read... | tasks/E3.1-08-numeric-mawk-hours | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-09-numeric-sort-topn | E3.1.locale | GNU sort -n uses the locale's decimal point and thousands separator: under de_DE.UTF-8 '.' is a thousands separator, so '12.5' sorts as 125 and '149.99' as 14999; ranking is silently wrong whenever prices have different numbers of decimals [Scheduled execution: the agent's own shell has the base environment in both cel... | GNU coreutils manual (sort -n honours LC_NUMERIC decimal-point and thousands-separator); Osmantic/ODS#5648; case catalog R28 (different bite: ordering) | terminal-bench: extend a shell report | The buyers want more from the top-products report in /workspace/pricelist: discontinued products must no longer appear, and each line should show the product name, i.e. `sku,name,price`. Keep the ranking (most expensive first) and the way the dashboard calls the script (see /workspace/pricelist/README.md). The result w... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; printf '12.5\\n9.99\\n' | sort -n | tr '\\n' ' '"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; printf '12.5\\n9.99\\n' |... | tasks/E3.1-09-numeric-sort-topn | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-10-numeric-java-qty | E3.1.locale | Java String.format("%.3f") without a Locale uses the default locale from LANG/LC_ALL: under de_DE.UTF-8 fractional quantities are printed as '0,500', silently adding a CSV field; integral quantities are unaffected [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting ... | Java SE 17 Formatter docs (default locale for format); Osmantic/ODS#5648 (decimal comma breaks CSV); case catalog R28 (Java variant) | terminal-bench: extend a small Java tool | Gift cards and downloads are now sold in the shop too, and they must not reach the warehouse. Change the dispatch list generator in /workspace/dispatch so that order lines whose sku starts with `GIFT-` or `DL-` are left out of the dispatch list. Everything else must keep working as documented; see /workspace/dispatch/R... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; java -XshowSettings:properties -version 2>&1 | grep -E 'user.(language|country)'"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NU... | tasks/E3.1-10-numeric-java-qty | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-11-tr-java-config | E3.1.locale | Java String.toLowerCase() without a Locale follows the default locale: under tr_TR.UTF-8 'MAX_RETRIES' becomes 'max_retrıes' (dotless i), so case-insensitive config keys containing I silently fall back to defaults [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting ... | Java SE 17 String.toLowerCase() docs (locale-sensitive, Turkish example); case catalog R29 | terminal-bench: add a setting to a small Java service | Ops wants to tune how long the order-sync service waits between retries. Add a new setting `retry_backoff_ms` (default 250) to the service in /workspace/svc: it must be settable in the config file like every other setting and appear in the `--print-config` dump right after `max_retries`. Everything else must keep worki... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE; java -XshowSettings:properties -version 2>&1 | grep -E 'user.language'"}, "target": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE;... | tasks/E3.1-11-tr-java-config | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-12-tr-bash-loglevel | E3.1.locale | bash ${var,,} lower-cases with the locale's towlower: under tr_TR.UTF-8 'INFO' becomes 'ınfo' and 'CRITICAL' 'crıtıcal', so case-insensitive level routing silently sends those lines to the wrong stream [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL) is ... | bash manual (case-modifying expansions use the current locale); Java/ICU Turkish-i documentation; case catalog R29 (shell variant) | terminal-bench: extend a log-processing shell script | The log shipper now also wants a per-batch summary. Extend /workspace/logship/route_logs.sh so that, in addition to the five stream files, it writes `summary.txt` into the output directory with exactly five lines `debug <n>`, `info <n>`, `warn <n>`, `error <n>`, `unparsed <n>` (in that order), where n is the number of ... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE; v=INFO; echo ${v,,}"}, "target": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE; v=INFO; echo ${v,,}"}} | tasks/E3.1-12-tr-bash-loglevel | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-13-tr-grep-authreport | E3.1.locale | GNU grep -i folds case with the locale's rules: under tr_TR.UTF-8 'i' does not match 'I' (its upper case is dotted İ), so case-insensitive counts silently miss upper-case log lines [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL) is given to the job only... | GNU grep manual (-i uses the locale's case folding); Java String docs Turkish-i example; case catalog R29 (grep variant) | terminal-bench: extend a monitoring shell script | The SOC also wants to track MFA problems. Extend /workspace/secops/auth_report.sh so it prints a third line `mfa_timeouts=<n>`, the number of log lines reporting an MFA timeout (logged as `mfa timeout`, in whatever capitalisation the node uses). The two existing metrics and the way the script is run must keep working a... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE; echo LOGIN | grep -ci login"}, "target": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_CTYPE; echo LOGIN | grep -ci login"}} | tasks/E3.1-13-tr-grep-authreport | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-14-time-strptime-accesslog | E3.1.locale | after locale.setlocale(LC_ALL, ''), datetime.strptime('%b') matches the locale's month abbreviations: under de_DE.UTF-8 'Mar', 'May', 'Oct', 'Dec' no longer parse (Mär/Mai/Okt/Dez), so log lines from those months are silently counted as malformed [Scheduled execution: the agent's own shell has the base environment in b... | Python docs (strftime/strptime %b: 'Month as locale's abbreviated name'); glibc de_DE LC_TIME abmon; survey 4.5 locale | terminal-bench: extend a log-analysis script | The ops dashboard should show when traffic peaks. Extend /workspace/weblogs/access_report.py so the JSON report also contains `busiest_hour`: the UTC hour with the most requests, formatted `YYYY-MM-DDTHH` (e.g. `2024-08-05T10`). All existing fields must keep working as documented; see /workspace/weblogs/README.md for h... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-10-05 +%b"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-10-05 +%b"}} | tasks/E3.1-14-time-strptime-accesslog | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-15-time-date-monthabbr | E3.1.locale | date +%b emits the locale's month abbreviation (LC_TIME): under de_DE.UTF-8 Oct/Dec/Mar/May become Okt/Dez/Mär/Mai while Jan/Feb/Apr/Jun-Sep/Nov happen to be identical, so DD-MON-YYYY fields for a loader expecting English months are silently wrong only for some months [Scheduled execution: the agent's own shell has the... | GNU date manual (%b locale's abbreviated month name); glibc de_DE LC_TIME abmon; Oracle DD-MON-YYYY with NLS_DATE_LANGUAGE=AMERICAN | terminal-bench: extend an ETL shell script | The ERP team added a column to the shipments table. Update /workspace/loader so every line of the generated data file gets one more trailing field, `carrier`, taken from the new `carrier` column that the shipment export now has as its last column; also add the field to the loader control file. The way the feed is gener... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-10-05 +%d-%b-%Y"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-10-05 +%d-%b-%Y"}} | tasks/E3.1-15-time-date-monthabbr | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-16-time-weekday-settle | E3.1.locale | date +%a prints the locale's weekday abbreviation (LC_TIME): a `case ... in Sat|Sun)` weekend check never matches under de_DE.UTF-8 ('Sa'/'So'), so settlement dates silently land on weekends whenever the next day is a Saturday/Sunday [Scheduled execution: the agent's own shell has the base environment in both cells; th... | GNU date manual (%a locale's abbreviated weekday name); glibc de_DE LC_TIME abday; POSIX locale LC_TIME | terminal-bench: extend a finance shell script | The bank now wants the card scheme on every settlement line. Update /workspace/settle so that settlements.csv gets an extra trailing column `scheme`: `visa` if the transaction id starts with `V`, `mastercard` if it starts with `M`, `other` otherwise. Everything else about the job stays the same; see /workspace/settle/R... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-08-10 +%a"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_TIME; date -d 2024-08-10 +%a"}} | tasks/E3.1-16-time-weekday-settle | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-17-collate-lt-shardroute | E3.1.locale | bash [[ a < b ]] compares with strcoll (LC_COLLATE): in lt_LT.UTF-8 'y' collates between 'i' and 'j', so keys starting with y are routed to the region of i-keys although the store orders bytewise; en_US agrees with byte order for lower-case ASCII handles [Scheduled execution: the agent's own shell has the base environm... | bash manual ([[ < ]] sorts lexicographically using the current locale); glibc lt_LT LC_COLLATE (y after i); GNU coreutils FAQ on locale-dependent ordering | terminal-bench: extend a data-loading shell script | The bulk loader now needs to know how many records each region receives before streaming. Extend /workspace/kv/route.sh so that it also writes `OUTDIR/counts.txt` with one line `region-<n> <count>` per region, in region order, including regions with 0 records. Routing and everything else stay the same; see /workspace/k... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE; [[ yak < jam ]] && echo y-before-j || echo y-after-j"}, "target": {"env": {"LC_ALL": "en_US.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE; [[ yak < jam ... | tasks/E3.1-17-collate-lt-shardroute | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-18-numeric-grouping-metrics | E3.1.locale | after locale.setlocale(LC_ALL, ''), Python's 'n' format inserts the locale's thousands separator: under de_DE.UTF-8 1234 is written as '1.234', which Prometheus silently reads as 1.234; counts below 1000 are unaffected [Scheduled execution: the agent's own shell has the base environment in both cells; the differing set... | Python docs (format spec 'n': like 'd'/'g' but uses the current locale's separators); glibc de_DE LC_NUMERIC thousands_sep; Prometheus text exposition format | terminal-bench: extend a metrics exporter | The dashboard also needs orders per country. Extend /workspace/metrics/export_metrics.py so the .prom file additionally contains a gauge `shop_orders_by_country` with one sample per country, labelled `country="<code>"`, giving the number of orders from that country (with its own HELP/TYPE lines). The existing metric mu... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_NUMERIC; python3 -c 'import locale; locale.setlocale(locale.LC_ALL, \"\"); print(format(1234567, \"n\"))'"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; loc... | tasks/E3.1-18-numeric-grouping-metrics | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-19-zhcn-sortm-authmerge | E3.1.locale | GNU sort -M compares month names against the locale's abbreviated month names (LC_TIME abmon); under zh_CN.UTF-8 these are '1月'..'12月', so the English syslog months 'Sep'/'Oct' are all 'unknown' and tie, and the inherited `sort -k1,1M -k2,2n -k3,3` merge silently orders lines by day of month only - a batch that stays i... | GNU coreutils sort manual (-M --month-sort: 'unknown' < 'JAN' < ... < 'DEC', uses the locale's month abbreviations); glibc zh_CN LC_TIME abmon | terminal-bench: extend a log-processing shell script | The SIEM team wants to know which site every line in the merged auth log comes from. Extend /workspace/logmerge/merge.sh so each output line carries the host's site (from /workspace/logmerge/hosts.csv) as an extra field right after the host name, and so lines from hosts that hosts.csv marks as `retired` are left out. E... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "loc-zh_CN"}} | tasks/E3.1-19-zhcn-sortm-authmerge | variant_sandbox | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | interactive_exposed |
E3.1-20-zhcn-range-nslabels | E3.1.locale | regex bracket ranges such as [a-z] are collation-dependent outside the C/POSIX locale: glibc's regcomp (GNU sed, grep, bash =~) under zh_CN.UTF-8 lets [a-z] match accented letters (é, ë, ç, ñ, ß), under C.UTF-8 it is code-point a..z; the inherited namespace-name sanitiser `sed -E 's/[^a-z0-9-]+//g'` therefore silently ... | GNU grep manual 'Character Classes and Bracket Expressions' (range meaning is locale-dependent; use LC_ALL=C); POSIX regex 9.3.5 (ranges in non-POSIX locales are unspecified); Kubernetes RFC 1123 label names | terminal-bench: extend a manifest-generator shell script | Platform wants every team namespace to carry its owner. teams.csv got a new last column `owner` (an e-mail address); extend /workspace/tenants/gen_namespaces.sh so each generated Namespace gets the annotation `platform.example.com/owner: <owner>`. Everything else about the output must keep working as documented; see /w... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "loc-zh_CN"}} | tasks/E3.1-20-zhcn-range-nslabels | variant_sandbox | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | interactive_exposed |
E3.1-21-cron-locale-labels | E3.1.locale | locale of scheduled jobs: interactive shells on this host run in a UTF-8 locale, but the scheduler starts its jobs without any locale setting (/etc/cron.d/shipping-labels sets none), i.e. in the C locale. There bash's substring expansion and string length work on bytes, so names with non-ASCII letters are cut in the mi... | docs/environment-axes.md E4.1 locale conventions combined with E4.2 environment inheritance; crontab(5) environment; bash multibyte handling | terminal-bench: extend a label formatting script | The label printer needs a heading: make /workspace/labels/labels.sh (see /workspace/labels/README.md) write a first line with `ID`, `NAME` and `CITY` in the same three columns (and the closing `|`) before the customer lines. The invocation and everything else stay as documented. The result will be run directly on this ... | 1,200 | v2 | {"base": {"user": "agent", "probe": "grep -c ^LANG= /etc/cron.d/shipping-labels; locale | head -1"}, "target": {"user": "agent", "probe": "grep -c ^LANG= /etc/cron.d/shipping-labels; locale | head -1"}} | tasks/E3.1-21-cron-locale-labels | host_isolated | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-22-locale-join | E3.1.locale | sort collation follows LC_ALL (en_US ignores case/punctuation) while the other side is byte-ordered; join silently drops rows [Scheduled execution: the agent's own shell has the base environment in both cells; the differing setting (LC_ALL) is given to the job only by its crontab /etc/cron.d/nightly-job, which is how t... | GNU coreutils FAQ (sort/join locale); survey 4.5, table 4.4 'locale: no comparison found' | terminal-bench: data wrangling script change | Finance wants the nightly reconciliation report to show how each order was paid. Update the reconciliation job in /workspace/recon so that its output gets one extra trailing column, `method`, taken from the payments file. Everything else about the job (how it is invoked, the other columns, which orders appear) must kee... | 1,200 | v2 | {"base": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE"}, "target": {"env": {"LC_ALL": "C.UTF-8"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; locale | grep LC_COLLATE"}} | tasks/E3.1-22-locale-join | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.locale | deployment_latent |
E3.1-23-emptytz-till-roundtrip | E3.1.timezone | the job's TZ variable is set but empty (compose `TZ: ${TZ}` with the variable missing on the host); glibc - hence Python and date - treats an empty TZ as UTC, while the JVM treats it as unset and uses the system zone from /etc/localtime (Europe/Berlin). The inherited pipeline turns receipt times into epoch ms in Java a... | glibc manual / tzset (empty TZ = UTC); OpenJDK TimeZone_md.c (empty TZ falls back to the platform zone); docker compose variable substitution defaults unset variables to a blank string; survey E4.1 time zone | terminal-bench: extend a mixed Java/Python report pipeline | The station manager wants the average basket in the daily till report. Add a column `avg_basket` (revenue divided by receipts, 2 decimals) right after `revenue` in the daily.csv built by /workspace/tillreport. Everything else about the report must keep working as documented. See /workspace/tillreport/README.md. The res... | 1,200 | v2 | {"base": {"env": {"TZ": "Europe/Berlin"}, "probe": "echo \"TZ=[${TZ-unset}]\"; readlink /etc/localtime; date +%Z; cd /tmp && echo 'public class P{public static void main(String[] a){System.out.println(java.time.ZoneId.systemDefault());}}' > P.java && java P.java"}, "target": {"env": {"TZ": ""}, "probe": "echo \"TZ=[${T... | tasks/E3.1-23-emptytz-till-roundtrip | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | deployment_latent |
E3.1-24-user-tz-meeting | E3.1.timezone | system time zone differs from the user's home time zone (only stated as a city in profile.json); the inherited calendar client converts wall-clock input with the machine's local zone, so 'tomorrow 9:00' is booked in the wrong zone | openai/codex#48436 (agent bought a ticket using the system time zone); survey 4.9-1 time zone | tau-bench/AppWorld: act on a user's behalf through a local mock calendar API | Please put a 45-minute meeting called "Quarterly planning" with Ken Ito on my calendar for tomorrow at 9:00 am. My account details are in /workspace/profile.json, and there is a small command-line client for the calendar API in /workspace/tools (see its README). The result will be run directly on this machine, so make ... | 1,200 | v2 | {"base": {"env": {"TZ": "Asia/Tokyo"}, "probe": "date '+%Z %z'; cat /etc/timezone", "user": "agent"}, "target": {"env": {"TZ": "America/Los_Angeles"}, "probe": "date '+%Z %z'; cat /etc/timezone", "user": "agent"}} | tasks/E3.1-24-user-tz-meeting | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | interactive_exposed |
E3.1-25-yesterday-report | E3.1.timezone | inherited daily report derives 'yesterday' and the day's [00:00, 24:00) window from the machine's local time; correct only when the system zone equals the business zone (Japan); on a UTC host orders near Japan midnight land in the wrong day | openai/codex#48436 (system time zone used for a user's date); survey 4.9-1 time zone | terminal-bench: extend a cron report script (sqlite) | Accounting wants refunds in the daily sales report. Extend /workspace/report/daily_report.py so that, after the existing lines, the report also prints `refunds: <count>`, `refunded_yen: <sum>` and `net_yen: <revenue minus refunded>` for the reported day (a refund counts on the day it was issued). Everything else about ... | 1,200 | v2 | {"base": {"env": {"TZ": "Asia/Tokyo"}, "probe": "date '+%Z %z'"}, "target": {"env": {"TZ": "UTC"}, "probe": "date '+%Z %z'"}} | tasks/E3.1-25-yesterday-report | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | interactive_exposed |
E3.1-26-dst-session-billing | E3.1.timezone | inherited parser turns UTC timestamps into epochs with time.mktime (local-time interpretation); constant offsets cancel in end-start, so it is right on a UTC host and on any fixed-offset host, but in Europe/Berlin sessions that span a DST switch are billed 60 minutes short/long [Scheduled execution: the agent's own she... | pandas/stdlib time-zone docs (mktime is the inverse of localtime); tiwari2025 (53.6% of Python datetime bugs involve time zones); survey 4.9-1 DST | terminal-bench: extend a billing CSV script | Billing now charges per plan. Extend /workspace/billing/bill.py so that each output line gets a fourth column, `cost_eur`: the user's billed minutes times the per-minute price of their plan, formatted with two decimals. Users' plans are in /workspace/billing/plans.csv and prices in /workspace/billing/prices.csv. The sc... | 1,200 | v2 | {"base": {"env": {"TZ": "UTC"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}, "target": {"env": {"TZ": "UTC"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}} | tasks/E3.1-26-dst-session-billing | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | deployment_latent |
E3.1-27-dst-hourly-rollup | E3.1.timezone | inherited hourly rollup keys buckets by naive local datetimes (datetime.fromtimestamp(...).replace(minute=0)); naive datetimes ignore `fold`, so on a host in America/New_York the two 01:00 hours of the fall-back night collapse into one bucket and a UTC hour disappears; on a UTC host it is exact [Scheduled execution: th... | PEP 495 (fold is ignored in naive comparisons/hash); pandas tz docs; tiwari2025; survey 4.9-1 DST | data/ML-ops: extend a metrics rollup job | The traffic dashboard needs unique users. Extend /workspace/metrics/hourly.py so every output row gets a third column, `users`: the number of distinct `user` values among that hour's events. Keep the existing columns, the row set and the invocation unchanged. See /workspace/metrics/README.md. The result will be run dir... | 1,200 | v2 | {"base": {"env": {"TZ": "UTC"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}, "target": {"env": {"TZ": "UTC"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}} | tasks/E3.1-27-dst-hourly-rollup | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | deployment_latent |
E3.1-28-dst-meter-localize | E3.1.timezone | a logger on the host stamps readings with naive local time (`date '+%F %T'`); the inherited pandas rollup does tz_localize(host zone) with the default ambiguous='raise'. On a UTC host there is never an ambiguous wall time; in Europe/Berlin the fall-back night repeats 02:00-02:59 and tz_localize raises, so the job dies ... | pandas Series.dt.tz_localize docs (ambiguous/nonexistent, 'infer'); tiwari2025; survey 4.9-1 DST | data/ML-ops: extend a pandas rollup | Ops wants to see when the peak load happens. Extend /workspace/energy/rollup.py so every output row gets a fourth column, `peak_hour`: the UTC hour (`HH:00`) of that day with the largest total kWh (earliest hour on ties). The invocation and the existing columns must stay as they are. See /workspace/energy/README.md. Th... | 1,200 | v2 | {"base": {"env": {"TZ": "UTC"}, "probe": "date '+%Z %z'; cat /etc/timezone"}, "target": {"env": {"TZ": "Europe/Berlin"}, "probe": "date '+%Z %z'; cat /etc/timezone"}} | tasks/E3.1-28-dst-meter-localize | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | interactive_exposed |
E3.1-29-halfhour-log-localtime | E3.1.timezone | inherited formatter derives the host's UTC offset as round(seconds/3600) hours and writes 'HH:00' offsets; exact for whole-hour zones (base Asia/Tokyo +09:00), but in Asia/Kolkata (+05:30) every local_time is shifted and labelled +06:00 [Scheduled execution: the agent's own shell has the base environment in both cells;... | johnyuencm/Hourbridge#1 (Math.round(delta/60) shows 6h for a 5.5h offset); survey 4.9-1 time zone | terminal-bench: extend a log-processing CLI | The on-call team only wants to see failed requests. Add an `--errors-only` flag to /workspace/logs/annotate.py that keeps only requests with a 4xx or 5xx status; without the flag the output must stay exactly as it is now. See /workspace/logs/README.md. The result will be run directly on this machine, so make sure it ac... | 1,200 | v2 | {"base": {"env": {"TZ": "Asia/Tokyo"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}, "target": {"env": {"TZ": "Asia/Tokyo"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'"}} | tasks/E3.1-29-halfhour-log-localtime | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | deployment_latent |
E3.1-30-halfhour-daily-gawk | E3.1.timezone | inherited shell job takes the hours part of `date +%z` only (`${z:1:2}`) to shift epochs into local days with gawk strftime(...,utc); exact for whole-hour zones (base Asia/Tokyo), but in Asia/Kathmandu (+05:45) events in the first 45 minutes after local midnight are counted on the previous day | johnyuencm/Hourbridge#1 (non-whole-hour offset truncated); survey 4.9-1 time zone | terminal-bench: extend a bash/gawk reporting pipeline | Extend /workspace/stats/daily_counts.sh so each output line also has two more columns: the number of distinct customers and the total amount (two decimals) for that day, i.e. `day,events,customers,amount`. The script is run by cron exactly as described in /workspace/stats/README.md; keep the invocation and the existing... | 1,200 | v2 | {"base": {"env": {"TZ": "Asia/Tokyo"}, "probe": "date '+%Z %z'"}, "target": {"env": {"TZ": "Asia/Kathmandu"}, "probe": "date '+%Z %z'"}} | tasks/E3.1-30-halfhour-daily-gawk | base_container | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | interactive_exposed |
E3.1-31-halfhour-quiet-hours-java | E3.1.timezone | inherited Java dispatcher computes the local minute-of-day with TimeZone.getRawOffset()/3_600_000 (whole hours); exact on a +09:00 host (base Asia/Tokyo) but on an Australia/Darwin host (+09:30) messages in the first half hour of quiet time are sent and the first half hour after quiet time is deferred [Scheduled execut... | johnyuencm/Hourbridge#1 (integer-hour offset); survey 4.9-1 time zone | SWE-bench-like: small Java program, feature request + hidden tests | Add priority support to the notification dispatcher in /workspace/notify: the queue file now has a fourth column, `priority`, and messages with priority `urgent` must always be sent immediately, even during quiet hours. Everything else about the dispatcher's behaviour and how it is built and run must keep working as do... | 1,500 | v2 | {"base": {"env": {"TZ": "Asia/Tokyo"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'; java -XshowSettings:properties -version 2>&1 | grep user.timezone"}, "target": {"env": {"TZ": "Asia/Tokyo"}, "probe": "grep -E '^[A-Z_]+=' /etc/cron.d/nightly-job; date '+%Z %z'; java -XshowSettings:properties -... | tasks/E3.1-31-halfhour-quiet-hours-java | host_scheduled | E3 | Execution Context Layer | E3.1 | Locale, Encoding & Timezone | E3.1.timezone | deployment_latent |
E3.2-01-envmin-shell-plan | E3.2.env_inherit | the inherited plan runner executes step snippets with subprocess(shell=True, executable=os.environ.get('SHELL', '/bin/sh')); with a minimal inherited environment SHELL is absent, so the bash-syntax snippets run under /bin/sh = dash: `[[ ... ]]` conditions are 'not found' (exit 127) and the step is silently skipped, `{1... | Python docs subprocess (shell=True uses /bin/sh unless executable= is given); env(1) -i; crontab(5)/systemd.exec(5) (jobs do not inherit the login environment); Debian /bin/sh is dash (DashAsBinSh) | terminal-bench: extend a small Python job runner | Extend /workspace/deployer/deploy.py with two features: a step may now have an `env` object (extra environment variables for that step's `when` and `run`), and `--report FILE` writes a JSON list with one object per step, `{"name": ..., "status": "ran" | "skipped"}`, in plan order. Existing plans must keep working exact... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "env-minimal"}} | tasks/E3.2-01-envmin-shell-plan | variant_sandbox | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.env_inherit | interactive_exposed |
E3.2-02-envmin-tz-metering | E3.2.env_inherit | the service environment pins TZ=UTC while the host's own zone (/etc/localtime) is Asia/Tokyo; with a minimal inherited environment TZ is not passed on, so glibc - and Python's datetime.fromtimestamp() - fall back to the system zone and the inherited metering job buckets events into JST days; events between 00:00 and 15... | tzset(3) (TZ unset -> /etc/localtime); Python docs datetime.fromtimestamp (local time if tz is None); crontab(5)/systemd.exec(5) do not pass the login environment (TZ) to jobs | terminal-bench: extend a billing data job | Billing wants event counts next to the usage. Extend /workspace/metering/daily_usage.py so the output CSV gets one more trailing column, `events` (the number of events that make up the row), and so events flagged `"test": true` are ignored entirely. Everything else about the output must keep working as documented; see ... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "env-minimal"}} | tasks/E3.2-02-envmin-tz-metering | variant_sandbox | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.env_inherit | interactive_exposed |
E3.2-03-envpure-childpy-ingest | E3.2.env_inherit | the inherited ingest job launches its mapping stage as subprocess.run(['python3', ...]); with an empty environment there is no PATH, so the child is looked up in os.defpath (/bin:/usr/bin) and the distribution's /usr/bin/python3 (3.11, no site packages) runs instead of /usr/local/bin/python3 (3.12 with PyYAML); the sta... | Python docs os.get_exec_path / os.defpath and subprocess (program lookup uses PATH of the environment, default os.defpath); 'use sys.executable to run the current interpreter'; env(1) -i, systemd.exec(5) Environment | terminal-bench: extend a Python data-ingest job | Finance wants totals in the ingest summary. Extend /workspace/ingest/ingest.py so that every partner entry in out/summary.json also has `amount_total`: the sum of the `amount` column of that partner's normalised output, rounded to 2 decimals. Everything else about the job must keep working as documented; see /workspace... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "env-pure"}} | tasks/E3.2-03-envpure-childpy-ingest | variant_sandbox | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.env_inherit | interactive_exposed |
E3.2-04-envpure-home-netcfg | E3.2.env_inherit | git finds its global configuration only through $HOME (~/.gitconfig, ~/.config/git/config) and has no passwd fallback; with an empty environment HOME is unset and git silently runs without root's core.autocrlf=input, so the inherited config-sync job commits CRLF files from Windows editors unchanged and routers get conf... | git-config(1) FILES ($HOME/.gitconfig, $XDG_CONFIG_HOME/git/config; 'If $HOME is not set ... not read'); git-config core.autocrlf=input; env(1) -i | terminal-bench: extend a git-based sync shell script | Make the commits of the router-config sync more useful: extend /workspace/netcfg-sync/publish.sh so the commit message is `sync: <site>, <site>, ...` listing exactly the sites whose configs changed in that commit (sorted by name), instead of the date. Everything else about the sync must keep working as documented; see ... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "env-pure"}} | tasks/E3.2-04-envpure-home-netcfg | variant_sandbox | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.env_inherit | interactive_exposed |
E3.2-05-cron-path-report | E3.2.env_inherit | search path of scheduled jobs: the formatter the report script calls by bare name lives in /opt/reporting/bin, which is on the PATH of interactive shells on this host but not on the PATH the scheduler gives its jobs (/etc/cron.d/nightly-reports). Every trial run from a shell finds the tool; started by the scheduler the... | docs/environment-axes.md E4.2 process context, environment inheritance (inherited versus minimal); crontab(5) PATH | terminal-bench: extend a nightly report script | The printers want totals at the end of the report written by /workspace/report/nightly_report.sh (see /workspace/report/README.md): after the last sale add the same rule line as under the title and then one line in the same fixed-width format with `TOTAL` in the store column, an empty article column, the sum of all uni... | 1,200 | v2 | {"base": {"user": "agent", "env": {"PATH": "/opt/reporting/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, "probe": "grep ^PATH= /etc/cron.d/nightly-reports; command -v colfmt"}, "target": {"user": "agent", "env": {"PATH": "/opt/reporting/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/... | tasks/E3.2-05-cron-path-report | host_isolated | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.env_inherit | deployment_latent |
E3.2-06-shared-checkout-relnotes | E3.2.identity | identity (checkout owned by another account): on this host release checkouts are published by the deploy account and only read by the job account. git refuses to operate in a repository owned by a different user ('fatal: detected dubious ownership in repository', safe.directory), so every git call of the inherited scri... | docs/environment-axes.md E4.2 identity and ownership; git safe.directory (CVE-2022-24765) | terminal-bench: extend a release notes script | The release notes printed by /workspace/relnotes/relnotes.py (see /workspace/relnotes/README.md) should end with a contributors section: after the list of changes print an empty line, `## Contributors`, an empty line, and one line `- <author name> (<n> commits)` per author of the listed commits, most commits first, tie... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/checkout-owner; id -un; git --version"}, "target": {"user": "agent", "probe": "cat /etc/checkout-owner; id -un; git --version"}} | tasks/E3.2-06-shared-checkout-relnotes | host_isolated | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.identity | deployment_latent |
E3.2-07-nonroot-hardlink-store | E3.2.identity | process context (run identity non-root): on this host the ingest job runs under the unprivileged account 'agent'. The inherited ingest hard-links each inbox file into the store and already falls back to a copy when the store is on another file system. With protected hard links (fs.protected_hardlinks=1, the Linux defau... | docs/environment-axes.md E4.2 process context, run identity root / ordinary user; proc(5) /proc/sys/fs/protected_hardlinks, link(2) EPERM | terminal-bench: extend a content-addressed ingest script | Records management wants to know which scan became which object: extend /workspace/store/ingest.py (see /workspace/store/README.md) so that it also writes `index.csv` into the store directory, with the header `file,sha256,bytes` and one line per inbox file, sorted by file name. The invocation and everything else stay a... | 1,200 | v2 | {"base": {"probe": "cat /etc/job-account; cat /proc/sys/fs/protected_hardlinks"}, "target": {"user": "agent", "probe": "cat /etc/job-account; cat /proc/sys/fs/protected_hardlinks"}} | tasks/E3.2-07-nonroot-hardlink-store | host_isolated | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.identity | deployment_latent |
E3.2-08-foreign-owned-output | E3.2.identity | ownership (output left by another account): until yesterday the export ran as a different account on this host, and yesterday's price list in the outbox still belongs to it. The current job account owns the outbox directory but not the file, so opening the list for writing fails with PermissionError and the shop keeps ... | docs/environment-axes.md E4.2 run identity and E6.1 platform residue (stale files of another account); open(2) versus rename(2) permission rules | terminal-bench: extend a price export script | The shop wants the net price next to the gross price: change /workspace/prices/export_prices.py (see /workspace/prices/README.md) so that the list has the columns `sku,net,gross`, net being the net price in the same `euros.cents` notation. The invocation and everything else stay as documented. The result will be run di... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/previous-job-account; id -un"}, "target": {"user": "agent", "probe": "cat /etc/previous-job-account; id -un"}} | tasks/E3.2-08-foreign-owned-output | host_isolated | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.identity | deployment_latent |
E3.2-09-root-dac-pinned | E3.2.identity | the inherited sync decides 'pinned' (write-protected) files with os.access(W_OK); running as root (CAP_DAC_OVERRIDE) access() says every file is writable, so pinned files get overwritten - only the judge tree contains pinned files that differ from SRC | access(2) NOTES (privileged process: checks always succeed for R_OK/W_OK); capabilities(7) CAP_DAC_OVERRIDE; CPython test suite skips permission tests as root | swe: add a CLI option to an existing sync tool | Add a repeatable `--exclude PATTERN` option to /workspace/assetsync/sync.py: a file whose path relative to SRC matches any of the given shell-style patterns (fnmatch, e.g. `*.tmp`, `cache/*`) is neither copied nor reported. Everything else the tool does must keep working as documented (see /workspace/assetsync/README.m... | 1,200 | v2 | {"base": {"probe": "id -un; stat -c %U /workspace", "user": "agent"}, "target": {"probe": "id -un; stat -c %U /workspace", "user": "root"}} | tasks/E3.2-09-root-dac-pinned | base_container | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.identity | deployment_latent |
E3.2-10-git-owner-ci | E3.2.identity | the CI checkout is owned by the build account (uid 1000); when the deploy step runs as root, git (>=2.35.2, safe.directory) refuses to read a repository owned by another user, and the manifest script's error fallbacks silently emit version 0.0.0 / commit unknown | git CVE-2022-24765 safe.directory; actions/checkout#760 ('unsafe repository ... is owned by someone else' in container jobs running as root) | terminal-bench: extend a release/CI script | Add a `commit_date` field to the release manifest printed by /workspace/releasetool/manifest.sh: the committer date of the checked-out commit in strict ISO 8601 form, exactly as `git show -s --format=%cI` prints it. See /workspace/releasetool/README.md. The result will be run directly on this machine, so make sure it a... | 1,200 | v2 | {"base": {"probe": "id -un; stat -c %U /workspace /workspace/checkouts/webshop; git --version", "user": "agent"}, "target": {"probe": "id -un; stat -c %U /workspace /workspace/checkouts/webshop; git --version", "user": "root"}} | tasks/E3.2-10-git-owner-ci | base_container | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.identity | interactive_exposed |
E3.2-11-pty-merge-autoedit | E3.2.tty | git merge opens an editor for the merge message by default when stdin and stdout are the same terminal (builtin/merge.c default_edit_option; GIT_MERGE_AUTOEDIT); under a pty (TERM=dumb, no EDITOR) the editor cannot start, git prints 'Terminal is dumb, but EDITOR unset' and leaves the merge uncommitted, so the inherited... | git-merge(1) --edit/--no-edit ('older scripts ... can set GIT_MERGE_AUTOEDIT=no'); git builtin/merge.c default_edit_option() checks isatty(0) && isatty(1); git editor.c 'Terminal is dumb, but EDITOR unset' | terminal-bench: extend a release shell script around git | Releases of our patched fmtlite need checksums. Extend /workspace/vendor-sync/sync.sh so that every release tarball it cuts gets a `<tarball>.sha256` file next to it in sha256sum format (the packaging job verifies it with `sha256sum -c`). Everything else about the sync must keep working as documented; see /workspace/ve... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "tty-pty"}} | tasks/E3.2-11-pty-merge-autoedit | variant_sandbox | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.tty | interactive_exposed |
E3.2-12-umask-nested-publish | E3.2.umask | process context (umask): on this host jobs run with umask 077 instead of the usual 022. The inherited publisher gives every copied page an explicit 0644 mode, but the directories it creates with os.makedirs() take their mode from the umask and come out 0700, so the web server account cannot enter them: every page below... | docs/environment-axes.md E4.2 process context (inherited process attributes); umask(2), mkdir(2): the mode of a new directory is mode & ~umask | terminal-bench: extend a publishing script | The web team wants a machine-readable list of what is published: extend /workspace/docsite/publish.py (see /workspace/docsite/README.md) so that it also writes `sitemap.json` into the serve directory, a JSON list with one object {"path": <relative path with forward slashes>, "bytes": <size>} per published page, sorted ... | 1,200 | v2 | {"base": {"user": "agent", "umask": "022", "probe": "id -un; umask"}, "target": {"user": "agent", "umask": "077", "probe": "id -un; umask"}} | tasks/E3.2-12-umask-nested-publish | host_isolated | E3 | Execution Context Layer | E3.2 | Process Context | E3.2.umask | deployment_latent |
E4.1-01-noexec-etl-transform | E4.1.mount | /tmp is mounted noexec; the inherited exporter writes each dataset's transform script to tempfile.mkstemp() and executes it, which fails with EACCES - but only datasets that define a transform (judge data only) take that path | anthropics/claude-code#26741 (noexec /tmp breaks tool execution silently); pnpm/pnpm#9776; survey E5.1 mount (tmp-noexec) | data-ops: extend an export job | Datasets are published by /workspace/etl/export.py (see /workspace/etl/README.md). Consumers now need a manifest: every run must also write `_manifest.json` into the output directory, containing a JSON list with one object per published dataset, in the order of datasets.json, with keys `name`, `rows` (number of data ro... | 1,200 | v2 | {"base": {"docker": ["--tmpfs", "/tmp:rw,exec,size=1g"], "probe": "mount | grep ' /tmp '"}, "target": {"docker": ["--tmpfs", "/tmp:rw,noexec,size=1g"], "probe": "mount | grep ' /tmp '"}} | tasks/E4.1-01-noexec-etl-transform | base_container | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.mount | deployment_latent |
E4.1-02-noexec-native-scan | E4.1.mount | /tmp is mounted noexec; the inherited scanner JIT-builds a C accelerator into tempfile.gettempdir() and loads it with ctypes, which fails ('failed to map segment from shared object') - but only inputs above 8 MB (judge data only) take the native path | anthropics/claude-code#26741 (native helper under noexec /tmp); pypa/pip#6364; JIT extension caches in /tmp (e.g. torch_extensions); survey E5.1 mount | SWE-bench-ish: add a CLI option to a small tool | /workspace/logscan/logscan.py counts how many log lines contain each known error signature (see the README there). Add an optional `--min-count N` argument: signatures with fewer than N matching lines are left out of the output (default 1, so signatures that never occur are no longer printed). The output rows must also... | 1,200 | v2 | {"base": {"docker": ["--tmpfs", "/tmp:rw,exec,size=1g"], "probe": "mount | grep ' /tmp '"}, "target": {"docker": ["--tmpfs", "/tmp:rw,noexec,size=1g"], "probe": "mount | grep ' /tmp '"}} | tasks/E4.1-02-noexec-native-scan | base_container | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.mount | deployment_latent |
E4.1-03-xdev-spool-archive | E4.1.mount | mount layout (spool on another file system): on this host the print spool lives on a memory-backed volume (tmpfs) while the archive is on the root file system. The inherited archiver moves finished batches with os.rename, which works only within one file system; across the two it fails with 'OSError: [Errno 18] Invalid... | docs/environment-axes.md E5.1 permissions and mounts, mount layout (Firecracker and OCI volume mounts); rename(2) EXDEV | terminal-bench: extend a spool archiving script | The print room wants a list of what was archived: extend /workspace/spool/archive_spool.py (see /workspace/spool/README.md) so that every run also writes `archived.csv` into the archive directory, with the header `batch,day,bytes` and one line per batch archived in that run, sorted by batch name. The invocation and eve... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/job-spool-root; df --output=fstype,target $(cat /etc/job-spool-root) /var/tmp | tail -2"}, "target": {"user": "agent", "probe": "cat /etc/job-spool-root; df --output=fstype,target $(cat /etc/job-spool-root) /var/tmp | tail -2"}} | tasks/E4.1-03-xdev-spool-archive | host_isolated | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.mount | deployment_latent |
E4.1-04-readonly-fx-cache | E4.1.permissions | root filesystem (incl. $HOME) is read-only, only /workspace writable; the inherited rate client caches fetched historical rates in ~/.cache/fxrates and crashes on the makedirs - but only dates outside the bundled 2024 table (judge data only) are fetched | NGINX read-only root filesystem guide / k8s readOnlyRootFilesystem (caches under $HOME and /var need emptyDir); survey E5.1 permissions (readonly-sys) | tau-bench/AppWorld: program against a local rates service | Finance's transaction report is produced by /workspace/fx/convert_report.py (see /workspace/fx/README.md). They want a new column `rate`, placed just before `amount_eur`, holding the exchange rate that was used for the row with 4 decimals. Implement it; the invocation and the other columns stay as they are. The result ... | 1,200 | v2 | {"base": {"docker": ["--tmpfs", "/opt/fxsvc:rw,exec,mode=0700"], "env": {"FX_API": "http://127.0.0.1:8097"}, "probe": "touch ~/.probe && echo home-writable || echo home-readonly; curl -s $FX_API/v1/rates/2023-03-01 | head -c 120", "user": "agent"}, "target": {"docker": ["--tmpfs", "/opt/fxsvc:rw,exec,mode=0700", "--rea... | tasks/E4.1-04-readonly-fx-cache | base_container | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | deployment_latent |
E4.1-05-readonly-rotated-logs | E4.1.permissions | root filesystem is read-only (only /workspace writable, no tmpfs on /tmp); the inherited report decompresses rotated .gz logs via mktemp, which fails, so compressed rotations (judge data only) are silently skipped | NGINX 'read-only root filesystem' Kubernetes guide + k8s securityContext.readOnlyRootFilesystem (need writable emptyDir for /tmp); survey E5.1 permissions (readonly-sys) | terminal-bench: extend a log-processing shell script | /workspace/logstats/errors_by_hour.sh reports how many ERROR lines the app logged per hour (see the README there). On-call wants an optional second argument: `errors_by_hour.sh LOG_DIR COMPONENT` must count only ERROR lines of that component (the name in square brackets), while calling it without the second argument mu... | 1,200 | v2 | {"base": {"probe": "touch /tmp/.probe && echo tmp-writable || echo tmp-readonly; mount | grep ' / '"}, "target": {"docker": ["--read-only"], "probe": "touch /tmp/.probe && echo tmp-writable || echo tmp-readonly; mount | grep ' / '"}} | tasks/E4.1-05-readonly-rotated-logs | base_container | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | deployment_latent |
E4.1-06-readonly-xlsx-import | E4.1.permissions | root filesystem is read-only (only /workspace writable): the feature needs a package that is not installed, and `pip install` / `pip install --user` fail (site-packages and $HOME read-only); the dependency must be vendored where the scheduled job itself will find it, not just in the agent's shell | NGINX read-only root filesystem guide / k8s readOnlyRootFilesystem; survey E5.1 permissions (readonly-sys), admission table 'perm non-root+readonly-sys' | terminal-bench: add an input format to an import job | Our supplier will send its price list as an Excel workbook from next week instead of CSV. Extend /workspace/pricing/import_prices.py (see the README there) so that it also accepts `.xlsx` files: first worksheet, header row, then one row per article with the same two columns as the CSV. CSV input must keep working. A sa... | 1,500 | v2 | {"base": {"probe": "touch /usr/local/lib/python3.12/site-packages/.p && echo site-writable || echo site-readonly"}, "target": {"docker": ["--read-only"], "probe": "touch /usr/local/lib/python3.12/site-packages/.p && echo site-writable || echo site-readonly"}} | tasks/E4.1-06-readonly-xlsx-import | base_container | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | interactive_exposed |
E4.1-07-caps-icmp-netcheck | E4.1.permissions | the inherited probe pings with a raw ICMP socket; with all capabilities dropped even root gets EPERM for SOCK_RAW (CAP_NET_RAW), the probe's error path reports the host as down; only the network team's ICMP targets (judge data) take that path; unprivileged ICMP datagram sockets still work | raw(7): raw sockets need CAP_NET_RAW; icmp(7) ping_group_range (unprivileged ICMP_ECHO datagram sockets); Docker run reference --cap-drop | Terminal-Bench: extend a monitoring script | The on-call dashboard wants to see how fast targets answer. Add a `latency_ms` column to the CSV printed by the reachability probe in /srv/netcheck/netcheck.py: the time the probe of that target took until it got its answer, in milliseconds with 1 decimal, empty when the target is down. The probe is run every minute by... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "perm-restricted-caps"}} | tasks/E4.1-07-caps-icmp-netcheck | variant_sandbox | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | interactive_exposed |
E4.1-08-caps-foreign-docroot-prune | E4.1.permissions | the inherited publisher overwrites changed files in place (shutil.copy2 opens the destination for writing); without CAP_DAC_OVERRIDE root cannot open files that belong to another account (the content team's SFTP hot-fixes, judge data only), so the publish dies with EACCES; replacing via temp file + rename only needs th... | capabilities(7) CAP_DAC_OVERRIDE; path_resolution(7)/rename(2) permission rules; Docker run reference --cap-drop ALL | Terminal-Bench: extend a deploy tool | Old pages never disappear from our web server because /srv/sitepub/publish.py only adds and updates files. Make it prune as well: after a publish the document root must contain exactly the release's files plus whatever is under `uploads/` (no stale files, no empty directories). The deploy job keeps calling it as `pytho... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "perm-restricted-caps"}} | tasks/E4.1-08-caps-foreign-docroot-prune | variant_sandbox | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | deployment_latent |
E4.1-09-readonly-drop-ranking | E4.1.permissions | permissions (input directory not writable): extracts are handed to jobs in drop directories that belong to the transfer account; the job account can read them but cannot create files there. The inherited script writes its intermediate sorted file next to the extract (EXTRACT.csv.sorted), so on a real drop sort(1) fails... | docs/environment-axes.md E5.1 permissions and mounts (read-only inputs) | terminal-bench: extend a ranking script | Purchasing wants to see each product's weight: add a fourth column `share_pct` to the output of /workspace/rank/rank.py (see /workspace/rank/README.md), the product's units as a percentage of all units, with two decimals. The invocation and everything else stay as documented. The result will be run directly on this mac... | 1,200 | v2 | {"base": {"user": "agent", "probe": "cat /etc/dropbox-owner; id -un"}, "target": {"user": "agent", "probe": "cat /etc/dropbox-owner; id -un"}} | tasks/E4.1-09-readonly-drop-ranking | host_isolated | E4 | Boundary Layer | E4.1 | Permissions & Mounts | E4.1.permissions | deployment_latent |
E4.2-01-dns-ipcheck-online | E4.2.dns | the inherited check takes the pinned SPDX list from ~/.cache, else downloads it when an 'online' probe succeeds, else uses the vendored copy; the probe is a TCP connect to the IP literal 8.8.8.8:53, which succeeds with IP routing intact but no DNS, so on a fresh release runner (empty cache) the download fails on name r... | common connectivity-check idiom socket.create_connection(('8.8.8.8', 53)) (StackOverflow 'check internet connection in Python'); resolv.conf(5); getaddrinfo EAI_AGAIN 'Temporary failure in name resolution' | terminal-bench: extend a release-gate script | The dependency inventory now exports SPDX license expressions, e.g. `Apache-2.0 OR BSD-3-Clause` or `(MIT AND GPL-3.0+)`. Extend /workspace/licensecheck/check.py so that the `license` column may hold such an expression (ids combined with AND / OR, optionally parenthesised): every id in it is checked, and the component'... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "dns-servfail"}} | tasks/E4.2-01-dns-ipcheck-online | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.dns | interactive_exposed |
E4.2-02-resolver-java-url-equals | E4.2.dns | the inherited Java plan builder deduplicates artifact URLs with a Map<java.net.URL,...>; URL.equals/hashCode resolve the host names and treat hosts with the same IP as equal; the sandbox resolver answers every *.sandbox.internal name with the same address, so artifacts with the same path on different build hosts collap... | java.net.URL#equals javadoc ('Two hosts are considered equivalent if both host names can be resolved into the same IP addresses'); SpotBugs DMI_COLLECTION_OF_URLS; dnsmasq --address=/domain/ip wildcard | terminal-bench: extend a small Java ops tool | If the same artifact URL is reported with two different sha256 values, the mirror plan currently keeps the first one silently. Change /workspace/tools/MirrorPlan.java so that such URLs are left out of the plan, a line `CONFLICT <url>` is printed to stderr for each of them, and the tool exits with status 1 at the end if... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "dns-sandbox-resolver"}} | tasks/E4.2-02-resolver-java-url-equals | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.dns | interactive_exposed |
E4.2-03-resolver-linkcheck-nxdomain | E4.2.dns | links to retired internal hosts (*.sandbox.internal) are dead because the name does not exist (NXDOMAIN); the sandbox resolver answers every *.sandbox.internal name with its own address, so the name resolves and the connection is refused instead; the inherited checker files every requests.ConnectionError (refused inclu... | RFC 4592 (wildcard records synthesise answers for non-existent names); dnsmasq --address=/domain/ip; Verisign Site Finder (2003) breaking NXDOMAIN-based checks; requests exception hierarchy (ConnectTimeout subclasses ConnectionError) | terminal-bench: extend a docs link checker | The docs now also use images (``) and reference-style links (`[text][ref]` with a definition line `[ref]: URL`). Extend /workspace/tools/linkcheck.py so that the URLs of images and of reference definitions are checked and reported too (the line number is the line where the URL itself is written), keeping the... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "dns-sandbox-resolver"}} | tasks/E4.2-03-resolver-linkcheck-nxdomain | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.dns | interactive_exposed |
E4.2-04-allowlist-gh-archive-dep | E4.2.egress | egress allowlist admits only pypi.org/files.pythonhosted.org; the inherited requirements.txt pins Markdown as a PEP 508 direct URL to a GitHub release archive, so the fresh CI bootstrap cannot download it (connections to github.com are dropped) while everything from PyPI installs fine; the dev .venv works, so only a fr... | PEP 440/508 direct references (`name @ URL`); pip docs 'Requirement specifiers'; corporate PyPI-only egress e.g. pypa/pip#10421-style reports of direct-URL deps failing behind allowlists | terminal-bench: add a CLI option + dependency, keep CI bootstrap green | Add a `--since VERSION` option to /workspace/tools/render_changelog.py: with it, only releases strictly newer than VERSION are rendered (versions are compared numerically component by component, e.g. 2.10.0 is newer than 2.9.2); without it the output stays as it is. The docs CI job must keep working as described in /wo... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-allowlist"}} | tasks/E4.2-04-allowlist-gh-archive-dep | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | interactive_exposed |
E4.2-05-allowlist-enrich-hang | E4.2.egress | egress allowlist (only pypi.org/files.pythonhosted.org) DROPs other traffic; the inherited best-effort GitHub lookup uses requests.get without a timeout, so each uncached repository hangs in TCP connect (~2 min, kernel SYN retries) instead of failing; the PyPI part works, but the job overruns the scheduler's 120 s limi... | requests docs 'Timeouts' (no timeout by default, requests may hang indefinitely); tcp(7) tcp_syn_retries; iptables DROP vs REJECT | terminal-bench: add a column to a nightly report job | Add a `requires_python` column, right after `version`, to the nightly dependency report produced by /workspace/depreport/report.py; its value is the Requires-Python of the pinned release as published on PyPI (empty if the release declares none). Keep the other columns as they are. The job must keep running as described... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-allowlist"}} | tasks/E4.2-05-allowlist-enrich-hang | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | interactive_exposed |
E4.2-06-proxy-java-notice | E4.2.egress | the inherited Java NOTICE generator downloads license texts it has not cached with java.net.http.HttpClient.newBuilder().build(); the JDK ignores HTTPS_PROXY/http_proxy, so behind a mandatory proxy (no DNS, no direct route) the download fails with UnresolvedAddressException and the tool silently writes a link instead o... | JDK networking properties doc (https.proxyHost/https.proxyPort; java.net.useSystemProxies reads desktop settings, not env vars); HttpClient.Builder.proxy javadoc; e.g. gradle/gradle#10248, jenkinsci issues on JVM ignoring http_proxy | terminal-bench: extend a small Java build tool | Legal wants every component's copyright notice in the NOTICE file. Extend /workspace/tools/Notice.java so that under each license heading, after the `Used by:` line, the NOTICE has one line per component of that license in the form `<name> <version>: <copyright>` (copyright from the CSV), followed by a blank line and t... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-proxy"}} | tasks/E4.2-06-proxy-java-notice | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | deployment_latent |
E4.2-07-proxy-precheck-yanked | E4.2.egress | inherited audit decides 'PyPI reachable?' with a raw socket.create_connection to pypi.org:443; behind a mandatory HTTP proxy there is no DNS and no direct route, so the check says offline and the audit silently serves the partial cache ('?' for uncached pins) although requests through HTTPS_PROXY would work; only judge... | Python docs: urllib.request.getproxies / requests 'Proxies' (environment HTTPS_PROXY honoured by HTTP clients, not by socket.create_connection); pip/requests issues on proxy-only CI (e.g. psf/requests#5967 style connectivity checks) | terminal-bench: add a CI flag to an existing audit script | Release engineering wants CI to stop on yanked pins. Add a `--fail-on-yanked` option to /workspace/pinaudit/audit.py: with it the audit still prints the full CSV report, additionally prints `YANKED <package>==<version>: <reason>` to stderr for every yanked pinned release, and exits with status 1 if any pinned release i... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-proxy"}} | tasks/E4.2-07-proxy-precheck-yanked | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | interactive_exposed |
E4.2-08-mirror-uv-index | E4.2.egress | only the package mirror is reachable and pip is pointed at it through PIP_INDEX_URL; the inherited bootstrap installs with `uv pip install`, and uv does not read PIP_INDEX_URL/pip.conf (it uses UV_INDEX_URL/UV_DEFAULT_INDEX or --index-url), so the fresh bootstrap tries pypi.org and times out; plain pip, and therefore a... | uv docs 'pip compatibility' (uv does not read pip configuration or PIP_* environment variables; use UV_INDEX_URL / UV_DEFAULT_INDEX); astral-sh/uv#1404 | terminal-bench: add a dependency + feature, keep the host bootstrap green | The storage team wants readable sizes. Change /workspace/tools/du_report.py so that the size column is printed with `humanize.naturalsize(n, binary=True)` from the `humanize` package (e.g. `1.5 GiB`) instead of raw bytes, and add `humanize` as a dependency of the project. Report hosts must keep working exactly as descr... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-mirror-only"}} | tasks/E4.2-08-mirror-uv-index | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | interactive_exposed |
E4.2-09-mirror-hashlock-jsonapi | E4.2.egress | only the PyPI mirror (PIP_INDEX_URL) is reachable; the inherited lock generator reads release hashes from the PyPI JSON API on pypi.org, which is unreachable, and the mirror only serves the PEP 503 simple index (no JSON API) - the hashes have to come from the configured index (#sha256= link fragments) or from pip itsel... | PEP 503 (hash fragments in simple-index links), PyPI JSON API docs (pypi.org only, not part of the mirror protocol), pip docs 'Hash-checking mode'; pip-tools/poetry issues on mirrors without the JSON API (e.g. python-poetry/poetry#5292) | terminal-bench: add a --check mode to a lockfile tool; CI regenerates and installs | CI should fail when someone edits requirements.in without regenerating the lock. Add a `--check` mode to /workspace/tools/hashlock.py: it must not write anything, exit 0 if requirements.lock is exactly what the tool would generate from requirements.in, and otherwise print what is out of date and exit 1. The CI pipeline... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-mirror-only"}} | tasks/E4.2-09-mirror-hashlock-jsonapi | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.egress | interactive_exposed |
E4.2-10-readonly-git-smart-http | E4.2.http_methods | egress only lets GET/HEAD/OPTIONS through; git over HTTPS (smart protocol) sends its fetch negotiation as POST /git-upload-pack, which the proxy answers 403, so the inherited vendoring script cannot fetch any commit ('RPC failed; HTTP 403'); the same commit is available as a GitHub source tarball via plain GET (codeloa... | git docs gitprotocol-http (smart HTTP: GET info/refs then POST git-upload-pack); GitHub docs 'Downloading source code archives'; corporate read-only proxy reports e.g. git-for-windows#1453 'RPC failed; HTTP 403' | terminal-bench: extend a vendoring script used by CI | Legal needs the license of every vendored library shipped next to its code. Change /workspace/tools/vendor.sh so that it also copies the top-level license file of each library's repository (`LICENSE`, `LICENSE.txt`, `LICENSE.rst` or `LICENSE.md`, the first that exists) to `vendor/<name>/LICENSE`, and refresh vendor/. T... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-http-readonly"}} | tasks/E4.2-10-readonly-git-smart-http | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.http_methods | interactive_exposed |
E4.2-11-readonly-batch-post-lookup | E4.2.http_methods | all HTTP leaves through an egress proxy that only forwards GET/HEAD/OPTIONS; the inherited catalog client looks up <=20 SKUs with GET but switches to POST /v1/items:batchGet for bigger lookups, which the proxy answers 403, so the report crashes; sample batches are small (GET path), the judge batch has 65 SKUs; chunked ... | read-only egress / method-filtering proxies (Squid http_access with method ACLs; mitmproxy addon); Google AIP-231 batchGet pattern; RFC 9110 9.2.1 safe methods | tau-bench/AppWorld: extend a client of a service API | The warehouse only wants to see what actually needs restocking. Add an `--only-short` option to /workspace/restock/report.py: with it, only rows with a shortfall greater than 0 are printed, followed by a last line `TOTAL,,,,<sum of the shortfalls>`. The scheduler runs the report on this host as described in /workspace/... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "net-http-readonly"}} | tasks/E4.2-11-readonly-batch-post-lookup | variant_sandbox | E4 | Boundary Layer | E4.2 | Network Boundaries | E4.2.http_methods | interactive_exposed |
E4.3-01-future-entitlement-allowlist | E4.3.clock | the build host's clock runs a year ahead (libfaketime +365d); the inherited allowlist builder keeps an entitlement while its expires_at (stamped by the licence server's correct clock) is later than the local datetime.now(), so every entitlement that ends within the next year looks expired and is silently dropped - cust... | libfaketime README (FAKETIME relative offsets, LD_PRELOAD); microsoft/WSL#4114, moby/moby#33405 (container/VM clock drift); Python docs datetime.now() reads the system clock | terminal-bench: extend a data job that compares server timestamps with now | The download portal now limits concurrent downloads by seats. Change /workspace/licensing/build_allowlist.py so that each customer in the allowlist maps to an object `{"products": [...], "seats": N}` instead of the bare product list, where `products` is the sorted list of products of the customer's active entitlements ... | 1,200 | v2 | {"base": {"sandbox": "base"}, "target": {"sandbox": "clock-future"}} | tasks/E4.3-01-future-entitlement-allowlist | variant_sandbox | E4 | Boundary Layer | E4.3 | Clock Skew | E4.3.clock | interactive_exposed |
TwinEnv-Bench: Counterfactual Evaluation of Reactive and Proactive Environment Adaptation in Software Agents
TwinEnv-Bench is a controlled micro-scale counterfactual benchmark of 117 real-world scripting, systems, and data-engineering tasks (234 paired base vs. target task–environment cells) designed to disentangle algorithmic coding skill from real-world operating-system environment adaptability.
- Organization: TraceLite AI (Institute of Information Engineering, CAS; Institute of Automation, CAS; Zhongguancun Academy; Tsinghua University)
- Code & Runner: github.com/TraceLite-AI/TwinEnv-Bench
- Sanitized Trajectories: TraceLite-AI/TwinEnv-Bench-Traces
- Interactive Leaderboard: TraceLite-AI/TwinEnv-Bench Space
- Website: tracelite.ai
Overview
Prevailing benchmarks for software and terminal agents evaluate models almost exclusively inside uniform "greenhouse" containers configured with permissive defaults (UTF-8, root, GNU coreutils, open network, generous resource ceilings). TwinEnv-Bench pairs identical natural-language user instructions, initial workspaces, and post-termination host-isolated verifiers across:
- Base Container (
base): Standard greenhouse defaults. - Target Sandbox (
target): Shifted along a single verified system property across a 5-layer, 15-group, 31-mechanism operating-system taxonomy (E1–E5).
Tasks are partitioned almost evenly across two observability regimes:
- Interactive-Exposed (59 tasks): Environment mismatches surface immediately as stack traces, command errors, or malformed outputs during interactive sample runs (testing reactive debugging).
- Deployment-Latent (58 tasks): Sample runs pass silently while production constraints reside in scheduled cron jobs, cross-account permissions, mount boundaries, kernel
rlimits, or full-scale batch traffic—always discoverable on host via read-only system inspection commands (testing proactive reconnaissance).
Every task satisfies a deterministic six-run, three-state mechanical solvability contract:
- Unmodified workspace (
none): fails bothbaseandtarget. - Environment-naive solution (
naive): passesbase, failstarget. - Environment-aware reference solution (
ref): passes bothbaseandtarget.
Dataset Structure
| Path | Description |
|---|---|
eval.yaml |
Official Hugging Face Benchmark registration (evaluation_framework: harbor) |
data/tasks.jsonl |
117 canonical tasks with E1–E5 taxonomy labels, exposure regime, runtime profile, and paired cells_json |
data/tasks.tar.gz |
Complete archive of all 117 task directories (1,709 SHA-256 verified files preserving permissions) |
data/manifest.json |
File sizes, POSIX permission bits, and SHA-256 digests |
data/environment-dimensions.json |
E1–E5 taxonomy counts and mechanism normalization |
TASKS.md |
Human-readable catalog of all 117 tasks |
Taxonomy Breakdown (117 Tasks / 234 Twin Cells)
| Layer | Name | Tasks | Exposed / Latent |
|---|---|---|---|
| E1 | System Layer (Filesystem Semantics, Line Endings) | 12 | 4 / 8 |
| E2 | Software Stack Layer (Runtimes, Packages, Toolchains, Browsers) | 24 | 24 / 0 |
| E3 | Execution Context Layer (Locale/Encoding/TZ, Process/Cron Context) | 43 | 14 / 29 |
| E4 | Boundary Layer (Permissions/Mounts, Network, Clock, Secrets, Resource Limits) | 36 | 17 / 19 |
| E5 | State Layer (Platform Residuals, External Service Reliability) | 2 | 0 / 2 |
| Total | 5 Layers / 15 Groups / 31 Mechanisms | 117 | 59 / 58 |
Main Benchmark Results (9 Frontier Models, K=3 Repeats)
Metrics below are conditional on non-refusal executed runs (Base@1, Target@1, Exposed, Latent, optimistic Pass@3, and strict 3-of-3 production reliability Pass^3):
| Model | Base@1 (%) | Target@1 (%) | Δ_shift | Exposed (%) | Latent (%) | Pass@3 (%) | Pass^3 (%) |
|---|---|---|---|---|---|---|---|
| Claude Opus 5.5 (non-refusal) | 98.4 | 67.1 | -31.3 | 74.1 | 59.3 | 73.9 | 59.5 |
| Qwen 3.8 Max | 95.1 | 63.8 | -31.3 | 75.1 | 52.3 | 76.9 | 47.0 |
| GPT-6.1 Sol | 97.4 | 63.0 | -34.4 | 77.4 | 48.3 | 68.4 | 58.1 |
| Gemini 4 Argon | 99.1 | 61.0 | -38.1 | 73.4 | 48.3 | 70.1 | 51.3 |
| Hy4 Flash | 99.7 | 55.3 | -44.4 | 69.5 | 40.8 | 65.8 | 45.3 |
| DeepSeek V4.1 Flash | 99.4 | 41.6 | -57.8 | 46.3 | 36.8 | 58.1 | 25.6 |
| GLM-5.3 Flash | 96.9 | 40.7 | -56.2 | 53.7 | 27.6 | 52.1 | 28.2 |
| Grok 4.7 | 97.4 | 34.5 | -62.9 | 46.3 | 22.4 | 47.0 | 22.2 |
| Kimi K3.1 Pro | 99.1 | 26.8 | -72.3 | 39.5 | 13.8 | 39.3 | 14.5 |
| 9-Model Mean | 98.1 | 50.4 | -47.6 | 61.7 | 38.8 | 61.3 | 39.1 |
| Claude Opus 5.5 (Refusal-as-0) | 88.0 | 58.7 | -29.3 | 67.8 | 49.4 | 70.1 | 47.9 |
Usage
Load Index with Hugging Face datasets
from datasets import load_dataset
ds = load_dataset("TraceLite-AI/TwinEnv-Bench", split="test")
print(len(ds), ds[0]["task_id"], ds[0]["exposure_regime"])
Run with Harbor
TwinEnv-Bench integrates with the Harbor evaluation framework (234 paired base and target tasks). See our Harbor adapter in TraceLite-AI/adapters (twinenv-bench) and dataset registry in TraceLite-AI/harbor-datasets.
Citation
@article{tracelite2026twinenv,
title={TwinEnv-Bench: Beyond Greenhouse Sandboxes via Counterfactual Evaluation of Reactive and Proactive Environment Adaptation in Software Agents},
author={TraceLite AI},
year={2026},
url={https://huggingface.co/datasets/TraceLite-AI/TwinEnv-Bench}
}
- Downloads last month
- 49