An open-source, faster Devin alternative
TypeScript
computer: session image and its CI (work 103, step 1) (#1030)
opencomputer-app[bot]0da68d06a11f
diff --git a/.github/workflows/computer-image.yml b/.github/workflows/computer-image.ymlnew file mode 100644index 00000000..bc6a8037--- /dev/null+++ b/.github/workflows/computer-image.yml@@ -0,0 +1,210 @@+name: Computer image++# The session image of a computer (computer/deploy/image, work 103), built for+# linux/amd64 and pushed to ghcr.io/diggerhq/computer-session. <tree> below is+# the git tree hash of computer/deploy/image.+#+# main pushes :<tree>, the image releases run+# another branch pushes :branch-<tree>, for test computers only+#+# A tag proves nothing by itself: the token of any run, on any branch, can+# push any tag of the package, and this file is not part of the tree. So every+# pushed image gets GitHub's build provenance attestation (signed with the+# run's identity: this workflow, this ref, this commit), and nothing trusts a+# tag without it. computer/deploy/image-pin.sh is the one check: the release+# pipeline runs it to pin a release to the digest main built for its tree, and+# a computer pulls by that digest. Here it decides whether main still has to+# build (an image under :<tree> that main did not build, or built from another+# tree, is built again and pushed over), and it checks each build after the+# push, on a branch too, so the release pipeline's check runs before a merge.+#+# A branch skips the build when :branch-<tree> exists, whoever pushed it.+# Runs on a push to any branch (never a tag: path filters are not evaluated+# for tag pushes, hence `branches`) and by hand (workflow_dispatch, for a+# branch whose pushes did not touch these paths, or to build again on main); a+# pull request from a fork builds and tests without pushing. The only+# credential is GITHUB_TOKEN.++on:+ workflow_dispatch:+ push:+ branches: ['**']+ paths:+ - computer/deploy/image/**+ - computer/deploy/image-pin.sh+ - .github/workflows/computer-image.yml+ pull_request:+ paths:+ - computer/deploy/image/**+ - computer/deploy/image-pin.sh+ - .github/workflows/computer-image.yml++permissions:+ contents: read++env:+ IMAGE: ghcr.io/diggerhq/computer-session+ CONTEXT: computer/deploy/image++jobs:+ # The tag, in a job of its own so that the build's concurrency group can name it.+ tag:+ name: Tag+ # A branch of this repository is built by its push; only forks need the pull request.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository+ runs-on: ubuntu-latest+ timeout-minutes: 5+ outputs:+ tree: ${{ steps.tag.outputs.tree }}+ tag: ${{ steps.tag.outputs.tag }}+ steps:+ - uses: actions/checkout@v4+ with:+ persist-credentials: false++ - name: Tag+ id: tag+ run: |+ tree="$(git rev-parse "HEAD:$CONTEXT")"+ # refs/heads/main as in computer/deploy/image-pin.sh, which decides what a release runs.+ if [[ $GITHUB_REF == refs/heads/main ]]; then tag="$tree"; else tag="branch-$tree"; fi+ printf 'tree=%s\ntag=%s\n' "$tree" "$tag" >> "$GITHUB_OUTPUT"++ image:+ name: Build and push+ needs: tag+ runs-on: ubuntu-latest+ timeout-minutes: 60+ permissions:+ contents: read+ packages: write+ # The attestation: the run's identity token signs it, and GitHub stores it.+ id-token: write+ attestations: write+ # One build per tag at a time, whatever the branch: the second finds the+ # tag and skips. A pull request never pushes, so it has a group of its own.+ concurrency:+ group: computer-image-${{ github.event_name == 'pull_request' && github.run_id || needs.tag.outputs.tag }}+ cancel-in-progress: false+ steps:+ - uses: actions/checkout@v4+ with:+ persist-credentials: false++ - name: Tag+ id: tag+ env:+ TREE: ${{ needs.tag.outputs.tree }}+ TAG: ${{ needs.tag.outputs.tag }}+ run: |+ # The checkout is the one the tag job hashed.+ test "$(git rev-parse "HEAD:$CONTEXT")" = "$TREE"+ echo "ref=$IMAGE:$TAG" >> "$GITHUB_OUTPUT"++ - name: Log in to ghcr.io+ if: github.event_name != 'pull_request'+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: echo "$GITHUB_TOKEN" | docker login ghcr.io -u "$GITHUB_ACTOR" --password-stdin++ - name: Is the image there already?+ id: exists+ env:+ REF: ${{ steps.tag.outputs.ref }}+ TREE: ${{ needs.tag.outputs.tree }}+ EVENT: ${{ github.event_name }}+ GH_TOKEN: ${{ github.token }}+ run: |+ if [[ $GITHUB_REF == refs/heads/main ]]; then+ # On main "there" means built here, by main, from this tree. Anything+ # else under the tag (a branch can push it) is built again and pushed+ # over; so is an image this could not check, which costs one build.+ if pin="$(computer/deploy/image-pin.sh "$TREE")"; then+ echo "$REF is $pin, built by main; nothing to build"+ echo "found=true" >> "$GITHUB_OUTPUT"+ else+ echo "$REF is not an image main built from this tree; building"+ echo "found=false" >> "$GITHUB_OUTPUT"+ fi+ exit 0+ fi+ # Missing only when the registry says so. Any other failure (a 5xx,+ # a timeout, a refused login) must not lead to a build that pushes+ # over a tag a test computer may be running.+ if err="$(docker manifest inspect "$REF" 2>&1 >/dev/null)"; then+ echo "$REF exists; nothing to build"+ echo "found=true" >> "$GITHUB_OUTPUT"+ elif grep -qiE 'manifest unknown|no such manifest|name unknown' <<<"$err"; then+ echo "$REF is not in the registry; building"+ echo "found=false" >> "$GITHUB_OUTPUT"+ elif [[ $EVENT == pull_request ]]; then+ # Not logged in and never pushes: build and test whatever the registry said.+ echo "::warning::could not look up $REF; building without pushing: $err"+ echo "found=false" >> "$GITHUB_OUTPUT"+ else+ echo "::error::could not tell whether $REF exists: $err"+ exit 1+ fi++ - name: Build+ if: steps.exists.outputs.found == 'false'+ env:+ REF: ${{ steps.tag.outputs.ref }}+ run: |+ args=()+ while IFS= read -r line; do+ case $line in ''|'#'*) continue ;; esac+ args+=(--build-arg "$line")+ done < "$CONTEXT/versions.env"+ docker build --platform linux/amd64 "${args[@]}" -f "$CONTEXT/Containerfile" -t "$REF" "$CONTEXT"++ # The image's own check (work 103, step 1), as the user the image declares.+ - name: Test+ if: steps.exists.outputs.found == 'false'+ env:+ REF: ${{ steps.tag.outputs.ref }}+ run: |+ docker run --rm --entrypoint /bin/bash "$REF" -euc '+ test "$(id -u):$(id -g)" = 1500:1500+ node --version; go version; python3 --version; uv --version+ "$SP_REAL_GH" --version; "$SP_REAL_OPENCOMPUTER" --version; "$SP_CODEX_BIN" --version; claude --version+ podman --version; docker --version; git config --system --get-all safe.directory+ sudo -n true+ test "$(stat -c %u:%g ~/.local/share/containers ~/.local/bin ~/.cache ~/go /workspace /clones | sort -u)" = 1500:1500+ playwright screenshot --browser chromium "data:text/html,<h1>session image</h1>" /tmp/shot.png+ test -s /tmp/shot.png+ '+ # No boot file: the entrypoint says so with 71.+ code=0; docker run --rm --env SP_RUN=/nonexistent "$REF" || code=$?+ test "$code" = 71++ - name: Push+ id: push+ if: github.event_name != 'pull_request' && steps.exists.outputs.found == 'false'+ env:+ REF: ${{ steps.tag.outputs.ref }}+ run: |+ docker push "$REF"+ # What the tag names in the registry now: the digest computers pull by.+ manifest="$(docker buildx imagetools inspect "$REF" --format '{{json .Manifest}}')"+ digest="$(jq -r .digest <<<"$manifest")"+ [[ $digest =~ ^sha256:[0-9a-f]{64}$ ]]+ echo "digest=$digest" >> "$GITHUB_OUTPUT"++ - name: Attest+ if: steps.push.outputs.digest != ''+ uses: actions/attest-build-provenance@v4+ with:+ subject-name: ${{ env.IMAGE }}+ subject-digest: ${{ steps.push.outputs.digest }}++ # The release pipeline's own check, on what this run pushed: on main the+ # line a release is pinned to, on a branch the same check for its test image.+ - name: Pin+ if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || steps.push.outputs.digest != '')+ env:+ TREE: ${{ needs.tag.outputs.tree }}+ GH_TOKEN: ${{ github.token }}+ run: |+ pin="$(computer/deploy/image-pin.sh "$TREE" "$GITHUB_REF")"+ echo "\`$pin\` (tree \`$TREE\`, $GITHUB_REF)" | tee -a "$GITHUB_STEP_SUMMARY"diff --git a/computer/deploy/image-pin.sh b/computer/deploy/image-pin.shnew file mode 100755index 00000000..29ef6de0--- /dev/null+++ b/computer/deploy/image-pin.sh@@ -0,0 +1,68 @@+#!/usr/bin/env bash+# Which session image a release may run (work 103): the one this repository's+# default branch built for a tree of deploy/image, named by digest.+#+# image-pin.sh <tree> [<git ref>] prints ghcr.io/diggerhq/computer-session@sha256:<digest>,+# or fails and prints nothing+#+# <tree> is `git rev-parse <commit>:computer/deploy/image`. The release+# pipeline runs this for the commit it releases and writes the line into the+# release as deploy/image.pin; a computer pulls exactly that digest+# (deploy/vm/sandbox.sh). No image, or one that fails a check below, means no+# pin and so no release. <git ref> defaults to refs/heads/main; another ref+# names the test image that ref's push built (the tag branch-<tree>), and is+# how computer-image.yml checks a branch's own build.+#+# Why not the tag: a tag proves nothing. Every workflow run of this+# repository, on any branch, holds a token that can push any tag of the+# package, and the workflow file is not part of the tree, so a branch can+# publish anything under the tag of a clean tree. What a branch cannot make is+# GitHub's provenance attestation saying "computer-image.yml, running on+# refs/heads/main, built this digest": it is signed with the run's own+# identity. The checks, in order:+# 1. the tag (<tree> on main, branch-<tree> elsewhere) names a digest in the registry;+# 2. that digest has an attestation from .github/workflows/computer-image.yml+# of this repository, run on <git ref>, on a GitHub-hosted runner;+# 3. the commit that run built has <tree> at computer/deploy/image (an older+# image of main pushed again under this tree's tag fails here).+#+# Needs curl, jq and gh with a token (GH_TOKEN) that can read this public+# repository. The package is public: the registry is read without credentials.+set -euo pipefail++REPOSITORY=ghcr.io/diggerhq/computer-session+SOURCE=diggerhq/opencomputer+WORKFLOW=.github/workflows/computer-image.yml+CONTEXT=computer/deploy/image+MAIN=refs/heads/main++die() { echo "image-pin: $*" >&2; exit 1; }++tree="${1:-}" ref="${2:-$MAIN}"+[[ $tree =~ ^[0-9a-f]{40}$ ]] || { echo "usage: image-pin.sh <tree of $CONTEXT> [<git ref>]" >&2; exit 2; }+tag="$tree"+[[ $ref == "$MAIN" ]] || tag="branch-$tree"++registry="${REPOSITORY%%/*}" name="${REPOSITORY#*/}"+token="$(curl -fsS -m 30 --retry 3 "https://$registry/token?scope=repository:$name:pull" | jq -r .token)" \+ || die "no pull token from $registry"+accept='application/vnd.oci.image.index.v1+json, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.docker.distribution.manifest.v2+json'+digest="$(curl -fsS -m 30 --retry 3 -I -H @<(printf 'Authorization: Bearer %s\nAccept: %s\n' "$token" "$accept") \+ "https://$registry/v2/$name/manifests/$tag" | tr -d '\r' | sed -n 's/^docker-content-digest: *//Ip')" \+ || die "$REPOSITORY:$tag is not in the registry (has $WORKFLOW run on $ref for this tree?)"+[[ $digest =~ ^sha256:[0-9a-f]{64}$ ]] || die "the registry gave no digest for $REPOSITORY:$tag"++attested="$(gh attestation verify "oci://$REPOSITORY@$digest" --repo "$SOURCE" --source-ref "$ref" \+ --signer-workflow "$SOURCE/$WORKFLOW" --deny-self-hosted-runners --format json)" \+ || die "$REPOSITORY:$tag is $digest, which $WORKFLOW did not build on $ref: no release may run it"++while read -r commit; do+ [[ $commit =~ ^[0-9a-f]{40}$ ]] || continue+ built="$(gh api "repos/$SOURCE/contents/${CONTEXT%/*}?ref=$commit" --jq ".[] | select(.name == \"${CONTEXT##*/}\") | .sha")" \+ || die "could not read $CONTEXT of $SOURCE at $commit"+ if [[ $built == "$tree" ]]; then+ echo "$REPOSITORY@$digest"+ exit 0+ fi+done < <(jq -r '.[].verificationResult.signature.certificate.sourceRepositoryDigest' <<<"$attested")+die "$REPOSITORY:$tag is $digest, built on $ref from another tree than $tree"diff --git a/computer/deploy/image/ABI b/computer/deploy/image/ABInew file mode 100644index 00000000..d00491fd--- /dev/null+++ b/computer/deploy/image/ABI@@ -0,0 +1 @@+1diff --git a/computer/deploy/image/Containerfile b/computer/deploy/image/Containerfilenew file mode 100644index 00000000..edf1984c--- /dev/null+++ b/computer/deploy/image/Containerfile@@ -0,0 +1,144 @@+# The image every session container on a computer starts from (work 103): the+# tools a session uses, the `agent` user, and an entrypoint that starts the+# runner the host describes in $SP_RUN/boot.env. It holds no code from+# computer/: the release is mounted at /opt/slack-presence. No cloudflared, no+# Docker engine (Docker inside a session is rootless Podman, C11).+#+# Invariants:+# - Built for linux/amd64 only, by .github/workflows/computer-image.yml, with+# this directory as the whole build context. The tag is this directory's git+# tree hash, so every input of the image must be a file here.+# - Every version comes from versions.env as a build argument; a build without+# them fails. Nothing is installed as `latest`.+# - Layers go from what changes least to what changes most: system packages;+# Chromium and Playwright; toolchains; CLIs; user and config. (Node sits+# before Playwright because Playwright is installed with npm.)+# - Nothing baked at build time lives under /home: /home/agent is a volume.+# That is why ENV (which sets HOME) is the last instruction that could write.+# - ABI (beside this file) is bumped when a release needs something an older+# image lacks.++FROM ubuntu:24.04++LABEL org.opencontainers.image.source="https://github.com/diggerhq/opencomputer" \+ org.opencontainers.image.description="Session image of a computer (computer/deploy/image)"++SHELL ["/bin/bash", "-euo", "pipefail", "-c"]+ARG DEBIAN_FRONTEND=noninteractive++# ---- system packages+# The session's tools as the host has them today (deploy/vm/provision.sh), the+# fonts tier (Latin, CJK, emoji) and ffmpeg for visuals, and Podman for+# containers inside (crun is the runtime containers.conf names). procps: the+# host closes a terminal with pkill. python3: the host's terminal helper.+RUN apt-get update -q \+ && apt-get install -y -q --no-install-recommends \+ ca-certificates curl gnupg git git-lfs openssh-client \+ build-essential pkg-config make \+ jq ripgrep fd-find tree unzip zip xz-utils rsync less file lsof procps \+ python3 python3-venv python3-pip sqlite3 \+ tmux htop sudo util-linux iproute2 tini \+ ffmpeg fontconfig fonts-dejavu-core fonts-liberation2 fonts-noto-core fonts-noto-cjk fonts-noto-color-emoji \+ podman podman-docker podman-compose buildah crun uidmap fuse-overlayfs slirp4netns netavark aardvark-dns iptables libcap2-bin \+ && rm -rf /var/lib/apt/lists/* \+ && chmod u-s /usr/bin/newuidmap /usr/bin/newgidmap \+ && setcap cap_setuid=ep /usr/bin/newuidmap && setcap cap_setgid=ep /usr/bin/newgidmap++# ---- Node.js, from the official tarball, checksum-verified+ARG NODE_VERSION+RUN : "${NODE_VERSION:?}" \+ && tmp="$(mktemp -d)" && dist="https://nodejs.org/dist/v${NODE_VERSION}" \+ && tarball="node-v${NODE_VERSION}-linux-x64.tar.xz" \+ && curl -fsSL --retry 5 "$dist/SHASUMS256.txt" -o "$tmp/SHASUMS256.txt" \+ && curl -fsSL --retry 5 "$dist/$tarball" -o "$tmp/$tarball" \+ && (cd "$tmp" && grep " $tarball\$" SHASUMS256.txt | sha256sum -c -) \+ && tar -xJf "$tmp/$tarball" -C /usr/local --strip-components=1 --no-same-owner \+ && rm -rf "$tmp" \+ && node --version++# ---- Chromium and Playwright+# The library is global (`npm link playwright` in a project gets the matching+# one); the browsers are in /opt/ms-playwright, readable by everyone, and+# Chromium's system libraries come from Playwright's own list.+ARG PLAYWRIGHT_VERSION+RUN : "${PLAYWRIGHT_VERSION:?}" \+ && npm install -g --no-audit --no-fund "playwright@${PLAYWRIGHT_VERSION}" \+ && PLAYWRIGHT_BROWSERS_PATH=/opt/ms-playwright playwright install --with-deps chromium chromium-headless-shell \+ && chmod -R a+rX /opt/ms-playwright \+ && rm -rf /var/lib/apt/lists/* /root/.npm /root/.cache++# ---- toolchains: Go, uv, gh; each checksum-verified against its release+ARG GO_VERSION+ARG UV_VERSION+ARG GH_VERSION+RUN : "${GO_VERSION:?}" "${UV_VERSION:?}" "${GH_VERSION:?}" \+ && tmp="$(mktemp -d)" && cd "$tmp" \+ && go_tgz="go${GO_VERSION}.linux-amd64.tar.gz" \+ && curl -fsSL --retry 5 "https://dl.google.com/go/$go_tgz" -o "$go_tgz" \+ && echo "$(curl -fsSL --retry 5 "https://dl.google.com/go/$go_tgz.sha256") $go_tgz" | sha256sum -c - \+ && tar -C /usr/local -xzf "$go_tgz" \+ && uv_tgz="uv-x86_64-unknown-linux-gnu.tar.gz" \+ && uv_url="https://github.com/astral-sh/uv/releases/download/${UV_VERSION}" \+ && curl -fsSL --retry 5 "$uv_url/$uv_tgz" -o "$uv_tgz" \+ && curl -fsSL --retry 5 "$uv_url/$uv_tgz.sha256" | sha256sum -c - \+ && tar -xzf "$uv_tgz" -C /usr/local/bin --strip-components=1 --no-same-owner \+ && gh_deb="gh_${GH_VERSION}_linux_amd64.deb" \+ && gh_url="https://github.com/cli/cli/releases/download/v${GH_VERSION}" \+ && curl -fsSL --retry 5 "$gh_url/$gh_deb" -o "$gh_deb" \+ && curl -fsSL --retry 5 "$gh_url/gh_${GH_VERSION}_checksums.txt" | grep " $gh_deb\$" | sha256sum -c - \+ && dpkg -i "$gh_deb" \+ && cd / && rm -rf "$tmp" \+ && /usr/local/go/bin/go version && uv --version && /usr/bin/gh --version++# ---- CLIs+# Codex in its own prefix, off PATH: runners find it through SP_CODEX_BIN, and+# a session's `codex` is whatever the person installs.+ARG CODEX_VERSION+ARG CLAUDE_CODE_VERSION+ARG OPENCOMPUTER_CLI_VERSION+RUN : "${CODEX_VERSION:?}" "${CLAUDE_CODE_VERSION:?}" "${OPENCOMPUTER_CLI_VERSION:?}" \+ && npm install -g --no-audit --no-fund \+ "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" "@opencomputer/cli@${OPENCOMPUTER_CLI_VERSION}" \+ && npm install -g --prefix /usr/local/lib/codex --no-audit --no-fund "@openai/codex@${CODEX_VERSION}" \+ && rm -rf /root/.npm /root/.cache \+ && claude --version && /usr/local/bin/opencomputer --version && /usr/local/lib/codex/bin/codex --version++# ---- user and config+# agent is uid and gid 1500, as on every computer (`--userns=keep-id` maps the+# host's agent onto it). Podman copies the image's content at /home/agent into+# a new home volume, so the parents a session's tools would otherwise create+# as root exist here, owned by agent. /workspace and /clones are mount targets.+RUN groupadd --gid 1500 agent \+ && useradd --uid 1500 --gid 1500 --create-home --home-dir /home/agent --shell /bin/bash agent \+ && install -d -o 1500 -g 1500 \+ /home/agent/.local /home/agent/.local/share /home/agent/.local/share/containers \+ /home/agent/.local/bin /home/agent/.cache /home/agent/go \+ /workspace /clones \+ && install -d /etc/containers && touch /etc/containers/nodocker+COPY --chmod=0644 subuid /etc/subuid+COPY --chmod=0644 subuid /etc/subgid+COPY --chmod=0440 sudoers /etc/sudoers.d/agent+COPY --chmod=0644 containers.conf /etc/containers/containers.conf+COPY --chmod=0644 registries.conf /etc/containers/registries.conf+COPY --chmod=0644 gitconfig /etc/gitconfig+COPY --chmod=0755 sp-session-init /usr/local/bin/sp-session-init++# The one owner of every constant a process in the container needs. The host+# adds per-container values at create and per-start values through boot.env.+ENV PATH=/opt/slack-presence/current/bin:/usr/local/go/bin:/home/agent/go/bin:/home/agent/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \+ HOME=/home/agent \+ USER=agent \+ LOGNAME=agent \+ SHELL=/bin/bash \+ LANG=C.UTF-8 \+ TMPDIR=/tmp \+ PLAYWRIGHT_BROWSERS_PATH=/opt/ms-playwright \+ SP_CODEX_BIN=/usr/local/lib/codex/bin/codex \+ SP_REAL_GH=/usr/bin/gh \+ SP_REAL_OPENCOMPUTER=/usr/local/bin/opencomputer \+ SP_MODEL_SOCKET=/run/oc-modelproxy/api/api.sock \+ DISABLE_AUTOUPDATER=1 \+ __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=.opencomputer.app++USER 1500:1500+ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/sp-session-init"]diff --git a/computer/deploy/image/containers.conf b/computer/deploy/image/containers.confnew file mode 100644index 00000000..2c5aa5cb--- /dev/null+++ b/computer/deploy/image/containers.conf@@ -0,0 +1,16 @@+# Podman inside a session (work 103, C11): the settings of the official+# Podman-in-Podman image (containers/image_build, podman/containers.conf, read+# 2026-11-12). Inner containers share the session's network and cgroup; they are+# not limited separately.+[containers]+netns = "host"+userns = "host"+ipcns = "host"+utsns = "host"+cgroupns = "host"+cgroups = "disabled"+log_driver = "k8s-file"+[engine]+cgroup_manager = "cgroupfs"+events_logger = "file"+runtime = "crun"diff --git a/computer/deploy/image/gitconfig b/computer/deploy/image/gitconfignew file mode 100644index 00000000..af076b2c--- /dev/null+++ b/computer/deploy/image/gitconfig@@ -0,0 +1,22 @@+# /etc/gitconfig of the session image (work 103): what deploy/vm/provision.sh writes+# to agent's global config on the host. GitHub and automation-repository credentials+# come only from the helper, which asks the host's token socket; the empty helper+# resets the list, and useHttpPath lets the helper see the repository.+[credential "https://github.com"]+ helper =+ helper = /opt/slack-presence/current/bin/git-credential-slack-presence+ useHttpPath = true+[credential "https://*.code.storage"]+ helper =+ helper = /opt/slack-presence/current/bin/git-credential-slack-presence+ useHttpPath = true+[init]+ defaultBranch = main+[fetch]+ prune = true+[push]+ autoSetupRemote = true+# Mounted clones, worktrees and the root-owned release all belong to other uids+# than the one git may run as here (agent, or root through sudo).+[safe]+ directory = *diff --git a/computer/deploy/image/registries.conf b/computer/deploy/image/registries.confnew file mode 100644index 00000000..d44d892d--- /dev/null+++ b/computer/deploy/image/registries.conf@@ -0,0 +1 @@+unqualified-search-registries = ["docker.io"]diff --git a/computer/deploy/image/sp-session-init b/computer/deploy/image/sp-session-initnew file mode 100755index 00000000..aaa56666--- /dev/null+++ b/computer/deploy/image/sp-session-init@@ -0,0 +1,6 @@+#!/bin/sh+# Start the runner the host described in boot.env (work 103). Exit 71: no boot file.+set -eu+[ -r "$SP_RUN/boot.env" ] || exit 71+set -a; . "$SP_RUN/boot.env"; set +a+exec node "$SP_ROOT/dist/runner-boot.mjs"diff --git a/computer/deploy/image/subuid b/computer/deploy/image/subuidnew file mode 100644index 00000000..cfe1f89f--- /dev/null+++ b/computer/deploy/image/subuid@@ -0,0 +1,2 @@+agent:1:1499+agent:1501:64036diff --git a/computer/deploy/image/sudoers b/computer/deploy/image/sudoersnew file mode 100644index 00000000..5b5907f9--- /dev/null+++ b/computer/deploy/image/sudoers@@ -0,0 +1 @@+agent ALL=(ALL) NOPASSWD: ALLdiff --git a/computer/deploy/image/versions.env b/computer/deploy/image/versions.envnew file mode 100644index 00000000..c747e816--- /dev/null+++ b/computer/deploy/image/versions.env@@ -0,0 +1,15 @@+# The exact version of everything the Containerfile installs by version (work 103).+# The workflow passes each line as a build argument; nothing is installed as `latest`.+# This file owns these versions for the session image; deploy/vm/provision.sh keeps its+# own for the host until work 103 step 12. Changing a line changes the image tag.+# Resolved on 2026-11-12: Node and Go are the patches provision.sh picked that day+# (latest-v24.x, the latest stable 1.27); the rest were the current releases.+NODE_VERSION=24.22.3+GO_VERSION=1.27.4+UV_VERSION=0.13.8+GH_VERSION=2.103.3+PLAYWRIGHT_VERSION=1.64.1+# Pinned with the harness: it speaks this version's app-server protocol (work 082).+CODEX_VERSION=0.163.0+CLAUDE_CODE_VERSION=2.1.322+OPENCOMPUTER_CLI_VERSION=0.7.23