Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
3142a2f
fix: fail denied input downloads once per batch (#177)
danny-avila Sep 11, 2026
794df9e
fix: preserve retries for transient egress ledger conflicts (#179)
danny-avila Sep 11, 2026
dead07b
perf: reuse authorized input versions and make egress accounting atom…
danny-avila Sep 11, 2026
a992ec0
🧹 fix: Evict Stale File-Object Index Entries (#182)
danny-avila Sep 12, 2026
c3fd558
perf: enable authorized input reuse by default (#183)
danny-avila Sep 12, 2026
76129e1
fix: honor requested input destinations (#184)
danny-avila Sep 12, 2026
9d3936f
fix: disambiguate legacy dotted object identities (#186)
danny-avila Sep 12, 2026
3946ffb
fix: helm egress deployment getting stuck on install (#176)
Ian321 Sep 12, 2026
8a90f6d
feat: Add Trusted VM Command Policy (#187)
danny-avila Sep 12, 2026
31def17
fix: Retry Clean Cancelled BYOM Settlements Through Stop Grace (#188)
danny-avila Sep 13, 2026
118eb9b
fix: Release Unassigned Workspace Slots When Dispatch Cleanup Fails (…
danny-avila Sep 13, 2026
8764d01
fix: Exit Cleanly When Native Executor Shuts Down Concurrently (#191)
danny-avila Sep 13, 2026
25f3841
fix: authenticate GitHub App Git operations (#192)
danny-avila Sep 14, 2026
1c7af88
fix: isolate file deletion rate limits (#193)
danny-avila Sep 14, 2026
737f498
feat: broker GitHub CLI authentication (#194)
danny-avila Sep 14, 2026
03e2fc1
feat: Run PTC in Selected BYOM Workspaces (#195)
danny-avila Sep 14, 2026
e4815fa
feat: Report Truncated Output Artifacts (#199)
danny-avila Sep 14, 2026
f181b4d
fix: cancel selected-workspace PTC across processes (#196)
danny-avila Sep 14, 2026
3e7b107
fix: classify capped artifact probe candidates (#206)
danny-avila Sep 14, 2026
6ca38b2
feat: Report Deleted Code Session Files (#200)
danny-avila Sep 14, 2026
926569e
fix: preserve trusted jq path for PTC (#207)
danny-avila Sep 14, 2026
10ac19b
fix: isolate native PTC readiness and watchdog phases (#208)
danny-avila Sep 14, 2026
3a2c2a0
feat: Declare Named Worker Project Environments (#209)
danny-avila Sep 14, 2026
f2dcb93
fix: Allow Trusted Own-Root Environment Symlinks (#212)
danny-avila Sep 15, 2026
840537b
fix: Retain Quarantine After Failed Environment Setup (#213)
danny-avila Sep 15, 2026
9a3f5db
fix: Allow Lambda MicroVM metadata in hardened mode (#215)
danny-avila Sep 15, 2026
c03d309
docs: add self-hosted worker setup runbook (#219)
danny-avila Sep 16, 2026
6dbf03b
fix: bound memory buffering for streamed file uploads (#218)
jacksonriding Sep 16, 2026
3a3003a
ci: Automate Auditable Main Releases (#216)
danny-avila Sep 16, 2026
f6cdfb3
fix: forward input-file limit into sandbox guests (#217)
jacksonriding Sep 16, 2026
b35c503
feat: Inspect Local Coding Projects (#221)
danny-avila Sep 16, 2026
c688b30
fix: make automatic release tip check read-only (#225)
danny-avila Sep 16, 2026
4c7b224
feat: Discover Bounded Repository Instructions for Attached Workspace…
danny-avila Sep 16, 2026
95bfcbd
feat: Register Selected Coding Projects (#222)
danny-avila Sep 16, 2026
672e195
fix: Report workspace admission capacity without ambiguous timeout er…
danny-avila Sep 16, 2026
fd9a4fa
ci: Fix Release Version Resolution for Untagged and Resumed Runs (#233)
lia-by-librechat[bot] Sep 18, 2026
54aca92
feat: Route GitHub App credentials per repository (#236)
danny-avila Sep 19, 2026
dc48249
fix: Authenticate GitHub App bot identity lookup (#237)
danny-avila Sep 19, 2026
277fa77
feat: Advertise Workspace Command Timeout Ceiling (#238)
danny-avila Sep 19, 2026
95ebbd3
🌳 feat: Provision Conversation-Scoped Code Worktrees (#239)
danny-avila Sep 20, 2026
c8b3e14
fix: Close native scratch directory streams (#240)
danny-avila Sep 20, 2026
67d75d8
feat(code): route trusted VM GitHub App tokens by checkout (#248)
danny-avila Sep 23, 2026
cf0e668
🧹 fix: Await Job Cleanup and Measure Retained Resources (#249)
lia-by-librechat[bot] Sep 25, 2026
b03582a
feat: Allow Installation-Scoped GitHub Tokens for Trusted Workers (#263)
danny-avila Sep 27, 2026
6732988
⏳ fix: Let BYOM Workspace Calls Queue Past Thirty Seconds (#264)
lia-by-librechat[bot] Sep 27, 2026
2a31002
🔐 feat: Recover Code API Machine Credentials After Outages (#260)
lia-by-librechat[bot] Sep 28, 2026
337ddd6
⏳ fix: Honor Workspace Queue Budgets Per Request (#265)
danny-avila Sep 28, 2026
5b71e8c
fix: deduplicate files by destination before sandbox validation (#247)
proseer-lars Sep 28, 2026
1634027
🛤️ feat: Schedule Linked Worktrees as Their Own Workspace Lanes (#270)
danny-avila Sep 29, 2026
dbb8477
🛡️ fix: Guard Linked-Worktree Lanes Against Accidental Git Pruning (#…
lia-by-librechat[bot] Sep 29, 2026
3189cfd
🔓 fix: Let Linked-Worktree Lanes Commit When the Checkout Lives in th…
danny-avila Sep 29, 2026
1e683ce
🎯 feat: Diagnose Every Failing Workspace Edit and Negotiate Tolerant …
danny-avila Sep 30, 2026
836d001
🛡️ fix: Deny a Non-Lane Root's Own Git Metadata in the Native SRT San…
danny-avila Sep 30, 2026
05bad85
🧷 test: Retain the Contention Lock Owner Through Garbage Collection (…
lia-by-librechat[bot] Oct 2, 2026
e46fca4
🪟 feat: Preserve Command Output Heads and Tails (#275)
lia-by-librechat[bot] Oct 2, 2026
3db2584
♻️ feat: Reuse Verified Environment Preparation (#286)
danny-avila Oct 2, 2026
42a7fcd
🧰 feat: Share Explicit Environment Tool Resources (#287)
danny-avila Oct 2, 2026
cdb457d
📦 feat: Restore Isolated Dependency Snapshots (#288)
danny-avila Oct 2, 2026
572ccba
feat: Bound Managed Environment Storage (#289)
danny-avila Oct 2, 2026
a9528bc
🔬 feat: Begin the OpenShell Backend Evaluation Track (#282)
lia-by-librechat[bot] Oct 2, 2026
032a93f
feat: Retire Stale Linked Worktrees Automatically (#299)
danny-avila Oct 3, 2026
d6ac1b6
fix: Report Missing Workspace Paths as NOT_FOUND and Create Missing P…
danny-avila Oct 3, 2026
893ad36
feat: Quote the Current Text Where a Missing Workspace Edit Belongs (…
danny-avila Oct 3, 2026
961777e
feat: Persist Workspace Admission Across API Restarts (#302)
lia-by-librechat[bot] Oct 4, 2026
192f61c
📖 feat: Stream Bounded Workspace File Reads (#303)
lia-by-librechat[bot] Oct 4, 2026
e829f75
🗂️ fix: Guard Lane Worktree Registration (#304)
lia-by-librechat[bot] Oct 4, 2026
829992a
🛡️ fix: Harden Sandbox Startup and Internal Transports (#305)
lia-by-librechat[bot] Oct 4, 2026
e68fae8
🐳 ci: Publish Code API Images to GHCR (#307)
danny-avila Oct 5, 2026
4b2b8e1
fix: block sandbox descriptor passing into unix socket gc (#309)
danny-avila Oct 5, 2026
2318ba0
feat: replace tool-call sockets with anonymous pipes (#310)
danny-avila Oct 5, 2026
4401420
🧵 fix: Replace Runtime Socketpairs With Anonymous Pipes (#312)
danny-avila Oct 5, 2026
26d1ab8
🌿 feat: Report Lane Git Branch And Head On Command Results (#311)
berry-13 Oct 5, 2026
68c9f93
fix: Relay Loopback Resolvers Into KVM Guests (#314)
danny-avila Oct 5, 2026
a62d69e
🔒 Harden Runner Supervisors with Anonymous Pipes (#315)
danny-avila Oct 6, 2026
c854ab5
test: check parent-side nsjail startup failure (#318)
danny-avila Oct 6, 2026
1b8e1ca
Merge upstream LibreChat-AI/code-interpreter main into apro-deploy
claude Oct 12, 2026
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
35 changes: 35 additions & 0 deletions .github/scripts/image-revision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Prints the org.opencontainers.image.revision label of an image reference.
# Used by .github/workflows/images.yml, which must tell a missing tag apart
# from a registry that cannot answer.
#
# Exit 0 the revision was printed.
# Exit 3 the tag does not exist, or this token may not read it (a token that
# may not read a repository may not write to it either).
# Exit 1 the registry did not answer after retries, or the image has no
# revision label.
set -uo pipefail

ref=${1:?usage: image-revision.sh REF}
attempts=${IMAGE_REVISION_ATTEMPTS:-3}
err=$(mktemp)
trap 'rm -f "$err"' EXIT

for attempt in $(seq 1 "$attempts"); do
if json=$(docker buildx imagetools inspect "$ref" --format '{{ json .Image }}' 2>"$err"); then
if jq -er 'if has("config") then . else .["linux/amd64"] end
| .config.Labels["org.opencontainers.image.revision"]' <<<"$json"; then
exit 0
fi
echo "$ref has no revision label" >&2
exit 1
fi
if grep -qiE ': not found$|denied|\b40[134]\b' "$err"; then
exit 3
fi
cat "$err" >&2
if [ "$attempt" -lt "$attempts" ]; then
sleep $(( attempt * 5 ))
fi
done
exit 1
151 changes: 141 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,27 @@ jobs:
- name: Block-root package delivery
run: tests/block_root_package_delivery.sh

- name: Python runtime package-init rollout
run: tests/package_init_runtime_rollout.sh

- name: KVM guest resolver handoff
run: tests/kvm_guest_dns.sh

- name: Sandbox-runner liveness checks
run: tests/sandbox_runner_healthcheck.sh

- name: Sandbox-runner metrics discovery and network policy
run: tests/sandbox_runner_metrics.sh

- name: Bridge pairing rollout safety
run: tests/bridge_pairing_rollout.sh

- name: Compose bridge configuration
run: node tests/compose-bridge-config.cjs

- name: OpenShell evaluation probe (no gateway)
run: node --test scripts/openshell/probe.test.mjs

- name: Release versioning
run: tests/release-versioning.sh

Expand All @@ -53,6 +62,7 @@ jobs:
run: |
docker buildx build --check -f api/Dockerfile .
docker buildx build --check -f docker/Dockerfile.worker-sandbox .
docker buildx build --check -f launcher/Dockerfile .

launcher-unit-tests:
name: Launcher Unit Tests
Expand Down Expand Up @@ -83,19 +93,29 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
bun-version: 1.4.2

- name: Cache Bun packages
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-codeapi-api-bun-1.3.14-${{ hashFiles('api/bun.lock') }}
key: ${{ runner.os }}-codeapi-api-bun-1.4.2-${{ hashFiles('api/bun.lock') }}
restore-keys: |
${{ runner.os }}-codeapi-api-bun-1.3.14-
${{ runner.os }}-codeapi-api-bun-1.4.2-

- name: Install dependencies
run: bun ci

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22

- name: Compile anonymous-pipe addon
run: |
mkdir -p .build
NODE_HEADERS="$(dirname "$(dirname "$(command -v node)")")/include/node"
gcc -shared -fPIC -O2 -Wall -Wextra -Werror -I"$NODE_HEADERS" -o .build/anonymous-pipes.node src/anonymous-pipes.c

- name: Build API
run: bun run build

Expand All @@ -121,6 +141,90 @@ jobs:
- name: Bun tests
run: bun run test

- name: File-heavy workspace cleanup on tmpfs
run: |
docker run --rm --user 0 \
--tmpfs /tmp:rw,size=1g \
--mount "type=bind,source=$GITHUB_WORKSPACE,target=/work,readonly" \
--workdir /work/api \
--env SANDBOX_CLEANUP_TMPFS_TEST=1 \
--env SANDBOX_LOG_LEVEL=error \
oven/bun:1.4.2-debian \
bun test src/cleanup.integration.test.ts

nsjail-ipc-tests:
name: NsJail IPC Filter (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
- name: Render native sandbox policy
working-directory: api
run: |
bun ci
bun scripts/dump-seccomp-policy.ts > "$RUNNER_TEMP/nsjail.policy"
- name: Build pipe broker and generate Python client
run: |
bun run --cwd api build
bun ci --cwd service
bun service/scripts/dump-pipe-preamble.ts > "$RUNNER_TEMP/pipe-client.py"
- name: Build pinned NsJail and Kafel
run: docker build --target nsjail-ipc-test -t nsjail-ipc-test -f api/Dockerfile .
- name: Verify standalone launcher guest pipe runtime
run: |
docker build --target sandbox-build -t launcher-guest-test -f launcher/Dockerfile .
docker run --rm --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
--entrypoint /usr/local/bin/node \
launcher-guest-test /tests/pipe_runtime_image.cjs
- name: Load legacy netfilter modules for hosted-app isolation
run: sudo modprobe -a ip_tables ip6_tables iptable_filter ip6table_filter xt_conntrack xt_owner ipt_REJECT ip6t_REJECT
- name: Verify supervisor filter and anonymous stdio
run: |
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
nsjail-ipc-test python3 /tests/supervisor_policy.py
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
nsjail-ipc-test python3 /tests/pipe_relay_backpressure.py
docker run --rm --init --dns 127.0.0.1 --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
nsjail-ipc-test python3 /tests/supervisor_dns.py
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE,target=/work,readonly" \
--entrypoint /usr/local/bin/sandbox-supervisor-policy \
nsjail-ipc-test bun test /work/api/src/pipe-process.test.ts
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
--entrypoint /usr/local/bin/sandbox-supervisor-policy \
launcher-guest-test node /tests/pipe_runtime_image.cjs
docker run --rm --init --cap-add NET_ADMIN --security-opt seccomp=unconfined \
--mount "type=bind,source=$GITHUB_WORKSPACE,target=/work,readonly" \
--entrypoint /usr/local/bin/sandbox-supervisor-policy \
launcher-guest-test bun /work/tests/supervisor_hosted_network.ts

- name: Verify descriptor denial and runtime IPC with the installed filter
run: |
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$RUNNER_TEMP/nsjail.policy,target=/policy,readonly" \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
nsjail-ipc-test \
bash -c 'python3 /tests/nsjail_unix_gc.py /policy /nsjail/kafel/libkafel.so && python3 /tests/specguard_tool_call_pipes.py && gcc -O2 -static -Wall -Wextra -Werror -DSPEC_GUARD_TEST_DISABLE_CLOSE_RANGE -o /tmp/guard-fallback /tmp/spec-guard.c && SPEC_GUARD_BINARY=/tmp/guard-fallback python3 /tests/specguard_tool_call_pipes.py'
docker run --rm --init --security-opt seccomp=unconfined \
--mount "type=bind,source=$RUNNER_TEMP/nsjail.policy,target=/policy,readonly" \
--mount "type=bind,source=$RUNNER_TEMP/pipe-client.py,target=/client.py,readonly" \
--mount "type=bind,source=$GITHUB_WORKSPACE/api/.build/tool-call-pipe-broker.cjs,target=/broker.cjs,readonly" \
--mount "type=bind,source=$GITHUB_WORKSPACE/tests,target=/tests,readonly" \
nsjail-ipc-test \
python3 /tests/tool_call_pipes.py /policy /broker.cjs /client.py

service-unit-tests:
name: Service Unit Tests
runs-on: ubuntu-latest
Expand All @@ -132,15 +236,15 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
bun-version: 1.4.2

- name: Cache Bun packages
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-codeapi-service-bun-1.3.14-${{ hashFiles('service/bun.lock') }}
key: ${{ runner.os }}-codeapi-service-bun-1.4.2-${{ hashFiles('service/bun.lock') }}
restore-keys: |
${{ runner.os }}-codeapi-service-bun-1.3.14-
${{ runner.os }}-codeapi-service-bun-1.4.2-

- name: Install dependencies
run: bun ci
Expand All @@ -153,7 +257,7 @@ jobs:
redis_socket="$RUNNER_TEMP/byom-admission.sock"
redis-server --port 0 --unixsocket "$redis_socket" --save '' --appendonly no --daemonize yes
trap 'redis-cli -s "$redis_socket" shutdown nosave' EXIT
BRIDGE_TEST_REDIS_URL="$redis_socket" bun test src/bridge/fleet.test.ts
BRIDGE_TEST_REDIS_URL="$redis_socket" bun test src/bridge/fleet.test.ts src/workspace-tools/requests.test.ts

- name: Build service
run: bun run build
Expand All @@ -167,7 +271,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: ['20.11.0', '22.21.0', '24.16.0']
node-version: ['22.21.0', '24.16.0']
defaults:
run:
working-directory: packages/code
Expand Down Expand Up @@ -221,6 +325,33 @@ jobs:
LIBRECHAT_CODE_LIVE_SRT_TESTS: '1'
run: node --test dist/environment-live.test.js

linux-native-sandbox-tests:
name: Linux Native Sandbox Tests
runs-on: ubuntu-24.04
defaults:
run:
working-directory: packages/code
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 24.16.0
- name: Install bubblewrap
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq bubblewrap socat ripgrep
# Ubuntu 24.04 blocks unprivileged user namespaces through AppArmor; bwrap needs them.
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- run: npm ci
- run: npm run build
- name: Linked worktree lane and root Git metadata containment
env:
LIBRECHAT_CODE_LIVE_SRT_TESTS: '1'
run: >-
node --test
dist/linked-worktrees-live.test.js
dist/root-git-denies-live.test.js

lambda-microvm-provisioning:
name: Lambda MicroVM Provisioning
runs-on: ubuntu-latest
Expand All @@ -229,7 +360,7 @@ jobs:

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
bun-version: 1.4.2

- name: Install service dependencies
working-directory: service
Expand Down Expand Up @@ -301,7 +432,7 @@ jobs:
docker buildx inspect --bootstrap

- name: Build Lambda MicroVM runner image
# The target pins Bun 1.3.14 and installs api/bun.lock frozen. Building
# The target pins Bun 1.4.2 and installs api/bun.lock frozen. Building
# natively catches architecture-specific package and Docker layer
# failures without retaining a second multi-gigabyte image copy.
run: |
Expand Down
Loading
Loading