Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1446df5
security(ci): suppress automatic Docker build records in base-image.yml
mark-e-deyoung Oct 23, 2026
6d3ffa1
security(ci): suppress automatic Docker build records in nightly-soak…
mark-e-deyoung Oct 23, 2026
8542d58
security(ci): suppress automatic Docker build records in release.yml
mark-e-deyoung Oct 23, 2026
dba9304
security(ci): suppress automatic Docker build records in reusable-bui…
mark-e-deyoung Oct 23, 2026
879a3c0
test(ci): fail closed on future Docker build-record uploads
mark-e-deyoung Oct 23, 2026
37b321a
style(ci): normalize import-block spacing in artifact guard test
mark-e-deyoung Oct 23, 2026
4ac9b17
test(ci): support early no-dependency artifact policy gate
mark-e-deyoung Oct 23, 2026
0b10059
security(ci): enforce artifact publication policy in preflight lint
mark-e-deyoung Oct 23, 2026
d690e77
fix(test): permit guarded workflow header ending at jobs boundary
mark-e-deyoung Oct 23, 2026
cae00f9
qualification: combine exact asset repair with guarded CI artifacts
mark-e-deyoung Oct 23, 2026
4101c67
qualification: carry exact security reporter scripts/ci/sanitize-conf…
mark-e-deyoung Oct 23, 2026
5822a7c
qualification: carry exact security reporter tests/test_ci_public_con…
mark-e-deyoung Oct 23, 2026
1f79ace
qualification: use exact sanitized conformance upload workflow
mark-e-deyoung Oct 23, 2026
cfa2fc8
qualification: compose BuildKit upload control with sanitized release…
mark-e-deyoung Oct 23, 2026
9be121a
qualification: update public summary fixture and quiet output in one …
mark-e-deyoung Oct 23, 2026
54f9fcc
qualification: suppress pytest short summary leaks with -rN
mark-e-deyoung Oct 23, 2026
f573588
qualification: preserve exact source/tested checkout receipt in safe …
mark-e-deyoung Oct 23, 2026
6b33a5e
qualification: retain #125 BuildKit artifact guard with trust-pack so…
mark-e-deyoung Oct 23, 2026
8814b49
qualification: restore executable script modes lost in generated tree
mark-e-deyoung Oct 23, 2026
c54cbad
rdte(game): qualify pinned free OpenTTD Windows executable and visibl…
mark-e-deyoung Oct 23, 2026
c65d1c7
rdte(game): allow asynchronous Wine process/window handoff before dec…
mark-e-deyoung Oct 23, 2026
4be9b1e
rdte(game): add isolated Mesa LLVMpipe layer for Windows OpenTTD rend…
mark-e-deyoung Oct 23, 2026
8f0ce20
ci(game): run Windows OpenTTD with explicitly installed LLVMpipe rath…
mark-e-deyoung Oct 23, 2026
675949b
rdte(game): control Wine/X11 with Notepad and test OpenTTD documented…
mark-e-deyoung Oct 23, 2026
8758269
rdte(game): isolate Wine/X11 no-window baseline from container user/H…
mark-e-deyoung Oct 23, 2026
2b8effb
rdte(game): verify OpenTTD rendered window pixels, publish only safe …
mark-e-deyoung Oct 23, 2026
54daa7d
rdte(game): keep OpenTTD window alive until scoped pixel capture comp…
mark-e-deyoung Oct 23, 2026
0614f75
rdte(game): qualify nonroot Wine prefix/X11 using disposable writable…
mark-e-deyoung Oct 24, 2026
47dda66
rdte(nonroot): compare tmpfs versus owned-home Wine prefixes with bou…
mark-e-deyoung Oct 24, 2026
2d17782
fix(rdte): remove nested shell quoting hazard from nonroot Wine diagn…
mark-e-deyoung Oct 24, 2026
b4731c7
ci(game): independently qualify nonroot OpenTTD real Windows frame wi…
mark-e-deyoung Oct 24, 2026
2fbeade
test(rdte): source-backed OpenTTD deterministic game creation in nonr…
mark-e-deyoung Oct 29, 2026
370e17b
test(rdte): pin Wine CPU 133 experiment to qualified Ubuntu 24.04 venue
mark-e-deyoung Nov 6, 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
5 changes: 5 additions & 0 deletions .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ permissions:
packages: write
id-token: write

