Skip to content

v0.2.2

Latest

Choose a tag to compare

@sahiljagtap08 sahiljagtap08 released this 22 Nov 18:56
6257cb4

Install v0.2.2, not v0.2.1. v0.2.1 fails to install on the current Ubuntu 24.04 AMI and its tarball has been superseded.

This release was built by hand from the merge commit 6257cb4 while CI is unavailable, so it is unsigned. Check it with bash verify-release.sh drums-release-6257cb4aecb6.tar.gz (sha256 check). --require-signature will refuse it; a Sigstore-signed rebuild will follow.

Tested before publishing on a fresh c8i.4xlarge, Ubuntu 24.04 AMI build 20261120 (libc6 2.39-0ubuntu8.12): verify-release.sh ok, sudo ./install.sh ok in 10 min, tests/host/integration_host.py 28/28 (run with two test fixes for installed hosts: the clean checkpoint is osworld-ubuntu, and systemd restarts drumsd; the test fix lands separately), tests/host/recovery_host.py 18/18.

Release packaging

  • A release can no longer ship another repository's history. v0.2.1's tarball carried
    sources/drums-lab.bundle, the full history of a private repository, and no LICENSE or NOTICE. Do not use
    v0.2.1; install v0.2.2 or later. install/make-release.sh now ships LICENSE, NOTICE and
    THIRD_PARTY_LICENSES and runs install/check-release.py on the tarball it wrote, deleting it when the check
    refuses. The check allows only the expected top-level entries, exactly the drumsd and drums-criu bundles (drumsd's
    anchored to this repository's root commit, drums-criu's to upstream CRIU v4.3), one SDK wheel and a matching
    SHA256SUMS, and refuses keys, internal paths, internal host names and account ids in any file, in the wheel and
    in the bundles' history. release.yml runs it again before upload; CI runs install/tests/test_check_release.py.
  • The release builds the current SDK. install/build_wheel.py builds drums-sdk 0.3 and later (distribution
    drums-sdk, package drums, mcp_tools.json package data, the drums console script, PEP 639 licence and
    License-File). The release's wheel is sdk/drums_sdk-0.4.0-py3-none-any.whl; its drums/ files are identical to
    the PyPI 0.4.0 wheel. The installer and host-test commands take sdk/drums*.whl.
  • release.yml can build while drums-criu or drums-python-sdk is private: tag builds use an optional read-only
    RELEASE_SOURCES_TOKEN (CONTRIBUTING.md#releases); pull requests use the default token.
  • Pins: drums-sdk v0.4.0 (cb45935); drums-criu unchanged (dd8c05657). Crate version 0.4.3.

Installer

  • Installs on the current stock Ubuntu 24.04 AMI. The 2026-11-20 AMI ships libc6 2.39-0ubuntu8.12, newer than the
    release's apt snapshot (20261029T000000Z, libc6-dev 2.39-0ubuntu8.9). libc6-dev depends on libc6 of exactly its own
    version, and apt does not downgrade an essential package it was not asked for, so v0.2.1's install.sh stopped
    with "held broken packages". When the host's libc6 is newer than the snapshot's libc6-dev, install.sh now installs
    libc6-dev and libc-dev-bin at exactly the host's libc6 version from the host's own Ubuntu archive
    (install/libc-follow.sh); everything else still comes from the snapshot and is checked against the pins. On a
    host whose libc6 matches the snapshot nothing changes. The apt install log now keeps apt's unmet-dependency lines
    (-q, not -qq), so the reason for a failure shows up in it. Test: install/tests/test_libc_follow.sh.

Runtime

  • Signed releases, verified before install. .github/workflows/release.yml builds the tarball with
    install/make-release.sh, writes its .sha256, signs it with Sigstore keyless (GitHub OIDC, no long-lived key) and
    attaches tarball, .sha256, .sigstore.json and install/verify-release.sh to a draft release on a v* tag; a pull
    request that touches install/ only builds it. install/verify-release.sh [--require-signature] checks the checksum
    and the signing identity (this repository's release.yml on a v* tag); install.sh runs it on the tarball next to the
    unpacked directory and takes --require-signature; that in-tarball run detects corruption only (a tampered tarball
    can carry a tampered checker), so proof of origin is the separately downloaded verify-release.sh, run before
    unpacking (docs/install.md). In the same pass it installs the hash-pinned lab verifier and the
    drums-verify user (below); install/tests/test_install_one_pass.sh checks that order.
  • Clients can upload their own checker, and it runs confined (design: docs/design/verifier-sandbox.md).
    POST /v1/verifiers stores a lab verifier by the sha256 of its bytes (1 MiB cap, UTF-8; GET/DELETE /v1/verifiers/{sha256}). A task names it with evaluator.verifier_sha256; create and task load answer 422
    verifier_missing when the host lacks it. Such a checker never runs as a host process: each call (first score,
    recheck, redundant checker) is a fresh drumsd verifier-sandbox: new mount, network, pid, ipc, uts and cgroup
    namespaces, a read-only pivot_rooted root from an allow list, no network at all, uid drums-verify with
    no_new_privs, a seccomp filter, and a cgroup with wall, CPU, memory, pid, disk, read and request budgets. It
    reaches the desktop only through drumsd (ctx.read_file, ctx.run), so its code is unchanged. Every verdict now
    carries checker.verifier_sha256 (named verifiers report the hash of the file that ran) and, when sandboxed,
    checker.sandbox (seconds, CPU-seconds, peak memory). Verifiers named by file keep today's host-side path unless
    verifiers.sandbox_named is set. Tests: crates/drumsd/tests/verifier_sandbox.rs (network, writes outside /tmp,
    the host token, escalation, a fork bomb, CPU, wall, memory and disk budgets), run as root in CI.
  • The release ships the factory's lab verifier. verifiers/drums_t6.py (drums-verifiers abd9755), pinned by
    sha256 in install/lock.json; the installer checks it, installs it as /etc/drums/verifiers/drums_t6.py and seeds
    the verifier store, so a fresh host scores the factory's tasks without an operator step.
  • The step-argument limit, stated once: 8,192 characters per command string, 256 argv items, 16,384
    characters of pyautogui code, the same for actions and for task setup and postconfig steps
    (drumsd_core::limits, README "Step-argument limit"). enforce_step_arg_limit (default off, today's behaviour)
    refuses an over-limit action or task with 400 step_arg_too_long and field, limit, length, unit in the
    body; off, drumsd records step_arg_over_limit events and the drumsd_step_arg_over_limit_total counter.
  • drums-lab is dissolved into this repo. The runtime's Python side (sharedos_rootfs and the three packages it
    imports: sharedos_spike, drumsbench, osworld_smoke) now lives in python/, copied byte-for-byte from drums-lab
    f17644b (the commit install/lock.json pinned); the package names are unchanged so every python3 -m sharedos_rootfs.*
    invocation and py_src import keeps working. install.sh no longer fetches a drums-lab bundle: PYTHONPATH (and
    drumsd.json py_src) is $O/src/drumsd/python, install/boot.sh follows, install/bringup.py takes --py-src
    (default: its checkout's python/; --lab still accepted), install/make-release.sh ships python/ instead of
    sources/drums-lab.bundle and no longer takes DRUMS_LAB, and install/lock.json has no sources.drums-lab entry.
    Not carried over: sharedos_rootfs/criu_patch/ (already drums-criu 7b46284), the lock-restore briefs, host/install_criu.sh
    (upstream CRIU; drumsd builds drums-criu) and oci_reference (the benchmark's control arm). The earlier drums-lab history is kept
    in a private archive. Tests: python/tests (285 passed, 2 skipped on
    Ubuntu 24.04; see python/README.md).
  • Repository: README, docs/install.md (was QUICKSTART.md), docs/architecture.md, docs/release-notes/ (the
    RC1 and v0.2.0 notes, from the root), SECURITY.md, CODE_OF_CONDUCT.md, issue and PR templates, Dependabot,
    CI (cargo fmt --check, cargo clippy -D warnings, the non-root cargo test, shellcheck, the Python tests).
    rustfmt.toml and a format-only pass over the workspace; clippy-clean under -D warnings (dead helpers removed
    from drums-pool, no behaviour change). docs/security.md describes the per-env uid ranges and the tenant
    boundary as the code has them.