Skip to content

[DRAFT] Repair nightly trace-path startup and redacted health diagnostics - #150

Draft
mark-e-deyoung wants to merge 50 commits into
mainfrom
fix/nightly-trace-path-diagnostics-20261107
Draft

mark-e-deyoung wants to merge 50 commits into
mainfrom
fix/nightly-trace-path-diagnostics-20261107

Conversation

@mark-e-deyoung

@mark-e-deyoung mark-e-deyoung commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

R027 current authority — 2026-11-16

Source head: 8c5ed8019a3518cf534b158662755172bfce7c59 · accepted main: f5ba0256f330958dcf35710a822508cdb31fc40b.

Standalone Wine11 REL + 55m + Openbox recovery: PASS — public REL 43799408806 passed source-bound runtime health, 3300s soak and window-manager recovery at 8c5ed8019a3518cf534b158662755172bfce7c59. Full CI still failed independent frozen conformance because #123 corrections have not been integrated. Still draft: no production/runtime promotion.

Hardware gate remains NOT_READY; protect private evidence; public free-tier Actions only. Existing DLE comments and historical decisions remain authoritative for their exact source.

Wine 11 REL runtime qualification and fault recovery — DRAFT

Authority: accepted main f5ba0256f330958dcf35710a822508cdb31fc40b. Current branch 8c5ed8019a3518cf534b158662755172bfce7c59 is unmerged, with source-exact CI evidence and no production or private Actions spending.

Delivered

  • Wine 11 runtime base built from a controlled public-runner source, nonroot prefix ownership handoff aligned with the actual production entrypoint.
  • Bounded network-off Wine prefix differential tests, redacted startup/health/source diagnostics, real authenticated Compose startup, Wine version, resource and mandatory trace checks.
  • Full 55-minute Wine 11 REL resource soak and post-soak health gate.
  • After the soak, bounded unprivileged Openbox termination and recovery requiring a different process identity, followed by health verification; negative synthetic tests refuse missing process or failed injection without leaking raw logs.

Qualified evidence

Holds

Full CI on this branch remains red at the independently mandatory frozen legacy-v1 conformance gate. #123 passed the frozen suite on its own exact head, not on this branch; no implicit parity or waiver. #154 separately qualifies disposable runtime, application pack, and persistent external state, with its new layered 55-minute soak still pending. Before release, reconcile contract changes, integrate qualified source, verify secrets/accessibility/WinInspect, app/game fixtures, hardware and state recovery. DRAFT/UNMERGED; no source promotion or production deployment.

DLE: https://github.com/mark-e-deyoung/winebot-research/issues/1

Copy link
Copy Markdown
Collaborator Author

DLE verification checkpoint — 2026-11-07, draft #150 (unmerged)

Exact head: b45c6f47a05e25e332a8ac226e4512a3b669017f; base accepted main@6d278524ca3904ea1bafc44305f8bcb013492517; Git compare ahead 10 / behind 0, six changed paths. Direct Git tree read confirms scripts/winebotctl remains symlink mode 120000, real CLI target scripts/bin/winebotctl is executable mode 100755. The intermediate symlink materialization mistake was corrected before PR creation; published draft tree is consistent. Do not force-rewrite or delete branch during qualification.

Independent public $0 checks from exact-head run 42382202459:

  • runtime-independent-unit-suite SUCCESS, job 128431996965.
  • bounded-interactive-startup SUCCESS, job 128431997159.
  • safe-startup-contract SUCCESS, job 128431997185; 9 isolated tests OK and workflow YAML parsed.
  • Workflow artifact enumeration []. BuildKit publication guard 42382202501 SUCCESS, artifacts [].

Broad CI 42382202482: preflight already terminal SUCCESS at job 128431997219, remaining integration and contract conformance jobs in progress at last check. No broad CI/legacy-v1 success inferred.

Causal precision: The failing prior nightly 42353935458 had stage services/trace-log-path rc=1; the new CRLF normalization, documented symlink resolution, and allowlisted startup diagnostics are supported by source and synthetic tests, but a full nightly REL-mode soak has not yet been repeated on this exact branch. Preserve this qualification gap. Existing security hold agent-dispatch-private#515, no uncontrolled public logs/artifacts, no private minutes/merge/release remains.

Next READY: observe broad CI terminal job+artifact outcomes; classify the first failure without printing raw logs. Only then determine if a separate bounded nightly-mode runtime probe is needed. Do not conflate separate provisional vNext restart/health failures in draft #123 with this nightly trace-path cause.

