Skip to content

docs: plan Windows/Wine differential qualification and WineTest integration - #142

Merged
mark-e-deyoung merged 1 commit into
mainfrom
plan/differential-compatibility-qualification-20261024
Nov 4, 2026
Merged

mark-e-deyoung merged 1 commit into
mainfrom
plan/differential-compatibility-qualification-20261024

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Scope

Documentation-only implementation blueprint for reusing WineTest and building a native Windows (WinBot) versus Wine (WineBot) differential compatibility qualification system. Includes source/fixture identity, result schemas, comparator semantics, phased tests, explicit gates, and first same-binary synthetic Win32 vertical slice.

Reconciliation

Builds on existing disposable RDTE #131/#132/#133/#135 and active WinInspect #134/#136/#138/#139/#140 without changing them. Shared winebot-contracts remains a thin portable contract, not an orchestration framework. No new CI is requested, no binary or public screenshots/logs are uploaded, and existing security authority agent-dispatch-private#515 plus #124/#125/#127/#129 remain intact.

Verification and remaining gates

  • Documentation-only; no runtime or Windows/Wine paired tests executed by this PR.
  • No merge, release, source rewrite, stock-client substitution, runner dispatch, or public artifact admission requested.
  • Next bounded work is the synthetic schema/comparator and Windows/Wine runner capability probes on separately admitted branches.

DRAFT / REVIEW ONLY.

Copy link
Copy Markdown
Collaborator Author

2026-10-24 execution receipt — comparator v0 (source-only)

Discover/Observe: Reconciled plan PR #142 against SemperSupra/WineBot/main@d0fe951cc7a0a9e2ce1f3dba52e44db02ad15611, existing Wine-only RDTE #131/#132/#133/#135, WinInspect #134–#140, and draft CI publication controls #124/#125/#127/#129. Existing default PR CI still has public artifact-publishing surfaces not yet accepted under private security authority SemperSupra/agent-dispatch-private#515.

Apply (actual repository writes): Created separate non-default source branch feat/compat-diff-comparator-v0-20261024, exact head 3a0d8312bba0d5df16c30ae7ee735cff812a6471 (10 commits ahead, 0 behind; 8 changed files). No PR was opened against it, so this work did not dispatch the unqualified default PR CI workflow.

Contents: qualification/compare.py, two JSON Schemas, package marker, 30 synthetic tests, unit-test script inclusion, capability matrix and implementation runbook. The comparator only evaluates deterministic API/workflow result digests with matching scenario, executable and fixture identities, comparable profile, qualified Windows reference lane and declared capabilities. Output is bounded to verdict, fixed reason_code and integer counts; arbitrary input fields are rejected. Existing/symlink output paths are not clobbered.

Verify: Locally python -m pytest -q tests/test_compatibility_comparator.py → 30 passed, synthetic data only; compileall passed. JSON Schemas checked with Draft 2020-12 validator using synthetic observations. Fetched published source and test files from GitHub and verified their blob SHAs byte-for-byte against tested local files. Compare API: 8 expected changed files, head ahead 10/behind 0. No cloud Actions run, WineTest binary execution, Windows guest, native/Wine matched scenario or custom-Wine A/B test was performed here.

Next READY bounded actions:

  1. Run an explicitly admitted source-only Python test on a disposable $0 public runner without enabling any unreviewed public CI/artifact path; inspect exact run/job, source-head and tested-checkout identities. Do not claim it passed until measured.
  2. Determine actual WineTest executable/build packaging on paired admitted Windows and Wine runner environments, pin the identical test binary by SHA-256 and check a small module.
  3. Produce a freely redistributable deterministic Win32 sample PE and independently qualify Windows/WinBot and WineBot adapters; first paired comparison requires the same executable and fixture hashes.

Gates preserved: This branch is not merged or release-authorized. No public screenshots, raw logs, personal/system identifiers, actual Windows/Wine parity verdict, private runner, privileged mutators, agent input broker bypass or unapproved build promotion. Keep source-only evidence separate from runtime qualification.

Copy link
Copy Markdown
Collaborator Author

2026-10-25 red-team / blue-team corrective-action handoff — source-verified, review-only

Discover / Observe (verified, not runtime-qualified)

Red-team: blocking observations

