From c753f4c895985958729e7db81f937c8f1b68a711 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 11 Oct 2026 15:24:47 -0500 Subject: [PATCH 1/3] gates: fresh HOME for a step when the sandbox HOME is read-only SC-TEST and SC-AGENT-PREFLIGHT failed on main bba027d under the aien-run sandbox: aien-cli browser_mirror::tests::stub_page_screenshot_and_eval got 'chrome exited early: signal: 5 (SIGTRAP)'. Reproduced by hand through aien-run-exec: with HOME=/var/lib/aien-run (read-only) Chrome's crashpad handler has no database and Chrome traps; with a writable HOME the same command renders the page. GitHub runners give every job a writable HOME, so run.sh now does the same when HOME is not writable. Co-Authored-By: Claude Fable 5.1 --- tests/gates/run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 6813567e..e792e610 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -14,6 +14,14 @@ set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" cd "$ROOT" step="${1:?usage: tests/gates/run.sh }" +# GitHub runners give every job a writable HOME; the sandbox's HOME (/var/lib/aien-run) is read-only on +# purpose. Tools that write under HOME (Chrome's crash database in aien-cli's browser_mirror test, which +# otherwise dies with SIGTRAP) get a fresh one for this step. CARGO_HOME and RUSTUP_HOME are set by the +# sandbox and do not follow HOME. +if [ -n "${HOME:-}" ] && [ ! -w "$HOME" ]; then + HOME="$(mktemp -d)"; export HOME + trap 'rm -rf "$HOME"' EXIT +fi obs() { printf 'AIEN-OBS %s %s\n' "$1" "$2"; } # Outside the worktree when CARGO_TARGET_DIR is, and under target/ otherwise: the hosted test job # has no pin checkouts in its tree, and test_t2_f65 scans the tree (minus target/) for *.pem files, From 22632a56c52fca6ddef14ae0b0890ea69a194e1e Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 11 Oct 2026 15:45:47 -0500 Subject: [PATCH 2/3] gates: keep the sandbox .gitconfig in the fresh HOME The fresh HOME dropped /var/lib/aien-run/.gitconfig (safe.directory = *), so git refused the operator-owned checkout: CRUMB-VERIFY, SC-CRB1, SC-TRN1, SC-LINKED-COMPOSE and SC-RELEASE-GATE-NEGATIVES failed in the operator proof run of the first version of this fix. Co-Authored-By: Claude Opus 5.5 --- tests/gates/run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/gates/run.sh b/tests/gates/run.sh index e792e610..19fcaf13 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -16,11 +16,15 @@ cd "$ROOT" step="${1:?usage: tests/gates/run.sh }" # GitHub runners give every job a writable HOME; the sandbox's HOME (/var/lib/aien-run) is read-only on # purpose. Tools that write under HOME (Chrome's crash database in aien-cli's browser_mirror test, which -# otherwise dies with SIGTRAP) get a fresh one for this step. CARGO_HOME and RUSTUP_HOME are set by the -# sandbox and do not follow HOME. +# otherwise dies with SIGTRAP) get a fresh one for this step. The sandbox's git settings come along: +# its .gitconfig trusts the operator-owned checkout (safe.directory), and without it git refuses the +# tree ("not inside a git repository"). CARGO_HOME and RUSTUP_HOME are set by the sandbox and do not +# follow HOME. if [ -n "${HOME:-}" ] && [ ! -w "$HOME" ]; then + ro_home="$HOME" HOME="$(mktemp -d)"; export HOME trap 'rm -rf "$HOME"' EXIT + if [ -f "$ro_home/.gitconfig" ]; then cp "$ro_home/.gitconfig" "$HOME/.gitconfig"; fi fi obs() { printf 'AIEN-OBS %s %s\n' "$1" "$2"; } # Outside the worktree when CARGO_TARGET_DIR is, and under target/ otherwise: the hosted test job From cce5e15aea9f92280ace799c936301c274e4ff36 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 11 Oct 2026 15:45:48 -0500 Subject: [PATCH 3/3] crumb compile + verify (last commit) Co-Authored-By: Claude Opus 5.5 --- .crumb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.crumb b/.crumb index 651c2575..b010b5f0 100644 --- a/.crumb +++ b/.crumb @@ -101,7 +101,7 @@ }, { "digest": "07f19c8d7013a03659eb514ccf94dd7ff76f2ff3ce3736cc3bb11c156ed30e1c", - "last_commit": "2a1b901", + "last_commit": "4353727", "name": "scripts", "purpose": "" }, @@ -119,14 +119,14 @@ } ], "children_root": "sha256:51934dfd49549a190cb949b997750b0a98ff7bd0edbfdb204d24b56f6bd6f1e5", - "compiled_at": "2026-10-11T20:24:07Z", + "compiled_at": "2026-10-11T20:45:48Z", "compiler": "crumb-compile/1", - "digest": "sha256:6584c0907c65c1f3afc50c0650ec4fa0e281c1f2bb31bb3fd0d2815476f5b399", + "digest": "sha256:94df7dbfac12c4e3e618e0c19e0b0b5596e67146b3d0ab738f87ea883f1412d6", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", "files": 3856, - "generated_at_commit": "cc3fd4f0794c49f5f311e407a290d873bc1417fd", - "source_tree": "sha256:1f494efee52692167ba79c9ed196e9d7087842b483b092fd320b5dfbc86061e9" + "generated_at_commit": "22632a56c52fca6ddef14ae0b0890ea69a194e1e", + "source_tree": "sha256:5c8d3b6e20f4ab3a9166aa5af10bef43ded0526c8b525b6a3cf6f0ad88f66209" } }, "history": [],