Copy link
Copy Markdown
Collaborator Author

DLE verification checkpoint — exact-head public checks (2026-11-07)

Source identity: b45c6f47a05e25e332a8ac226e4512a3b669017f on draft #150, accepted base main 6d278524ca3904ea1bafc44305f8bcb013492517, comparison 10 commits ahead / 0 behind; six changed paths; tracked scripts/winebotctl symlink restored unchanged.

Terminal public Actions receipts: CI Unit Isolation and Startup Safety 42382202459 COMPLETED/SUCCESS: runtime-independent-unit-suite 128431996965, bounded-interactive-startup 128431997159, and safe-startup-contract 128431997185 all passed. Workflow artifact inventory 0. BuildKit public record guard 42382202501 completed SUCCESS. Approved PRs Only 42382202452 completed SUCCESS.

Still pending: full CI 42382202482 (preflight succeeded; integration and independently known-red legacy contract gate still running at checkpoint); the 55-minute nightly soak has not been repeated at this draft head and must not be claimed. The exact root cause of the earlier services/trace-log-path error remains a hypothesis; terminal bounded interactive startup narrows it but does not prove a specific CRLF-path failure.

Disposition: OPEN/DRAFT, unmerged/unreleased; no private runners, raw diagnostic publication or security/conformance gate override. Next: inspect terminal CI jobs, record first failure and artifacts, then qualify nightly soak only on an admitted public venue. Branch census: 121 remote refs, including 89 qualification refs; 20 sampled historical potential cleanup refs all diverge from squash-integrated main. Do not delete without patch-equivalence and evidence-custody checks.

Copy link
Copy Markdown
Collaborator Author

DLE incremental CI receipt — exact-head #150, 2026-11-07

Public CI 42382202482, source b45c6f47a05e25e332a8ac226e4512a3b669017f: Pre-flight (Lint & Unit) SUCCESS. Conformance (Contracts) FAILURE only at Run conformance tests after public runner confirmed the WineBot service healthy; no new startup-stage failure in this job. Preserved fail-closed legacy v1 gate (no claim of baseline test-level equivalence because raw assertions remain local). The sanitized conformance-summary-public-v1 artifact was uploaded, artifact ID 13578570949, 387 bytes. Integration build-smoke job still in progress at this checkpoint; neither its final result nor 55-minute nightly soak is claimed. Focused separate bounded interactive startup/unit/safety workflow 42382202459 previously passed with no artifact uploads.

Next: inspect final integration receipt and full run conclusion; do not rerun unchanged source merely to turn expected legacy-v1 RED green, and do not merge/release or promote any diagnostic artifacts.

Copy link
Copy Markdown
Collaborator Author

DLE terminal public CI checkpoint — 2026-11-07, exact PR #150 head

Re-read CI run 42382202482 on unchanged b45c6f47a05e25e332a8ac226e4512a3b669017f:

  • Pre-flight (Lint & Unit) job 128431997219 — COMPLETED SUCCESS (includes independent unit suite, interactive E2E).
  • Integration (Smoke Test) / build-smoke-gate job 128432896265 — COMPLETED SUCCESS, image build and smoke phases success, REL-forbidden check success, trust-pack generation success, upload SKIPPED due publication hold.
  • Conformance (Contracts) job 128432896348 — COMPLETED FAILURE only at Run conformance tests; startup, health, token acquisition, image build and public sanitizer passed. Existing separately held legacy-v1 contract gate remains RED; this result is not release acceptance.
  • Run artifact API has one safe conformance-summary-public-v1 (387 bytes); no trust-pack, diagnostic bundle, screenshot, raw pytest output or BuildKit history artifacts published. Focused public startup/safety 42382202459 and BuildKit 42382202501 remain SUCCESS with artifact inventories [].

Outcome: source-safety/unit and bounded interactive runtime qualification PASS; conformance-v1 RED retained, no full 55-minute nightly soak attempted on this branch. The earlier nightly first failure services/trace-log-path remains causally unresolved because current passing interactive startup does not reproduce its failure conditions. No PR merge/production release authorized; leave OPEN/DRAFT. Next READY: one scoped, unchanged-head nightly-mode verification to establish whether CRLF was causal, then, if necessary, add fail-closed attempt/exit-category receipts rather than expanding timeout or weakening the health gate.

…-local evidence

