Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .agents/skills/manage-ci/references/current-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ from that same catalog.
- `prepare-static-abi-input`: portable static ABI archive.
- `compose-product-input`: exact host/runtime verification and composition.
- `restore-smoke-inputs`: product/model extraction for consumers.
- `select-ci-runners`: provider labels and Depot cache permission.
- `select-ci-runners`: provider labels, Depot cache permission, and the
provider-derived `allow_native_github_cache` output. Depot-selected direct
PRs set it to false; hosted PR and trusted main/release/manual selections
retain native GitHub cache behavior.
- `configure-sccache-gha`: event/provider-derived compiler-cache setup.
- `capture-sccache-stats`: machine-readable cache evidence.

Expand Down Expand Up @@ -167,8 +170,12 @@ Relevant repository variable names include `DEPOT_RUNNERS_ENABLED`,
`DEPOT_PR_CANARY_REF` (absent by default; one exact
`refs/pull/<number>/merge` ref only). The latter is a bounded selector
canary, not a cache-isolation proof or a replacement for the global PR gate.
Native Actions-cache consumers remain a documented unresolved boundary for
any future Depot PR run. Other variables include `CUDA_VERSION`,
The eligible five-lane Depot-PR graph now disables every native GitHub cache
consumer (explicit cache actions, setup-* package caches, rust-cache, static /
Metal / Windows / Swift ABI caches and Windows SDK cache toggles) when that
output is false; cache misses rebuild normally. This checked-in mode does not
prove the absence of ambient Depot/WebDAV authority, so the runtime sentinel
and no-secret/no-token canaries remain required. Other variables include `CUDA_VERSION`,
`VULKAN_SDK_VERSION`, smoke configuration variables, and release/deployment
variables. Secret values never belong in this inventory;
known names include `HF_TOKEN`, release-attestation keys, `CARGO_REGISTRY_TOKEN`
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/restore-windows-abi-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: Windows ROCm HIP SDK filename/version; required for the ROCm backend.
required: false
default: ""
allow-native-github-cache:
description: Whether the protected provider policy permits native GitHub cache APIs.
required: false
default: "false"

outputs:
cache-hit:
Expand Down Expand Up @@ -203,6 +207,7 @@ runs:

- name: Restore exact Windows ABI cache
id: restore
if: ${{ inputs.allow-native-github-cache == 'true' }}
uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ steps.identity.outputs.build-dir }}
Expand Down
16 changes: 16 additions & 0 deletions .github/actions/select-ci-runners/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ outputs:
allow_depot_remote_cache:
description: Whether this trusted runner selection may use Depot's remote cache.
value: ${{ steps.select.outputs.allow_depot_remote_cache }}
allow_native_github_cache:
description: Whether this provider/trust selection may use native GitHub Actions cache APIs.
value: ${{ steps.select.outputs.allow_native_github_cache }}
runner:
description: Default two-vCPU Linux runner label.
value: ${{ steps.select.outputs.runner }}
Expand Down Expand Up @@ -126,6 +129,7 @@ runs:
trusted_repository="Mesh-LLM/mesh-llm"
depot_enabled=false
allow_depot_remote_cache=false
allow_native_github_cache=true
is_direct_pull_request=false
is_dispatched_pull_request=false
dispatch_original_event="${INPUT_ORIGINAL_EVENT_NAME:-}"
Expand Down Expand Up @@ -201,6 +205,17 @@ runs:
allow_depot_remote_cache=true
fi

# Depot runners do not provide GitHub's branch-isolated cache
# authority. Native GitHub cache APIs are therefore disabled for a
# directly selected PR, while hosted PRs and trusted main/release or
# manual paths retain their existing cache behavior. This value is
# derived only from the protected provider policy; callers cannot opt
# a Depot PR back in by supplying a cache-related input.
if [[ "$depot_enabled" == "true" && \
"$is_direct_pull_request" == "true" ]]; then
allow_native_github_cache=false
fi

