Skip to content

Releases

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:45
1caa4ea

This release adds fallback CPU types and ordered data-centre lists for RunPod pods (with a us_only check per pool), and admission that waits while Linux IO pressure is above a set maximum. It also fixes the container orphan sweep, which in 0.1.6 could, rarely, remove a live run's container on Linux while other locks changed.

Added

  • RunPod sizes can list fallback CPU types. A [providers.runpod] size may add fallback = [{ cpu_type = "...", vcpu = N, usd_per_hour = X }, ...] (one to four entries, each with its own vcpu and price). When the preferred type has no capacity, the create tries the fallbacks in order; any other error still ends the create. The cap check assumes the dearest type, the ledger books the price of the type that was created, and one stderr line names the size and the type (#8).
  • RunPod data centres. data_centers = ["US-TX-3", "US-KS-2"] in [providers.runpod] is an ordered list of one to eight data centres. A create walks it type-major: each CPU type of the size in every data centre in order, one data centre per attempt, moving on only when there is no capacity. A pool can set its own list with remote_limits.data_centers = { runpod = [...] }, and remote_limits.us_only = true makes a config error (exit 78) of any data centre in effect for the pool whose ID does not start with US-; it is a check, never a filter (host file only). The stderr note names the data centre when a fallback was used (#7).
  • IO pressure admission. io_pressure_max, set under [host] for every pool or in a pool (the pool's value wins; 0 turns it off for that pool), is a percentage from 0 to 100 of the PSI full avg60 figure in /proc/pressure/io. A run that would be admitted waits in FIFO order while the pressure is above the max, and if its wait ends it exits 75 with STARVED <pool> (io pressure: 35.50% full avg60, max 20%). Where the kernel has no PSI the check is skipped with a warning (and a bitc doctor warning), never an error. bitc status shows the pressure beside MemAvailable, and bitc status --json gains an optional io_pressure object. On macOS the key is a config error (exit 78), like a pool's memory. bitc config explain prints host.io_pressure_max (unset when it is not set) (#10).

Changed

  • The one-entry data_center key in [providers.runpod] is now checked like each data_centers entry ([A-Z0-9][A-Z0-9-]{1,31}); a value outside that shape is a config error (exit 78) instead of a create that RunPod refuses. This includes data_center = "", which used to mean unset: remove the key instead (#7).

Fixed

  • The container orphan sweep could remove a live run's container. On Linux, bitc reads /proc/locks to see whether a run still holds its ticket, and the kernel hands that file out a page at a time, so while other locks come and go one read can miss a held lock. The sweep now removes a container (and a run's cidfile and env file) only while holding the ticket's lock itself, taken without waiting and kept through the removal. bitc status, bitc sweep --dry-run and the legacy-holder view, which only look, read the lock table again until two reads agree, so a held slot no longer shows as free on one bad read (#122).

Known issues

  • macOS builds still refuse the built-in remote providers (ssh, runpod and sprites, exit 78); only exec plugins run there (behind [host] experimental_remote = true since 0.1.6). macOS as a client to the built-in remote providers (#4) is planned for a later release.
  • On macOS, bitc never removes the private plugin copies under <state>/plugins/<type>/bin/, so a copy of each plugin version bitc has run stays there until you delete it. A bitc that is already running when its binary is replaced in place starts the new binary as its plugin shim; restart long-running bitc processes after an upgrade.
  • Sprites jobs stay refused (exit 78) in this release; enabling them is tracked in #6.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.7_<os>_<arch>.tar.gz (binary, LICENSE, README) and the bare bitc_0.1.7_<os>_<arch>, with sha256 sums in checksums.txt. Check an install with bitc version (expect bitc 0.1.7 (commit 1caa4ea) ... release=true).

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:52
ec1d158

This release adds local pools that run their commands in a docker container, a host-set pod_env for RunPod pods, [compat.flock] pools shared with flock(1) callers, and priority.aging so a normal caller no longer waits behind the high lane indefinitely. It also makes exec plugin providers on macOS need experimental_remote, as on Linux, makes the Sprites network policy end in a deny-all rule (Sprites jobs stay refused in this release), and fixes a supervisor-kill window and several status and sweep details.

Added

  • Local pools can run their commands in a docker container (OrbStack on a Mac). pools.<p>.container = { image, runtime = "docker", mounts, cpus, memory } (host file only) keeps admission, slots, groups, FIFO and the time limit as they are, and runs the admitted command as docker run with the work tree mounted at the same path as the working directory; the exit status is the command's. Each container is named bitc-<ticket id> (unique per run, so runs that share a --name never remove each other's) and labelled bitc.job, bitc.pool, bitc.state and bitc.ticket, and bitc force-removes it at the time limit, on INT, TERM or HUP, on bitc cancel, and when bitc is SIGKILLed (a guard process on a lifeline pipe, on Linux and macOS). bitc sweep and the next admission remove orphaned containers by label, and a sweep error aborts the sweep: nothing more is deleted (containers removed earlier in it stay removed) and bitc sweep exits 69 after the rest of its work. Every removal is by full container id (from the cidfile or docker ps --no-trunc), never by name; docker runs with bitc's own environment, and an env value docker's env file cannot hold (line break, NUL, invalid UTF-8, 64 KiB or more) is 78 naming the key. The container gets a minimal environment, not the host's, in a 0600 --env-file that bitc removes when the run ends (its values never reach docker's command line). A missing docker CLI, or docker failing before the container exists, is exit 69; a bad container table is 78. See docs/containers.md (#60).
  • [providers.runpod] pod_env = { NAME = "value" } adds host-set variables to the RunPod pod's environment at create. Host file only (a repository file that sets it is refused), at most 16 entries; names match ^[A-Z][A-Z0-9_]{0,63}$ and may not be PATH, HOME, SHELL, USER, PUBLIC_KEY, JUPYTER_PASSWORD, WGETRC, XDG_CONFIG_HOME, IFS, SYSTEM_WGETRC, OPENSSL_CONF, OPENSSL_MODULES, SSLKEYLOGFILE, GLIBC_TUNABLES, HOSTALIASES, RES_OPTIONS, TMPDIR, ENV, BASH_ENV, LOCALDOMAIN or PS4, start with BITC_, RUNPOD_, LD_, SSH_, SSL_, GIT_, GO, CGO_, CURL_ or MALLOC_, or end with _PROXY; values are at most 256 bytes, with no control character and no {{. A value under a name containing TOKEN, KEY, SECRET, PASS, AUTH or CRED joins the run's redaction list from 8 bytes; any other value joins only at 16 bytes or more and when it does not start with /. Shorter values stay out so flags and counts such as TOKENIZERS_PARALLELISM=false are not rewritten in every history line. The ownership tag and the other BITC_ keys cannot be set, the job does not receive the entries, and bitc config explain shows the names with <redacted> (#47).
  • [compat.flock.<pool>] lets bitc share a pool with shell callers built on ONE lock file (the flock heavy.lock cmd, gate and slot-file shape), so bitc, live shell holders and bare flock callers exclude each other in both directions. Keys lock, gate, a slot template with {n} and exclusive (default false; true for a bench pool that takes the gate and the lock exclusive). Status and doctor do not show shell holders of these pools; a busy legacy lock ends STARVED <pool> (legacy pool: <path> busy). Time-boxed like [compat] (spec 12.2) (#33).
  • A runbook and example script for sampling bitc status --json on a timer, with daily files and a retention bound (#43).
  • A host key priority.aging (default 5m; 0s turns aging off). A normal caller that has waited this long queues with the high tickets by arrival time instead of behind all of them (#56).
  • bitc status --json marks a normal waiter that has waited priority.aging with "aged": true (absent otherwise; class stays normal), and the text view shows its class as normal (aged) (#106).

Changed

  • bitc status lists a pool's waiters in the order admission will take them (effective class, then wait start), not in ticket-name order (#106).
  • By default a normal caller no longer waits behind the high lane for more than 5m: once its ticket is that old it passes the priority lane and queues by arrival with the high tickets, and an aged caller also passes the legacy high marker of a [compat] pool. Set priority.aging = "0s" for the old behaviour (#56).

Fixed

  • The status JSON schema (docs/status.schema.json) now marks a waiter's waited_s as optional, since reports made before it existed lack it.
  • A remote job could be reported lost before its command started when the host read the agent's identity file while it was being written; the file is now written atomically and a partly written one counts as not yet written.
  • The Sprites probe kit no longer takes a delete that answers 404 as proof a Sprite is gone: it checks the listing after every delete the client answers as done (a 2xx or a 404), so a Sprite still running keeps counting toward the spend cap and the one-Sprite rule, and a Sprite that cannot be confirmed gone is a loud failure.
  • The Sprites probe kit now reports a kit Sprite the listing shows with its whole name in another case as a leftover and never deletes it (the pre-run sweep stops the run), instead of missing it in its 404 check and its sweeps; its lists now read the whole org, so a Sprite of another organization anywhere in the listing makes them fail.
  • The Sprites probe kit no longer takes a 404 on deleting an odd-named Sprite as proof it is gone when the listing shows the part after the kit prefix in another case, and never confirms such a 404 for a name outside ASCII.
  • The Sprites probe kit's DeleteSprite needs a Sprite the run knows, a failed create of a re-used name keeps the earlier record, and ApplyBuildPolicies refuses a LimitMB outside 1..16384.
  • A command run under a hold no longer outlives a supervisor killed before the hold recorded the command's process group: the command now starts only after it is recorded.
  • The agent refuses a slot account uid or gid above 2147483647, since it uses them as int.
  • The reference plugin's fake API refuses a job id that is not a plain id and serves only the result files it documents.
  • The manual privileged workflow now tests the commit of the branch it is dispatched on, and no longer takes a ref to check out.
  • The Sprites probe kit's typed calls now go through the run's Sprite book: a typed write, GetSprite or FSRead needs a live Sprite of the run, ListCheckpoints and GetCheckpoint need a Sprite the run created, Run and Exec refuse a MaxRunAfterDisconnect above 30 seconds, a restore after the kit deleted its Sprite is counted as a live Sprite again, and a raw table write's body may carry only the keys and values the probes use.
  • The Sprites probe kit's fallback delete no longer takes a 404 as proof a Sprite is gone: after the 404 it lists the kit's Sprites and matches the name exactly, and a Sprite still listed (or a list that fails) is an error, so the one-live slot is not freed while the Sprite still runs.
  • The Sprites probe kit's raw requests are now default-deny for writes: only a config or label update of a live Sprite of the run and its privileges and resources policies may be written, reads under a Sprite need a live Sprite of the run, and a refused request fails the probe that sent it instead of looking like an answer.
  • The Sprites probe kit's fallback delete, used for a name the client refuses, now sends the name escaped once as a single path segment (including ; and ,) through its own request rather than the raw request. It used to escape it twice, so the server could answer 404 for a Sprite that was still live and the kit took it as deleted.
  • The Sprites probe kit's raw request now sends a path only when each segment after /v1/ is plain letters, digits, ., _, ~ or -; anything else, such as %, a control byte or an empty segment, is refused and nothing is sent.
  • The Sprites probe kit's raw request refuses a path containing ; and sends nothing, as it already does for ? and #.
  • The Sprites probe kit's one-live-Sprite guard now cleans a raw request's path and ignores its case before refusing a create, so a spelling such as /v1//sprites, /v1/./sprites or /v1/Sprites is refused too (#74).
  • A remote tool URL with whitespace or a control character is now refused when the config is loaded (exit 78), as the agent URL is.
  • An agent URL with whitespace or a control character is now refused when the config is loaded (exit 78). The download and install stubs also single-quote the expected sha256, as the build stub does.
  • The download and install stubs pass the agent URL to curl and wget exactly as configured: it is single-quoted for sh, so a $ or a backtick in it is not expanded.
  • The start stubs no longer pass the deploy key or the RunPod API key to the tools they run (the agent download, its checksum, and the build stub's checkout and build): both are unset before the stub's first command and given ...
Read more

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 21 Nov 05:03
e571817

This release runs exec plugins on macOS, stops status, doctor and sweep --dry-run from taking a try-lock on Linux hosts without a readable /proc/locks, and moves builds to Go 1.27.4 for a standard-library advisory.

Added

  • Exec plugins run on macOS: a [providers.<type>] table with a plugin pin now loads on a macOS client. The built-in ssh, runpod and sprites stay refused there. bitc runs a private, 0500, content-addressed copy of the pinned plugin through a __plugin-exec shim that stays the plugin's parent, forwards SIGTERM, SIGINT and SIGHUP, and takes the plugin's process group down if bitc is killed. Thin and universal Mach-O plugins are accepted, and one that carries com.apple.quarantine is refused with the xattr -d com.apple.quarantine fix. Known limit: macOS has no no_new_privs, so a plugin's process cannot be stopped from gaining privileges through setuid or setgid programs as it is on Linux. Only run plugins you trust as you would any program run as your user (#26).

Changed

  • golang.org/x/sys is updated from 0.49.0 to 0.50.0.

Fixed

  • On Linux without a readable /proc/locks (no procfs, an LSM or seccomp denial, or gVisor), bitc status, bitc doctor and bitc sweep --dry-run no longer take a brief try-lock to read pool slot holders, which could make a free slot look busy to a concurrent admission. They take no lock and show such a slot as unknown ("unknown": true in status --json). doctor prints one warn locks: line naming /proc/locks, and sweep --dry-run never counts an unknown slot as reclaimable (#24).

Security

  • Builds and CI use Go 1.27.4, which fixes the standard-library net/http advisory GO-2026-6859 that govulncheck reports in Go 1.27.3.

Known issues

  • macOS builds still refuse the built-in remote providers (ssh, runpod and sprites, exit 78); only exec plugins run there. macOS as a client to the built-in remote providers (#4) is now planned for 0.1.6.
  • On macOS, bitc never removes the private plugin copies under <state>/plugins/<type>/bin/, so a copy of each plugin version bitc has run stays there until you delete it. A bitc that is already running when its binary is replaced in place starts the new binary as its plugin shim; restart long-running bitc processes after an upgrade.
  • Sprites stays refused until the catch-all egress deny lands (#6).
  • A run from a working directory in the high priority lane (priority.high_cwd or priority.high_cwd_contains) can still starve normal runs in the same pool while high runs keep overlapping. Aging is now planned for 0.1.6.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.5_<os>_<arch>.tar.gz (binary, LICENSE, README) and the bare bitc_0.1.5_<os>_<arch>, with sha256 sums in checksums.txt. Check an install with bitc version (expect bitc 0.1.5 (commit e571817) ... release=true).

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 03 Nov 20:22
90662ca

This release adds a local heavy pool for one busy machine: a per-run time limit, per-run CPU units with a gate class, a STARVED line that says what it waited for, wait ages in bitc status, and a guard that a queued run keeps its place. A recipe is in docs/local-heavy-pool.md. Tracking issue: #33.

Added

  • A per-run time limit for local runs: the host key pools.<p>.timeout and bitc run --timeout DUR. The flag can only narrow the pool's limit. The clock starts when the command starts, so waiting for a slot does not count. At the limit bitc terminates the command's process group and exits 124 with bitc: <pool>: time limit <dur> reached; terminated. result.json and the history say outcome = "timed-out". Remote runs keep remote_limits.timeout.
  • Land evidence: result.json and the history start and end lines carry head (the work tree's commit when the hold starts) and tree_clean. result.json also carries cwd.
  • bitc run --units <group>=<k>: it replaces a pool's unit count for one run. A pool can cap it with the host-only pools.<pool>.groups_max.<group>. A bad value exits 64 with one line naming the limit. Admission is unchanged: all or none, first in first out, never preempted. status, result.json and the history show the units held or asked for.
  • A STARVED line that says what expired: STARVED heavy (group cpu busy: wanted 2 of 8 units; waited 1d), STARVED gate (slots busy; waited 3h), STARVED lint (queue; waited 10m). Before, a slot wait printed a bare STARVED <pool>. Any caller that matched the exact old line should match the STARVED <pool> prefix instead.
  • Wait ages in bitc status: when a pool has waiters, its line shows the configured wait and the oldest waiter's age, for example lint: 1/1 slots held, 3 waiting (wait 3h, oldest 1h22m), and each waiter line shows its own age. --json adds wait, oldest_wait_s and waited_s. All are optional in docs/status.schema.json.
  • A conformance guard, T6: a run already queued is admitted before any run that arrives after a slot frees, including in the window before the waiter's next poll.
  • docs/local-heavy-pool.md: one machine with a cpu group and gate, heavy, light and bench pools.

Fixed

  • With [compat] set, a RunPod launch that cannot open or take the legacy launch lock within launch_wait is now refused as a temporary failure: that provider is skipped, the run goes to the next provider (or local), and it ends 75 only when none is left. It can no longer slip past a legacy launcher's spend cap (#9).
  • On Linux, a state or accounting dir on CIFS, SMB2, SMB, 9p, AFS or any FUSE mount is now refused (78) like NFS, naming the filesystem, because flock there is not bitc's exclusion. The state-dir message ends with how to point BITC_DIR (or --state-dir) at a local path (#25).

Changed

  • CI runs in the merge queue (merge_group) and is split into named jobs. make ci is unchanged locally.
  • The release workflow's dry-run job now runs make release-check, and a new vuln job runs make vuln, on pull requests, in the merge queue and on a push to main, so the run at the release commit is the release gate. vuln is advisory on pull requests.

Known issues

  • macOS builds still refuse every remote provider (78). macOS as a client to remote providers (#4, #26) is planned for 0.1.5.
  • On Linux without a readable /proc/locks, status, doctor and sweep --dry-run still read slot holders with a brief try-lock, so for that moment a concurrent admission can find a free slot busy (#24). Planned for 0.1.5.
  • Sprites stays refused until the catch-all egress deny lands (#6).
  • A run from a working directory in the high priority lane (priority.high_cwd or priority.high_cwd_contains) can still starve normal runs in the same pool while high runs keep overlapping. Aging is planned for 0.1.5.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.4_<os>_<arch>.tar.gz (binary, LICENSE, README) and the bare bitc_0.1.4_<os>_<arch>, with sha256 sums in checksums.txt. Check an install with bitc version (expect bitc 0.1.4 (commit 90662ca) ... release=true).

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 02 Nov 17:54
9bc24e8

Changed

  • Breaking for a home on a network filesystem: the remote accounting directory
    (~/.local/state/bitc/account: the launch lock, ledger and reservations behind the spend cap) is
    now refused like the state dir when it is on a network filesystem, with
    accounting dir <path> is on NFS; bitc needs a local filesystem for flock (on macOS the message
    names the filesystem type). A remote job then falls back to local with that reason (or exits 69 or
    75, as for any remote problem) and launches nothing; bitc config check exits 78, and so does
    bitc status on a host with remote providers or unfinished reservations; bitc doctor --remote
    prints fail accounting dir: ... where it used to skip those checks silently. On macOS a filesystem that statfs does not flag
    MNT_LOCAL (FUSE) is now refused too, for both the state and accounting dirs.

  • bitc sweep on a host whose home is on a network filesystem no longer just prints the refusal and
    exits 0. It tears down only the resources it can prove orphaned without trusting flock (past their
    own expiry, with a verified owner tag or a ledger launch line), lists every other own resource with
    its age and hourly cost without touching it, writes nothing to the accounting dir, skips the git ref
    sweep, and exits 78 naming what it tore down, listed, kept and failed on, so a sweep timer fails
    visibly. With no usable install secret or an unusable accounting dir it tears down nothing and
    exits 78.

    What to do: on a host whose home is on NFS or another network filesystem, run bitc sweep
    before upgrading, then move the home to a local filesystem.
    A host on a local filesystem is not affected.

Fixed

  • On macOS, bitc config check now reports an unknown provider name in a pool, as Linux does.
  • On macOS, status, doctor and sweep --dry-run no longer make a free lock look busy to a
    concurrent admission (a spurious wait, or with wait = 0 a spurious STARVED or queue exit) or to a
    legacy flock -n. They read lock holders with fcntl(F_GETLK), which takes no lock. Linux is
    unchanged.

Known issues

  • macOS builds still refuse every remote provider: any [providers.*] table is a config error (78).
    macOS as a client to remote providers (#4) needs
    the exec-plugin work in #26; both are planned for
    0.1.5.
  • On Linux without a readable /proc/locks (no procfs, an LSM or seccomp denial, or gVisor),
    status, doctor and sweep --dry-run read pool slot holders with a brief try-lock, so for that
    moment a concurrent admission can find a free slot busy
    (#24).
  • On Linux, the network-filesystem refusal covers NFS only; a home on CIFS/SMB2 or FUSE is not yet
    detected (#25, planned for 0.1.4).
  • Sprites stays refused until the catch-all egress deny lands
    (#6).
  • Under [compat] with remote providers on (experimental_remote), a launch that cannot open the
    legacy <legacy_dir>/locks/runpod-launch.lock, or take it within launch_wait, still goes ahead
    without it, so a legacy launcher's launches are not excluded for that one
    (#9). It should be refused with 75 instead.
    Workaround: during a mixed rollout, do not run remote bitc jobs and legacy launches against
    the same account at the same time. A longer launch_wait under [providers.<type>] (default
    5m) makes the timeout rarer but does not close it, and does not help when the lock cannot be
    opened. A host without experimental_remote, or without [compat], is not affected.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.3_<os>_<arch>.tar.gz (binary, LICENSE,
README) and the bare bitc_0.1.3_<os>_<arch>, with sha256 sums in checksums.txt. Check an install
with bitc version (expect bitc 0.1.3 (commit 9bc24e8) ... release=true).

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 30 Oct 19:47

Changed

  • Breaking: a host file named by --config or BITC_CONFIG must now exist. If it does not, every
    command that reads the config (all but bitc version) exits 78 with
    host file <path> (from --config|BITC_CONFIG) does not exist. Before, it ran silently with no host
    config. A missing default host file ($XDG_CONFIG_HOME/bitc/bitc.toml) is still fine: built-in
    defaults apply (#22).
    What to do: if a script or service sets --config or BITC_CONFIG, make sure the file exists,
    or drop the setting to use the default file or built-in defaults.

Fixed

  • bitc cancel right after bitc run --detach no longer reports success while the job keeps running
    to completion: a cancel of a job that is still starting is recorded, and the job ends 128+N without
    running its command. The 5 s start-up wait is gone. cancel exits 69 when it cannot read or lock
    the job's status, keeps a --kill request, and reports a job that never started as ended. This
    was the 0.1.1 known issue
    (#23).
  • A cancel signal (bitc cancel, or INT, TERM or HUP to a foreground bitc run) that arrived just
    before the command started could be lost; the run now ends 128+N.
  • bitc config check now runs the state dir's checks. It exits 78, as status and run do, on a state
    dir that is group- or world-accessible, not yours, on a network filesystem, a regular file, a
    dangling symlink or missing under one, or that has an unreadable, unparsable or newer SCHEMA. A state
    dir that does not exist yet still passes, and is not created
    (#14).
  • bitc status counts a pool slot held by a legacy shell-pool caller under [compat] as held, and lists
    the holder under the pool. In status --json it is an additive holders entry with "legacy": true;
    the report version stays "1" (#15).

Known issues

  • Sprites stays refused until the catch-all egress deny lands
    (#6).
  • macOS as a client to remote providers (#4) moved
    to 0.1.3; the macOS build still refuses every [providers.*] table (exit 78).
  • Under [compat] with remote providers on (experimental_remote), a launch that cannot open the
    legacy <legacy_dir>/locks/runpod-launch.lock, or take it within launch_wait, still goes ahead
    without it, so a legacy launcher's launches are not excluded for that one
    (#9). It should be refused with 75 instead.
    Workaround: during a mixed rollout, do not run remote bitc jobs and legacy launches against
    the same account at the same time. A longer launch_wait under [providers.<type>] (default
    5m) makes the timeout rarer but does not close it, and does not help when the lock cannot be
    opened. A host without experimental_remote, or without [compat], is not affected.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.2_<os>_<arch>.tar.gz (binary, LICENSE,
README) and the bare bitc_0.1.2_<os>_<arch>, with sha256 sums in checksums.txt. Check an install
with bitc version (expect bitc 0.1.2 (commit 80a9517) ... release=true).

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 30 Oct 01:16

Changed

  • Breaking: remote providers are off by default behind [host] experimental_remote. Without it
    in the host file, any [providers.<type>] table, or a pool naming a provider other than local,
    is a config error: every command exits 78 and points at the README's known issues. A repository
    file cannot set the key, and no environment variable does. bitc doctor warns while it is on.
    What to do: a host that runs jobs on a remote provider adds experimental_remote = true under
    [host] in the host file. A host that uses only the local pool needs no change.
  • Breaking: Sprites jobs are refused in this release, even with experimental_remote, because its
    network policy does not restrict egress yet (#6).
    With a [providers.sprites] table or a pool naming it, every command except bitc sweep and
    bitc doctor --remote exits 78, before any token or deploy key file is read.
    What to do: move Sprites pools to local or another provider, and remove the
    [providers.sprites] table and any pool naming it. To clean up Sprites a 0.1.0 install left behind,
    keep the table for now, set experimental_remote = true, run bitc sweep, then remove the table.
  • The README is now a short landing page. Install details, macOS status, providers, configuration,
    a comparison with other tools and the FAQ moved to install,
    providers, configuration,
    comparison and FAQ.

Fixed

  • bitc run no longer loses the process record of a command that exits at once: its pid and start
    time are now read before the command is waited on.
  • The shipped repository example (examples/config/repo.bitc.toml) now declares
    min_version = "0.1.0" (0.1.0 shipped "1.0.0", which a 0.1.0 release build refused with exit 78);
    every shipped example is checked against a release-stamped build.
  • History lines stay a single atomic write (at most 4 KiB after JSON escaping): long fields are cut at
    a character boundary and marked [truncated].
  • A tool archive's symlink can no longer resolve outside the tool dir by climbing through another of
    the archive's links: a .. in a link target is allowed only before its first name.
  • On an ssh host, the check-host --doctor probes (including the reachability-key probe) and the job
    launcher no longer fall back to root, or wrap to it, when an account's ids do not parse.

Known issues

  • Sprites stays refused until the catch-all egress deny lands
    (#6). The 0.1.0 notes said this would be fixed in
    this release; it is refused instead.
  • macOS as a client to remote providers (#4) moved
    to 0.1.2; the macOS build still refuses every [providers.*] table (exit 78).
  • bitc cancel right after bitc run --detach can report success while the job keeps running to
    completion (present since 0.1.0). Check with bitc status, and cancel again if the job is still running.
    Fixed in 0.1.2.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.1_<os>_<arch>.tar.gz (binary, LICENSE,
README) and the bare bitc_0.1.1_<os>_<arch>, with sha256 sums in checksums.txt. Check an install
with bitc version (expect bitc 0.1.1 (commit 86b2cdb) ... release=true).

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 05:30

Security

  • Built with Go 1.27.3, which fixes GO-2026-6809 (crypto/x509 now distrusts compromised
    intermediate certificates; bitc reaches it through TLS handshakes to provider APIs).

Added

  • The local gate: named pools with N slots, FIFO tickets, priority lanes, groups shared across
    pools, nested holds, and a memory floor for admission. No daemon: state is files and flock(2)
    locks.
  • Commands run, status, wait, logs, cancel, sweep, doctor, config and version,
    including detached jobs (run --detach, wait) and status --json
    (schema).
  • Exit codes that separate "try again" (75) from the command's own result, with 64, 66, 69, 78
    and 124 for the other cases (docs/exit-codes.md).
  • Two config layers: a host file and a repository .bitc.toml that can only narrow the host's
    limits; strict decoding and bitc config check.
  • Remote providers, all experimental and none proven live yet: ssh, runpod, sprites and
    exec plugins. Sprites (a fresh microVM per job, for parallel scale-out) is not enabled yet: its
    egress allow-list is not proven enforced and its exec stream is not yet reliable; bitc does not
    refuse it yet, so do not configure it for real work until a release enables it
    (bitc-provider-<type>, pinned by path and sha256). They share a daily spend cap, a live-job
    limit, a ledger and a circuit breaker, with fallback to the local machine before a job starts.
  • bitc sweep and bitc doctor --remote to find and clean up leaked remote resources, and a
    systemd timer recipe (docs/sweep-timer.md).
  • A conformance suite with a register of behaviours (conformance/behaviours.toml).
  • Release pipeline configuration (GoReleaser) for linux and darwin, amd64 and arm64, with sha256
    checksums.
  • macOS client builds (darwin arm64 and amd64): local pools, detached jobs, status, wait,
    logs, cancel, doctor and config, cross-built and smoke-tested on a macOS runner in CI.
    Linux-only, refused on macOS with one line (full parity: issue #3):
    • memory admission (a pool's memory key; config error 78);
    • remote providers (ssh, runpod, sprites, exec plugins; any [providers.*] table is a
      config error 78), and with them sweep and doctor --remote;
    • the remote agent and the plugin exec shim (bitc __agent, bitc __plugin-exec; exit 69);
    • the parent-death signal (a command outlives a SIGKILLed bitc), the inotify wake-up (waiters
      re-check every poll), the read-only /proc/locks view in status (a brief flock probe
      instead), and the last-byte check of a detached log (an empty line may precede __EXIT__).
  • Project documentation, contribution guide, code of conduct and security policy.

Fixed

  • The agent now keeps inherited file descriptors out of the job and its setup steps. Found by the
    first public CI run; covered by a regression test that leaks fds into the agent (it fails with
    the fix line removed and passes with it).

Known issues

  • Sprites provider (not enabled for jobs, see above): in 0.1.0 the network policy bitc applies to a
    Sprite has no catch-all deny rule, so it does not restrict egress. Do not configure sprites.
    Fixed for the next release (every policy will end in a catch-all deny, verified after it is applied).

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.0_<os>_<arch>.tar.gz (binary, LICENSE,
README) and the bare bitc_0.1.0_<os>_<arch>, with sha256 sums in checksums.txt. Check an
install with bitc version (expect bitc 0.1.0 (commit 225a43a) ... release=true).

Known issues

  • Remote providers are experimental. In 0.1.0, two concurrent jobs with the same --name in the same pool, started within the same second (for example from two worktrees), can be given the same remote resource name, and one job's cleanup can then affect the other's resource. Avoid running same-named remote jobs concurrently; fixed in the next release.