Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 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
769d1c1
qualification: compose exact WinInspect PortableApps resolver and tests
mark-e-deyoung Oct 23, 2026
e294195
qualification: probe actual WineBot daemon/API and bounded software v…
mark-e-deyoung Oct 23, 2026
ddf9979
ci(rdte): exercise exact WineBot WinInspect daemon and Windows window…
mark-e-deyoung Oct 23, 2026
1fd0abf
qualification: add local-only read-only WinInspect daemon transport c…
mark-e-deyoung Oct 23, 2026
748966a
qualification: align WinInspect RPC protocol v0.3.0 with v0.4.4 daemon
mark-e-deyoung Oct 24, 2026
f8d0635
qualification: classify WinInspect RPC failure without publishing res…
mark-e-deyoung Oct 24, 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
28 changes: 28 additions & 0 deletions .github/workflows/rdte-wininspect-semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: RDTE WineBot WinInspect semantic readiness (public synthetic)
on:
pull_request:
branches: [main]
paths:
- .github/workflows/rdte-wininspect-semantic.yml
- scripts/ci/rdte-wininspect-semantic-runtime.sh
- api/core/wininspect.py
- tests/test_wininspect_portable_layout.py

permissions:
contents: read

env:
DOCKER_BUILD_RECORD_UPLOAD: 'false'

jobs:
semantic-bridge:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Checkout exact disposable WineBot candidate
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
persist-credentials: false
- name: Start WineBot and qualify read-only WinInspect with synthetic Notepad
shell: bash
run: bash scripts/ci/rdte-wininspect-semantic-runtime.sh
25 changes: 22 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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 Expand Up @@ -140,6 +145,11 @@ 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"

- name: Run conformance tests
Expand All @@ -151,14 +161,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-release
path: conformance-results.json
path: conformance-summary-public.json
if-no-files-found: error

- name: Fail on conformance failure
if: failure()
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-build-smoke-gate.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,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 Expand Up @@ -177,6 +182,9 @@ jobs:

- name: Generate trust pack artifact
if: ${{ inputs.generate_trust_pack }}
env:
# Checkout of a PR may be a synthetic merge; preserve the actual source head.
WINEBOT_SOURCE_HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
run: scripts/ci/generate-trust-pack.sh "${{ inputs.trust_pack_dir }}"