if [[ "$depot_enabled" == "true" ]]; then
runner=depot-ubuntu-24.04
runner_4=depot-ubuntu-24.04-4
Expand Down Expand Up @@ -228,6 +243,7 @@ runs:
{
echo "depot_enabled=$depot_enabled"
echo "allow_depot_remote_cache=$allow_depot_remote_cache"
echo "allow_native_github_cache=$allow_native_github_cache"
echo "runner=$runner"
echo "runner_4=$runner_4"
echo "runner_8=$runner_8"
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/setup-windows-rocm-sdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ inputs:
description: Directory used to cache downloaded HIP SDK installers.
required: false
default: sdk-installer-cache
allow-native-github-cache:
description: Whether the protected provider policy permits native GitHub cache APIs.
required: false
default: "false"

runs:
using: composite
steps:
- name: Cache HIP SDK installers
id: installer-cache
if: ${{ inputs.allow-native-github-cache == 'true' }}
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ inputs.installer-cache-dir }}/rocm
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-linux-host-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
outputs:
runner_8: ${{ steps.policy.outputs.runner_8 }}
allow_depot_remote_cache: ${{ steps.policy.outputs.allow_depot_remote_cache }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -118,7 +119,8 @@ jobs:
- uses: ./.github/actions/configure-sccache-gha
with:
allow_depot_remote_cache: ${{ needs.runner_policy.outputs.allow_depot_remote_cache }}
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-linux-product-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
contents: read
outputs:
runner: ${{ steps.policy.outputs.runner }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-linux-runtime-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
outputs:
runner_16: ${{ steps.policy.outputs.runner_16 }}
allow_depot_remote_cache: ${{ steps.policy.outputs.allow_depot_remote_cache }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -125,7 +126,8 @@ jobs:
- uses: ./.github/actions/configure-sccache-gha
with:
allow_depot_remote_cache: ${{ needs.runner_policy.outputs.allow_depot_remote_cache }}
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-macos-host-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
contents: read
outputs:
runner_macos: ${{ steps.policy.outputs.runner_macos }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -98,7 +99,8 @@ jobs:
ref: ${{ inputs.source_sha || github.sha }}
persist-credentials: false
- uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable 2026-07-16
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-macos-product-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
contents: read
outputs:
runner_macos: ${{ steps.policy.outputs.runner_macos }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-macos-runtime-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
contents: read
outputs:
runner_macos: ${{ steps.policy.outputs.runner_macos }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-platform-checks-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
runner_macos: ${{ steps.policy.outputs.runner_macos }}
runner_windows: ${{ steps.policy.outputs.runner_windows }}
runner_by_platform: ${{ steps.platform_runners.outputs.runner_by_platform }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
if: ${{ matrix.check.kind == 'unit' }}
run: mkdir -p "$LLAMA_STAGE_BUILD_DIR"
- name: Restore static Metal ABI build
if: ${{ matrix.check.kind == 'unit' }}
if: ${{ matrix.check.kind == 'unit' && needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
id: llama_cache
uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
Expand All @@ -176,7 +177,7 @@ jobs:
if: ${{ matrix.check.kind == 'unit' && steps.llama_cache.outputs.cache-hit != 'true' }}
run: scripts/build-llama.sh
- name: Save static Metal ABI build
if: ${{ matrix.check.kind == 'unit' && steps.llama_cache.outputs.cache-hit != 'true' && (inputs.original_event_name == 'pull_request' || (github.ref == 'refs/heads/main' && inputs.original_event_name != 'pull_request_target')) }}
if: ${{ matrix.check.kind == 'unit' && needs.runner_policy.outputs.allow_native_github_cache == 'true' && steps.llama_cache.outputs.cache-hit != 'true' && (inputs.original_event_name == 'pull_request' || (github.ref == 'refs/heads/main' && inputs.original_event_name != 'pull_request_target')) }}
uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ env.LLAMA_STAGE_BUILD_DIR }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-quality-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
runner_4: ${{ steps.policy.outputs.runner_4 }}
runner_8: ${{ steps.policy.outputs.runner_8 }}
allow_depot_remote_cache: ${{ steps.policy.outputs.allow_depot_remote_cache }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -173,7 +174,8 @@ jobs:
- uses: ./.github/actions/configure-sccache-gha
with:
allow_depot_remote_cache: ${{ needs.runner_policy.outputs.allow_depot_remote_cache }}
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-rust-tests-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
contents: read
outputs:
runner: ${{ steps.policy.outputs.runner }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -120,7 +121,8 @@ jobs:
- uses: ./.github/actions/configure-sccache-gha
with:
allow_depot_remote_cache: "false"
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-ui-artifact-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
contents: read
outputs:
runner_4: ${{ steps.policy.outputs.runner_4 }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
run: pnpm config set store-dir ~/.pnpm-store
- name: Restore pnpm store
id: pnpm_cache
if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ~/.pnpm-store
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-web-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
contents: read
outputs:
runner_4: ${{ steps.policy.outputs.runner_4 }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -90,6 +91,7 @@ jobs:
run: pnpm config set store-dir ~/.pnpm-store
- name: Restore pnpm store
id: pnpm_cache
if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ~/.pnpm-store
Expand All @@ -98,7 +100,7 @@ jobs:
- name: Install UI dependencies
run: pnpm i --frozen-lockfile
- name: Save pnpm store
if: ${{ steps.pnpm_cache.outputs.cache-hit != 'true' }}
if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' && steps.pnpm_cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ~/.pnpm-store
Expand Down Expand Up @@ -128,7 +130,8 @@ jobs:
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 24
cache: npm
package-manager-cache: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
cache: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' && 'npm' || '' }}
cache-dependency-path: |
.github/cache-version.txt
website/package-lock.json
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-windows-host-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
contents: read
outputs:
runner_windows: ${{ steps.policy.outputs.runner_windows }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -108,7 +109,8 @@ jobs:
- uses: ./.github/actions/configure-sccache-gha
with:
allow_depot_remote_cache: "false"
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
- if: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 snapshot 2026-03-12
continue-on-error: true
with:
workspaces: . -> target
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-windows-product-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
contents: read
outputs:
runner_windows: ${{ steps.policy.outputs.runner_windows }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci-windows-runtime-slice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
contents: read
outputs:
runner_windows: ${{ steps.policy.outputs.runner_windows }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down Expand Up @@ -123,29 +124,31 @@ jobs:
cuda_toolchain_version: ${{ env.WINDOWS_CUDA_VERSION }}
vulkan_toolchain_version: ${{ env.WINDOWS_VULKAN_SDK_VERSION }}
rocm_toolchain_version: ${{ env.ROCM_HIP_SDK_FILENAME }}
allow-native-github-cache: ${{ needs.runner_policy.outputs.allow_native_github_cache }}
- name: Install CUDA toolkit
if: ${{ matrix.runtime.backend == 'cuda' }}
uses: Jimver/cuda-toolkit@3d45d157f327c09c04b50ee6ccdea2d9d017ec76 # v0.2.35
with:
cuda: ${{ env.WINDOWS_CUDA_VERSION }}
method: network
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "visual_studio_integration"]'
use-github-cache: true
use-github-cache: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
use-local-cache: true
log-file-suffix: windows-cuda
- name: Install Vulkan SDK
if: ${{ matrix.runtime.backend == 'vulkan' }}
uses: jakoch/install-vulkan-sdk-action@3c53c378c9bfbb2ea122a1cc164a837d4004c871 # v1.5.2
with:
vulkan_version: ${{ env.WINDOWS_VULKAN_SDK_VERSION }}
cache: true
cache: ${{ needs.runner_policy.outputs.allow_native_github_cache == 'true' }}
cache_save_if: ${{ inputs.original_event_name != 'pull_request' && inputs.original_event_name != 'pull_request_target' }}
stripdown: true
- name: Install ROCm HIP SDK
if: ${{ matrix.runtime.backend == 'rocm' }}
uses: ./.github/actions/setup-windows-rocm-sdk
with:
rocm-hip-sdk-filename: ${{ env.ROCM_HIP_SDK_FILENAME }}
allow-native-github-cache: ${{ needs.runner_policy.outputs.allow_native_github_cache }}
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
arch: x64
Expand All @@ -159,7 +162,7 @@ jobs:
target: ${{ matrix.runtime.target }}
output_dir: runtime-input
- name: Save exact PR-scoped Windows ABI build
if: ${{ inputs.original_event_name == 'pull_request' && steps.llama_cache.outputs.cache-hit != 'true' }}
if: ${{ inputs.original_event_name == 'pull_request' && needs.runner_policy.outputs.allow_native_github_cache == 'true' && steps.llama_cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ steps.llama_cache.outputs.cache-path }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/native-sdk-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
outputs:
runner: ${{ steps.resolve.outputs.runner }}
allow_depot_remote_cache: ${{ steps.resolve.outputs.allow_depot_remote_cache }}
allow_native_github_cache: ${{ steps.policy.outputs.allow_native_github_cache }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
Expand Down
Loading
Loading