A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
make the release builds use the pinned toolchain, the shipped binary only, and one shard dep cache (#3233)
kt3358e0016bce
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 67905a9ac2..977c49611d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -235,10 +235,13 @@ jobs:- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2with:cache-on-failure: true- # Per-shard caches (the default key carries the job id, which is- # identical for all matrix legs); parallel legs would otherwise- # race onto one cache entry and only the first save would stick.- shared-key: shard-${{ matrix.shard }}+ # One shared dependency cache for all legs: every shard compiles+ # the same dependency set, so per-shard keys held 8x ~500 MB per+ # ref and evicted the release-build caches (the repo sits at the+ # 10 GB Actions-cache quota; the shards were 83% of it). Parallel+ # legs race on the single entry and only the first save sticks,+ # which is fine: the content is the pruned dependency tree.+ shared-key: test-shards- name: Install uv (the kernel tests bootstrap the Python kernel venv with it)run: |python3 -m pip install --user uvdiff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.ymlindex 0357202837..d697dcae22 100644--- a/.github/workflows/continuous.yml+++ b/.github/workflows/continuous.yml@@ -138,9 +138,11 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2with:persist-credentials: false- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below+ # The pinned SHA is the toolchain pin: this action version has no+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the+ # compiler by changing the SHA; a `toolchain:` input is ignored.+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5ewith:- toolchain: "1.98.1"targets: ${{ matrix.target }}- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2with:@@ -151,8 +153,11 @@ jobs:# the new key builds cold; the marker moves only with reviewed# baseline changes (same protocol as the image digest below).key: ${{ matrix.target }}-glibc235+ # Only the shipped binary links here: the job packages `prime-agent`+ # alone, so pa-daemon's [[bin]] would be a second thin-LTO link with+ # no consumer (~26% of the build step, measured).- name: Build (release, locked)- run: cargo build --release --locked --target ${{ matrix.target }} -j 4+ run: cargo build --release --locked --target ${{ matrix.target }} -j 4 -p pa-cli --bin prime-agent- name: Split the shipped binary + split-debug decoder (Option C posture)run: |set -euo pipefail@@ -253,15 +258,20 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2with:persist-credentials: false- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below+ # The pinned SHA is the toolchain pin: this action version has no+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the+ # compiler by changing the SHA; a `toolchain:` input is ignored.+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5ewith:- toolchain: "1.98.1"targets: ${{ matrix.target }}- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2with:key: ${{ matrix.target }}+ # Only the shipped binary links here: the job packages `prime-agent`+ # alone, so pa-daemon's [[bin]] would be a second thin-LTO link with+ # no consumer (~26% of the build step, measured).- name: Build (release, locked)- run: cargo build --release --locked --target ${{ matrix.target }} -j 4+ run: cargo build --release --locked --target ${{ matrix.target }} -j 4 -p pa-cli --bin prime-agent- name: Generate bundled catalog assets (fixture, offline-safe)run: |set -euo pipefaildiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d6a22dc02b..7994a8bf58 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -57,9 +57,10 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2with:persist-credentials: false- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below- with:- toolchain: "1.98.1"+ # The pinned SHA is the toolchain pin: this action version has no+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the+ # compiler by changing the SHA; a `toolchain:` input is ignored.+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e- name: Validate tag matches workspace versionrun: |set -euo pipefail@@ -132,9 +133,11 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2with:persist-credentials: false- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below+ # The pinned SHA is the toolchain pin: this action version has no+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the+ # compiler by changing the SHA; a `toolchain:` input is ignored.+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5ewith:- toolchain: "1.98.1"targets: ${{ matrix.target }}- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2with:@@ -145,8 +148,11 @@ jobs:# the new key builds cold; the marker moves only with reviewed# baseline changes (same protocol as the image digest below).key: ${{ matrix.target }}-glibc235+ # Only the shipped binary links here: the job packages `prime-agent`+ # alone, so pa-daemon's [[bin]] would be a second thin-LTO link with+ # no consumer (~26% of the build step, measured).- name: Build (release, locked)- run: cargo build --release --locked --target ${{ matrix.target }} -j 4+ run: cargo build --release --locked --target ${{ matrix.target }} -j 4 -p pa-cli --bin prime-agent- name: Split the shipped binary + split-debug decoder (Option C posture)# Linux only: the build emits line tables and does not strip at# link; this step produces the SHIPPED binary (objcopy@@ -253,15 +259,20 @@ jobs:- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2with:persist-credentials: false- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below+ # The pinned SHA is the toolchain pin: this action version has no+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the+ # compiler by changing the SHA; a `toolchain:` input is ignored.+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5ewith:- toolchain: "1.98.1"targets: ${{ matrix.target }}- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2with:key: ${{ matrix.target }}+ # Only the shipped binary links here: the job packages `prime-agent`+ # alone, so pa-daemon's [[bin]] would be a second thin-LTO link with+ # no consumer (~26% of the build step, measured).- name: Build (release, locked)- run: cargo build --release --locked --target ${{ matrix.target }} -j 4+ run: cargo build --release --locked --target ${{ matrix.target }} -j 4 -p pa-cli --bin prime-agent# The aarch64 leg livechecks natively; the x86_64 leg,# cross-compiled on the Apple-silicon pool, livechecks under# Rosetta 2 — the runtime install-rust.sh gives the x64 payload on