# Public-source security hold: BuildKit history may contain unreviewed build diagnostics.
# Retain normal job logs/explicit artifacts; suppress automatic .dockerbuild upload.
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'

defaults:
run:
shell: bash -euo pipefail {0}
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ jobs:
if [ -z "$TOKEN" ]; then
TOKEN=$(docker compose -f compose/docker-compose.yml exec -T winebot cat /winebot-shared/winebot_api_token 2>/dev/null || true)
fi
if [ -z "$TOKEN" ]; then
echo "Conformance token unavailable" >&2
exit 1
fi
echo "::add-mask::$TOKEN"
echo "token=$TOKEN" >> "$GITHUB_OUTPUT"
echo "API token read: ${TOKEN:0:8}..." >> "$GITHUB_STEP_SUMMARY"

- name: Run conformance tests
env:
Expand All @@ -109,14 +113,23 @@ jobs:
--api-url "$API_URL" \
--api-token "$API_TOKEN" \
--results-file conformance-results.json \
-v --tb=short
-v --tb=no --show-capture=no -rN

- name: Upload conformance results
- name: Project safe public conformance evidence
id: public-conformance-summary
if: always()
run: |
python3 winebot/scripts/ci/sanitize-conformance-results.py \
--input conformance-results.json \
--output conformance-summary-public.json