Align BuildKit image with Compose no-build startup; propagate soak limits into container, gate trust-pack custody, and extend safety triggers and redaction fixture.
Restore syntactic integrity after Git content replacement and retain real mock-Docker redaction assertions.

Copy link
Copy Markdown
Collaborator Author

DLE checkpoint — independent nightly CI/custody correction (2026-11-07)

Authority/lease: accepted main@6d278524ca3904ea1bafc44305f8bcb013492517. This draft head is ea532318ef7ba613bfcf8ef5e81bd378d139a988 (11 ahead, zero behind); not merged or released.

Confirmed source/workflow defects fixed: (1) nightly BuildKit produced winebot:rel, whereas Compose consumed winebot:local-rel; prebuilt image and executed image were not tied. The workflow now builds the exact Compose tag and starts with --no-build (fail closed on missing image). (2) Host soak duration/budget variables never reached the container; explicit docker compose exec -e now transfers all four declared budgets. (3) Nightly directly uploaded unreviewed trust-pack evidence although reusable CI keeps it job-local until a release-specific publication gate; the nightly upload step is removed. (4) The focused workflow path filter and YAML/shell validation now cover the nightly/CLI/health-wait boundaries and include a mock-Docker log-redaction regression.

First failure and correction: commit e31789e26635a43a6b81198f51b08eb69cd0425d exposed a Python syntax error in the newly generated test fixture at exact-head public safety run 42398087069; the transient broad preflight also failed as expected. The test-file defect was repaired without a force update at ea532318ef7ba613bfcf8ef5e81bd378d139a988. At this checkpoint, new-head BuildKit publication guard 42398346494 passed and the safe-startup-contract job in 42398346502 passed. Runtime-independent unit, bounded interactive startup, and broad CI are not yet terminal. Do not infer a proven correction of the original services/trace-log-path nightly failure from source checks alone.

Gates/next: Await exact-head public receipts and artifact inventory. Replay REL-mode startup under nightly BuildKit→Compose route before claiming runtime acceptance. Legacy-v1 conformance stays a separate red owner gate; no security/publication waiver, private runner, merge, release or branch deletion.

Copy link
Copy Markdown
Collaborator Author

DLE receipt — exact-head source/runtime focus and broad CI first-failure (2026-11-07)

At ea532318ef7ba613bfcf8ef5e81bd378d139a988 (still draft, 0 behind main), focused public CI 42398346502 is terminal SUCCESS: safe-startup-contract, runtime-independent-unit-suite, and bounded-interactive-startup all passed; artifact inventory empty. BuildKit guard 42398346494 passed with no artifact upload.

Broad CI 42398346499: Pre-flight including browser E2E SUCCESS; Conformance-v1 FAILURE only at Run conformance tests (no waiver, tests remain enabled). Integration/Smoke image job remains in progress at this checkpoint. Public artifact inventory so far contains only allowlisted conformance-summary-public-v1 (387 bytes); no raw logs/trust pack uploaded. Legacy-v1 semantic failure remains separately owned. Nightly's actual BuildKit→Compose REL-mode run has not been replayed on this PR, so the original nightly trace path failure is not conclusively closed. No merge/release.

Copy link
Copy Markdown
Collaborator Author

DLE terminal exact-head CI receipt — 2026-11-07

Head ea532318ef7ba613bfcf8ef5e81bd378d139a988, 12 ahead/0 behind main, OPEN/DRAFT. Focused safety 42398346502 SUCCESS in all 3 jobs (safe-startup-contract, runtime-independent-unit-suite, bounded-interactive-startup). BuildKit publication guard 42398346494 SUCCESS. Broad CI 42398346499 terminal FAILURE, precisely because Conformance/Run conformance tests is red; Pre-flight including browser E2E SUCCESS, Integration Smoke build/gate SUCCESS. Public artifacts: only allowlisted conformance-summary-public-v1 387 bytes. No raw trust packs, Docker build records, or diagnostic bundles uploaded. This verifies source safety, interactive runtime startup, and smoke path but does not replay actual nightly BuildKit→Compose REL-mode start or close legacy-v1 failures. All release, security, merge and private-runner holds remain unchanged.

… runner

Add bounded PR-only parity test for the nightly image and health path, source guard, and job-local diagnostic custody. Keep full soak and release gates separate.

Copy link
Copy Markdown
Collaborator Author

DLE execution — true nightly REL startup qualification (2026-11-07)