- name: Upload trust pack
Expand Down
36 changes: 30 additions & 6 deletions api/core/wininspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
DEFAULT_HOST = "127.0.0.1"
DEFAULT_PORT = 1985
DEFAULT_TIMEOUT_SECONDS = 3.0
# WinInspect v0.4.4 release uses the v0.3.0 wire protocol (types.hpp).
WININSPECT_PROTOCOL_VERSION = "0.3.0"
MAX_MESSAGE_SIZE = 10 * 1024 * 1024
READ_ONLY_METHODS = {
"daemon.health",
Expand Down Expand Up @@ -83,11 +85,23 @@ def timeout_seconds() -> float:
return max(0.1, min(value, 30.0))


WININSPECT_DEFAULT_DIR = "/opt/winebot/windows-tools/WinSpy"
WININSPECT_REQUIRED_FILES = ("wininspectd.exe", "wininspect.exe")


def tool_dir() -> Path:
return Path(
os.getenv("WINEBOT_WININSPECT_DIR", "/opt/winebot/windows-tools/WinSpy").strip()
or "/opt/winebot/windows-tools/WinSpy"
)
"""Locate a complete WinInspect installation without mixing layouts.

WinInspect Portable v0.4.4 stages its binaries under App/WinInspect,
whereas older installations use a flat directory. An explicit
WINEBOT_WININSPECT_DIR may point to either layout. Fail closed if neither
contains both required executables; never scan other installed programs.
"""
root = Path(os.getenv("WINEBOT_WININSPECT_DIR", "").strip() or WININSPECT_DEFAULT_DIR)
for candidate in (root, root / "App" / "WinInspect"):
if all((candidate / name).is_file() for name in WININSPECT_REQUIRED_FILES):
return candidate
return root


def daemon_exe() -> Path:
Expand Down Expand Up @@ -172,7 +186,17 @@ def ensure_daemon(start: bool = True) -> dict[str, Any]:
log_file = open(_log_path(), "ab")
try:
proc = subprocess.Popen(
["wine", str(daemon_exe())],
[
"wine", str(daemon_exe()),
"--no-config",
"--bind", DEFAULT_HOST,
"--ipv4",
"--port", str(port()),
"--no-discovery",
"--no-mdns",
"--headless",
"--read-only",
],
stdout=log_file,
stderr=subprocess.STDOUT,
start_new_session=True,
Expand Down Expand Up @@ -276,8 +300,8 @@ def request(method: str, params: dict[str, Any] | None = None) -> dict[str, Any]
"id": request_id,
"method": method,
"params": {
"protocol_version": "0.4.0",
**(params or {}),
"protocol_version": WININSPECT_PROTOCOL_VERSION,
},
}
with socket.create_connection((host(), port()), timeout=timeout_seconds()) as sock:
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ RUN bash /download_tool.sh "Python" \
&& find /opt/winebot/windows-tools -name "*.txt" -delete

FROM tool-base AS builder-winspy
# WinInspect v0.4.0 - UIA-enabled window inspection tool
# Replaces original strobejb/winspy v1.8.4 (no UIA support, 2022 vintage)
# WinInspect v0.4.4 - immutable portable release fixture (release asset SHA-256).
# Preserve checksum verification fail-closed; package promotion is independent.
RUN bash /download_tool.sh "WinInspect" \
"https://github.com/SemperSupra/WinInspect/releases/download/v0.4.0/WinInspectPortable-v0.4.0.zip" \
"83b64999fef9ab01d749ab94193899e3915774d217900ac80c3c34021ff3e416" \
"https://github.com/SemperSupra/WinInspect/releases/download/v0.4.4/WinInspectPortable-v0.4.4.zip" \
"6ac0a65f774ffe69672f1c459254931ebfddb1e52c9fbec14b5db1348ccaad04" \
"/opt/winebot/windows-tools/WinSpy" \
&& find /opt/winebot/windows-tools -name "*.txt" -delete

Expand Down
54 changes: 54 additions & 0 deletions docs/rdte-wine-ui-three-audience-execution-20261023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# WineBot Windows application qualification work plan — 2026-10-23

**Execution authority:** WineBot project draft PRs, security `SemperSupra/agent-dispatch-private#515` and project/portfolio handoff `SemperSupra/agent-dispatch-private#107`. This is a staged DLE (**Durable, Legible, Executable**) plan, not authorization to merge, publish, or bypass controls.

## Observed baseline

- Real WineBot `intent-rel` in disposable Linux CI under Xvfb/Wine: Notepad, Wine File Manager, Wine Configuration, Registry Editor all **launched with visible X11 windows and window-only screenshots** in the synthetic 96/144 DPI trials. RDTE #131: [run 39994111643](https://github.com/SemperSupra/WineBot/actions/runs/39994111643), [run 39995188180](https://github.com/SemperSupra/WineBot/actions/runs/39995188180).
- 144 DPI grayscale materially improves classic-menu/dialog legibility but may clip content in fixed-size file-manager/registry windows. At 144 DPI ClearType did not produce an observed static-font improvement under Xvfb; grayscale is the validated deterministic screenshot baseline.
- Authenticated `GET /windows` succeeds during Notepad; `GET /wininspect/capabilities` and `GET /wininspect/windows` were unavailable. Container diagnostic: WinInspect enabled but expected **flat-root** `wininspectd.exe` and `wininspect.exe` missing. Release `v0.4.4` build script stages binaries under **`App/WinInspect/`**; WineBot unzips its verified package under `/opt/winebot/windows-tools/WinSpy`. Last runtime evidence: [run 39997099944](https://github.com/SemperSupra/WineBot/actions/runs/39997099944).
- Production main still pins missing WinInspect `v0.4.0`; distinct draft **#124** fixes the verified package download to `v0.4.4`. Draft **#125** suppresses automatic BuildKit uploads, **#127** minimizes public conformance reports/console payloads, **#129** distinguishes source from tested checkout. All remain separate and gated. Legacy v1 conformance **54 pass / 8 fail / 9 skip** remains red under **#123** contract-policy review.

## Dependency-aware execution

### READY A — exact executable path and semantic startup, independent of graphics research

1. Preserve flat-install compatibility, discover the **complete** nested `App/WinInspect` directory when both daemon and CLI are present; honor explicit env path and fail closed for incomplete or unrelated tool directories.
2. Add positive/negative synthetic path tests and include them in normal unit lane (prior `test_wininspect.py` is not run by the default unit script and has stale protocol assertions; fix those independently).
3. Qualify with a **disposable public** WineBot release-intent image using the previously verified, unmerged safe image/build composition from closed #130. Do not merge security drafts just to test.
4. Launch synthetic Notepad, probe `/windows`, `/health/wininspect`, `/wininspect/capabilities`, and `/wininspect/windows` via read-only authenticated API calls, record **booleans + count classes + allowlisted component versions only**. Never upload full WinInspect responses, screenshot root or runtime process/host paths.
5. Distinguish installation, daemon readiness, transport, protocol negotiation and semantic window results. A successful build is not a semantic acceptance. Record first failure and next minimal correction; maintain draft until reviewed.

### READY B — independent CPU software 3D / gaming

- [Draft renderer PR #132](https://github.com/SemperSupra/WineBot/pull/132): qualification of CPU LLVMpipe GLX and Lavapipe Vulkan, SwiftShader only when a pinned ICD is explicitly admitted. Do not promote generic GPU acceleration, CV-training quality or Direct3D parity from renderer smoke.
- [Draft game PR #133](https://github.com/SemperSupra/WineBot/pull/133): bounded Windows OpenTTD 15.3/OpenGFX 8.0 executable launch. Require actual visible window; input, FPS, save/readback, screenshot correctness and sustained game performance are subsequent gates.
- Keep both branches independently qualified, record exact run/source/pinned input checksums, avoid duplicate runners/parallel execution on the same authority branch.

### READY C — visual and audience UX specification

- **Human:** readable `144 DPI` default candidate with DPI-aware window placement/minimum client sizes, clearly described active app/focus and observer/control holder, responsive dashboard, visible safety controls and no untrusted state optimism.
- **Assistive technology:** keyboard focus/labels and real Wine/WinInspect semantic tree to assistive clients. Do not equate successful X11 screenshot with assistive technology acceptance.
- **Automation:** pinned profile (`DPI`, resolution, smoothing, window geometry), typed application lifecycle and stable operation receipts with deterministic output hash.
- **Agents:** observe (WinInspect/Win32 and X11) → bounded plan → broker-authorized action → independent readback → durable receipt. Distinguish Linux X11 ID vs Windows HWND and note provider capability limitations. Preserve revoked/denied actions as such.
- Add *orthogonal* visual profile selector in a separately reviewed PR after experiments; don't silently mutate use-case/performance profiles.

### WAITING D — brokered transactional WinBot app UX

After WinInspect observation and actor/lease admission: Notepad **broker-mediated** launch, locate editor, input synthetic data, save, content readback and crop/hash verification; then File Manager navigation and Paint-like canvas case. Confirm correct lease epoch/generation, idempotency key, human handback/STOP_NOW, and independent input outcome. No direct Wine shell/xdotool or raw Python mutation may count as this gate.

### WAITING E — CV / held-out capture training

Private `desktop-ui-cv` draft #44's schema/validator qualifies synthetic manifests locally. Requires independent candidate inventory digest, dated pre-capture checkpoint witness, private image/data custody, explicit human review and qualified target model before actual capture/model fine-tuning. No private GitHub Actions minutes or model/cloud data spill by default.

### WAITING F — production/release

Independent security #515 review/approval of #125/#127/#129, packaging #124, #123 v1/vNext conformance semantics; changes must be requalified after merge ordering. Keep all experimental PRs draft/unmerged and preserve first failures, worktrees and immutable receipts. Do not prune branches or archive until source history/worktree/consumer gates are satisfied.

## Version and proof fields required on every new app qualification run

`source_sha`, `tested_checkout_sha`, image digest if available, image base tag, actual `wine --version`, package versions for Xvfb/Openbox/Mesa/GLX/Vulkan when probed, WinInspect release and API protocol outcome, `WINE_DPI`, smoothing, `DISPLAY` class (not host address), screenshot digest/size if publication admitted, app name+free-license provenance and exact read-only/interaction outcome.

Public logs/artifacts may include **only software/version and safe abstract status fields**. Do not disclose hostname, hardware, CPU/GPU model, device configuration, username, IP, local paths or actual runtime window titles. Hold raw evidence job-local/private as appropriate.

**Next baton:** execute A with exact-head local unit tests and combined public CI runtime probe; in parallel reconcile B terminal workflows and record first failures. Leave D/E/F blocked until their independently owned gates pass.
21 changes: 16 additions & 5 deletions scripts/ci/generate-trust-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,29 @@
set -euo pipefail

OUT_DIR="${1:-artifacts/trust-pack}"
mkdir -p "$OUT_DIR"

timestamp="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
sha="$(git rev-parse --short HEAD 2>/dev/null || echo unknown)"
# The checkout can be a synthetic PR merge commit rather than the source head.
# Record both IDs with unambiguous names; refuse provenance-free evidence.
checkout_sha="$(git rev-parse HEAD 2>/dev/null || true)"
source_sha="${WINEBOT_SOURCE_HEAD_SHA:-$checkout_sha}"
for candidate in "$checkout_sha" "$source_sha"; do
if [[ ! "$candidate" =~ ^[0-9a-f]{40}$ ]]; then
echo "Trust pack requires valid full checkout/source Git SHAs" >&2
exit 1
fi
done
branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown)"
timestamp="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
mkdir -p "$OUT_DIR"

cat > "${OUT_DIR}/summary.md" <<EOF
# WineBot Trust Pack

- Generated: ${timestamp}
- Branch: ${branch}
- Commit: ${sha}
- Checkout ref: ${branch}
- Tested checkout commit: ${checkout_sha}
- Source head commit: ${source_sha}
- Note: These may differ when GitHub Actions checks out a pull-request merge candidate.

## Included Artifacts

Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ else
echo "Warning: shellcheck not found, skipping shell script linting."
fi

# Independent, dependency-free check before any Dockerfile-dependent unit-image build.
python3 tests/test_ci_dockerbuild_artifact_policy.py
python3 scripts/ci/verify-capability-matrix.py
python3 scripts/ci/generate-python-sbom.py --output artifacts/ci/python-sbom.cdx.json
python3 scripts/ci/validate-sbom.py --input artifacts/ci/python-sbom.cdx.json
Expand Down
Loading
Loading