- name: Upload conformance results
if: ${{ always() && steps.public-conformance-summary.outcome == 'success' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: conformance-results
path: conformance-results.json
path: conformance-summary-public.json
if-no-files-found: error

- name: Stop services
if: always()
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nightly-soak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
permissions:
contents: read

# Public-source security hold: BuildKit history may contain unreviewed build diagnostics.
# Retain normal job logs/explicit artifacts; suppress automatic .dockerbuild upload.
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'

defaults:
run:
shell: bash -euo pipefail {0}
Expand Down
299 changes: 299 additions & 0 deletions .github/workflows/openttd-win-cpu-rdte.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
name: OpenTTD Windows Game CPU RDTE
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/openttd-win-cpu-rdte.yml
- docker/openttd-software-gl.Dockerfile
permissions:
contents: read
concurrency:
group: openttd-win-rdte-${{ github.ref }}
cancel-in-progress: true

jobs:
openttd-win64-cpu:
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Fetch officially checksummed game and free graphics assets
timeout-minutes: 5
run: |
mkdir -p "$RUNNER_TEMP/win-game" "$RUNNER_TEMP/opengfx"
curl -fsSL --retry 1 --connect-timeout 10 --max-time 120 \
https://cdn.openttd.org/openttd-releases/15.3/openttd-15.3-windows-win64.zip \
-o "$RUNNER_TEMP/openttd.zip"
echo "61c0a6a43d81008c7ff4330fb56351bbf66a980cdad041f1d0e08b51f2eeb34c $RUNNER_TEMP/openttd.zip" | sha256sum -c --status
curl -fsSL --retry 1 --connect-timeout 10 --max-time 120 \
https://cdn.openttd.org/opengfx-releases/8.0/opengfx-8.0-all.zip \
-o "$RUNNER_TEMP/opengfx.zip"
echo "43a0c1dabf39cb865394f3a6cc36d4da5c10ecfaaf55652043104806810903be $RUNNER_TEMP/opengfx.zip" | sha256sum -c --status
unzip -qq "$RUNNER_TEMP/openttd.zip" -d "$RUNNER_TEMP/win-game"
unzip -qq "$RUNNER_TEMP/opengfx.zip" -d "$RUNNER_TEMP/opengfx"
game="$(find "$RUNNER_TEMP/win-game" -type f -iname openttd.exe -print -quit)"
test -n "$game"
basedir="$(dirname "$game")/baseset"
mkdir -p "$basedir"
find "$RUNNER_TEMP/opengfx" -type f \( -iname '*.tar' -o -iname '*.obg' -o -iname '*.grf' \) -exec cp -n '{}' "$basedir" \;
test "$(find "$basedir" -type f | wc -l)" -ge 1
echo 'PASS: official game and free base graphics integrity and staging'
- name: Build WineBot experiment image without publication
timeout-minutes: 13
run: |
docker build -f docker/Dockerfile --target intent-slim -t winebot:openttd-rdte .
docker build -f docker/openttd-software-gl.Dockerfile -t winebot:openttd-cpu .
- name: Launch actual Windows OpenTTD through Wine and confirm visible game window
timeout-minutes: 3
run: |
timeout -k 10s 155s docker run --rm --init --network none \
--cpus=2 --memory=3g --pids-limit=256 \
-e WINEPREFIX=/tmp/winebot-openttd-fixture \
-e WINEDEBUG=-all -e LIBGL_ALWAYS_SOFTWARE=1 \
-e GALLIUM_DRIVER=llvmpipe -e LP_NUM_THREADS=4 \
-v "$RUNNER_TEMP/win-game:/game:ro" \
--entrypoint /usr/bin/xvfb-run winebot:openttd-cpu \
-a -s '-screen 0 1280x720x24 +extension GLX -nolisten tcp' \
/bin/bash -euo pipefail -c '
# Qualify this very Xvfb/Wine context before blaming the game.
if ! glxinfo -B 2>/dev/null | grep -qi llvmpipe; then
echo "UNQUALIFIED: LLVMpipe renderer unavailable inside game cell"
exit 2
fi
echo "PASS: game-cell software GLX"
wine notepad.exe >/tmp/wine-builtin-local.log 2>&1 &
baseline=0
for i in $(seq 1 60); do
if xdotool search --onlyvisible --name Notepad >/dev/null 2>&1; then
baseline=1
break
fi
sleep 0.5
done
wineserver -k >/dev/null 2>&1 || true
if [ "$baseline" -ne 1 ]; then
echo "UNQUALIFIED: Wine built-in X11 window control"
exit 2
fi
echo "PASS: Wine built-in X11 window control"
exe="$(find /game -type f -iname openttd.exe -print -quit)"
test -n "$exe"
cd "$(dirname "$exe")"
# Select the documented Win32 video driver for a GDI baseline.
wine "$exe" -v win32 -m null -s null -x >/tmp/wine-game-local.log 2>&1 &
game_pid=$!
found=0
for i in $(seq 1 100); do
if xdotool search --onlyvisible --name OpenTTD >/dev/null 2>&1 || \
xdotool search --onlyvisible --class openttd >/dev/null 2>&1; then
found=1
break
fi
# Wine launchers can return before the child X11 window appears.
sleep 0.6
done
if [ "$found" -ne 1 ]; then
echo "UNQUALIFIED: Windows game window not visible after qualified Wine/X11 control"
exit 2
fi
echo "PASS: Windows OpenTTD game window visible under Wine"
# Window-scoped local-only capture; publish only dimensions and color diversity.
wid="$(xdotool search --onlyvisible --name OpenTTD 2>/dev/null | head -1 || true)"
if [ -z "$wid" ]; then
wid="$(xdotool search --onlyvisible --class openttd 2>/dev/null | head -1 || true)"
fi
if [[ ! "$wid" =~ ^[0-9]{1,16}$ ]]; then
echo "UNQUALIFIED: game window id selection"
exit 2
fi
sleep 2
if ! import -window "$wid" /tmp/wine-openttd-scoped.png >/dev/null 2>&1; then
echo "UNQUALIFIED: scoped window capture"
exit 2
fi
read -r image_w image_h image_colors <<< "$(identify -format "%w %h %k" /tmp/wine-openttd-scoped.png 2>/dev/null || true)"
if [[ ! "${image_w:-}" =~ ^[0-9]{1,4}$ ||
! "${image_h:-}" =~ ^[0-9]{1,4}$ ||
! "${image_colors:-}" =~ ^[0-9]{1,9}$ ]] ||
[ "$image_w" -lt 200 ] || [ "$image_h" -lt 120 ] ||
[ "$image_colors" -lt 40 ]; then
echo "UNQUALIFIED: window content variety/dimensions"
exit 2
fi
echo "PASS: OpenTTD scoped color-content smoke"
kill "$game_pid" 2>/dev/null || true
wineserver -k >/dev/null 2>&1 || true
# PNG is deleted with the disposable container; never uploaded.
'
- name: Qualify unprivileged Wine home and X11 controls independently
timeout-minutes: 3
run: |
echo 'BEGIN: unprivileged synthetic Wine X11 control'
timeout -k 10s 160s docker run --rm --init --network none \
--user 1000:1000 --cpus=2 --memory=3g --pids-limit=256 \
--tmpfs /tmp:rw,exec,nosuid,size=512m,mode=1777 \
-e HOME=/home/winebot -e WINEPREFIX=/tmp/winebot-nonroot-fixture \
-e WINEDEBUG=-all -e LIBGL_ALWAYS_SOFTWARE=1 -e GALLIUM_DRIVER=llvmpipe \
--entrypoint /usr/bin/xvfb-run winebot:openttd-cpu \
-a -s '-screen 0 640x480x24 +extension GLX -nolisten tcp' \
/bin/bash -euo pipefail -c '
if [ "$(id -u)" -ne 1000 ] || [ ! -w "$HOME" ] || [ ! -w /tmp ]; then
echo "UNQUALIFIED: nonroot identity or writable home/tmp"
exit 2
fi
echo "PASS: unprivileged identity and writable home/tmp"
if ! command -v wineboot >/dev/null 2>&1 ||
! wine --version >/dev/null 2>&1; then
echo "UNQUALIFIED: nonroot Wine binary/launcher unavailable"
exit 2
fi
tmp_rc=0
timeout -k 5s 45s wineboot -u >/tmp/wineboot-job-local.log 2>&1 || tmp_rc=$?
if [ "$tmp_rc" -ne 0 ]; then
echo "OBS: nonroot tmpfs Wine prefix initialization failed rc=$tmp_rc"
export WINEPREFIX="$HOME/.winebot-nonroot-fixture"
home_rc=0
timeout -k 5s 45s wineboot -u >/tmp/wineboot-home-local.log 2>&1 || home_rc=$?
if [ "$home_rc" -ne 0 ]; then
echo "UNQUALIFIED: nonroot Wine prefix tmp_rc=$tmp_rc home_rc=$home_rc"
exit 2
fi
echo "PASS: nonroot Wine prefix under writable home"
else
echo "PASS: nonroot Wine prefix on isolated tmpfs"
fi
wine notepad.exe >/tmp/notepad-job-local.log 2>&1 &
found=0
for i in $(seq 1 60); do
if xdotool search --onlyvisible --name Notepad >/dev/null 2>&1; then
found=1
break
fi
sleep 0.5
done
wineserver -k >/dev/null 2>&1 || true
if [ "$found" -ne 1 ]; then
echo "UNQUALIFIED: unprivileged Wine X11 visible window"
exit 2
fi
echo "PASS: unprivileged Wine X11 visible window"
'
- name: Start real Windows OpenTTD with verified unprivileged HOME prefix
timeout-minutes: 3
run: |
timeout -k 10s 160s docker run --rm --init --network none \
--user 1000:1000 --cpus=2 --memory=3g --pids-limit=256 \
--tmpfs /tmp:rw,exec,nosuid,size=512m,mode=1777 \
-e HOME=/home/winebot -e WINEDEBUG=-all \
-e LIBGL_ALWAYS_SOFTWARE=1 -e GALLIUM_DRIVER=llvmpipe \
-v "$RUNNER_TEMP/win-game:/game:ro" \
--entrypoint /usr/bin/xvfb-run winebot:openttd-cpu \
-a -s '-screen 0 1280x720x24 +extension GLX -nolisten tcp' \
/bin/bash -euo pipefail -c '
if [ "$(id -u)" -ne 1000 ] || [ ! -w "$HOME" ]; then
echo "UNQUALIFIED: nonroot writable HOME"
exit 2
fi
export WINEPREFIX="$HOME/.winebot-game-fixture"
if ! timeout -k 5s 65s wineboot -u >/tmp/wineboot-game-local.log 2>&1; then
echo "UNQUALIFIED: nonroot HOME prefix initialization"
exit 2
fi
exe="$(find /game -type f -iname openttd.exe -print -quit)"
if [ -z "$exe" ]; then
echo "UNQUALIFIED: verified Windows executable missing"
exit 2
fi
cd "$(dirname "$exe")"
wine "$exe" -v win32 -m null -s null -x >/tmp/wine-game-nonroot-local.log 2>&1 &
proc=$!
wid=""
for i in $(seq 1 100); do
wid="$(xdotool search --onlyvisible --name OpenTTD 2>/dev/null | head -1 || true)"
if [[ "$wid" =~ ^[0-9]{1,16}$ ]]; then break; fi
sleep 0.4
done
if [[ ! "$wid" =~ ^[0-9]{1,16}$ ]]; then
echo "UNQUALIFIED: nonroot Windows game window"
exit 2
fi
sleep 2
if ! import -window "$wid" /tmp/wine-nonroot-scoped.png >/dev/null 2>&1; then
echo "UNQUALIFIED: nonroot window capture"
exit 2
fi
read -r w h colors <<< "$(identify -format "%w %h %k" /tmp/wine-nonroot-scoped.png 2>/dev/null || true)"
if [[ ! "${w:-}" =~ ^[0-9]{1,4}$ || ! "${h:-}" =~ ^[0-9]{1,4}$ || ! "${colors:-}" =~ ^[0-9]{1,9}$ ]] ||
[ "$w" -lt 200 ] || [ "$h" -lt 120 ] || [ "$colors" -lt 40 ]; then
echo "UNQUALIFIED: nonroot game framebuffer"
exit 2
fi
echo "PASS: real Windows game visual frame under UID1000 HOME-owned Wine prefix"
kill "$proc" >/dev/null 2>&1 || true
wineserver -k >/dev/null 2>&1 || true
'
- name: Source-backed deterministic Win32 OpenTTD new-world smoke
timeout-minutes: 3
run: |
timeout -k 10s 160s docker run --rm --init --network none \
--user 1000:1000 --cpus=2 --memory=3g --pids-limit=256 \
--tmpfs /tmp:rw,exec,nosuid,size=512m,mode=1777 \
-e HOME=/home/winebot -e WINEDEBUG=-all \
-e LIBGL_ALWAYS_SOFTWARE=1 -e GALLIUM_DRIVER=llvmpipe \
-v "$RUNNER_TEMP/win-game:/game:ro" \
--entrypoint /usr/bin/xvfb-run winebot:openttd-cpu \
-a -s '-screen 0 1280x720x24 +extension GLX -nolisten tcp' \
/bin/bash -euo pipefail -c '
export WINEPREFIX="$HOME/.winebot-newworld-fixture"
if ! timeout -k 5s 65s wineboot -u >/tmp/openttd-prefix-local.log 2>&1; then
echo "UNQUALIFIED: deterministic world HOME Wine prefix"
exit 2
fi
exe="$(find /game -type f -iname openttd.exe -print -quit)"
if [ -z "$exe" ]; then echo "UNQUALIFIED: pinned game executable absent"; exit 2; fi
cd "$(dirname "$exe")"
# OpenTTD 15.3 src/openttd.cpp ShowHelp:
# -g creates a game and -G supplies its PRNG seed.
wine "$exe" -v win32 -m null -s null -g -G 61731 \
>/tmp/openttd-world-local.log 2>&1 &
proc=$!
wid=""
for i in $(seq 1 100); do
wid="$(xdotool search --onlyvisible --name OpenTTD 2>/dev/null | head -1 || true)"
if [[ "$wid" =~ ^[0-9]{1,16}$ ]]; then break; fi
if ! kill -0 "$proc" 2>/dev/null; then
echo "UNQUALIFIED: deterministic world process exited"
exit 2
fi
sleep 0.5
done
if [[ ! "$wid" =~ ^[0-9]{1,16}$ ]]; then
echo "UNQUALIFIED: deterministic world window absent"
exit 2
fi
sleep 5
if ! import -window "$wid" /tmp/openttd-world-a.png >/dev/null 2>&1; then
echo "UNQUALIFIED: deterministic world scoped frame"
exit 2
fi
read -r w h colors <<< "$(identify -format "%w %h %k" /tmp/openttd-world-a.png 2>/dev/null || true)"
if [[ ! "$w" =~ ^[0-9]{1,4}$ || ! "$h" =~ ^[0-9]{1,4}$ ||
! "$colors" =~ ^[0-9]{1,9}$ ]]; then
echo "UNQUALIFIED: deterministic world frame stats"
exit 2
fi
echo "OBS: seeded-game window_width=$w height=$h colors=$colors"
if [ "$w" -lt 250 ] || [ "$h" -lt 180 ] || [ "$colors" -lt 70 ]; then
echo "UNQUALIFIED: seeded-game nonblank frame"
exit 2
fi
echo "PASS: documented seeded new-game startup and Win32 visible pixels"
kill "$proc" >/dev/null 2>&1 || true
wineserver -k >/dev/null 2>&1 || true
'
# This checks requested game initialization, not an independently
# decoded map, town, train, or in-world control.
# No screenshots, raw Wine logs, VNC listeners, game saves, secrets,
# machine identifiers, or artifacts uploaded by this RDTE.
Loading