Source authority: accepted main@6d278524ca3904ea1bafc44305f8bcb013492517; PR #150 head now 3ff5b067d55cf285b0bdb64971210152b44c9e80 (13 ahead / 0 behind), draft/unmerged. Prior ea532318 passed focused unit/startup safety, preflight, integration; legacy-v1 remains failing. That was not the exact nightly REL-mode route.

Applied: one atomic commit added .github/workflows/nightly-rel-startup-qualification.yml, extended ci-unit-isolation.yml source/YAML validation, and added a matching regression. The new on-PR bounded public ubuntu-24.04 runner builds intent-rel via the same pinned BuildKit actions and versioned base-image argument as scheduled nightly; loads locally as winebot:local-rel; starts winebot-interactive using --no-build, BUILD_INTENT=rel, WINEBOT_RECORD=1, and enabled Windows input tracing; awaits the exact nightly 120×2s health gate, classifies only allowlisted stage codes on failure, and tears down even on failure. No full 55-minute soak, pushing, uploads, private Actions minutes, raw log printing, or release authority.

Public run: nightly REL startup qualification 42411838436 initiated at this exact source head, alongside focused CI 42411838313 and broad CI 42411838311. Focused source contract has passed; the REL build/startup receipt is still pending. Keep draft and do not claim the original services/trace-log-path stage fixed until this runner returns a complete success.

Copy link
Copy Markdown
Collaborator Author

DLE acceptance receipt — exact nightly REL startup path qualified (2026-11-07)

Head/authority: draft PR #150 3ff5b067d55cf285b0bdb64971210152b44c9e80, 13 commits ahead/0 behind accepted main@6d278524ca3904ea1bafc44305f8bcb013492517. Public ubuntu-24.04 Actions Nightly REL Startup Qualification #42411838436 is TERMINAL SUCCESS at this exact head.

Step-by-step evidence: pinned Buildx setup succeeded; BuildKit intent-rel image build succeeded, using scheduled base-image build args; exact winebot:local-rel image inspect passed; Compose service up --no-build -d winebot-interactive succeeded with REL + recorder + Windows input tracing; the actual scheduled wait-for-container-health.sh ... 120 2 returned SUCCESS; classifier fallback was correctly skipped; teardown succeeded. Artifact inventory empty: no raw logs, diagnostic bundles, trust pack, image records or credentials uploaded. This materially qualifies the previously red nightly REL build→trace startup route, not merely a synthetic unit fixture.

Remaining independent gates: full 55-minute resource soak, fault injection, session/resource overflow and profile matrix acceptance are not covered by the bounded PR qualifier. Legacy-v1 conformance failure remains red, and broad PR CI must be evaluated at exact head. No production release, merge, branch deletion, private Actions minutes, publication/security-policy waiver. Keep draft until owning gates approve.

… logs

Validate and bound configured numeric thresholds; emit only enumerated session state, never API URLs or session paths. Register isolated synthetic no-Wine regressions.

Copy link
Copy Markdown
Collaborator Author

DLE independent security hygiene correction — public soak log identity boundary (2026-11-07)

Head: 811e5fb8711f046773943e6f578f1dc8adbb017e, draft, 14 ahead/0 behind main. Previous exact 3ff5b067 qualified the nightly REL BuildKit→Compose startup at 42411838436 with success and zero artifacts. It did not execute the 55-minute resource soak.

New first-failure-risk finding: scripts/diagnostics/diagnose-trace-soak.sh, which scheduled nightly invokes after health, previously echoed api=${API_URL} at start and session_dir=${session_dir} every 30 seconds into public Actions stdout. These may include internal host/session identifiers even if the logs are not uploaded as artifacts. Numeric budgets were printed without validation.

Applied: remove raw URL/session path printing; report only fixed session_state=present|absent and bounded numeric counters; admit only bounded numeric duration/interval/resource budgets with fixed-key error classification and no rejected value echo. Added tests/test_soak_diagnostics_custody.py (synthetic URL/token sentinel with zero-duration no-Wine run, invalid-config fail-closed behavior, static raw-identifier guard), and registered it in the actual containerized unit suite. No feature bypass or threshold change in normal nightlies, no artifact upload, private runner or release. One atomic three-file commit.

Verification: exact-head public safety and full CI initiated on PR #150; awaiting terminal receipts. The last approved nightly REL startup receipt belongs to prior head 3ff5b067 and must not be passed off as an exact-head receipt for this new security patch. No merge or release.