P0 trust/evidence: qualification/observe_roundtrip.py accepts caller-provided exe SHA, source head and tested-checkout SHA. Minimal MZ/PE header check is not trusted build lineage or executable identity. The os.name check is not an independently attested native Windows runner identity. qualification/compare.py compares scenario, inputs and declared profile but does not verify a matched build/campaign provenance chain or immutable runner job receipts. Consequently self-consistent fabricated/synthetic observations can yield PASS; explicitly keep any such result non-authoritative.

P0 execution isolation: subprocess.run(capture_output=True, timeout=30) has no bounded stdout/stderr memory capture, no process-tree/job containment and no explicit Wine-prefix/network/file-access isolation. Do not admit uncontrolled executables or use production prefixes.

P1 correctness: any Wine stderr forces INFRA_ERROR, which can conflate ordinary Wine diagnostics with launcher failure; error classes require testing with real Wine. The observer declares fixed headless/locale/DPI fields rather than measuring them; these fields must not be interpreted as evidence of visual/profile equivalence. The current source-only unit tests simulate PE bytes and compare observations, not compiled/executed Win32 binaries.

P1 triad UX: current differential v0 is CLI + fixed public JSON summary; no tested, accessible human review flow, reusable machine-readable audit surface, or agent-safe bounded discovery/actuation flow for this new qualification vertical. Existing overall WineBot UI/a11y tests remain useful but cannot substitute for new workflow tests.

Blue-team: lean corrective action sequence

G0 source custody, admission and source-only stabilization (P0; first, blocking):

  1. Reconcile target branch commit, source tests and missing runbook. Preserve draft docs: plan Windows/Wine differential qualification and WineTest integration #142 separate from unrelated WinInspect/CPU rendering/security PR stacks.
  2. Add negative tests: fabricated provenance, swapped binary, unsupported machine, unbounded output, launch ambiguity, timeout descendant cleanup, mismatched run campaign, duplicate/stale output; assert no public leakage.
  3. Establish trusted manifest: scenario hash + compiler identity + fixture-source SHA + PE SHA + immutable build job/run/commit SHA + executor image/version and result receipt. Compare refuses unverified or mismatched campaign and only treats trusted Windows observation as oracle. Public projection allowlist unchanged.
  4. Fix bounded subprocess capture; isolate temp root and fresh Wine prefix, disable network where supported, bound runtime/resource/process tree; record failures privately. Do not add generalized scheduler.

G1 same-binary vertical slice (P0; depends on G0):

  1. From admitted synthetic public source only, cross-compile ONE redistributable x64 PE in disposable standard public Linux GitHub-hosted runner, pin toolchain and SHA.
  2. Run identical PE with verified build provenance in standard public Windows hosted runner and admitted Linux+Wine runner, using separate disposable environments; capture exact workflow/job ids, tested checkout, launcher/runtime versions, exit category and bounded semantic output digest.
  3. Independent verifier checks receipts and exact source-to-build-to-execution lineage before invoking comparator. Mark missing Windows oracle UNQUALIFIED; infrastructure defects INFRA_ERROR; only matched known-good native assertion may support Wine PASS. Repeat fresh twice to rule out a one-off. Record first failure and negative-controls.
  4. Keep private raw logs local to authorized actor; release/public evidence only through separately qualified allowlist projector after #515 and fix(build): restore WinInspect portable asset pin for REL image #124/security(ci): suppress automatic public BuildKit history artifacts #125/security(ci): minimize public conformance artifacts and mask API token #127/fix(evidence): attest tested checkout and PR source head separately #129. Standard public Linux/Windows hosted runners are eligible for $0 compute; storage quotas and per-run admission still must be checked. No private Actions minutes, paid runners or public raw artifacts.

G2 tri-audience interface contract (P1; can develop in parallel with G0/G1; promotion gated on G1):

  • ONE typed, versioned result and capability/discovery contract powers human dashboard, automation JSON/CLI, and agent tool surface. Separate audience adapters, not duplicate engines.
  • Humans incl AT: readable PASS/FAIL/UNQUALIFIED/INFRA_ERROR differences, clear next action, provenance link, private/public indicator, keyboard-only operation, focus order, contrast, screen-reader announcements, text scaling, no reliance on color; no raw screenshots/log public.
  • Automation: deterministic exit codes, schema validation, idempotency key, stable codes, capability probes, time/resource budgets, per-run receipt IDs, monotonic state transitions and retry-safe no-clobber behavior.
  • Agents: discover supported capabilities, observe policy + authorization and provenance, propose bounded acts, respect human/agent/hybrid control arbitration, produce machine-checkable receipts, pause/escalate on authority or uncertain evidence, no direct merge/release/publication.
  • Test with UI Playwright/axe + keyboard/screen-reader manual audit where relevant, CLI golden-schema/integration tests and agent adversarial contract tests. Current overall WineBot a11y tests are baseline, not proof of this surface.

