Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4887c2f
[skip ci] test(winebot): add bounded public Freeciv surrogate workflow
mark-e-deyoung Nov 16, 2026
405655b
[skip ci] docs: record Freeciv surrogate scope and acceptance
mark-e-deyoung Nov 16, 2026
7a5e9e1
[skip ci] test: bounded real Freeciv process and I/O observer
mark-e-deyoung Nov 16, 2026
3160a20
[skip ci] test: add source-neutral Freeciv observer negative controls
mark-e-deyoung Nov 16, 2026
7adf120
docs(winebot): distinguish source-local preflight from public Freeciv…
mark-e-deyoung Nov 16, 2026
49e1f5f
[skip ci] fix(freeciv): capture version from stderr and fail on missi…
mark-e-deyoung Nov 16, 2026
33bbeb3
test(winebot): independently reject missing Freeciv version and read …
mark-e-deyoung Nov 16, 2026
62b82d1
[skip ci] style(freeciv): align observer imports with project lint rules
mark-e-deyoung Nov 16, 2026
c322e16
style(winebot): satisfy Ruff import contract for real-game surrogate
mark-e-deyoung Nov 16, 2026
214f907
test(freeciv): source-known ELF to live maps identity observer [skip ci]
mark-e-deyoung Nov 16, 2026
43d0f67
fix(freeciv): preserve source-verified Python regex/ELF escape litera…
mark-e-deyoung Nov 16, 2026
79764cb
test(freeciv): real ELF pid/maps identity and ASLR negatives [skip ci]
mark-e-deyoung Nov 16, 2026
57a00a6
docs(test): qualify eight Freeciv native sensor signals including ELF…
mark-e-deyoung Nov 16, 2026
05108b3
docs(test): qualify eight Freeciv native sensor signals including ELF…
mark-e-deyoung Nov 16, 2026
08e1ef7
feat(freeciv): require SHA/inode-backed live ELF load-map coherence […
mark-e-deyoung Nov 16, 2026
7188b5a
test(freeciv): public native two-seed ELF load-map qualification
mark-e-deyoung Nov 16, 2026
248d153
fix(freeciv): remove unused native load-map loop bindings [skip ci]
mark-e-deyoung Nov 16, 2026
c14a066
test(freeciv): conform ELF fixture to repository lint policy
mark-e-deyoung Nov 16, 2026
5e4387b
test(r050): source-known Freeciv save/reload semantic oracle with neg…
mark-e-deyoung Nov 16, 2026
a134a5e
rdte(freeciv): source-known AI turn advance and reload oracle [public…
mark-e-deyoung Nov 16, 2026
b021857
test(freeciv): resolve R051 SIM117 lint without relaxing turn oracle
mark-e-deyoung Nov 16, 2026
2b8508d
rdte(freeciv): native Ghidra 12.2 static function witness on public r…
mark-e-deyoung Nov 16, 2026
3b7af6d
exp(reversing): bounded Freeciv I/O boundary trace and multimodal CPU…
mark-e-deyoung Nov 16, 2026
25778db
exp(reversing): source-known ptrace RIP to Ghidra interval bridge; re…
mark-e-deyoung Nov 16, 2026
f846524
exp(reversing): bounded RIP single-step after idle-loop negative control
mark-e-deyoung Nov 16, 2026
29a34a7
chore(reversing): preserve RIP repeatability and fail-closed step-bud…
mark-e-deyoung Nov 16, 2026
edc9cbf
exp(observatory): qualify source-known child breakpoints and state ch…
mark-e-deyoung Nov 17, 2026
ca8fd31
fix(observatory): allow bounded public-runner symbol lookup preflight
mark-e-deyoung Nov 17, 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
53 changes: 53 additions & 0 deletions .github/workflows/surrogate-checkpoint-breakpoint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Public source-known breakpoint and checkpoint qualification
on:
pull_request:
paths:
- '.github/workflows/surrogate-checkpoint-breakpoint.yml'
- 'qualification/surrogates/freeciv/checkpoint/**'

permissions:
contents: read

concurrency:
group: source-known-breakpoint-${{ github.ref }}
cancel-in-progress: true

jobs:
external-child-breakpoint:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Checkout public fixture without persisted credentials
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Native direct-child breakpoint and deterministic negative controls
run: |
set -euo pipefail
ulimit -c 0
cd qualification/surrogates/freeciv/checkpoint
python3 -W error test_bridge.py -v
gcc -std=c11 -O0 -fno-pie -no-pie -fno-omit-frame-pointer \
-Wall -Wextra -Werror fixture.c -o "$RUNNER_TEMP/checkpoint-fixture"
sha=$(sha256sum "$RUNNER_TEMP/checkpoint-fixture" | cut -d ' ' -f1)
mkdir -p "$RUNNER_TEMP/checkpoint-public"
timeout 30s python3 bridge.py \
--binary "$RUNNER_TEMP/checkpoint-fixture" --expected-sha "$sha" \
--output "$RUNNER_TEMP/checkpoint-public/result.json"
python3 - "$RUNNER_TEMP/checkpoint-public/result.json" <<'PY'
import json,sys
x=json.load(open(sys.argv[1],encoding='utf-8'))
assert x['status']=='PASS' and x['breakpoint_hits']==2
assert x['breakpoint_original_bytes_restored'] and x['child_clean_exit']
assert x['state_transition_observed'] and len(x['checkpoint_digests'])==2
assert not any(key in x for key in ('rip','address','memory','pid','maps'))
print('PUBLIC_SOURCE_KNOWN_BREAKPOINT_CHECKPOINT_PASS')
PY
- name: Upload only allowlisted fixture checkpoint receipt
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: source-known-external-breakpoint-checkpoints
path: ${{ runner.temp }}/checkpoint-public/result.json
if-no-files-found: ignore
retention-days: 3
68 changes: 68 additions & 0 deletions .github/workflows/surrogate-critic-interview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Reversing observatory public-safe CPU critic interviews
on:
pull_request:
paths:
- '.github/workflows/surrogate-critic-interview.yml'
- 'qualification/surrogates/freeciv/critics/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: reversing-critic-${{ github.ref }}
cancel-in-progress: true

jobs:
critic-interview:
name: Source-neutral ${{ matrix.task_class }} CPU interview
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
fail-fast: false
max-parallel: 2
matrix:
task_class: [reasoning, vision, audio]
env:
HF_HUB_DISABLE_TELEMETRY: '1'
HF_HUB_DISABLE_XET: '1'
TRANSFORMERS_NO_TF: '1'
OMP_NUM_THREADS: '2'
MKL_NUM_THREADS: '2'
TOKENIZERS_PARALLELISM: 'false'
steps:
- name: Checkout public workcell with no persisted credentials
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Deterministic admission and red-team tests
run: |
set -euo pipefail
python3 qualification/surrogates/freeciv/critics/test_interview.py -v
python3 -m py_compile qualification/surrogates/freeciv/critics/interview.py
- name: Install CPU-only inference runtime and optional speech synthesizer
run: |
set -euo pipefail
python3 -m pip install --disable-pip-version-check --no-cache-dir --index-url https://download.pytorch.org/whl/cpu 'torch==2.6.0'
python3 -m pip install --disable-pip-version-check --no-cache-dir \
'transformers==4.56.2' 'huggingface_hub==0.35.3' \
'Pillow==11.3.0' 'numpy==2.1.3' 'soundfile==0.13.1' 'scipy==1.15.3'
if [ '${{ matrix.task_class }}' = audio ]; then
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends espeak-ng
fi
- name: Run actual open-weight model on bounded generated fixtures
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/public-critic"
timeout 800s python3 qualification/surrogates/freeciv/critics/interview.py \
--class '${{ matrix.task_class }}' \
--output "$RUNNER_TEMP/public-critic/critic-${{ matrix.task_class }}.json"
- name: Upload allowlisted critic interview receipt only
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: public-observatory-critic-${{ matrix.task_class }}
path: ${{ runner.temp }}/public-critic/*.json
if-no-files-found: ignore
retention-days: 3
53 changes: 53 additions & 0 deletions .github/workflows/surrogate-freeciv-boundary-io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Freeciv native read-write-map boundary qualification
on:
pull_request:
paths:
- '.github/workflows/surrogate-freeciv-boundary-io.yml'
- 'qualification/surrogates/freeciv/io_boundary.py'
- 'qualification/surrogates/freeciv/test_io_boundary.py'
- 'qualification/surrogates/freeciv/run_io_native.py'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: freeciv-io-boundary-${{ github.ref }}
cancel-in-progress: true
jobs:
native-io:
runs-on: ubuntu-24.04
timeout-minutes: 12
strategy:
fail-fast: false
max-parallel: 2
matrix:
seed: [42, 43]
steps:
- name: Checkout public-only workcell without credential persistence
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Offline adversarial trace tests
run: |
python3 qualification/surrogates/freeciv/test_io_boundary.py -v
python3 -m py_compile qualification/surrogates/freeciv/run_io_native.py
- name: Install open-source Freeciv and syscall observer
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends freeciv-server=3.1.0+ds-1build5 strace
- name: Actual source-known Freeciv file reads, writes and mmaps
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/freeciv-io-public"
timeout 100s python3 qualification/surrogates/freeciv/run_io_native.py \
--seed '${{ matrix.seed }}' --output "$RUNNER_TEMP/freeciv-io-public/receipt-${{ matrix.seed }}.json"
- name: Upload only bounded aggregate JSON
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: freeciv-io-boundary-public-${{ matrix.seed }}
path: ${{ runner.temp }}/freeciv-io-public/*.json
if-no-files-found: ignore
retention-days: 3
72 changes: 72 additions & 0 deletions .github/workflows/surrogate-freeciv-ghidra-pc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Freeciv source-known native PC to Ghidra interval qualification
on:
pull_request:
paths:
- '.github/workflows/surrogate-freeciv-ghidra-pc.yml'
- 'qualification/surrogates/freeciv/ghidra/PublicFreecivPcIntervals.java'
- 'qualification/surrogates/freeciv/ghidra/pc_bridge.py'
- 'qualification/surrogates/freeciv/ghidra/test_pc_bridge.py'
- 'qualification/surrogates/freeciv/ghidra/PC_BRIDGE.md'

permissions:
contents: read

jobs:
source-known-runtime-pc:
runs-on: ubuntu-24.04
timeout-minutes: 18
steps:
- name: Checkout public-only fixture without persisted credentials
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: JDK25 for pinned upstream Ghidra
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3
with:
distribution: temurin
java-version: '25'
- name: Bounded deterministic and live source-known ptrace negatives
run: |
set -euo pipefail
python3 qualification/surrogates/freeciv/ghidra/test_pc_bridge.py -v
- name: Install pinned open-source Freeciv and pinned official Ghidra 12.2
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends freeciv-server=3.1.0+ds-1build5 curl unzip
echo '33a15db1dc9a250c7ecf215c3fe6d50c34409301f4bb783914a6b16f3b3e8472 /usr/games/freeciv-server' | sha256sum -c -
curl -fLSs --retry 2 --connect-timeout 15 --max-time 230 \
'https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.2_build/ghidra_12.2_PUBLIC_20261016.zip' \
-o "$RUNNER_TEMP/ghidra.zip"
printf '%s %s\n' '2c2cd776db3c1f6a097ba418922378ac3649cadd5e844a6f5f088ae628a7be67' "$RUNNER_TEMP/ghidra.zip" | sha256sum -c -
mkdir -p "$RUNNER_TEMP/ghidra"
unzip -q "$RUNNER_TEMP/ghidra.zip" -d "$RUNNER_TEMP/ghidra"
- name: Native Ghidra body intervals and actual Linux x86-64 instruction pointers
run: |
set -euo pipefail
analyzer=$(find "$RUNNER_TEMP/ghidra" -type f -path '*/support/analyzeHeadless' -print -quit)
test -n "$analyzer"
mkdir -p "$RUNNER_TEMP/ghidra-projects" "$RUNNER_TEMP/private-pc" "$RUNNER_TEMP/public-safe"
"$analyzer" "$RUNNER_TEMP/ghidra-projects" FreecivPcSurrogate \
-import /usr/games/freeciv-server \
-scriptPath "$GITHUB_WORKSPACE/qualification/surrogates/freeciv/ghidra" \
-postScript PublicFreecivPcIntervals.java \
33a15db1dc9a250c7ecf215c3fe6d50c34409301f4bb783914a6b16f3b3e8472 \
"$RUNNER_TEMP/private-pc/ghidra-intervals.json" \
-analysisTimeoutPerFile 180 -max-cpu 2 -deleteProject \
> "$RUNNER_TEMP/private-pc/ghidra.log" 2>&1
test -s "$RUNNER_TEMP/private-pc/ghidra-intervals.json" || { echo GHIDRA_EPHEMERAL_RANGES_ABSENT; exit 1; }
python3 qualification/surrogates/freeciv/ghidra/pc_bridge.py \
--intervals "$RUNNER_TEMP/private-pc/ghidra-intervals.json" \
--output "$RUNNER_TEMP/public-safe/freeciv-pc-bridge.json" \
--rounds 180
- name: Upload only bounded PC/function-match counts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: freeciv-pc-ghidra-source-known-public
path: ${{ runner.temp }}/public-safe/freeciv-pc-bridge.json
if-no-files-found: ignore
retention-days: 3
66 changes: 66 additions & 0 deletions .github/workflows/surrogate-freeciv-ghidra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Freeciv real Ghidra static analysis source-known qualification
on:
pull_request:
paths:
- '.github/workflows/surrogate-freeciv-ghidra.yml'
- 'qualification/surrogates/freeciv/ghidra/**'

permissions:
contents: read

jobs:
ghidra-native-static:
runs-on: ubuntu-24.04
timeout-minutes: 18
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3
with:
distribution: temurin
java-version: '25'
- name: Validate independent source-neutral Ghidra witness negatives
run: python3 qualification/surrogates/freeciv/ghidra/test_validate.py -v
- name: Obtain open-source game and pinned official Ghidra release
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends freeciv-server=3.1.0+ds-1build5 unzip curl
echo '33a15db1dc9a250c7ecf215c3fe6d50c34409301f4bb783914a6b16f3b3e8472 /usr/games/freeciv-server' | sha256sum -c -
curl -fLSs --retry 2 --connect-timeout 15 --max-time 230 \
'https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.2_build/ghidra_12.2_PUBLIC_20261016.zip' \
-o "$RUNNER_TEMP/ghidra.zip"
printf '%s %s\n' '2c2cd776db3c1f6a097ba418922378ac3649cadd5e844a6f5f088ae628a7be67' "$RUNNER_TEMP/ghidra.zip" | sha256sum -c -
mkdir -p "$RUNNER_TEMP/ghidra"
unzip -q "$RUNNER_TEMP/ghidra.zip" -d "$RUNNER_TEMP/ghidra"
- name: Native Ghidra headless program analysis and typed verification
run: |
set -euo pipefail
analyzer=$(find "$RUNNER_TEMP/ghidra" -type f -path '*/support/analyzeHeadless' -print -quit)
test -n "$analyzer"
mkdir -p "$RUNNER_TEMP/ghidra-projects" "$RUNNER_TEMP/private-observe" "$RUNNER_TEMP/public-safe"
# Raw Ghidra logs stay in disposable runner scratch, never artifacts.
"$analyzer" "$RUNNER_TEMP/ghidra-projects" FreecivSurrogate \
-import /usr/games/freeciv-server \
-scriptPath "$GITHUB_WORKSPACE/qualification/surrogates/freeciv/ghidra" \
-postScript PublicFreecivWitness.java \
33a15db1dc9a250c7ecf215c3fe6d50c34409301f4bb783914a6b16f3b3e8472 \
"$RUNNER_TEMP/private-observe/ghidra.json" \
-analysisTimeoutPerFile 180 -max-cpu 2 -deleteProject \
> "$RUNNER_TEMP/private-observe/ghidra.log" 2>&1
test -s "$RUNNER_TEMP/private-observe/ghidra.json" || { echo 'GHIDRA_WITNESS_ABSENT'; exit 1; }
python3 qualification/surrogates/freeciv/ghidra/validate.py \
--input "$RUNNER_TEMP/private-observe/ghidra.json" \
--binary /usr/games/freeciv-server \
--output "$RUNNER_TEMP/public-safe/ghidra-static.json"
- name: Upload only allowlisted static witness
if: success()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: freeciv-ghidra-static-public
path: ${{ runner.temp }}/public-safe/ghidra-static.json
if-no-files-found: error
retention-days: 3
73 changes: 73 additions & 0 deletions .github/workflows/surrogate-freeciv-observatory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Freeciv native-surrogate observatory qualification
on:
pull_request:
paths:
- '.github/workflows/surrogate-freeciv-observatory.yml'
- 'qualification/surrogates/freeciv/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: surrogate-freeciv-${{ github.ref }}
cancel-in-progress: true

jobs:
native-source-known:
runs-on: ubuntu-24.04
timeout-minutes: 12
strategy:
fail-fast: false
max-parallel: 2
matrix:
seed: [42, 43]
steps:
- name: Checkout isolated public source without persisted credentials
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false

- name: Offline synthetic contract and actual ELF mapping negatives
run: |
python3 qualification/surrogates/freeciv/test_contract.py -v
python3 qualification/surrogates/freeciv/test_elf_map_probe.py -v
python3 qualification/surrogates/freeciv/test_save_oracle.py -v
python3 qualification/surrogates/freeciv/test_turn_oracle.py -v

- name: Install game and sensors on disposable runner
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends freeciv-server=3.1.0+ds-1build5 strace
/usr/games/freeciv-server --version

- name: Real Freeciv process, memory, socket, file and save transaction
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/surrogate-public"
python3 qualification/surrogates/freeciv/probe.py \
--seed "${{ matrix.seed }}" --output "$RUNNER_TEMP/surrogate-public/freeciv-native-${{ matrix.seed }}.json"

- name: Real Freeciv save reload and source-defined state-field oracle
run: |
set -euo pipefail
python3 qualification/surrogates/freeciv/save_oracle.py \
--seed "${{ matrix.seed }}" --output "$RUNNER_TEMP/surrogate-public/freeciv-save-reload-${{ matrix.seed }}.json"

- name: Real Freeciv AI-only turn advancement and save reload oracle
run: |
set -euo pipefail
python3 qualification/surrogates/freeciv/turn_oracle.py \
--seed "${{ matrix.seed }}" --output "$RUNNER_TEMP/surrogate-public/freeciv-ai-turn-${{ matrix.seed }}.json"

- name: Emit sanitized source-known evidence only
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: freeciv-native-surrogate-public-v1-seed-${{ matrix.seed }}
path: ${{ runner.temp }}/surrogate-public/*.json
if-no-files-found: ignore
retention-days: 3
Loading
Loading