Preserve the original 100755 script mode after expanding the test inventory; prevent OCI permission-denied before pytest is invoked.
Restore original 100755 on the revised resource soak script; preserve unit runner, symlink and all other changed-path Git modes.

Copy link
Copy Markdown
Collaborator Author

DLE first-failure repair and exact Git-mode hygiene audit (2026-11-07)

Failure: new-head public unit isolation 42412541777 and broad CI 42412541797 failed before pytest because docker compose run ... scripts/ci/test.sh returned OCI runtime ... exec: "scripts/ci/test.sh": permission denied. The preceding Git tree write mistakenly converted the existing executable script to mode 100644. This was a script Git-mode error, not an observed unit assertion failure. The canceled in-flight runs from superseded heads are not owner-gate evidence.

Corrections: fast-forward b397849ee96df3c5ce9899f48403994df1dba7bf restored scripts/ci/test.sh original 100755 while keeping the test inventory. A proactive recursive Git tree comparison then found that the edited scripts/diagnostics/diagnose-trace-soak.sh had similarly lost executable mode; fast-forward 9f0da1507f03546bb8bf57d01cd7c46041d4d4ae restored its original 100755 before accepting any full-nightly soak. No force or source-content rewrite.

Hygiene verification: compared current Git recursive tree against accepted main@6d278524ca3904ea1bafc44305f8bcb013492517 across all 11 PR-changed paths. There are zero residual Git-mode regressions; edited shell entrypoints retain 100755 and scripts/winebotctl remains mode 120000 (symlink). Exact head 16 ahead, zero behind. Latest public checks are newly triggered; do not claim latest-head acceptance until terminal receipts. Previous 3ff5b067 REL startup was successfully qualified at 42411838436, but subsequent security/mode edits require current-head requalification.

Gates: draft/unmerged; no releases, branch deletions, private Actions minutes, or public raw artifact uploads.

Copy link
Copy Markdown
Collaborator Author

DLE exact-current-head runtime acceptance — 2026-11-07

Current draft 9f0da1507f03546bb8bf57d01cd7c46041d4d4ae (16 ahead/zero behind accepted main) has TERMINAL SUCCESS in dedicated public Nightly REL Startup Qualification 42412799844. BuildKit local REL image, image identity, Compose --no-build startup with Windows tracing/recording, scheduled bounded health gate, teardown all passed; zero public artifacts. Exact-head focused CI 42412799888 terminal SUCCESS across safe-startup-contract, runtime-independent-unit-suite (including synthetic soak log custody tests), and bounded-interactive-startup. The mode-related first failure was repaired, and recursive Git-tree audit shows zero changed-file mode drift.

Latest broad CI 42412799945 not yet terminal at this checkpoint; legacy-v1 historically fails its test gate. This proves current-head nightly startup and source/custody bounds, not full 55-minute soak/fault injection/profile acceptance or legacy-v1 contract parity. Keep draft; no merge/release/private minutes or raw uploads.

Copy link
Copy Markdown
Collaborator Author

R016 — Wine 11 cold-prefix isolated failure-oracle added (2026-11-13)

Terminal source-bound failure: prior head efd00a59f48a8102959b15655333278d7681de8b public Wine11 REL 43378268518 FAILED at health with allowlisted STARTUP_DIAGNOSTIC stage=failed_prefix_init even after both image and fresh runtime prefix switched to wineboot -i. Wine major 11 was verified; no 90s sampler. Actual full CI 43378268556 preflight and integration SUCCESS, unchanged legacy contract job FAILURE. Do not infer a prefix CLI option alone solves the runtime failure.

New implementation: four additive fast-forward commits 0dd390ba / fce3f66b / 22c7bf16 / da904715. Existing PR #150 now da904715620b45627ee6aa70436461b01c26d471, four ahead/0 behind prior candidate. A new unprivileged/isolated test script scripts/ci/probe-wine11-prefix.sh exercises fresh prefix wineboot -i and wine cmd /c exit 0 under both WINEARCH=win64 and WINEARCH=wow64 before full Compose. It runs in disposable network-disabled, bounded public runner containers, emits only fixed pass/boot_timeout/boot_nonzero/x11_unready/command_failed/container_failed categories, suppresses raw Wine/stdout/stderr and does not upload artifacts. The job fails closed unless the actually deployed win64 configuration passes. Source-level CI regression asserts both modes, isolation/budgets, pre-Compose order, and no public raw uploads. Prior mandatory instrumentation/trace remains enabled; no application/host identifiers. Existing executable script mode 100755 retained; new bash-invoked probe mode 100644; workflow/test mode 100644.