G3 extensible coverage, without changing acceptance authority (P2; after G1):

  1. Add WineTest modules incrementally (file, registry, process, input, GDI), record module/version provenance and legally redistributable fixture boundaries.
  2. Add independent windows/screenshots/semantic tree vs WineBot/X11/WinInspect tests with explicit visual/a11y/perceptual oracles and versioned tolerances. Do not hash pixels as semantic equivalence.
  3. Add game/renderer FPS, repeatability, driver/software renderer, crash/hang and CPU budgets in bounded RDTE; separate deterministic mechanics from stochastic/perceptual testing.
  4. Custom Wine build A/B occurs only after stock-Wine baseline reproducibility, with exact Wine source/toolchain commits. No production or release claim from CPU-only RDTE.

Parallelism / dependencies

Sequential hard spine: G0 trust+isolation -> G1 compiled PE + real Windows/Wine receipts -> independent verification -> acceptance/promotion gates.
Parallel, non-blocking: tri-audience UI/API design/tests, free-runner capability probe, WineTest catalog, sanitizer policy review, accessible local report design. The existing WinInspect, CPU renderer and games RDTE remain separate and unmodified.

Falsification / acceptance gates

Gate 0: source-only negative tests + bounded process limits + independently verifiable source/build identity; first failure captured.
Gate 1: same SHA256 compiled executable on confirmed native-Windows and Wine hosts, equivalent scenario/inputs, two independently qualified runs, no fake environment fields, independently verified receipts.
Gate 2: red-team mutation tests (bad hash, spoofed Windows, swapped job, stale manifest, stderr noise, timeout/crash, secret-like payload) produce correct FAIL/UNQUALIFIED/INFRA_ERROR and never emit unapproved raw data.
Gate 3: three-audience workflows pass structural accessibility/keyboard/screen-reader checks, API/schema/CLI contract tests and agent authority/arbitration tests, with supported actionable errors.
Gate 4: authorized human review and explicit separate merge, public evidence, release and deployment decisions. Nothing here authorizes those.

WoW / durable, legible, executable baton

Mission command outcome: deliver an attested, reproducible same-binary native-Windows/Wine differential run, with a minimal three-audience evidence viewer and no security regression. Agent Dispatch owns bounded orchestration; WineBot owns Wine executor/comparator; WinBot owns Windows oracle; thin portable contracts own schema only after review. Discover -> Observe -> Plan -> Apply -> Verify each batch. Act within admitted authority; prefer idempotent/reversible operations and disposable $0 public-safe runners. Preserve first failure, exact source heads, build ids, test receipts, qualified/UNKNOWN status, decision, blockers and next executable step in project-native DLE. Stop at genuine authorization boundary; do not route around refused security gates.

Next READY non-disruptive action: source-only PR on a new bounded branch to repair missing runbook, tighten binary/build receipt contract and output limits, add falsifying tests; verify at its exact head before submitting for review. Runtime dispatch and evidence publication remain HOLD until admitted.

Copy link
Copy Markdown
Collaborator Author

DOPAV review — integrate completed documentation, not experimental runtime code

Live source review: main → exact e0fb25ca9bc54082de22b02ff1aa61de46ddd512 is ahead 1 / behind 0, only new docs/differential-compatibility-qualification-plan.md (151 lines). Document remains explicitly labeled PROPOSAL / DRAFT ONLY, and makes no runtime, same-binary, Windows/Wine parity, release, or test qualification claim. It preserves source/runner/evidence/security gates, including native Windows oracle requirement and rejection of unverified game/performance assertions. No executable, workflow, dependency, artifact, auth, source projection, or production image is changed.

Under the owner's 2026-11-04 hygiene direction, a reviewed, completed plan document need not keep a permanent open PR. This disposition adopts it into public main as nonbinding reference documentation only; future acceptance remains under owning private research DLE #1 and security #515. Public CI may remain RED for unrelated baseline defects and is not qualified by a docs-only merge.

@mark-e-deyoung
mark-e-deyoung marked this pull request as ready for review November 4, 2026 16:39
@mark-e-deyoung
mark-e-deyoung merged commit ebd6b9a into main Nov 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant