Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
877e355
feat(layers): add disposable offline OCI application bundle and fail-…
mark-e-deyoung Nov 15, 2026
ddac3cb
feat(layers): opt-in read-only runtime with external app/user/config …
mark-e-deyoung Nov 15, 2026
6e17993
test(layers): qualify disposable OCI bundle, persistent state replay,…
mark-e-deyoung Nov 15, 2026
bddf3e7
fix(layers): prepare volume modes before dropping ownership under CAP…
mark-e-deyoung Nov 15, 2026
0fa7f06
fix(layers): fail closed on app volume tampering and incomplete seeding
mark-e-deyoung Nov 15, 2026
52dc23e
style(layers): align contract test imports with Ruff I001
mark-e-deyoung Nov 15, 2026
3659277
test(layers): run source-pinned Wine 11 read-only-root HIL on public …
mark-e-deyoung Nov 15, 2026
af0988d
test(layers): assert exact fail-closed HIL stage invocation
mark-e-deyoung Nov 15, 2026
488871a
ci: classify composite startup failure by allowlisted container states
mark-e-deyoung Nov 15, 2026
7bdc501
ci: classify app and state initialization exits with fixed safe categ…
mark-e-deyoung Nov 15, 2026
927ed62
test: ensure composite startup diagnostic classifier cannot echo sens…
mark-e-deyoung Nov 15, 2026
6d2fbd8
ci: report fixed initialization-failure categories in Wine 11 composi…
mark-e-deyoung Nov 15, 2026
4061130
ci: verify classified startup diagnostics before expensive public com…
mark-e-deyoung Nov 15, 2026
35dbde0
fix: resolve exact-head Ruff import-order and unused-import failures
mark-e-deyoung Nov 15, 2026
ce19217
fix(layers): classify stderr init diagnostics without publishing raw …
mark-e-deyoung Nov 15, 2026
047e6d9
ci: prove application bundle and entrypoint/image identities before s…
mark-e-deyoung Nov 15, 2026
a1dc64b
ci: distinguish empty container logs from unstructured initializer ou…
mark-e-deyoung Nov 15, 2026
08c16c3
test: distinguish empty and unstructured container diagnostics safely
mark-e-deyoung Nov 15, 2026
09d58a8
fix(layers): prevent runtime Docker volume copy-up racing initializer…
mark-e-deyoung Nov 15, 2026
3e61f8d
fix(layers): classify unwritable app volumes separately from seed-loc…
mark-e-deyoung Nov 15, 2026
1358a18
ci: accept bounded application volume permissions-failure category
mark-e-deyoung Nov 15, 2026
6d5b652
test(layers): enforce nocopy volume semantics and precise seed-lock e…
mark-e-deyoung Nov 15, 2026
672b861
test(ci): verify bounded unwritable-app-volume failure diagnostic
mark-e-deyoung Nov 15, 2026
990e024
docs(layers): explain copy-up race prevention and init failure semantics
mark-e-deyoung Nov 15, 2026
2b8e6eb
test(layers): classify first real Wine11 health failure without raw r…
mark-e-deyoung Nov 15, 2026
c66a29f
fix(layers): ensure health diagnostic marker remains newline-delimited
mark-e-deyoung Nov 15, 2026
b7dd826
fix(layers): explicitly enable authenticated API for read-only Wine11…
mark-e-deyoung Nov 16, 2026
785a850
test(layers): assert Compose-escaped credential healthcheck rather th…
mark-e-deyoung Nov 16, 2026
f356267
fix(layers): idempotent CAP_CHOWN-only state initializer without touc…
mark-e-deyoung Nov 16, 2026
ce564eb
test(layers): replay CAP_CHOWN state bootstrap after persistent write…
mark-e-deyoung Nov 16, 2026
196b434
test(layered): align auth assertions with Compose escaped shell varia…
mark-e-deyoung Nov 16, 2026
487a99d
test(layered): remove unintended whitespace from token assertion
mark-e-deyoung Nov 16, 2026
312031a
test(layered): match literal Compose dollar escaping in token assertion
mark-e-deyoung Nov 16, 2026
2c3e84e
test(layers): assert escaped Compose health header with authenticated…
mark-e-deyoung Nov 16, 2026
b6ce2b0
fix(layers): execute authenticated health probe as single shell command
mark-e-deyoung Nov 16, 2026
5fef000
test(layers): qualify SIGKILL restart and persistent-state replay on …
mark-e-deyoung Nov 16, 2026
adcec59
test(layers): assert real forced-runtime failure and durable data rep…
mark-e-deyoung Nov 16, 2026
474b603
test(layers): qualify 55-minute Wine11 layered soak and live Openbox …
mark-e-deyoung Nov 16, 2026
32b2290
ci(rdte): integrate layered and frozen conformance sources only in di…
mark-e-deyoung Nov 16, 2026
66a09bd
rdte(layers): qualify synthetic six-volume checksum backup and nonroo…
mark-e-deyoung Nov 16, 2026
4136501
ci(rdte): execute free public runner six-volume state archive/tamper/…
mark-e-deyoung Nov 16, 2026
cb3895d
ci(rdte): fail-closed reconciliation of only overlapping layered and …
mark-e-deyoung Nov 16, 2026
427ff85
ci(rdte): resolve only verified unit-manifest append conflict in ephe…
mark-e-deyoung Nov 16, 2026
1e4929c
fix(rdte): keep backup archives in separately owned synthetic Docker …
mark-e-deyoung Nov 16, 2026
913f08b
ci(rdte): reconcile qualified one-file backup restore source guard fr…
mark-e-deyoung Nov 16, 2026
c0ea638
ci: fix Ruff I001 import ordering in conformance resolver
mark-e-deyoung Nov 19, 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
36 changes: 36 additions & 0 deletions .github/workflows/disposable-backup-restore-rdte.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Disposable User-State Backup and Restore RDTE
on:
pull_request:
paths:
- '.github/workflows/disposable-backup-restore-rdte.yml'
- 'scripts/ci/qualify-volume-backup-restore.sh'
permissions:
contents: read
concurrency:
group: layer-backup-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
synthetic-six-volume-recovery:
runs-on: ubuntu-24.04
timeout-minutes: 15
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'
steps:
- name: Checkout exact public PR code without credentials
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Source syntax and destructive-operation scope
run: |
set -euo pipefail
bash -n scripts/ci/qualify-volume-backup-restore.sh
grep -q '^prefix="winebot-recovery-' scripts/ci/qualify-volume-backup-restore.sh
grep -q 'archive_integrity_negative' scripts/ci/qualify-volume-backup-restore.sh
grep -q 'backup_volume="$prefix-snapshots"' scripts/ci/qualify-volume-backup-restore.sh
! grep -q 'rm -rf' scripts/ci/qualify-volume-backup-restore.sh
- name: Fully disposable checksum archive and nonroot recovery
run: bash scripts/ci/qualify-volume-backup-restore.sh
- name: Report only synthetic result
if: success()
run: echo 'LAYER_BACKUP_RDTE stage=qualified_synthetic_replay'
48 changes: 48 additions & 0 deletions .github/workflows/disposable-layer-qualification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Disposable Layer Contract Qualification
on:
pull_request:
paths:
- '.github/workflows/disposable-layer-qualification.yml'
- 'compose/layered.yml'
- 'docker/app-bundle.Dockerfile'
- 'docker/Dockerfile'
- 'docker/entrypoint.sh'
- 'scripts/layers/**'
- 'scripts/ci/qualify-disposable-layers.sh'
- 'scripts/ci/test.sh'
- 'tests/test_disposable_layer_contract.py'
- 'docs/disposable-layer-architecture.md'

permissions:
contents: read

env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'

concurrency:
group: disposable-layer-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
source-and-replay:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout exact untrusted public PR source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- name: Verify offline source and shell contracts
run: |
python3 -m unittest discover -s tests -p 'test_disposable_layer_contract.py' -v
bash -n scripts/layers/preflight.sh
bash -n scripts/ci/qualify-disposable-layers.sh
sh -n scripts/layers/prepare-state.sh
sh -n scripts/layers/seed-apps.sh
bash -n docker/entrypoint.sh
- name: Qualify disposable images, replay and external state
run: bash scripts/ci/qualify-disposable-layers.sh
- name: Report only bounded overall result
if: success()
run: echo 'LAYER_CONTRACT_DIAGNOSTIC stage=source_and_replay_passed'
112 changes: 112 additions & 0 deletions .github/workflows/layered-contract-integration-rdte.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Layered + Frozen Conformance Integration RDTE
on:
pull_request:
paths:
- '.github/workflows/layered-contract-integration-rdte.yml'
permissions:
contents: read
concurrency:
group: layered-conformance-integration-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
source-integrated-frozen-v1:
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'
steps:
- name: Checkout exact layered PR with Git ancestry
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false
path: winebot
- name: Test-only source merge with pinned successful conformance PR
working-directory: winebot
shell: bash
run: |
set -euo pipefail
git config user.name 'WineBot Public RDTE'
git config user.email 'winebot-rdte@users.noreply.github.com'
git fetch --no-tags --quiet origin 3acc219a1627a74bdcea6388144cc391ec2b57b4
if ! git merge --no-commit --no-ff --no-edit 3acc219a1627a74bdcea6388144cc391ec2b57b4 >"$RUNNER_TEMP/merge-local.log" 2>&1; then
# Only the known independent test-list append conflict is
# resolvable. Every other merge collision fails closed.
python3 scripts/ci/resolve-conformance-units.py || exit 1
fi
if git diff --name-only --diff-filter=U | grep -q .; then
echo 'LAYERED_CONFORMANCE_RDTE stage=unresolved_files'
exit 1
fi
echo 'LAYERED_CONFORMANCE_RDTE stage=source_merge_pass'
- name: Existing bounded unit tests on combined source
working-directory: winebot
shell: bash
run: |
set -euo pipefail
if ! docker compose -f compose/docker-compose.yml --profile test --profile interactive run \
--rm --no-deps test-runner scripts/ci/test.sh >"$RUNNER_TEMP/unit-local.log" 2>&1; then
echo 'LAYERED_CONFORMANCE_RDTE stage=merged_unit_fail'
exit 1
fi
echo 'LAYERED_CONFORMANCE_RDTE stage=merged_unit_pass'
- name: Checkout pinned frozen public contract suite
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
repository: mark-e-deyoung/winebot-contracts
ref: 205666f7f0235cb0fc51ca8a5af84f9f67831a74
persist-credentials: false
path: contracts
- name: Install frozen suite requirements
shell: bash
run: |
set -euo pipefail
python3 -m pip install -q -r contracts/tests/conformance/requirements.txt \
>"$RUNNER_TEMP/deps-local.log" 2>&1 ||
{ echo 'LAYERED_CONFORMANCE_RDTE stage=contract_deps_fail'; exit 1; }
- name: Start actual source-integrated WineBot API
working-directory: winebot
shell: bash
run: |
set -euo pipefail
if ! docker compose -f compose/docker-compose.yml --profile headless \
up --build -d winebot >"$RUNNER_TEMP/runtime-local.log" 2>&1; then
echo 'LAYERED_CONFORMANCE_RDTE stage=runtime_start_failed'
exit 1
fi
if ! scripts/ci/wait-for-container-health.sh compose/docker-compose.yml headless winebot 60 2 \
>"$RUNNER_TEMP/health-local.log" 2>&1; then
echo 'LAYERED_CONFORMANCE_RDTE stage=runtime_health_failed'
exit 1
fi
echo 'LAYERED_CONFORMANCE_RDTE stage=runtime_ready'
- name: Run pinned frozen v1 against source-integrated runtime
shell: bash
run: |
set -euo pipefail
cd winebot
cid="$(docker compose -f compose/docker-compose.yml ps -q winebot)"
[ -n "$cid" ] || { echo 'LAYERED_CONFORMANCE_RDTE stage=runtime_absent'; exit 1; }
ip="$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$cid")"
token="$(docker compose -f compose/docker-compose.yml exec -T winebot cat /tmp/winebot_api_token 2>/dev/null || true)"
if [[ ! "$token" =~ ^[A-Za-z0-9._~-]{16,512}$ ]]; then
echo 'LAYERED_CONFORMANCE_RDTE stage=token_invalid'
exit 1
fi
printf '::add-mask::%s\n' "$token"
cd ..
if ! python3 -m pytest contracts/tests/conformance/ \
--api-url "http://$ip:8000" --api-token "$token" \
--results-file "$RUNNER_TEMP/conformance-local.json" \
-q --tb=no --show-capture=no -rN \
>"$RUNNER_TEMP/conformance-local.log" 2>&1; then
echo 'LAYERED_CONFORMANCE_RDTE stage=frozen_v1_failed'
exit 1
fi
echo 'LAYERED_CONFORMANCE_RDTE stage=frozen_v1_pass'
- name: Remove only disposable service containers
if: always()
working-directory: winebot
run: docker compose -f compose/docker-compose.yml --profile headless down --remove-orphans >/dev/null 2>&1 || true
59 changes: 59 additions & 0 deletions .github/workflows/wine11-disposable-layer-hil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Wine 11 Disposable-Layer Composite HIL

# Public PR source snapshots only; never publishes images/diagnostics.
on:
pull_request:
paths:
- '.github/workflows/wine11-disposable-layer-hil.yml'
- 'compose/layered.yml'
- 'docker/Dockerfile'
- 'docker/entrypoint.sh'
- 'scripts/layers/**'
- 'scripts/ci/qualify-wine11-layered.sh'
- 'scripts/ci/classify-layer-init-logs.py'
- 'tests/test_layer_init_diagnostics.py'

permissions:
contents: read

env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'

concurrency:
group: wine11-layer-hil-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
composite-wine11-hil:
runs-on: ubuntu-24.04
timeout-minutes: 115
steps:
- name: Checkout exact layered architecture PR source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
path: layered
- name: Checkout exact separately qualified Wine11 source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
repository: SemperSupra/WineBot
persist-credentials: false
ref: 8c5ed8019a3518cf534b158662755172bfce7c59
path: wine11-candidate
- name: Free disposable runner disk
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/share/swift
- name: Source syntax and frozen composite ownership
working-directory: layered
run: |
bash -n scripts/ci/qualify-wine11-layered.sh
python3 -m unittest discover -s tests -p 'test_layer_init_diagnostics.py' -v
test -f ../wine11-candidate/scripts/init/20-setup-wine.sh
test -f ../wine11-candidate/scripts/ci/classify-wine11-soak.py
- name: Build ephemeral candidate and qualify read-only Wine11 replay
working-directory: layered
run: bash scripts/ci/qualify-wine11-layered.sh
- name: Report only fixed result
if: success()
run: echo 'WINE11_LAYER_HIL stage=qualified_composite'
11 changes: 11 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

This document is a navigation aid for autonomous agents working on the WineBot codebase.

## Disposable three-layer deployment (opt-in)

The authoritative architecture target separates a replaceable Wine runtime
image, immutable/versioned application pack seeded by a short-lived container,
and external persistent per-user state volumes. Start with
[docs/disposable-layer-architecture.md](docs/disposable-layer-architecture.md)
and `compose/layered.yml`. Do not run legacy per-boot loadouts or delete
volumes during housekeeping. Public GHA qualification owns synthetic
disposable-layer replay; the actual Wine 11 layered runtime is not yet
release qualified. Existing main legacy behavior is maintained.

## 1. System Architecture

WineBot is a containerized Windows application runtime (Wine 10.0) with an X11 display stack, controlled via a Python FastAPI.
Expand Down
Loading
Loading