Current independent public jobs: focused unit/safety 43380059736, actual REL cold-prefix/health 43380059941, broad CI 43380059806 newly queued/running, with trust-pack/public-conformance/BuildKit guards already SUCCESS at current head. No qualified boot-mode or Wine 11 service-health result yet. Next: inspect the earliest terminal isolated stage, then fix the observed WineHQ/package/prefix/environment mismatch. Preserve the separate 55-minute soak, legacy-v1 conformance, observer, disclosure and release gates; keep draft, unmerged, no private billed runners/image push/force/branch deletion.

Copy link
Copy Markdown
Collaborator Author

R016 2026-11-14 — real Wine11 failure isolated; base-prefix build is now fail-closed

Authority: accepted main 6d278524ca3904ea1bafc44305f8bcb013492517; prechange candidate da904715620b45627ee6aa70436461b01c26d471; current draft 296422cf9d78edc8d23c45379daea10c57479512 (fast-forward, no force). The previous exact-head Wine11 qualifier #43380059941 verified major 11 then failed its fresh-prefix oracle WINE_PREFIX_PROBE arch=win64 stage=boot_nonzero, arch=wow64 stage=boot_nonzero, stage=no_qualified_mode before Compose/health/sampler. Never infer one working mode from the other.

Actual source defect found: docker/base.Dockerfile prefix-warmer used an && Xvfb ... & ... && wineboot ... && ... || true shell chain. Under POSIX sh, background/and-or precedence and trailing true can hide a failed wineboot while Docker reports successful prewarming (confirmed with an independent non-Wine shell negative control). That can leave an image carrying an invalid template even if image-build success is green.

Corrective implementation on #150: prewarm RUN rewritten as explicit fail-closed set -eu sequence: bounded Xvfb readiness before Wine, 120s Wine 11 fresh init, bounded wineserver wait, system.reg assertion, checked theme/registry tune/cleanup; fixed allowlisted WINE_BASE_PREFIX_DIAGNOSTIC stage=... only, raw Wine outputs suppressed. New synthetic unit tests/test_wine11_base_prefix_prewarmer.py injects a failing Wine boot and proves cleanup cannot mask the exit or leak fake secret text. Corrected explicit scripts/ci/test.sh manifest so tests truly execute; updated focused workflow path filtering, old source assertions, and Ruff import spacing after first broad lint #43613260669 failed with I001. The prior head's focused #43613260551 had all jobs SUCCESS including actual unit suite (after enrollment), but this result is NOT transferable to revised latest head.

Current full exact-head verification: REL #43613553907, focused #43613553829, CI #43613553998 active at checkpoint, terminal unknown. BuildKit, provenance, public-conformance, RPC-redaction safety gates remain separately required. New image build should now fail at the actual defective Wine boot step if still broken. This is improved failure attribution, not a qualified startup.

Next READY: inspect earliest exact-head terminal WINE_BASE_PREFIX_DIAGNOSTIC (or proven base success then cold-prefix stage); only then root-cause WineHQ loader/runtime environment with controlled bounded synthetic variants. No private GHA minutes, no raw diagnostics/artifacts, no release, protected main merge, or branch deletion.

Copy link
Copy Markdown
Collaborator Author

R016 / 2026-11-14 — Wine 11 base-init progress and bounded differential DOE

Source evidence: Previous candidate 296422cf9d78edc8d23c45379daea10c57479512 REL #43613553907 FAILED inside the base image build at WINE_BASE_PREFIX_DIAGNOSTIC stage=wineboot_failed after 120s, proving the prior successful image build had masked a real Wine startup failure. Explicit bounded Xvfb + fail-closed image build is retained. Current source REL #43614465213 after head 3c7e23ba95b9e2d85447a2b4fb51cebc38915993 makes image-build SUCCESS and verifies Wine 11; isolated non-root network-disabled boot probes fail win64=boot_nonzero, wow64=boot_nonzero before Compose/90s sample. WINEARCH=wow64 was also not a supported documented Wine arch selector; it must not be accepted as a qualified mode.

Applied next experiment on this existing draft branch: two fast-forward commits 0a8bb5de and e63440ee1c4d1c827256633937b343b280990155 change only scripts/ci/probe-wine11-prefix.sh and its actual source-level unit regression. New 2×3 DOE compares caps=standard|hardened (standard Docker default caps vs --cap-drop=ALL) and valid WINEARCH=default|win64|win32 under fixed non-root uid, network=none, bounded CPU/memory/PIDs, no-new-privileges and 90-second wineboot timeout. Every case emits only allowlisted stage enums pass|boot_timeout|boot_nonzero|x11_unready|command_failed|container_failed; no raw Wine stderr, logs, app titles, credentials, artifacts or container IDs. Win32 is differential evidence only, never a release workaround. A passing caps=standard arch=win64 is necessary even to proceed to true Compose health; no non-target case can qualify production. No mandatory trace bypass or source/host compromise. Tested broad CI at previous head was preflight PASS, legacy-v1 conformance red; focused #43614465265 all three jobs PASS; these checks do not transfer to the new head until a new exact-head public Actions run is observed. The new e63440ee head is source-only unless run attaches and terminates. Keep draft unmerged, no release/private minutes.

Critical path: actual no-network WineHQ11 cold prefix and command under target user+arch, Compose service health, 90s sampler, 55min soak and fault/lifecycle; native observer/security/legacy contract acceptance independent. Main has since advanced via security-only PR#152 to 658f4981606ecc631a78847da7e4c5f3314ea3c8; reconcile forward without force or losing published safety guard.

Copy link
Copy Markdown
Collaborator Author

R016 2026-11-14 — accepted-main convergence and six-cell Wine 11 causal qualifier

Accepted main is now f5ba0256f330958dcf35710a822508cdb31fc40b after two separately verified source-scoped squash merges: #152 public nightly diagnostic redaction and #153 portable health/system memory. This draft was forward reconciled without force as true two-parent Git merge ade53985a0bf5b876b866e327ef4e1f9a7235a9f, parents prior draft e63440ee1c4d1c827256633937b343b280990155 and accepted main. Exact Git compare: 45 ahead/0 behind, 18 candidate-specific changed paths; previously accepted scripts/ci/wait-for-container-health.sh redaction and api/routers/health.py portable memory retained. Combined explicit unit test manifest now runs synthetic Wine11 prewarm AND health memory tests, and original redaction canary methods on the draft match merged main exactly.

New causal experiment: scripts/ci/probe-wine11-prefix.sh runs a 2×3 matrix (caps=standard|hardened × valid arch=default|win64|win32) as six ephemeral offline non-root containers, with fixed CPU/memory/PID limits and no raw Wine output. WINEARCH=wow64 from previous bad probe removed as an invalid literal; the acceptance prerequisite is actual target caps=standard arch=win64, never surrogate mode. Previous Wine11 #43614465213 proved new Wine11 base image builds and version 11 is present, but isolated hardened win64 and invalid wow64 both returned boot_nonzero. This does not qualify real runtime or 90-second sampler.

Post-reconciliation source-exact workflows: Nightly REL #43616302075, focused real unit/startup #43616302031, CI #43616302084. Trust provenance, BuildKit-public-record, RPC identity and public-conformance guards already SUCCESS; actual Wine11 qualifier still IN_PROGRESS on base build and other jobs ongoing at checkpoint. Keep draft, no merge, no release, no private GHA minutes, no artifacts/raw logs, no bypass of mandatory input tracing. Diagnose terminal six-cell result first; then narrow failed axis before next experiment.

mark-e-deyoung commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

R018 — exact-head Wine 11 prefix-ownership differential and harness repair (2026-11-15)

Authority: protected main@f5ba0256f330958dcf35710a822508cdb31fc40b unchanged; draft #150 now 78095880f562f274bf5386919f646f1cd65d6f51, 47 ahead / 0 behind, 20 candidate-specific paths. No release/image publication/merge/force/host change.

Independent observed result: prior six-cell run 43616302075 failed every mode with boot_nonzero before Compose. An atomic four-file diagnostic commit d4dc7cff46a54ba275ea9181dcb84a909958ee59 replaced broad mode retries with target path, alternate user-created path, prewarmed-control, and relaxed-PID controls, plus enrolled synthetic tests. Exact real public REL 43700952549 reported target=/wineprefix -> boot_nonzero_registry_missing, alternate /tmp path -> pass, prewarmed -> pass, relaxed PID /wineprefix -> boot_nonzero_registry_missing. Focused 43700952559 all three jobs SUCCESS; publication guards SUCCESS. This isolates a path/ownership difference, NOT by itself a production Wine11 failure or Compose acceptance.

Causal source review: docker/base.Dockerfile and docker/Dockerfile create /wineprefix root-owned/writable, while normal docker/entrypoint.sh runs scripts/init/00-setup-user.sh as root to chown the prefix before gosu winebot. The earlier probe bypassed this required root-to-user handoff by launching directly as UID 1000; its target failure was a test harness mismatch. Do not alter product Wine init or weaken security based only on that false comparison.

Applied correction: second atomic fast-forward 78095880f562f274bf5386919f646f1cd65d6f51 adds image-local scripts/ci/wine11-prefix-cell.sh for exact profile/identity checks, performs restricted prefix chown for target cells while root, execs Wine as nonroot via existing gosu, and preserves --network none, no-new-privileges, bounded CPU/memory/PIDs, fixed category-only output and no uploads. Host script, enumerated unit regression and PR workflow source-path trigger updated. The alternative and prewarmed controls remain nonroot. Only production-equivalent target PASS can admit Compose. This is an oracle correction, not a product runtime fix.

Verification status at posting: new exact-head public REL 43701493902, focused 43701493891, and broad 43701493974 triggered; terminal yet to be classified. Before additional source edits, inspect terminal target-stage first failure. On target PASS proceed to real Compose health and 90-second sampler, then separately 55-minute soak/fault/observer/security/contract gates. Keep draft/unmerged, zero paid/private runners, no raw logs/artifact uploads.

R018 terminal and next long-soak follow-through

At exact ownership-handoff head 78095880f562f274bf5386919f646f1cd65d6f51, public Wine11 REL #43701493902 is TERMINAL SUCCESS through qualified Win64 target prefix, actual Compose health and 90-second trace/resource sampler. Focused #43701493891 all three jobs SUCCESS; source-publication guards SUCCESS. No extended-soak/fault/observer/legacy conformance acceptance should be inferred.

Applied one further atomic fast-forward d2304d2b2e096a097ffa76b79aeaeef85b72d702 to the same draft #150: extend the existing public exact-image qualifier with a separate 3300-second (55-minute) resource/trace soak and post-soak health gate. New bounded scripts/ci/classify-wine11-soak.py projects only enumerated failure categories from job-local output; synthetic canary/symlink/unknown-category tests are enrolled in the actual unit manifest. No raw logs, host paths, image publishing or artifact uploads. Exact head now d2304d2b (new REL #43702228758 running; focused #43702228779 terminal SUCCESS). Production main still unchanged. Hold release/merge pending long soak, fault/observer, mandatory legacy conformance and security.

Copy link
Copy Markdown
Collaborator Author

R023 verification reconciliation (2026-11-15): At exact PR #150 head d2304d2b2e096a097ffa76b79aeaeef85b72d702, public Nightly REL run 43702228758 is TERMINAL SUCCESS. Independently retrieved job 132775638966 step summary verifies actual WineHQ 11 cold-prefix probe, Compose health, 90-second trace/resource sampler, full 3300-second (55-minute) sustained resource/trace soak, and post-soak health all SUCCESS. Record this as a true standalone Wine11 REL candidate acceptance slice, not just a focused synthetic test. The separate layered composition in draft #154 still fails one-shot app/state initialization (run 43753834605: concurrent_init and permissions_failed), and new nocopy correction is being qualified. Fault/restart, observer, app compatibility, frozen legacy conformance, security and HIL remain separate hold gates. No runtime promotion, release, paid minutes, or physical-hardware action. This comment reconciles previously understated 55m evidence only.

Copy link
Copy Markdown
Collaborator Author

R024 independent Wine11 post-soak fault qualification (2026-11-16). Draft #1508c5ed80, two FF commits: 2e922310 adds bounded, nonroot, container-local Openbox termination after existing 55m source-qualified REL soak; requires a new Openbox process and a subsequent authenticated health gate; 8c5ed801 adds missing-window-manager fail-closed synthetic test. No raw IDs/logs, host fault actions or image publication. Focused public 43799408858 all three jobs SUCCESS and source guards SUCCESS; exact source REL+55m+fault 43799408806 still in progress at last observation. This fault gate is NOT ACCEPTED until terminal. Preserve distinct #154 architecture/immutable-state and #123 contracts. Consolidated DLE: https://github.com/mark-e-deyoung/winebot-research/issues/1#issuecomment-6906636007.

This branch has not been deployed

No deployments
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