From f5901dd5ce10fa2ed37c017c3ad2c312cc6a39fe Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:20:41 +0100 Subject: [PATCH 01/87] docs: define autonomous WineBot qualification phases and hardware gates --- .../2026-11-autonomous-rdte-hardware-gates.md | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md new file mode 100644 index 00000000..d4d1ca22 --- /dev/null +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -0,0 +1,84 @@ +# WineBot R020: Autonomous RDTE, deployment and hardware-qualification roadmap + +Status: proposed execution plan, public source-only; not a release decision. +Authority at cold start (2026-11-15): `SemperSupra/WineBot@f5ba0256f330958dcf35710a822508cdb31fc40b`. +This roadmap is an independent coordination artifact, not an attempt to merge or supersede draft work. Current authority is the latest Git/DLE and exact-head CI, not this historical snapshot. + +## Mission + +Deliver a reproducible Windows application/game execution and research environment for: +- automated graphical and non-graphical execution, including games; +- debugging and lawful reverse engineering of authorized workloads; +- identifying and reproducing missing/incorrect Wine functionality; +- recording installation effects to author independently qualified replacement installation recipes; +- concurrent human/agent/automation observation, with explicit input ownership and human takeover; +- keyboard and assistive-technology accessible control surfaces. + +No universal feature-parity promises: report capabilities and gaps explicitly. + +## Non-negotiable architecture + +1. Disposable, digest-pinned WineBot runtime: Wine/upstream/custom runners, display, input, control, instrumentation; container root read-only, no privileged default, ephemeral writable scratch. +2. Versioned, independently replaceable application environment: immutable app payload, dependencies, installer recipe and prefix-template lineage. Treat prefix registry and Program Files as mutable until separately proven safe to overlay. +3. User-scoped persistent state: prefix, user profile, application settings, save games, documents, config, credentials and retained evidence. Backup before migration. No `docker compose down -v` against live data. +4. Cross-cutting evidence and control planes: source-exact run identity, lifecycle, trace, artifact custody, opt-in debug sidecars, observation and control arbitration; do not expose confidential material in public CI. + +Prefer a Go standard-library implementation for deployable helpers; Python is acceptable for bounded CI/tests already owned by existing code. Avoid a new orchestration platform when GitHub Actions, OCI tools and existing runtime APIs suffice. + +## Authority, in-flight dependencies and holds + +- [#154](https://github.com/SemperSupra/WineBot/pull/154): independent opt-in three-layer architecture; focused public replay passed at `bddf3e7a6d2a53ad43871abecd9379983a585ff3`; full CI failed. Draft/unmerged; do not overlap its owned files. +- [#150](https://github.com/SemperSupra/WineBot/pull/150): Wine 11 prefix/startup recovery; focused public startup workflow passed at `d2304d2b2e096a097ffa76b79aeaeef85b72d702`; full CI failed. Long-soak, fault recovery and independent review separate. +- [#123](https://github.com/SemperSupra/WineBot/pull/123): portable contracts and provisional vNext evidence; focused checks passed at `cf9da472bcb82b044ae6f6a945dc5c1e79a5513d`; full CI failed; no legacy conformance waiver. +- [#132](https://github.com/SemperSupra/WineBot/pull/132), [#133](https://github.com/SemperSupra/WineBot/pull/133), [#135](https://github.com/SemperSupra/WineBot/pull/135), [#143](https://github.com/SemperSupra/WineBot/pull/143), [#144](https://github.com/SemperSupra/WineBot/pull/144): isolated CPU graphics/game experiments; retain their RDTE-only, nonmerge status until qualified. +- [#151](https://github.com/SemperSupra/WineBot/pull/151): read-only Agent Dispatch proposal on security review hold; do not assume authority to run a remote workset. +- Separate private publication/disclosure authority controls any sensitive evidence or deployment identity. Do not cross-post private findings to this public repository. +- Retired WineBotAppBuilder is not a packaging platform to resurrect; `winebot-contracts` remains thin portable behavioral conformance only. + +## Phased plan, dependencies and gates + +| Phase | Independent deliverables | Free-cloud actions | Entry / exit gate | +| --- | --- | --- | --- | +| P0: Discover / baseline | Exact main, PR heads, workflow IDs, first failures, risks, copyright/source rights, no-duplicate DLE map | GitHub connector + public GHA observations | Every live task assigned owner and acceptance evidence; never close a live dependency without proof | +| P1: Disposable core | Runtime/application/persistent state separation, idempotent seeding, external volumes, immutable image IDs | #154 public Linux GHA replay | PASS: restart/replacement preserves user data; destructive operations refused; security review required for promotion | +| P2: Packaging and installation | Runner catalog, offline application manifests, isolated per-app prefix templates; installer before/after inventory and deterministic recipe compiler | Public Ubuntu runner, real redistributable open-source fixtures | PASS: pristine install and reconstructed install independently satisfy application postconditions with exact source hashes | +| P3: Diagnostic instrumentation | Quiesced prefix snapshots, file/registry delta, process tree, ordered event trace, API relay, crash & DLL/COM probes, source-bound evidence | Independent focused public CI workcells | PASS: minimally sufficient reproducible evidence, privacy redaction, bounded memory/size and failure taxonomy | +| P4: Compatibility research | Differential Wine 10/11/current/custom; Windows reference where available; repro minimizer; capability matrix and upstream-ready bug records | Public GHA Linux plus Windows public-runner bounded native oracles | PASS: a real workload failure classified, repeated and isolated from WineBot infrastructure or instrumentation | +| P5: Human/agent/a11y | Input leases, read-only observers, atomic takeover and release, audit semantics; semantic inspection, keyboard/focus and web accessibility | Public GHA synthetic E2E + a11y audits | PASS: no conflicting input, no hidden state changes, keyboard-only tasks and screen-reader hardware/manual gate retained | +| P6: Hardware candidate | Exact digest pair, repeat fault/restart/55-minute soak, Windows GPU/input/audio/controller and actual assistive hardware checklist | Free cloud for preflight only, sovereign/local GPU & native Windows HIL later | PASS: pre-hardware gate below; only then label READY_FOR_HARDWARE_TEST, never READY_FOR_RELEASE | +| P7: O&M | Managed updates, backup restore, compatibility drift, regression triage, quota/cost guard, garbage collection and lifecycle runbook | Scheduled public GHA on bounded source, human-approved releases | PASS: repeatable rollback, retention, alerting and post-upgrade conformance without destructive cleanup | + +Parallel cells: P1 state contracts, P2 synthetic installer capture, P3 event schema, P4 public test-matrix design and P5 input/a11y contracts can proceed independently. Serial gates: application snapshot/reconstruction depends on P2 inventory; differential compatibility depends on evidence integrity; hardware admission depends on P1 runtime readiness, P3 diagnostics, P5 safe control and passing exact-candidate integration. + +## First bounded workcell: installer prefix inventory + +A source-only Go stdlib CLI captures deterministic quiesced Wine-prefix inventory before/after installation and emits a local delta. It does NOT record installer sequencing/process activity or reconstruct installers yet; these are subsequent workcells. It must avoid raw contents in output, avoid following symlinks, omit host root paths and reject traversal/duplicate manifest entries. Treat all outputs as potentially private: do not upload them from public GHA. Synthetic CI fixtures only. + +Follow-on recorder: Wine registry `.reg` semantic parser, `reg query` snapshots, Linux inotify/fanotify/strace where permitted, process tree, wineserver/winedebug logs, MSI and setup metadata, time-ordered events. Capture network behavior only with explicit privacy/legal authorization. Reconstructor: manifest + dependency graph + idempotent recipe + rollback snapshot + Windows/Wine application-level postcondition oracle. Replaying clicks alone is not reconstruction. + +## Qualification levels and evidence custody + +Use ordered, non-interchangeable evidence classes: +STATIC_CONTRACT -> MOCKED_BEHAVIOR -> INFRASTRUCTURE_SMOKE -> PRODUCT_QUALIFICATION -> RELEASE_QUALIFICATION. +A focused PASS does not imply full CI, public source qualification does not imply user hardware qualification, and synthetic fixtures do not imply Windows-game compatibility. Bind every claim to: source SHA, workflow/run/job ID, image digest, fixture hash, runner/capability, test name, first failure and privacy-reviewed result. Do not expose tokens, raw transcripts, host IDs, user profiles, proprietary installers or unreviewed screenshots in public artifacts. + +Public Actions only for ordinary automated tests; no private Actions minutes. Use minimal permissions (`contents:read`), pinned checkout/actions, offline tests where feasible, cancel superseded runs and enforce CPU/memory/time quotas. Do not automatically promote experimental images, authorize external host access or merge unresolved security holds. + +## Pre-hardware readiness checklist — all mandatory + +- [ ] Exact candidate runtime/app manifest and image hashes published to permitted custody with source/license review; runtime launch on immutable layers passes on GHA. +- [ ] Wine 11 or explicitly selected runner passes real service health, repeated long soak, recovery and instrumentation controls; known failing full CI investigated and either fixed or separately accepted with source-scoped rationale. +- [ ] Disposable container recreation, idempotent app seeding, immutable-package rollback and persistent prefix/profile/file restore pass without privileged mounts or destructive operations. +- [ ] At least one real Windows application and one rights-cleared Windows game complete deterministic first launch/input/observable postconditions on available cloud software graphics; failures accurately classified, not hidden. +- [ ] Installer capture passes independent before/after/replay tests for a distributable real fixture; sensitive paths/state never published. +- [ ] Human/agent input arbitration, read-only observation, human emergency takeover and accessible Web UI keyboard/focus checks pass; screen reader and device-specific checks are explicitly reserved for hardware. +- [ ] Dependency pinning, supply-chain scan, public artifact inventory, resource policy, rollback/backup runbook and source-exact evidence pass. +- [ ] A bounded hardware-test manifest states GPU/display, driver, audio, gamepad, Windows reference, accessibility hardware and rollback instructions; no production deployment assumptions. + +When **all** above are checked against exact evidence, post `READY_FOR_HARDWARE_TEST` with hashes, known limitations, instructions and a verification link in the owning DLE and notify the owner. Until then status is `NOT_READY`. Hardware-ready is not a production release. + +## Autonomous loop, housekeeping and handoff + +Each wake: Discover current owning DLE/main and PR heads -> Observe first failing jobs and resource/quotas -> Plan independent READY cells -> Apply bounded authorized changes -> Verify exact-head public CI -> reconcile comments/checklists/branches and close or merge only resolved healthy work with rights/security authority. Preserve RDTE-only draft PRs until gates explicitly permit. Scope failures exactly; never write to a deployment host or consume paid resources without independent authorization. Post minimal next executable baton and cite exact evidence; do not ask user to copy/paste a wall of text. + +The task may continue via a scheduled ChatGPT automation if enabled. Do not imply tools continue running after a session merely because this document exists. From c6763e8c800389c1389a821ec6a04be56c8bf212 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:22:19 +0100 Subject: [PATCH 02/87] feat: add offline deterministic Wine prefix inventory and delta CLI --- cmd/installer-capture/main.go | 228 ++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) create mode 100644 cmd/installer-capture/main.go diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go new file mode 100644 index 00000000..28ec9546 --- /dev/null +++ b/cmd/installer-capture/main.go @@ -0,0 +1,228 @@ +// WineBot installer-capture: source-only, offline prefix inventory research tool. +// Snapshots contain path names and hashes, which may be sensitive. Never publish +// real prefix snapshots or diffs as public CI artifacts. +package main + +import ( + "crypto/sha256" + "encoding/hex" + "encoding/json" + "errors" + "flag" + "fmt" + "io" + "io/fs" + "os" + "path" + "path/filepath" + "reflect" + "sort" + "strings" +) + +const schemaVersion = 1 +const maxEntries = 250000 +const maxManifestBytes = 64 << 20 + +type Entry struct { + Path string `json:"path"` + Kind string `json:"kind"` + Size int64 `json:"size,omitempty"` + SHA256 string `json:"sha256,omitempty"` +} +type Manifest struct { + Schema int `json:"schema"` + Entries []Entry `json:"entries"` +} +type Change struct { + Path string `json:"path"` + Operation string `json:"operation"` + Before *Entry `json:"before,omitempty"` + After *Entry `json:"after,omitempty"` +} +type Delta struct { + Schema int `json:"schema"` + Changes []Change `json:"changes"` +} + +func validPath(p string) bool { + return p != "" && p != "." && !strings.Contains(p, "\\") && + !strings.HasPrefix(p, "/") && path.Clean(p) == p && + !strings.HasPrefix(p, "../") && p != ".." +} +func validHash(v string) bool { + if len(v) != 64 { return false } + b, err := hex.DecodeString(v) + return err == nil && hex.EncodeToString(b) == v +} +func validateManifest(m Manifest) error { + if m.Schema != schemaVersion || len(m.Entries) > maxEntries { return errors.New("manifest schema or entry count") } + seen := map[string]bool{} + for _, e := range m.Entries { + if !validPath(e.Path) || seen[e.Path] { return errors.New("manifest path") } + seen[e.Path] = true + switch e.Kind { + case "file": if e.Size < 0 || !validHash(e.SHA256) { return errors.New("manifest file") } + case "symlink": if e.Size != 0 || !validHash(e.SHA256) { return errors.New("manifest symlink") } + case "dir": if e.Size != 0 || e.SHA256 != "" { return errors.New("manifest dir") } + default: return errors.New("manifest type") + } + } + return nil +} +func snapshot(root string) (Manifest, error) { + m := Manifest{Schema: schemaVersion, Entries: []Entry{}} + canonical, err := filepath.EvalSymlinks(root) + if err != nil { return m, err } + info, err := os.Stat(canonical) + if err != nil || !info.IsDir() { return m, errors.New("root must exist and be directory") } + err = filepath.WalkDir(canonical, func(p string, d fs.DirEntry, incoming error) error { + if incoming != nil { return incoming } + if p == canonical { return nil } + if len(m.Entries) >= maxEntries { return errors.New("entry limit reached") } + rel, err := filepath.Rel(canonical, p) + if err != nil { return err } + name := filepath.ToSlash(rel) + if !validPath(name) { return errors.New("invalid relative path") } + e := Entry{Path: name} + switch { + case d.Type().IsRegular(): + file, err := os.Open(p) + if err != nil { return err } + before, err := file.Stat() + if err != nil { file.Close(); return err } + h := sha256.New() + n, err := io.Copy(h, file) + after, statErr := file.Stat() + closeErr := file.Close() + if err != nil { return err } + if statErr != nil { return statErr } + if closeErr != nil { return closeErr } + if n != before.Size() || n != after.Size() || !before.ModTime().Equal(after.ModTime()) { + return errors.New("file changed during snapshot; quiesce the prefix") + } + e.Kind, e.Size, e.SHA256 = "file", n, hex.EncodeToString(h.Sum(nil)) + case d.IsDir(): + e.Kind = "dir" + case d.Type()&os.ModeSymlink != 0: + target, err := os.Readlink(p) + if err != nil { return err } + sum := sha256.Sum256([]byte(target)) + e.Kind, e.SHA256 = "symlink", hex.EncodeToString(sum[:]) + default: + return errors.New("unsupported object; quiesce prefix and remove transient sockets") + } + m.Entries = append(m.Entries, e) + return nil + }) + if err != nil { return Manifest{}, err } + sort.Slice(m.Entries, func(i, j int) bool { return m.Entries[i].Path < m.Entries[j].Path }) + return m, validateManifest(m) +} +func readManifest(filename string) (Manifest, error) { + m := Manifest{} + f, err := os.Open(filename) + if err != nil { return m, err } + defer f.Close() + info, err := f.Stat() + if err != nil { return m, err } + if info.Size() > maxManifestBytes { return m, errors.New("manifest too large") } + dec := json.NewDecoder(io.LimitReader(f, maxManifestBytes+1)) + dec.DisallowUnknownFields() + if err := dec.Decode(&m); err != nil { return m, err } + var next any + if err := dec.Decode(&next); err != io.EOF { return m, errors.New("trailing manifest data") } + return m, validateManifest(m) +} +func delta(before, after Manifest) (Delta, error) { + result := Delta{Schema: schemaVersion, Changes: []Change{}} + if err := validateManifest(before); err != nil { return result, err } + if err := validateManifest(after); err != nil { return result, err } + old, now := map[string]Entry{}, map[string]Entry{} + paths := map[string]bool{} + for _, e := range before.Entries { old[e.Path] = e; paths[e.Path] = true } + for _, e := range after.Entries { now[e.Path] = e; paths[e.Path] = true } + names := make([]string, 0, len(paths)) + for p := range paths { names = append(names, p) } + sort.Strings(names) + for _, p := range names { + a, had := old[p] + b, has := now[p] + if had && has && reflect.DeepEqual(a, b) { continue } + c := Change{Path: p} + if had { copyA := a; c.Before = ©A } + if has { copyB := b; c.After = ©B } + switch { + case !had: c.Operation = "added" + case !has: c.Operation = "removed" + default: c.Operation = "changed" + } + result.Changes = append(result.Changes, c) + } + return result, nil +} +func writeJSON(out string, v any) error { + // No output file inside a watched prefix is allowed at the CLI boundary. + dir := filepath.Dir(out) + f, err := os.CreateTemp(dir, ".winebot-capture-*") + if err != nil { return err } + name := f.Name() + defer os.Remove(name) + if err := f.Chmod(0600); err != nil { f.Close(); return err } + enc := json.NewEncoder(f) + enc.SetIndent("", " ") + if err := enc.Encode(v); err != nil { f.Close(); return err } + if err := f.Sync(); err != nil { f.Close(); return err } + if err := f.Close(); err != nil { return err } + // Hard-link creation is atomic and refuses overwrite of an existing output. + return os.Link(name, out) +} +func outOutsideRoot(root, out string) bool { + r, err1 := filepath.EvalSymlinks(root) + o, err2 := filepath.Abs(out) + if err1 != nil || err2 != nil { return false } + dir, err3 := filepath.EvalSymlinks(filepath.Dir(o)) + if err3 != nil { return false } + relative, err4 := filepath.Rel(r, filepath.Join(dir, filepath.Base(o))) + if err4 != nil { return false } + return relative == ".." || strings.HasPrefix(relative, ".."+string(filepath.Separator)) +} +func run(argv []string) error { + if len(argv) == 0 { return errors.New("missing command") } + switch argv[0] { + case "snapshot": + flags := flag.NewFlagSet("snapshot", flag.ContinueOnError) + flags.SetOutput(io.Discard) + root := flags.String("root", "", "quiesced Wine prefix root") + out := flags.String("out", "", "private snapshot JSON outside root") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || *root == "" || *out == "" { return errors.New("invalid snapshot arguments") } + if !outOutsideRoot(*root, *out) { return errors.New("snapshot output must be outside root") } + m, err := snapshot(*root) + if err != nil { return err } + return writeJSON(*out, m) + case "diff": + flags := flag.NewFlagSet("diff", flag.ContinueOnError) + flags.SetOutput(io.Discard) + before := flags.String("before", "", "before JSON") + after := flags.String("after", "", "after JSON") + out := flags.String("out", "", "private delta JSON") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || *before == "" || *after == "" || *out == "" { return errors.New("invalid diff arguments") } + if *out == *before || *out == *after { return errors.New("refuse overwrite of input") } + a, err := readManifest(*before) + if err != nil { return err } + b, err := readManifest(*after) + if err != nil { return err } + d, err := delta(a, b) + if err != nil { return err } + return writeJSON(*out, d) + default: return errors.New("unknown command") + } +} +func main() { + if err := run(os.Args[1:]); err != nil { + // Fixed-category public messages. Do not print raw paths or raw errors. + fmt.Fprintln(os.Stderr, "WINEBOT_CAPTURE status=failed") + os.Exit(1) + } + fmt.Println("WINEBOT_CAPTURE status=passed") +} From 1fb09ff705e4c74145cd8cc2e4752b7b3c7c725b Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:23:33 +0100 Subject: [PATCH 03/87] build: define standalone dependency-free Go installer-capture module --- cmd/installer-capture/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cmd/installer-capture/go.mod diff --git a/cmd/installer-capture/go.mod b/cmd/installer-capture/go.mod new file mode 100644 index 00000000..889520f0 --- /dev/null +++ b/cmd/installer-capture/go.mod @@ -0,0 +1,3 @@ +module github.com/SemperSupra/WineBot/cmd/installer-capture + +go 1.23.0 From 23cff06c0c48826f9e0cc9851d40a31d78b2ec89 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:24:05 +0100 Subject: [PATCH 04/87] test: exercise installer inventory, delta and fail-closed privacy boundaries --- cmd/installer-capture/main_test.go | 90 ++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 cmd/installer-capture/main_test.go diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go new file mode 100644 index 00000000..5e7567b2 --- /dev/null +++ b/cmd/installer-capture/main_test.go @@ -0,0 +1,90 @@ +package main + +import ( + "encoding/json" + "os" + "path/filepath" + "strings" + "testing" +) + +func TestSnapshotDiffOffline(t *testing.T) { + dir := t.TempDir() + root := filepath.Join(dir, "prefix") + if err := os.MkdirAll(filepath.Join(root, "drive_c"), 0700); err != nil { t.Fatal(err) } + old := filepath.Join(root, "drive_c", "old.exe") + changed := filepath.Join(root, "user.reg") + if err := os.WriteFile(old, []byte("old file"), 0600); err != nil { t.Fatal(err) } + if err := os.WriteFile(changed, []byte("registry BEFORE_SECRET_VALUE"), 0600); err != nil { t.Fatal(err) } + a, err := snapshot(root) + if err != nil { t.Fatal(err) } + if err := os.Remove(old); err != nil { t.Fatal(err) } + if err := os.WriteFile(changed, []byte("registry AFTER_SECRET_VALUE"), 0600); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root, "drive_c", "installed.exe"), []byte("new"), 0600); err != nil { t.Fatal(err) } + if err := os.Symlink("/private/host/path", filepath.Join(root, "dosdevices")); err != nil { t.Fatal(err) } + b, err := snapshot(root) + if err != nil { t.Fatal(err) } + d, err := delta(a, b) + if err != nil { t.Fatal(err) } + got := map[string]string{} + for _, c := range d.Changes { got[c.Path] = c.Operation } + for p, op := range map[string]string{"drive_c/old.exe":"removed","user.reg":"changed","drive_c/installed.exe":"added","dosdevices":"added"} { + if got[p] != op { t.Fatalf("change %s = %s; want %s", p, got[p], op) } + } + raw, err := json.Marshal(b) + if err != nil { t.Fatal(err) } + if strings.Contains(string(raw), "SECRET_VALUE") || strings.Contains(string(raw), "/private/host/path") { + t.Fatal("snapshot leaked content or raw symlink target") + } + first, err := snapshot(root) + if err != nil { t.Fatal(err) } + j, _ := json.Marshal(b) + k, _ := json.Marshal(first) + if string(j) != string(k) { t.Fatal("non-deterministic snapshot") } +} + +func TestCLIAndPrivateOutput(t *testing.T) { + dir := t.TempDir() + root := filepath.Join(dir, "prefix") + if err := os.Mkdir(root, 0700); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root, "sample.reg"), []byte("value"), 0600); err != nil { t.Fatal(err) } + inside := filepath.Join(root, "manifest.json") + if err := run([]string{"snapshot", "-root", root, "-out", inside}); err == nil { t.Fatal("output inside root accepted") } + before := filepath.Join(dir, "before.json") + if err := run([]string{"snapshot", "-root", root, "-out", before}); err != nil { t.Fatal(err) } + if err := run([]string{"snapshot", "-root", root, "-out", before}); err == nil { t.Fatal("overwrote existing snapshot") } + st, err := os.Stat(before) + if err != nil { t.Fatal(err) } + if st.Mode().Perm() != 0600 { t.Fatalf("snapshot permissions %v", st.Mode()) } + after := filepath.Join(dir, "after.json") + if err := run([]string{"snapshot", "-root", root, "-out", after}); err != nil { t.Fatal(err) } + deltaPath := filepath.Join(dir, "delta.json") + if err := run([]string{"diff", "-before", before, "-after", after, "-out", deltaPath}); err != nil { t.Fatal(err) } + data, err := os.ReadFile(deltaPath) + if err != nil { t.Fatal(err) } + var d Delta + if err := json.Unmarshal(data, &d); err != nil { t.Fatal(err) } + if len(d.Changes) != 0 { t.Fatalf("unchanged prefix has %d changes", len(d.Changes)) } +} + +func TestRejectMaliciousManifest(t *testing.T) { + h := strings.Repeat("a", 64) + cases := []Manifest{ + {Schema: 2}, + {Schema: 1, Entries: []Entry{{Path:"../etc/passwd",Kind:"file",SHA256:h}}}, + {Schema: 1, Entries: []Entry{{Path:"file",Kind:"file",SHA256:h},{Path:"file",Kind:"file",SHA256:h}}}, + {Schema: 1, Entries: []Entry{{Path:"foo\\bar",Kind:"dir"}}}, + {Schema: 1, Entries: []Entry{{Path:"foo",Kind:"socket"}}}, + {Schema: 1, Entries: []Entry{{Path:"foo",Kind:"file",SHA256:"not-a-digest"}}}, + } + for n, m := range cases { if validateManifest(m) == nil { t.Fatalf("invalid manifest %d accepted", n) } } +} + +func TestFailClosedSpecialObjects(t *testing.T) { + root := t.TempDir() + // A dangling link must be recorded as metadata without being followed. + if err := os.Symlink("/does/not/exist", filepath.Join(root, "external")); err != nil { t.Fatal(err) } + m, err := snapshot(root) + if err != nil { t.Fatal(err) } + if len(m.Entries) != 1 || m.Entries[0].Kind != "symlink" { t.Fatalf("symlink not recorded correctly: %+v", m) } +} From 2eeea7d4b82a2355d549026ef5175d81873bb07b Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:24:28 +0100 Subject: [PATCH 05/87] ci: qualify offline installer capture on public runners --- .github/workflows/installer-capture-rdte.yml | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/installer-capture-rdte.yml diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml new file mode 100644 index 00000000..3012dc81 --- /dev/null +++ b/.github/workflows/installer-capture-rdte.yml @@ -0,0 +1,61 @@ +name: Installer Capture RDTE +on: + pull_request: + paths: + - '.github/workflows/installer-capture-rdte.yml' + - 'cmd/installer-capture/**' + - 'docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md' + push: + branches: [main] + paths: + - '.github/workflows/installer-capture-rdte.yml' + - 'cmd/installer-capture/**' + +permissions: + contents: read + +concurrency: + group: installer-capture-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + offline-capture: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - name: Checkout PR content without credentials + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + persist-credentials: false + - name: Use pinned Go toolchain + uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 + with: + go-version-file: cmd/installer-capture/go.mod + cache: false + - name: Offline Go qualification (no secrets or uploads) + env: + GOPROXY: 'off' + GOSUMDB: 'off' + GOTOOLCHAIN: 'local' + run: | + cd cmd/installer-capture + go vet ./... + go test -count=1 ./... + go build -trimpath -o "$RUNNER_TEMP/winebot-capture" . + work="$(mktemp -d)" + trap 'rm -rf "$work"' EXIT + mkdir -p "$work/prefix" + printf 'one' > "$work/prefix/sample.reg" + "$RUNNER_TEMP/winebot-capture" snapshot -root "$work/prefix" -out "$work/before.json" + printf 'two' > "$work/prefix/sample.reg" + "$RUNNER_TEMP/winebot-capture" snapshot -root "$work/prefix" -out "$work/after.json" + "$RUNNER_TEMP/winebot-capture" diff -before "$work/before.json" -after "$work/after.json" -out "$work/delta.json" + python3 - "$work/delta.json" <<'PY' + import json, sys + data = json.load(open(sys.argv[1], encoding="utf-8")) + assert data["schema"] == 1 + assert [(c["path"], c["operation"]) for c in data["changes"]] == [("sample.reg", "changed")] + PY + - name: Report only synthetic results + if: success() + run: echo 'INSTALLER_CAPTURE_RDTE stage=synthetic_snapshot_diff_passed' From 5a0bfef51f73c61cef4a943a07a8204a7c9cfe4e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:26:50 +0100 Subject: [PATCH 06/87] fix: permit relative prefix roots with canonical output containment check --- cmd/installer-capture/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index 28ec9546..c4d40ccc 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -178,7 +178,9 @@ func writeJSON(out string, v any) error { return os.Link(name, out) } func outOutsideRoot(root, out string) bool { - r, err1 := filepath.EvalSymlinks(root) + absRoot, err0 := filepath.Abs(root) + if err0 != nil { return false } + r, err1 := filepath.EvalSymlinks(absRoot) o, err2 := filepath.Abs(out) if err1 != nil || err2 != nil { return false } dir, err3 := filepath.EvalSymlinks(filepath.Dir(o)) From ffed1bc33a38915bd51411c181c579ac34af4532 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:27:01 +0100 Subject: [PATCH 07/87] test: cover relative prefix-root output safety --- cmd/installer-capture/main_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 5e7567b2..532e5503 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -47,6 +47,11 @@ func TestCLIAndPrivateOutput(t *testing.T) { dir := t.TempDir() root := filepath.Join(dir, "prefix") if err := os.Mkdir(root, 0700); err != nil { t.Fatal(err) } + cwd, err := os.Getwd() + if err != nil { t.Fatal(err) } + relativeRoot, err := filepath.Rel(cwd, root) + if err != nil { t.Fatal(err) } + if !outOutsideRoot(relativeRoot, filepath.Join(dir, "before.json")) { t.Fatal("relative root should be supported") } if err := os.WriteFile(filepath.Join(root, "sample.reg"), []byte("value"), 0600); err != nil { t.Fatal(err) } inside := filepath.Join(root, "manifest.json") if err := run([]string{"snapshot", "-root", root, "-out", inside}); err == nil { t.Fatal("output inside root accepted") } From 77f741a11d3808d03429783366bd08865c03aa0f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:39:07 +0100 Subject: [PATCH 08/87] docs: reconcile source-exact CI failures and hardware gate status --- .../2026-11-autonomous-rdte-hardware-gates.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index d4d1ca22..fd5d6918 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -82,3 +82,14 @@ When **all** above are checked against exact evidence, post `READY_FOR_HARDWARE_ Each wake: Discover current owning DLE/main and PR heads -> Observe first failing jobs and resource/quotas -> Plan independent READY cells -> Apply bounded authorized changes -> Verify exact-head public CI -> reconcile comments/checklists/branches and close or merge only resolved healthy work with rights/security authority. Preserve RDTE-only draft PRs until gates explicitly permit. Scope failures exactly; never write to a deployment host or consume paid resources without independent authorization. Post minimal next executable baton and cite exact evidence; do not ask user to copy/paste a wall of text. The task may continue via a scheduled ChatGPT automation if enabled. Do not imply tools continue running after a session merely because this document exists. + +## Evidence reconciliation — 2026-11-15 16:38 Europe/Berlin + +- Accepted `main@f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged at this observation. +- #155 installer inventory at `ffed1bc33a38915bd51411c181c579ac34af4532`: focused public [run 43729947166](https://github.com/SemperSupra/WineBot/actions/runs/43729947166) **PASS**, full [run 43729947208](https://github.com/SemperSupra/WineBot/actions/runs/43729947208) **FAIL** solely at conformance job; preflight and integration smoke passed. Not an installer reconstruction or hardware pass. +- #154 layered architecture at `af0988d14a408c31a7a1dfdcf3278df2152908f3`: focused disposable contract [run 43729612837](https://github.com/SemperSupra/WineBot/actions/runs/43729612837) **PASS**; [composite Wine11 HIL 43729612802](https://github.com/SemperSupra/WineBot/actions/runs/43729612802) **FAIL** at `startup`; full [CI 43729612729](https://github.com/SemperSupra/WineBot/actions/runs/43729612729) **FAIL** conformance only. Composite failure is a *GitHub-hosted Linux container integration* test, not actual physical hardware. A subsequent #154 source change adds safe, enumerated per-service startup failure classification, pending exact-head rerun. +- #150 Wine11 recovery at `d2304d2b2e096a097ffa76b79aeaeef85b72d702`: focused [startup 43702228758](https://github.com/SemperSupra/WineBot/actions/runs/43702228758) **PASS**; full [CI 43702228722](https://github.com/SemperSupra/WineBot/actions/runs/43702228722) **FAIL** conformance. Standalone startup pass does not prove composite layer startup. +- #123 vNext contracts at `cf9da472bcb82b044ae6f6a945dc5c1e79a5513d`: focused evidence checks pass, full [CI 43701175123](https://github.com/SemperSupra/WineBot/actions/runs/43701175123) **FAIL** conformance. Do not waive frozen legacy-v1 requirements. +- **Hardware gate remains NOT_READY**: composite Wine11 startup fails; full conformance fails; long soak/recovery, real installer reconstruction, human/agent input control, accessibility and game qualification not complete. No candidate digests or hardware test authorization issued. + +Next exact independent READY cells: (a) observe #154 diagnostic rerun and fix first classified startup failure without raw public logs; (b) isolate conformance failures by pinned contract and lifecycle/automation/health semantics; (c) implement rights-cleared installer semantic inventory and event capture with private evidence handling; (d) update hardware checklist only after source-exact proof. From 1c0abfc72fabe223ca17ebbf2dfd1aa156a66e54 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:32:06 +0100 Subject: [PATCH 09/87] fix: prevent symlink/FIFO substitution when inventorying installer files --- cmd/installer-capture/main.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index c4d40ccc..5f564582 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -18,6 +18,7 @@ import ( "reflect" "sort" "strings" + "syscall" ) const schemaVersion = 1 @@ -87,10 +88,16 @@ func snapshot(root string) (Manifest, error) { e := Entry{Path: name} switch { case d.Type().IsRegular(): - file, err := os.Open(p) - if err != nil { return err } + // Linux prefix capture: refuse symlink traversal and non-regular file + // replacement at the final path; NONBLOCK avoids FIFO hangs if a file + // changes type during capture. A quiesced trusted prefix is still required + // to protect against concurrent ancestor-directory replacement. + fd, err := syscall.Open(p, syscall.O_RDONLY|syscall.O_CLOEXEC|syscall.O_NOFOLLOW|syscall.O_NONBLOCK, 0) + if err != nil { return errors.New("file could not be opened safely") } + file := os.NewFile(uintptr(fd), p) before, err := file.Stat() if err != nil { file.Close(); return err } + if !before.Mode().IsRegular() { file.Close(); return errors.New("file type changed during snapshot") } h := sha256.New() n, err := io.Copy(h, file) after, statErr := file.Stat() @@ -98,7 +105,7 @@ func snapshot(root string) (Manifest, error) { if err != nil { return err } if statErr != nil { return statErr } if closeErr != nil { return closeErr } - if n != before.Size() || n != after.Size() || !before.ModTime().Equal(after.ModTime()) { + if !after.Mode().IsRegular() || n != before.Size() || n != after.Size() || !before.ModTime().Equal(after.ModTime()) { return errors.New("file changed during snapshot; quiesce the prefix") } e.Kind, e.Size, e.SHA256 = "file", n, hex.EncodeToString(h.Sum(nil)) From 14ed4eda13efe86f9ece4a26254e36cd367e72dd Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:32:20 +0100 Subject: [PATCH 10/87] test: reject transient named pipes and unexpected prefix file types --- cmd/installer-capture/main_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 532e5503..96c2c1ef 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -5,6 +5,7 @@ import ( "os" "path/filepath" "strings" + "syscall" "testing" ) @@ -93,3 +94,10 @@ func TestFailClosedSpecialObjects(t *testing.T) { if err != nil { t.Fatal(err) } if len(m.Entries) != 1 || m.Entries[0].Kind != "symlink" { t.Fatalf("symlink not recorded correctly: %+v", m) } } + +func TestRejectFIFOWithoutBlocking(t *testing.T) { + root := t.TempDir() + fifo := filepath.Join(root, "transient-pipe") + if err := syscall.Mkfifo(fifo, 0600); err != nil { t.Skipf("named pipes unsupported: %v", err) } + if _, err := snapshot(root); err == nil { t.Fatal("named pipe accepted as a regular installation file") } +} From 530b51848e6463a039104ec8a770e103515c9e90 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:36:46 +0100 Subject: [PATCH 11/87] docs: reconcile R021 startup root causes, exact-head CI and hardware gate holds --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index fd5d6918..02b3c83f 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -93,3 +93,13 @@ The task may continue via a scheduled ChatGPT automation if enabled. Do not impl - **Hardware gate remains NOT_READY**: composite Wine11 startup fails; full conformance fails; long soak/recovery, real installer reconstruction, human/agent input control, accessibility and game qualification not complete. No candidate digests or hardware test authorization issued. Next exact independent READY cells: (a) observe #154 diagnostic rerun and fix first classified startup failure without raw public logs; (b) isolate conformance failures by pinned contract and lifecycle/automation/health semantics; (c) implement rights-cleared installer semantic inventory and event capture with private evidence handling; (d) update hardware checklist only after source-exact proof. + +## R021 reconciliation — 2026-11-15 continuation + +- Authority: accepted `main@f5ba0256f330958dcf35710a822508cdb31fc40b`; #154 and #155 still draft/unmerged. Preserve independent #150 Wine11 and #123 conformance ownership. +- First *observed* composite failure at #154 `488871a41f75fdbcef3e9be8f175d43da7d76248`: [public run 43731051207](https://github.com/SemperSupra/WineBot/actions/runs/43731051207) reported `app-seed exited 1`, `state-init exited 1`, `winebot-interactive created`, `stage=startup`. Wine did not start, so this does **not** establish a Wine API defect. Focused layer contracts passed while full CI still failed conformance. +- Corrective #154 work at `35dbde040b7075af489eb7334aea402f85fc4207` adds strict per-service allowlisted initialization-log categorization with unit/privacy regression tests and pre-build source gate; the prior candidate exposed Ruff import issues, now corrected. Source-exact composite [run 43753063914](https://github.com/SemperSupra/WineBot/actions/runs/43753063914) and [full CI 43753063941](https://github.com/SemperSupra/WineBot/actions/runs/43753063941) were IN PROGRESS when this record was authored; neither can be counted as PASS until terminal evidence is observed. +- Independent #155 installer inventory current `14ed4eda13efe86f9ece4a26254e36cd367e72dd`: safer final-component file opening with O_NOFOLLOW and nonblocking detection of substituted FIFOs; synthetic [run 43752988668](https://github.com/SemperSupra/WineBot/actions/runs/43752988668) PASS. This does not protect malicious concurrent ancestor-directory replacement; actual prefix inspection requires trusted quiesced state. The CLI still does **not** recover installer process sequence, registry-value semantics or reconstruct installers. +- Hardware-readiness checklist **unchanged, all items unverified**. Composite layered initialization, full legacy conformance, real installer reconstruction, long soak, shared control, a11y and games remain acceptance holds. Status: `NOT_READY_FOR_HARDWARE_TEST`; no test manifest or candidate image digest promoted. + +Next independent READY cells: observe exact startup reason categories and repair their verified cause in #154; review first conformance mismatch in #123 without waivers; extend #155 to ordered event and semantic registry capture only after private evidence custody and rights-cleared fixture semantics are qualified. Maintain public free-tier-only CI and no destructive volume cleanup. From ed24440a908a05e27480dca10d0df106d6bc9388 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:38:41 +0100 Subject: [PATCH 12/87] fix(installer-capture): confine prefix snapshot traversal with Go os.Root --- .github/workflows/installer-capture-rdte.yml | 1 + cmd/installer-capture/go.mod | 2 +- cmd/installer-capture/main.go | 34 +++++++++++--------- cmd/installer-capture/main_test.go | 23 +++++++++++++ 4 files changed, 43 insertions(+), 17 deletions(-) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 3012dc81..7cd75a72 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -42,6 +42,7 @@ jobs: go vet ./... go test -count=1 ./... go build -trimpath -o "$RUNNER_TEMP/winebot-capture" . + GOOS=windows GOARCH=amd64 go build -trimpath -o "$RUNNER_TEMP/winebot-capture.exe" . work="$(mktemp -d)" trap 'rm -rf "$work"' EXIT mkdir -p "$work/prefix" diff --git a/cmd/installer-capture/go.mod b/cmd/installer-capture/go.mod index 889520f0..006d6d50 100644 --- a/cmd/installer-capture/go.mod +++ b/cmd/installer-capture/go.mod @@ -1,3 +1,3 @@ module github.com/SemperSupra/WineBot/cmd/installer-capture -go 1.23.0 +go 1.25.0 diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index 5f564582..bcf11412 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -18,7 +18,6 @@ import ( "reflect" "sort" "strings" - "syscall" ) const schemaVersion = 1 @@ -75,26 +74,25 @@ func snapshot(root string) (Manifest, error) { m := Manifest{Schema: schemaVersion, Entries: []Entry{}} canonical, err := filepath.EvalSymlinks(root) if err != nil { return m, err } - info, err := os.Stat(canonical) + // Root confines every file and directory access to the selected prefix, + // even if an ancestor is changed into a symlink during traversal. + confined, err := os.OpenRoot(canonical) + if err != nil { return m, err } + defer confined.Close() + info, err := confined.Stat(".") if err != nil || !info.IsDir() { return m, errors.New("root must exist and be directory") } - err = filepath.WalkDir(canonical, func(p string, d fs.DirEntry, incoming error) error { + err = fs.WalkDir(confined, ".", func(name string, d fs.DirEntry, incoming error) error { if incoming != nil { return incoming } - if p == canonical { return nil } + if name == "." { return nil } if len(m.Entries) >= maxEntries { return errors.New("entry limit reached") } - rel, err := filepath.Rel(canonical, p) - if err != nil { return err } - name := filepath.ToSlash(rel) if !validPath(name) { return errors.New("invalid relative path") } e := Entry{Path: name} switch { case d.Type().IsRegular(): - // Linux prefix capture: refuse symlink traversal and non-regular file - // replacement at the final path; NONBLOCK avoids FIFO hangs if a file - // changes type during capture. A quiesced trusted prefix is still required - // to protect against concurrent ancestor-directory replacement. - fd, err := syscall.Open(p, syscall.O_RDONLY|syscall.O_CLOEXEC|syscall.O_NOFOLLOW|syscall.O_NONBLOCK, 0) + // Never os.Open(hostPath): opened files are constrained by os.Root. + // Root.Open also refuses symlink changes that escape the prefix. + file, err := confined.Open(name) if err != nil { return errors.New("file could not be opened safely") } - file := os.NewFile(uintptr(fd), p) before, err := file.Stat() if err != nil { file.Close(); return err } if !before.Mode().IsRegular() { file.Close(); return errors.New("file type changed during snapshot") } @@ -105,15 +103,19 @@ func snapshot(root string) (Manifest, error) { if err != nil { return err } if statErr != nil { return statErr } if closeErr != nil { return closeErr } - if !after.Mode().IsRegular() || n != before.Size() || n != after.Size() || !before.ModTime().Equal(after.ModTime()) { + current, statErr := confined.Lstat(name) + if statErr != nil || !current.Mode().IsRegular() || !os.SameFile(before, current) || + n != before.Size() || n != after.Size() || !before.ModTime().Equal(after.ModTime()) { return errors.New("file changed during snapshot; quiesce the prefix") } e.Kind, e.Size, e.SHA256 = "file", n, hex.EncodeToString(h.Sum(nil)) case d.IsDir(): + current, err := confined.Lstat(name) + if err != nil || !current.IsDir() { return errors.New("directory changed during snapshot") } e.Kind = "dir" case d.Type()&os.ModeSymlink != 0: - target, err := os.Readlink(p) - if err != nil { return err } + target, err := confined.Readlink(name) + if err != nil { return errors.New("symlink could not be read safely") } sum := sha256.Sum256([]byte(target)) e.Kind, e.SHA256 = "symlink", hex.EncodeToString(sum[:]) default: diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 96c2c1ef..50c92254 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -1,6 +1,8 @@ package main import ( + "crypto/sha256" + "encoding/hex" "encoding/json" "os" "path/filepath" @@ -101,3 +103,24 @@ func TestRejectFIFOWithoutBlocking(t *testing.T) { if err := syscall.Mkfifo(fifo, 0600); err != nil { t.Skipf("named pipes unsupported: %v", err) } if _, err := snapshot(root); err == nil { t.Fatal("named pipe accepted as a regular installation file") } } + + +func TestConfinedSnapshotNeverHashesOutsideSymlink(t *testing.T) { + root := t.TempDir() + outside := t.TempDir() + canary := "PRIVATE_OUTSIDE_CONTENT_CANARY" + if err := os.WriteFile(filepath.Join(outside, "sensitive.txt"), []byte(canary), 0600); err != nil { t.Fatal(err) } + if err := os.Symlink(outside, filepath.Join(root, "escape")); err != nil { t.Skipf("symlink unsupported: %v", err) } + m, err := snapshot(root) + if err != nil { t.Fatal(err) } + if len(m.Entries) != 1 || m.Entries[0].Path != "escape" || m.Entries[0].Kind != "symlink" { + t.Fatalf("outside symlink must be metadata-only: %+v", m) + } + b, err := json.Marshal(m) + if err != nil { t.Fatal(err) } + contentHash := sha256.Sum256([]byte(canary)) + if strings.Contains(string(b), hex.EncodeToString(contentHash[:])) || + strings.Contains(string(b), "sensitive.txt") || strings.Contains(string(b), canary) { + t.Fatal("outside file was scanned") + } +} From fd5aa792021efd27e71231c2f7d255cc5a79e686 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 20:40:01 +0100 Subject: [PATCH 13/87] fix(installer-capture): walk os.Root filesystem view in Go 1.25 --- cmd/installer-capture/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index bcf11412..ebdcb7f5 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -81,7 +81,7 @@ func snapshot(root string) (Manifest, error) { defer confined.Close() info, err := confined.Stat(".") if err != nil || !info.IsDir() { return m, errors.New("root must exist and be directory") } - err = fs.WalkDir(confined, ".", func(name string, d fs.DirEntry, incoming error) error { + err = fs.WalkDir(confined.FS(), ".", func(name string, d fs.DirEntry, incoming error) error { if incoming != nil { return incoming } if name == "." { return nil } if len(m.Entries) >= maxEntries { return errors.New("entry limit reached") } From 6178b84a30ee3ad87e4d27868c3dcb24ba3a4628 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 22:26:00 +0100 Subject: [PATCH 14/87] docs(rdte): reconcile exact-head composite and conformance gate failures --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 02b3c83f..10bcb191 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -103,3 +103,11 @@ Next exact independent READY cells: (a) observe #154 diagnostic rerun and fix fi - Hardware-readiness checklist **unchanged, all items unverified**. Composite layered initialization, full legacy conformance, real installer reconstruction, long soak, shared control, a11y and games remain acceptance holds. Status: `NOT_READY_FOR_HARDWARE_TEST`; no test manifest or candidate image digest promoted. Next independent READY cells: observe exact startup reason categories and repair their verified cause in #154; review first conformance mismatch in #123 without waivers; extend #155 to ordered event and semantic registry capture only after private evidence custody and rights-cleared fixture semantics are qualified. Maintain public free-tier-only CI and no destructive volume cleanup. + +## R022 exact-head observation — 2026-11-15 21:25 UTC + +- Accepted `main@f5ba0256f330958dcf35710a822508cdb31fc40b` remains unchanged. Draft heads: #154 `08c16c348978c4506cfc576e6b1cf7de8f5da628`; #150 `d2304d2b2e096a097ffa76b79aeaeef85b72d702`; #123 `cf9da472bcb82b044ae6f6a945dc5c1e79a5513d`; #155 pre-reconciliation `fd5aa792021efd27e71231c2f7d255cc5a79e686`. +- #154 source-exact public [composite HIL run 43753834605](https://github.com/SemperSupra/WineBot/actions/runs/43753834605) terminal **FAIL**, job `132933493019`, first failed step `Build ephemeral candidate and qualify read-only Wine11 replay` (step 6). This is a step-level observation, **not** a root-cause classification; job log evidence was not available from the connector. Do not infer Wine service health or state-seeder failure from older runs. +- #154 source-exact [CI 43753834533](https://github.com/SemperSupra/WineBot/actions/runs/43753834533) terminal **FAIL** at `Conformance (Contracts)` job `132934570960`, step `Run conformance tests` (step 10); preflight and integration smoke succeeded. Focused disposable-layer contract, unit isolation, trust provenance, RPC identity redaction, public conformance safety and BuildKit publication guard workflows passed on this SHA. These do not satisfy composite or legacy conformance acceptance. +- Next READY independent workcells: (1) obtain bounded, redacted allowlist failure classification from composite step 6; correct the actual failing initialization component and rerun exact-head composite; (2) isolate first frozen legacy conformance assertion on pinned contract SHA without waivers; (3) continue #155 source-only semantic installer research without public user-state evidence. Do not rerun identical failing jobs absent a correction. +- Pre-hardware checklist remains entirely unchecked. `NOT_READY_FOR_HARDWARE_TEST`; no candidate digest, hardware deployment or user action authorized. From 65625a36c0806a72a7d9092c24f2342d2178f140 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:15:42 +0100 Subject: [PATCH 15/87] feat(capture): verify quiesced reconstructed app prefix against exact after-install inventory --- .github/workflows/installer-capture-rdte.yml | 7 +++++++ cmd/installer-capture/main.go | 20 ++++++++++++++++++ cmd/installer-capture/main_test.go | 21 +++++++++++++++++++ .../2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 4 files changed, 54 insertions(+) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 7cd75a72..317097ce 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -50,6 +50,13 @@ jobs: "$RUNNER_TEMP/winebot-capture" snapshot -root "$work/prefix" -out "$work/before.json" printf 'two' > "$work/prefix/sample.reg" "$RUNNER_TEMP/winebot-capture" snapshot -root "$work/prefix" -out "$work/after.json" + "$RUNNER_TEMP/winebot-capture" verify -root "$work/prefix" -manifest "$work/after.json" + printf 'changed-again' > "$work/prefix/sample.reg" + if "$RUNNER_TEMP/winebot-capture" verify -root "$work/prefix" -manifest "$work/after.json" >/dev/null 2>&1; then + echo 'INSTALLER_CAPTURE_RDTE stage=postcondition_false_positive' + exit 1 + fi + printf 'two' > "$work/prefix/sample.reg" "$RUNNER_TEMP/winebot-capture" diff -before "$work/before.json" -after "$work/after.json" -out "$work/delta.json" python3 - "$work/delta.json" <<'PY' import json, sys diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index ebdcb7f5..e1ccc0f2 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -211,6 +211,26 @@ func run(argv []string) error { m, err := snapshot(*root) if err != nil { return err } return writeJSON(*out, m) + case "verify": + // Verify a reconstructed installation's current prefix against a known + // after-install snapshot. Never print the changed paths or content. + flags := flag.NewFlagSet("verify", flag.ContinueOnError) + flags.SetOutput(io.Discard) + root := flags.String("root", "", "quiesced candidate Wine prefix root") + manifest := flags.String("manifest", "", "private expected snapshot outside root") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || *root == "" || *manifest == "" { + return errors.New("invalid verify arguments") + } + if !outOutsideRoot(*root, *manifest) { return errors.New("verify manifest must be outside root") } + expected, err := readManifest(*manifest) + if err != nil { return err } + actual, err := snapshot(*root) + if err != nil { return err } + // Canonicalize the validated expected inventory; entry order in private + // JSON must not cause a false negative or weaken the exact comparison. + sort.Slice(expected.Entries, func(i,j int) bool { return expected.Entries[i].Path < expected.Entries[j].Path }) + if !reflect.DeepEqual(expected, actual) { return errors.New("postcondition mismatch") } + return nil case "diff": flags := flag.NewFlagSet("diff", flag.ContinueOnError) flags.SetOutput(io.Discard) diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 50c92254..3bfc2097 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -75,6 +75,27 @@ func TestCLIAndPrivateOutput(t *testing.T) { if len(d.Changes) != 0 { t.Fatalf("unchanged prefix has %d changes", len(d.Changes)) } } +func TestVerifyReconstructedPrefixPostconditions(t *testing.T) { + dir := t.TempDir() + root := filepath.Join(dir, "replay") + if err := os.Mkdir(root, 0700); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root, "user.reg"), []byte("PRIVATE_TEST_VALUE"), 0600); err != nil { t.Fatal(err) } + manifest := filepath.Join(dir, "expected.json") + if err := run([]string{"snapshot", "-root", root, "-out", manifest}); err != nil { t.Fatal(err) } + if err := run([]string{"verify", "-root", root, "-manifest", manifest}); err != nil { t.Fatalf("equivalent replay failed: %v", err) } + // The private manifest must be stored outside the untrusted prefix. + if err := run([]string{"verify", "-root", root, "-manifest", filepath.Join(root,"user.reg")}); err == nil { + t.Fatal("verify accepted manifest path within replay root") + } + if err := os.WriteFile(filepath.Join(root, "user.reg"), []byte("DIFFERENT_PRIVATE_VALUE"), 0600); err != nil { t.Fatal(err) } + if err := run([]string{"verify", "-root", root, "-manifest", manifest}); err == nil { t.Fatal("changed file passed postcondition") } + if err := os.WriteFile(filepath.Join(root, "user.reg"), []byte("PRIVATE_TEST_VALUE"), 0600); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root,"unexpected.exe"), []byte("new"), 0600); err != nil { t.Fatal(err) } + if err := run([]string{"verify", "-root", root, "-manifest", manifest}); err == nil { t.Fatal("unapproved new application accepted") } + if err := os.Remove(filepath.Join(root,"unexpected.exe")); err != nil { t.Fatal(err) } + if err := run([]string{"verify", "-root", root, "-manifest", manifest}); err != nil { t.Fatalf("restored state did not verify: %v", err) } +} + func TestRejectMaliciousManifest(t *testing.T) { h := strings.Repeat("a", 64) cases := []Manifest{ diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 10bcb191..df01faa2 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -56,6 +56,12 @@ A source-only Go stdlib CLI captures deterministic quiesced Wine-prefix inventor Follow-on recorder: Wine registry `.reg` semantic parser, `reg query` snapshots, Linux inotify/fanotify/strace where permitted, process tree, wineserver/winedebug logs, MSI and setup metadata, time-ordered events. Capture network behavior only with explicit privacy/legal authorization. Reconstructor: manifest + dependency graph + idempotent recipe + rollback snapshot + Windows/Wine application-level postcondition oracle. Replaying clicks alone is not reconstruction. +## Reconstructed-install postcondition gate + +The `cmd/installer-capture` CLI now supports `verify -root -manifest `. +It compares the entire quiesced candidate filesystem/registry-file inventory with a separately retained expected post-install manifest, using names, file kinds, sizes and SHA-256; unknown extra files and changed registry files fail closed. +The CLI prints only fixed success/failure markers. The manifest is private and must remain outside the prefix. This is a deterministic **inventory** postcondition, not evidence that the installer can be rebuilt or that GUI, DLL, registry semantics or performance are equivalent. A real installer still requires a rights-cleared isolated test environment, quiescence, and application-level postconditions. + ## Qualification levels and evidence custody Use ordered, non-interchangeable evidence classes: From 53927f62b143ebaad2aa3f5d5fdec919d0b86e5f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:18:42 +0100 Subject: [PATCH 16/87] fix(capture): confine expected-manifest reads and reject symlink escape --- cmd/installer-capture/main.go | 8 +++++++- cmd/installer-capture/main_test.go | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index e1ccc0f2..8a252076 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -130,7 +130,13 @@ func snapshot(root string) (Manifest, error) { } func readManifest(filename string) (Manifest, error) { m := Manifest{} - f, err := os.Open(filename) + // The expected manifest is never trusted to redirect access to a + // candidate profile or arbitrary host data through a final symlink. + // os.Root confines the manifest open to its parent directory. + directory, err := os.OpenRoot(filepath.Dir(filename)) + if err != nil { return m, err } + defer directory.Close() + f, err := directory.Open(filepath.Base(filename)) if err != nil { return m, err } defer f.Close() info, err := f.Stat() diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 3bfc2097..7f269377 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -96,6 +96,23 @@ func TestVerifyReconstructedPrefixPostconditions(t *testing.T) { if err := run([]string{"verify", "-root", root, "-manifest", manifest}); err != nil { t.Fatalf("restored state did not verify: %v", err) } } +func TestVerifyDoesNotFollowExpectedManifestOutsideDirectory(t *testing.T) { + dir := t.TempDir() + root := filepath.Join(dir, "prefix") + if err := os.Mkdir(root, 0700); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root, "sample.reg"), []byte("private"), 0600); err != nil { t.Fatal(err) } + // The manifest path's parent is outside root, but the symlink points into it. + link := filepath.Join(dir, "manifest-symlink.json") + if err := os.Symlink(filepath.Join(root, "sample.reg"), link); err != nil { t.Skipf("symlink unsupported: %v", err) } + if err := run([]string{"verify", "-root", root, "-manifest", link}); err == nil { + t.Fatal("verify followed a manifest symlink into the selected prefix") + } + // A normal private manifest outside the candidate is still accepted. + expected := filepath.Join(dir, "actual-manifest.json") + if err := run([]string{"snapshot", "-root", root, "-out", expected}); err != nil { t.Fatal(err) } + if err := run([]string{"verify", "-root", root, "-manifest", expected}); err != nil { t.Fatal(err) } +} + func TestRejectMaliciousManifest(t *testing.T) { h := strings.Repeat("a", 64) cases := []Manifest{ From e047d3cdfab773da181b9970ddc4aa53b0d06a60 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:20:13 +0100 Subject: [PATCH 17/87] docs(rdte): reconcile verified Wine11 55-minute soak and layered init failure gates --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index df01faa2..49e9f35d 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -117,3 +117,13 @@ Next independent READY cells: observe exact startup reason categories and repair - #154 source-exact [CI 43753834533](https://github.com/SemperSupra/WineBot/actions/runs/43753834533) terminal **FAIL** at `Conformance (Contracts)` job `132934570960`, step `Run conformance tests` (step 10); preflight and integration smoke succeeded. Focused disposable-layer contract, unit isolation, trust provenance, RPC identity redaction, public conformance safety and BuildKit publication guard workflows passed on this SHA. These do not satisfy composite or legacy conformance acceptance. - Next READY independent workcells: (1) obtain bounded, redacted allowlist failure classification from composite step 6; correct the actual failing initialization component and rerun exact-head composite; (2) isolate first frozen legacy conformance assertion on pinned contract SHA without waivers; (3) continue #155 source-only semantic installer research without public user-state evidence. Do not rerun identical failing jobs absent a correction. - Pre-hardware checklist remains entirely unchecked. `NOT_READY_FOR_HARDWARE_TEST`; no candidate digest, hardware deployment or user action authorized. + +## R023 evidence reconciliation — 2026-11-15 late session + +- Accepted `main@f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. #154 candidate `990e02418b097eaf4a4742e2af8ad6101b3c8a7f` changes the disposable runtime's seven Compose application/state mounts to `volume.nocopy: true`, differentiates an actual app-lock collision from an unwritable volume, and expands tests/docs. This is a **candidate correction**, not an accepted root cause; synthetic [disposable-layer run 43767980735](https://github.com/SemperSupra/WineBot/actions/runs/43767980735) PASS. The exact [composite run 43767980755](https://github.com/SemperSupra/WineBot/actions/runs/43767980755) was **still in progress** at observation. Do not check its acceptance gate before terminal result. +- The prior #154 [composite run 43753834605](https://github.com/SemperSupra/WineBot/actions/runs/43753834605), bound to `08c16c348978c4506cfc576e6b1cf7de8f5da628`, has **specific classified** first failures from its original log: `app-seed cause=concurrent_init`, `state-init cause=permissions_failed`. Both container images and entrypoints matched expectations; WineBot interactive was never started. The `concurrent_init` label also covered a failed `mkdir`, so it did not prove another seeder was running. These are startup/ownership failures, not proof of a Wine11 API defect. +- Independent standalone #150 [REL run 43702228758](https://github.com/SemperSupra/WineBot/actions/runs/43702228758) **terminal SUCCESS**, job `132775638966`: Wine11 version/probe, actual Compose health, 90-second resource/trace sampler, **3300-second sustained soak**, and post-soak health all passed. This qualifies that standalone REL candidate's bounded soak, **not** the three-layer composite or full release. +- Separate idempotency risk verified on a synthetic local directory: CAP_CHOWN-only root cannot `chmod` a directory previously chowned to uid1000. The current `prepare-state.sh` must distinguish first-time bootstrap from repeat initialization, add a second-run replay and refuse unsafe preexisting ownership; avoid escalating runtime privileges or recursively modifying user data. +- Frozen full conformance remains RED; rights-cleared real installer reconstruction, input ownership/a11y, GPU/game acceptance, backup/restore, fault recovery and hardware proof remain unqualified. **Pre-hardware status remains `NOT_READY_FOR_HARDWARE_TEST`**, no image/digest promotion, no paid/private Actions minutes, no hardware changes. + +Next batch after composite is terminal: inspect exact output, fix only verified remaining first failure, qualify idempotent second invocation and state replay; preserve #150/#123/#155 independent ownership and DLE/custody holds. From 343025f5a4899dd47910baf8fb1a56450601403e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:25:20 +0100 Subject: [PATCH 18/87] feat(capture): add bounded path-free installer footprint summary for agents --- .github/workflows/installer-capture-rdte.yml | 9 +++ cmd/installer-capture/main.go | 79 ++++++++++++++++++++ cmd/installer-capture/main_test.go | 49 ++++++++++++ 3 files changed, 137 insertions(+) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 317097ce..0d10bb79 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -58,6 +58,15 @@ jobs: fi printf 'two' > "$work/prefix/sample.reg" "$RUNNER_TEMP/winebot-capture" diff -before "$work/before.json" -after "$work/after.json" -out "$work/delta.json" + "$RUNNER_TEMP/winebot-capture" summary -before "$work/before.json" -after "$work/after.json" -out "$work/footprint.json" + python3 - "$work/footprint.json" <<'PY' + import json, sys + data = json.load(open(sys.argv[1], encoding="utf-8")) + assert data["schema"] == 1 + assert data["groups"][0] == {"class":"registry","added":1,"removed":0,"changed":0} or data["groups"][0] == {"class":"registry","added":0,"removed":0,"changed":1} + assert len(data["groups"]) == 5 + assert "sample.reg" not in json.dumps(data) + PY python3 - "$work/delta.json" <<'PY' import json, sys data = json.load(open(sys.argv[1], encoding="utf-8")) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index 8a252076..d73659e2 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -176,6 +176,63 @@ func delta(before, after Manifest) (Delta, error) { } return result, nil } +// Footprint is a bounded, path-free inventory summary for agents and humans. +// It does not imply Win32 registry semantic equivalence or installer success. +type FootprintRow struct { + Class string `json:"class"` + Added int `json:"added"` + Removed int `json:"removed"` + Changed int `json:"changed"` +} +type Footprint struct { + Schema int `json:"schema"` + Groups []FootprintRow `json:"groups"` +} + +var footprintClasses = []string{"registry", "application", "system", "user_profile", "other"} + +func classifyFootprint(name string) string { + p := strings.ToLower(name) + switch { + case p == "system.reg" || p == "user.reg" || p == "userdef.reg" || strings.HasSuffix(p, ".reg"): + return "registry" + case strings.HasPrefix(p, "drive_c/program files/") || + strings.HasPrefix(p, "drive_c/program files (x86)/") || + strings.HasPrefix(p, "drive_c/games/"): + return "application" + case strings.HasPrefix(p, "drive_c/windows/") || p == "dosdevices" || + strings.HasPrefix(p, "dosdevices/"): + return "system" + case strings.HasPrefix(p, "drive_c/users/"): + return "user_profile" + default: + return "other" + } +} + +func footprint(delta Delta) (Footprint, error) { + result := Footprint{Schema: schemaVersion, Groups: []FootprintRow{}} + if delta.Schema != schemaVersion || len(delta.Changes) > maxEntries*2 { + return result, errors.New("invalid delta") + } + for _, category := range footprintClasses { + row := FootprintRow{Class: category} + for _, change := range delta.Changes { + if !validPath(change.Path) || classifyFootprint(change.Path) != category { + continue + } + switch change.Operation { + case "added": row.Added++ + case "removed": row.Removed++ + case "changed": row.Changed++ + default: return result, errors.New("invalid operation") + } + } + result.Groups = append(result.Groups, row) + } + return result, nil +} + func writeJSON(out string, v any) error { // No output file inside a watched prefix is allowed at the CLI boundary. dir := filepath.Dir(out) @@ -237,6 +294,28 @@ func run(argv []string) error { sort.Slice(expected.Entries, func(i,j int) bool { return expected.Entries[i].Path < expected.Entries[j].Path }) if !reflect.DeepEqual(expected, actual) { return errors.New("postcondition mismatch") } return nil + case "summary": + // Count only fixed footprint classes, never export raw filenames from real + // manifests to public stdout or CI artifacts. + flags := flag.NewFlagSet("summary", flag.ContinueOnError) + flags.SetOutput(io.Discard) + before := flags.String("before", "", "private before inventory") + after := flags.String("after", "", "private after inventory") + out := flags.String("out", "", "private path-free footprint summary") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || + *before == "" || *after == "" || *out == "" { + return errors.New("invalid summary arguments") + } + if *out == *before || *out == *after { return errors.New("refuse overwrite of input") } + a, err := readManifest(*before) + if err != nil { return err } + b, err := readManifest(*after) + if err != nil { return err } + d, err := delta(a, b) + if err != nil { return err } + aggregate, err := footprint(d) + if err != nil { return err } + return writeJSON(*out, aggregate) case "diff": flags := flag.NewFlagSet("diff", flag.ContinueOnError) flags.SetOutput(io.Discard) diff --git a/cmd/installer-capture/main_test.go b/cmd/installer-capture/main_test.go index 7f269377..281b9838 100644 --- a/cmd/installer-capture/main_test.go +++ b/cmd/installer-capture/main_test.go @@ -113,6 +113,55 @@ func TestVerifyDoesNotFollowExpectedManifestOutsideDirectory(t *testing.T) { if err := run([]string{"verify", "-root", root, "-manifest", expected}); err != nil { t.Fatal(err) } } +func TestFootprintSummaryPathFreeDeterministic(t *testing.T) { + h := strings.Repeat("a",64) + before := Manifest{Schema:1,Entries:[]Entry{ + {Path:"user.reg",Kind:"file",Size:1,SHA256:h}, + {Path:"drive_c/users/guest/SENSITIVE_PRIVATE.txt",Kind:"file",Size:1,SHA256:h}, + }} + after := Manifest{Schema:1,Entries:[]Entry{ + {Path:"user.reg",Kind:"file",Size:2,SHA256:h}, + {Path:"drive_c/program files/TEST_APP/program.exe",Kind:"file",Size:1,SHA256:h}, + {Path:"drive_c/windows/system32/TEST_DLL.dll",Kind:"file",Size:1,SHA256:h}, + }} + d, err := delta(before,after) + if err != nil { t.Fatal(err) } + summary, err := footprint(d) + if err != nil { t.Fatal(err) } + counts := map[string]FootprintRow{} + for _, row := range summary.Groups { counts[row.Class] = row } + if summary.Schema != 1 || len(summary.Groups) != 5 || + counts["registry"].Changed != 1 || + counts["application"].Added != 1 || + counts["system"].Added != 1 || + counts["user_profile"].Removed != 1 { t.Fatalf("invalid fixed summary groups: %+v",summary.Groups) } + raw,err := json.Marshal(summary) + if err != nil { t.Fatal(err) } + if strings.Contains(string(raw),"SENSITIVE_PRIVATE") || + strings.Contains(string(raw),"TEST_APP") || + strings.Contains(string(raw),"TEST_DLL") { t.Fatal("path leaked to footprint") } +} + +func TestPrivateFootprintCLI(t *testing.T) { + dir := t.TempDir() + root := filepath.Join(dir,"prefix") + if err := os.Mkdir(root,0700); err != nil { t.Fatal(err) } + before := filepath.Join(dir,"before.json") + after := filepath.Join(dir,"after.json") + summary := filepath.Join(dir,"footprint.json") + if err := run([]string{"snapshot","-root",root,"-out",before}); err != nil { t.Fatal(err) } + if err := os.WriteFile(filepath.Join(root,"user.reg"),[]byte("SENSITIVE_PRIVATE_CANARY"),0600); err != nil { t.Fatal(err) } + if err := run([]string{"snapshot","-root",root,"-out",after}); err != nil { t.Fatal(err) } + if err := run([]string{"summary","-before",before,"-after",after,"-out",summary}); err != nil { t.Fatal(err) } + content,err := os.ReadFile(summary) + if err != nil { t.Fatal(err) } + if strings.Contains(string(content),"user.reg") || strings.Contains(string(content),"SENSITIVE_PRIVATE_CANARY") { t.Fatal("sensitive inventory escaped") } + var got Footprint + if err := json.Unmarshal(content,&got); err != nil { t.Fatal(err) } + if got.Groups[0].Class != "registry" || got.Groups[0].Added != 1 { t.Fatal("missing registry footprint") } + if err := run([]string{"summary","-before",before,"-after",after,"-out",summary}); err == nil { t.Fatal("overwrote existing summary") } +} + func TestRejectMaliciousManifest(t *testing.T) { h := strings.Repeat("a", 64) cases := []Manifest{ From a38464b19fec542d3c628c689a4b51d7efa045d0 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:26:55 +0100 Subject: [PATCH 19/87] feat(installer): add fail-closed offline Wine registry v2 semantic diff core --- cmd/installer-capture/registry.go | 210 ++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 cmd/installer-capture/registry.go diff --git a/cmd/installer-capture/registry.go b/cmd/installer-capture/registry.go new file mode 100644 index 00000000..29ee5261 --- /dev/null +++ b/cmd/installer-capture/registry.go @@ -0,0 +1,210 @@ +// Offline conservative interpretation of Wine's native WINE REGISTRY Version 2 +// files. Unlike a file-byte diff, this ignores timestamps and key ordering. +// Outputs still expose registry key/value names; never upload real results to +// public CI. Unhandled constructs fail closed instead of being silently lost. +package main + +import ( + "bufio" + "crypto/sha256" + "encoding/hex" + "errors" + "fmt" + "io" + "os" + "path/filepath" + "regexp" + "sort" + "strings" + "unicode/utf8" +) + +const registryMaxBytes = 32 << 20 +const registryMaxLine = 8 << 20 +const registryMaxRecords = 250000 + +type RegistryRecord struct { + Key string `json:"key"` + Name string `json:"name,omitempty"` + Kind string `json:"kind"` + Type string `json:"type,omitempty"` + Digest string `json:"sha256,omitempty"` +} +type RegistrySnapshot struct { + Schema int `json:"schema"` + Root string `json:"root"` + Arch string `json:"arch"` + Records []RegistryRecord `json:"records"` +} +type RegistryChange struct { + Key string `json:"key"` + Name string `json:"name,omitempty"` + Operation string `json:"operation"` + Before *RegistryRecord `json:"before,omitempty"` + After *RegistryRecord `json:"after,omitempty"` +} +type RegistryDelta struct { + Schema int `json:"schema"` + Root string `json:"root"` + Arch string `json:"arch"` + Changes []RegistryChange `json:"changes"` +} + +var ( + regKeyLine = regexp.MustCompile(`^\[(.+)\](?:[ \t]+[0-9]+)?$`) + regValueLine = regexp.MustCompile(`^("(?:\\.|[^"\\])*"|@)=(.*)$`) + regQuoted = regexp.MustCompile(`^"(?:\\.|[^"\\])*"$`) + regDWORD = regexp.MustCompile(`^[0-9a-fA-F]{8}$`) + regType = regexp.MustCompile(`^(str|hex)\(([0-9a-fA-F]+)\):(.*)$`) + regHexBytes = regexp.MustCompile(`^(?:[0-9a-fA-F]{2}(?:,[0-9a-fA-F]{2})*,?)?$`) +) + +func readPrivateRegistry(filename string) (RegistrySnapshot, error) { + result := RegistrySnapshot{Schema: schemaVersion, Records: []RegistryRecord{}} + // No symlink to a different path: a user-supplied manifest is not authority. + dir, err := os.OpenRoot(filepath.Dir(filename)) + if err != nil { return result, errors.New("registry parent unavailable") } + defer dir.Close() + base := filepath.Base(filename) + info, err := dir.Lstat(base) + if err != nil || !info.Mode().IsRegular() || info.Size() > registryMaxBytes { + return result, errors.New("registry file invalid or oversized") + } + f, err := dir.Open(base) + if err != nil { return result, errors.New("registry file unavailable") } + defer f.Close() + opened, err := f.Stat() + if err != nil || !os.SameFile(info, opened) { return result, errors.New("registry file changed") } + return parseWineRegistry(io.LimitReader(f, registryMaxBytes+1)) +} + +func parseWineRegistry(reader io.Reader) (RegistrySnapshot, error) { + result := RegistrySnapshot{Schema: schemaVersion, Records: []RegistryRecord{}} + scanner := bufio.NewScanner(reader) + scanner.Buffer(make([]byte, 4096), registryMaxLine) + lineNo := 0 + header := false + currentKey := "" + seen := map[string]bool{} + for scanner.Scan() { + lineNo++ + line := strings.TrimSuffix(scanner.Text(), "\r") + if !utf8.ValidString(line) { return result, errors.New("invalid registry encoding") } + if len(line) > registryMaxLine-1 { return result, errors.New("registry line too large") } + if lineNo == 1 { + if line != "WINE REGISTRY Version 2" { return result, errors.New("unsupported registry format") } + header = true + continue + } + trimmed := strings.TrimSpace(line) + if trimmed == "" { continue } + if strings.HasPrefix(trimmed, ";; All keys relative to ") { + root := strings.TrimPrefix(trimmed, ";; All keys relative to ") + if result.Root != "" && result.Root != root { return result, errors.New("conflicting root") } + result.Root = root + continue + } + if strings.HasPrefix(trimmed, "#arch=") { + arch := strings.TrimPrefix(trimmed, "#arch=") + if arch != "win32" && arch != "win64" { return result, errors.New("unsupported registry arch") } + if result.Arch != "" && result.Arch != arch { return result, errors.New("conflicting registry arch") } + result.Arch = arch + continue + } + if strings.HasPrefix(trimmed, "#") || strings.HasPrefix(trimmed, ";") { continue } + if match := regKeyLine.FindStringSubmatch(trimmed); match != nil { + currentKey = match[1] + if len(currentKey) > 4096 { return result, errors.New("registry key too large") } + id := "K\x00"+currentKey + if seen[id] { return result, errors.New("duplicate registry key") } + seen[id] = true + result.Records = append(result.Records, RegistryRecord{Key: currentKey, Kind: "key"}) + } else if match := regValueLine.FindStringSubmatch(trimmed); match != nil { + if currentKey == "" { return result, errors.New("registry value outside key") } + name := match[1] + if name == "@" { name = "" } else { name = name[1:len(name)-1] } + if len(name) > 4096 { return result, errors.New("registry value name too large") } + value := match[2] + for strings.HasSuffix(strings.TrimRight(value, " \t"), "\\") { + value = strings.TrimRight(value, " \t") + value = strings.TrimSuffix(value, "\\") + if !scanner.Scan() { return result, errors.New("unterminated registry continuation") } + lineNo++ + continuation := strings.TrimSuffix(scanner.Text(), "\r") + if !utf8.ValidString(continuation) { return result, errors.New("invalid registry continuation") } + value += strings.TrimSpace(continuation) + if len(value) > registryMaxLine { return result, errors.New("registry value too large") } + } + typ, canonical, err := parseRegistryValue(value) + if err != nil { return result, err } + key := "V\x00"+currentKey+"\x00"+name + if seen[key] { return result, errors.New("duplicate registry value") } + seen[key] = true + hash := sha256.Sum256([]byte(typ+"\x00"+canonical)) + result.Records = append(result.Records, RegistryRecord{ + Key: currentKey, Name: name, Kind: "value", Type: typ, Digest: hex.EncodeToString(hash[:]), + }) + } else { + return result, fmt.Errorf("unsupported registry statement on line %d", lineNo) + } + if len(result.Records) > registryMaxRecords { return result, errors.New("registry record limit") } + } + if err := scanner.Err(); err != nil { return result, errors.New("registry reader failure") } + if !header || result.Root == "" { return result, errors.New("registry header/root missing") } + sort.Slice(result.Records, func(i,j int) bool { return registryID(result.Records[i]) < registryID(result.Records[j]) }) + return result, nil +} + +func parseRegistryValue(v string) (string,string,error) { + if regQuoted.MatchString(v) { return "sz",v,nil } + if strings.HasPrefix(v, "dword:") { + x:=strings.TrimPrefix(v, "dword:") + if !regDWORD.MatchString(x) { return "","",errors.New("invalid registry DWORD") } + return "dword",strings.ToLower(x),nil + } + if strings.HasPrefix(v,"hex:") { + x:=strings.ReplaceAll(strings.TrimPrefix(v,"hex:")," ","") + if !regHexBytes.MatchString(x) { return "","",errors.New("invalid registry hex") } + return "hex",strings.ToLower(strings.TrimSuffix(x,",")),nil + } + if match:=regType.FindStringSubmatch(v);match!=nil { + typ:=match[1]+"("+strings.ToLower(match[2])+")" + val:=match[3] + if match[1]=="str" { + if !regQuoted.MatchString(val) { return "","",errors.New("invalid registry typed string") } + return typ,val,nil + } + val=strings.ReplaceAll(val," ","") + if !regHexBytes.MatchString(val) { return "","",errors.New("invalid registry typed hex") } + return typ,strings.ToLower(strings.TrimSuffix(val,",")),nil + } + return "","",errors.New("unsupported registry value encoding") +} + +func registryID(r RegistryRecord) string { + return r.Kind+"\x00"+r.Key+"\x00"+r.Name +} +func diffRegistry(before, after RegistrySnapshot) (RegistryDelta,error) { + d:=RegistryDelta{Schema:schemaVersion,Root:before.Root,Arch:before.Arch,Changes:[]RegistryChange{}} + if before.Schema!=schemaVersion || after.Schema!=schemaVersion || before.Root=="" || + before.Root!=after.Root || before.Arch!=after.Arch { + return d,errors.New("registry root, arch or schema mismatch") + } + a,b:=map[string]RegistryRecord{},map[string]RegistryRecord{} + keys:=map[string]bool{} + for _,r:=range before.Records {id:=registryID(r);if _,ok:=a[id];ok{return d,errors.New("duplicate before record")};a[id]=r;keys[id]=true} + for _,r:=range after.Records {id:=registryID(r);if _,ok:=b[id];ok{return d,errors.New("duplicate after record")};b[id]=r;keys[id]=true} + names:=make([]string,0,len(keys)) + for id:=range keys {names=append(names,id)} + sort.Strings(names) + for _,id:=range names { + x,had:=a[id];y,has:=b[id] + if had && has && x==y {continue} + c:=RegistryChange{} + if had {c.Key=x.Key;c.Name=x.Name;copy:=x;c.Before=©} + if has {c.Key=y.Key;c.Name=y.Name;copy:=y;c.After=©} + switch {case !had:c.Operation="added";case !has:c.Operation="removed";default:c.Operation="changed"} + d.Changes=append(d.Changes,c) + } + return d,nil +} From f95175a7897e596046ac9d5a9c3a3d3fb673d413 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:27:41 +0100 Subject: [PATCH 20/87] test(installer): qualify Wine registry semantic changes, malformed data and privacy --- cmd/installer-capture/registry_test.go | 93 ++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 cmd/installer-capture/registry_test.go diff --git a/cmd/installer-capture/registry_test.go b/cmd/installer-capture/registry_test.go new file mode 100644 index 00000000..ef4ba243 --- /dev/null +++ b/cmd/installer-capture/registry_test.go @@ -0,0 +1,93 @@ +package main + +import ( + "encoding/json" + "os" + "path/filepath" + "strings" + "testing" +) + +func TestWineRegistrySemanticDeltaIgnoresTimeAndOrder(t *testing.T) { + before := "WINE REGISTRY Version 2\n;; All keys relative to \\\\User\\\\SYNTHETIC\n#arch=win64\n\n[Software\\\\Test] 100\n\"Name\"=\"safe string\"\n\"Amount\"=dword:0000000A\n\"Binary\"=hex:00,01,02,\\\n 03,04\n" + after := "WINE REGISTRY Version 2\n;; All keys relative to \\\\User\\\\SYNTHETIC\n#arch=win64\n\n[Software\\\\Test] 999\n\"Binary\"=hex:00,01,02,03,04\n\"Amount\"=dword:0000000a\n\"Name\"=\"safe string\"\n" + a,err:=parseWineRegistry(strings.NewReader(before)) + if err!=nil {t.Fatal(err)} + b,err:=parseWineRegistry(strings.NewReader(after)) + if err!=nil {t.Fatal(err)} + d,err:=diffRegistry(a,b) + if err!=nil {t.Fatal(err)} + if len(d.Changes)!=0 {t.Fatalf("timestamp/order/hex continuation caused %d false changes",len(d.Changes))} +} + +func TestWineRegistryDetectsChangedAddedAndRemoved(t *testing.T) { + prefix:="WINE REGISTRY Version 2\n;; All keys relative to \\\\Machine\n#arch=win64\n" + a,err:=parseWineRegistry(strings.NewReader(prefix+"[Software\\\\Test] 123\n\"State\"=\"BEFORE_PRIVATE\"\n\"Removed\"=dword:00000002\n")) + if err!=nil{t.Fatal(err)} + b,err:=parseWineRegistry(strings.NewReader(prefix+"[Software\\\\Test] 456\n\"State\"=\"AFTER_PRIVATE\"\n\"Added\"=str(2):\"path with spaces\"\n")) + if err!=nil{t.Fatal(err)} + d,err:=diffRegistry(a,b) + if err!=nil{t.Fatal(err)} + got:=map[string]string{} + for _,c:=range d.Changes {got[c.Name]=c.Operation} + for k,want:=range map[string]string{"State":"changed","Removed":"removed","Added":"added"} { + if got[k]!=want{t.Fatalf("%s operation %q want %q",k,got[k],want)} + } + raw,_:=json.Marshal(d) + for _,secret:=range []string{"BEFORE_PRIVATE","AFTER_PRIVATE","path with spaces"} { + if strings.Contains(string(raw),secret){t.Fatalf("registry contents leaked into digest output")} + } +} + +func TestWineRegistryRejectsBadOrAmbiguousInput(t *testing.T) { + header:="WINE REGISTRY Version 2\n;; All keys relative to \\\\Machine\n#arch=win64\n" + tests:=[]string{ + "Windows Registry Editor Version 5.00\n", + "WINE REGISTRY Version 2\n", + header+"\"Value\"=\"outside key\"\n", + header+"[Software\\\\Test]\n\"X\"=qword:0000000000000001\n", + header+"[Software\\\\Test]\n\"X\"=dword:not-hex\n", + header+"[Software\\\\Test]\n\"X\"=hex:0g,00\n", + header+"[Software\\\\Test]\n\"X\"=hex:01,\\\n", + header+"[Software\\\\Test]\n\"X\"=hex:aa\n\"X\"=hex:bb\n", + header+"[Software\\\\Test]\n[Software\\\\Test]\n", + header+"#arch=win32\n", + header+"[Software\\\\Test]\n\"X\"=\"unterminated\n", + } + for i,s:=range tests { + if _,err:=parseWineRegistry(strings.NewReader(s));err==nil {t.Fatalf("invalid registry case %d accepted",i)} + } +} + +func TestWineRegistryRootAndArchMismatchesFailClosed(t *testing.T) { + base:="WINE REGISTRY Version 2\n;; All keys relative to \\\\Machine\n#arch=win64\n[Software\\\\X]\n" + a,err:=parseWineRegistry(strings.NewReader(base)) + if err!=nil{t.Fatal(err)} + b,err:=parseWineRegistry(strings.NewReader(strings.Replace(base,"win64","win32",1))) + if err!=nil{t.Fatal(err)} + if _,err:=diffRegistry(a,b);err==nil{t.Fatal("different registry architecture silently accepted")} + c,err:=parseWineRegistry(strings.NewReader(strings.Replace(base,"\\\\Machine","\\\\User",1))) + if err!=nil{t.Fatal(err)} + if _,err:=diffRegistry(a,c);err==nil{t.Fatal("different registry root silently accepted")} +} + +func TestWineRegistryPrivateIOAndCLI(t *testing.T) { + dir:=t.TempDir() + before:=filepath.Join(dir,"before.reg") + after:=filepath.Join(dir,"after.reg") + out:=filepath.Join(dir,"delta.json") + raw:="WINE REGISTRY Version 2\n;; All keys relative to \\\\Machine\n#arch=win64\n[Software\\\\Fixture]\n\"Install\"=\"old\"\n" + if err:=os.WriteFile(before,[]byte(raw),0600);err!=nil{t.Fatal(err)} + if err:=os.WriteFile(after,[]byte(strings.Replace(raw,"\"old\"","\"new\"",1)),0600);err!=nil{t.Fatal(err)} + if err:=run([]string{"regdiff","-before",before,"-after",after,"-out",out});err!=nil{t.Fatal(err)} + data,err:=os.ReadFile(out) + if err!=nil{t.Fatal(err)} + var d RegistryDelta + if err:=json.Unmarshal(data,&d);err!=nil{t.Fatal(err)} + if len(d.Changes)!=1 || d.Changes[0].Operation!="changed"{t.Fatalf("unexpected delta %+v",d.Changes)} + if strings.Contains(string(data),"\"old\"")||strings.Contains(string(data),"\"new\""){t.Fatal("raw registry value in output")} + if err:=run([]string{"regdiff","-before",before,"-after",after,"-out",out});err==nil{t.Fatal("overwrote existing evidence")} + link:=filepath.Join(dir,"linked.reg") + if err:=os.Symlink(before,link);err!=nil{t.Skipf("symlink unavailable: %v",err)} + if _,err:=readPrivateRegistry(link);err==nil{t.Fatal("followed untrusted registry symlink")} +} From fe93defd5cf39198b66d5e46994597dfe9f39414 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:27:58 +0100 Subject: [PATCH 21/87] feat(installer): expose local private Wine registry semantic diff CLI --- cmd/installer-capture/main.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index d73659e2..b6ca8f7b 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -274,6 +274,26 @@ func run(argv []string) error { m, err := snapshot(*root) if err != nil { return err } return writeJSON(*out, m) + case "regdiff": + // Compare Wine-native registry v2 files after a quiesced installer replay. + // Value bytes never enter the emitted record; this remains private evidence. + flags := flag.NewFlagSet("regdiff", flag.ContinueOnError) + flags.SetOutput(io.Discard) + before := flags.String("before", "", "private before-install Wine .reg") + after := flags.String("after", "", "private after-install Wine .reg") + out := flags.String("out", "", "private registry semantic delta") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || + *before == "" || *after == "" || *out == "" { + return errors.New("invalid regdiff arguments") + } + if *out == *before || *out == *after { return errors.New("refuse overwrite of registry input") } + a,err := readPrivateRegistry(*before) + if err != nil { return err } + b,err := readPrivateRegistry(*after) + if err != nil { return err } + d,err := diffRegistry(a,b) + if err != nil { return err } + return writeJSON(*out,d) case "verify": // Verify a reconstructed installation's current prefix against a known // after-install snapshot. Never print the changed paths or content. From 2d3a8026427b7682dc6895603865970b8481a33a Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:29:31 +0100 Subject: [PATCH 22/87] ci(installer): exercise private Wine v2 registry semantic delta on synthetic public runner fixture --- .github/workflows/installer-capture-rdte.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 0d10bb79..1cc61e90 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -73,6 +73,30 @@ jobs: assert data["schema"] == 1 assert [(c["path"], c["operation"]) for c in data["changes"]] == [("sample.reg", "changed")] PY + # This is synthetic Wine registry v2 data, never a real user prefix. + cat > "$work/registry-before.reg" <<'REG_BEFORE' + WINE REGISTRY Version 2 + ;; All keys relative to \Machine + #arch=win64 + [Software\Test] 100 + "State"=dword:00000001 + REG_BEFORE + cat > "$work/registry-after.reg" <<'REG_AFTER' + WINE REGISTRY Version 2 + ;; All keys relative to \Machine + #arch=win64 + [Software\Test] 200 + "State"=dword:00000002 + REG_AFTER + "$RUNNER_TEMP/winebot-capture" regdiff -before "$work/registry-before.reg" -after "$work/registry-after.reg" -out "$work/registry-delta.json" + python3 - "$work/registry-delta.json" <<'PY' + import json, sys + data = json.load(open(sys.argv[1], encoding="utf-8")) + assert data["schema"] == 1 + assert [(c["name"], c["operation"]) for c in data["changes"]] == [("State", "changed")] + assert 'dword:00000001' not in json.dumps(data) + assert 'dword:00000002' not in json.dumps(data) + PY - name: Report only synthetic results if: success() run: echo 'INSTALLER_CAPTURE_RDTE stage=synthetic_snapshot_diff_passed' From ab04a1e5ecad15632ca9dd9f4760268a8040d115 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:30:45 +0100 Subject: [PATCH 23/87] docs(installer): define private capture workflow, semantic limits and fixture qualification --- cmd/installer-capture/README.md | 72 +++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 cmd/installer-capture/README.md diff --git a/cmd/installer-capture/README.md b/cmd/installer-capture/README.md new file mode 100644 index 00000000..c9933b5b --- /dev/null +++ b/cmd/installer-capture/README.md @@ -0,0 +1,72 @@ +# Installer Capture RDTE — offline inventory and Wine-registry comparison + +This self-contained Go 1.25 standard-library CLI is **experimental**. It is an +instrument for reasoning about the effects of an installer, **not** a replacement +installer, application-launcher, or a privilege boundary. + +## Local private workflow + +1. Select a **disposable, quiesced**, rights-cleared Wine prefix. Never capture + a live prefix with `wineserver`, installers, helper processes or another + writer still active. Make private backups before an installer experiment. +2. Snapshot its filesystem inventory with `snapshot -root PREFIX -out PRIVATE_BEFORE.json`. + Stop the installer and quiesce the prefix before capturing + `snapshot -root PREFIX -out PRIVATE_AFTER.json`. +3. Compare inventories using + `diff -before PRIVATE_BEFORE.json -after PRIVATE_AFTER.json -out PRIVATE_FS_DELTA.json`. + `verify -root RECONSTRUCTED_PREFIX -manifest PRIVATE_AFTER.json` checks + byte-for-byte filesystem metadata/content hashes against the intended + post-installation state without displaying changed file contents. +4. Copy Wine's native `system.reg`, `user.reg`, or `userdef.reg` to *private + evidence outside the source prefix* before and after. Use + `regdiff -before PRIVATE_BEFORE.reg -after PRIVATE_AFTER.reg -out PRIVATE_REG_DELTA.json`. + Do not mix files with different Wine registry roots or architectures. +5. Compare application-level postconditions with the original installer and + reconstructed install. Only then propose a versioned, declarative recipe. + +Outputs are always local, no-overwrite, owner-only (0600) JSON. Output may +contain sensitive **relative file paths, registry key paths, value names and +hashes**; keep it in private custody. Public GitHub Actions uses tiny invented +fixtures only and uploads no artifacts. + +## Exactly what is and is not understood + +The registry parser supports a conservative subset of Wine's native +`WINE REGISTRY Version 2` files: relative-root and architecture headers, +key sections with numeric modification times, quoted/default values, +`REG_SZ`-style quoted values, `str(type)` strings, `dword`, and +`hex`/`hex(type)` bytes with line continuations. It ignores key modification +times and source ordering and emits SHA-256 digests for typed *value text*, not +raw values. Unknown encodings or ambiguous statements fail closed. It does +**not** implement the full Windows Registry Editor 5 format, a complete +Wine/Windows string-unescaping implementation, Unicode case-folding parity, +transactional registry overlays, or ordering of installer events. + +The native syntax was checked against Wine's authoritative +[server/registry.c](https://github.com/wine-mirror/wine/blob/master/server/registry.c). +Wine formats and version differences require fixture qualification before +promoting this as a reliable semantic oracle. + +File traversal uses Go `os.Root`, refuses unsupported objects and treats +symlinks as *hashed target metadata only*. It does not inspect host files +outside the selected root. The tool may fail if files change during scanning; +running against active Wine is a usage error. Static output is neither a +process trace nor a proof that an application works. + +## Success definition and follow-on work + +The source-only offline unit workflow verifies representative synthetic +add/change/remove behavior, timestamp/ordering normalization, privacy of +registry value data, malformed input rejection, architecture/root isolation, +filesystem symlink containment and exact postcondition checks. This qualifies +only **STATIC_CONTRACT / synthetic infrastructure** evidence. + +Future independent workcells: event ordering and process provenance, registry +canonicalization vs native Windows behavior, installer dependency resolution, +idempotent recipe execution/rollback, actual Wine application and game +installation using redistribution-permitted fixtures, WinInspect observation, +human/agent input arbitration and accessibility. A real Windows/Wine fixture +comparison is required before PRODUCT_QUALIFICATION. + +**Hardware-readiness gate: NOT_READY_FOR_HARDWARE_TEST** until the owning +roadmap's independent requirements are satisfied. From 740a25094bc8f6924ac151eee97d358f9e50b088 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:31:55 +0100 Subject: [PATCH 24/87] feat(installer): add exact local Wine-registry postcondition verification --- cmd/installer-capture/main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index b6ca8f7b..28ee5367 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -274,6 +274,25 @@ func run(argv []string) error { m, err := snapshot(*root) if err != nil { return err } return writeJSON(*out, m) + case "regverify": + // An exact semantic postcondition oracle for native Wine v2 snapshots. + // Timestamp and declaration-order differences do not cause failure. + flags := flag.NewFlagSet("regverify", flag.ContinueOnError) + flags.SetOutput(io.Discard) + actual := flags.String("actual", "", "private reconstructed Wine .reg") + expected := flags.String("expected", "", "private expected after-install Wine .reg") + if err := flags.Parse(argv[1:]); err != nil || flags.NArg() != 0 || + *actual == "" || *expected == "" { + return errors.New("invalid regverify arguments") + } + a, err := readPrivateRegistry(*actual) + if err != nil { return err } + b, err := readPrivateRegistry(*expected) + if err != nil { return err } + d, err := diffRegistry(b,a) + if err != nil { return err } + if len(d.Changes) != 0 { return errors.New("registry postcondition mismatch") } + return nil case "regdiff": // Compare Wine-native registry v2 files after a quiesced installer replay. // Value bytes never enter the emitted record; this remains private evidence. From 608fafa4f5d3ce9779ee86410eaaa5e331cd8302 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:32:08 +0100 Subject: [PATCH 25/87] test(installer): require registry postcondition exactness and mismatch refusal --- cmd/installer-capture/registry_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/installer-capture/registry_test.go b/cmd/installer-capture/registry_test.go index ef4ba243..04c7aad2 100644 --- a/cmd/installer-capture/registry_test.go +++ b/cmd/installer-capture/registry_test.go @@ -80,6 +80,8 @@ func TestWineRegistryPrivateIOAndCLI(t *testing.T) { if err:=os.WriteFile(before,[]byte(raw),0600);err!=nil{t.Fatal(err)} if err:=os.WriteFile(after,[]byte(strings.Replace(raw,"\"old\"","\"new\"",1)),0600);err!=nil{t.Fatal(err)} if err:=run([]string{"regdiff","-before",before,"-after",after,"-out",out});err!=nil{t.Fatal(err)} + if err:=run([]string{"regverify","-actual",before,"-expected",after});err==nil{t.Fatal("changed registry accepted as equivalent")} + if err:=run([]string{"regverify","-actual",after,"-expected",after});err!=nil{t.Fatalf("matching registry failed: %v",err)} data,err:=os.ReadFile(out) if err!=nil{t.Fatal(err)} var d RegistryDelta From ecf7a57737ebae398d12f4304d5e84963f707bc2 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:32:29 +0100 Subject: [PATCH 26/87] ci(installer): prove native registry postcondition mismatch detection --- .github/workflows/installer-capture-rdte.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 1cc61e90..0d6c6d4e 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -89,6 +89,11 @@ jobs: "State"=dword:00000002 REG_AFTER "$RUNNER_TEMP/winebot-capture" regdiff -before "$work/registry-before.reg" -after "$work/registry-after.reg" -out "$work/registry-delta.json" + "$RUNNER_TEMP/winebot-capture" regverify -actual "$work/registry-after.reg" -expected "$work/registry-after.reg" + if "$RUNNER_TEMP/winebot-capture" regverify -actual "$work/registry-before.reg" -expected "$work/registry-after.reg" >/dev/null 2>&1; then + echo 'INSTALLER_CAPTURE_RDTE stage=registry_postcondition_false_positive' + exit 1 + fi python3 - "$work/registry-delta.json" <<'PY' import json, sys data = json.load(open(sys.argv[1], encoding="utf-8")) From 37909a9fa26318087b4ab55f0f4d802abd448ccb Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:35:46 +0100 Subject: [PATCH 27/87] docs(rdte): reconcile R024 exact-head CI and held hardware gates --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 49e9f35d..b00b91e9 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -127,3 +127,10 @@ Next independent READY cells: observe exact startup reason categories and repair - Frozen full conformance remains RED; rights-cleared real installer reconstruction, input ownership/a11y, GPU/game acceptance, backup/restore, fault recovery and hardware proof remain unqualified. **Pre-hardware status remains `NOT_READY_FOR_HARDWARE_TEST`**, no image/digest promotion, no paid/private Actions minutes, no hardware changes. Next batch after composite is terminal: inspect exact output, fix only verified remaining first failure, qualify idempotent second invocation and state replay; preserve #150/#123/#155 independent ownership and DLE/custody holds. + +## R024 exact-head qualification — 2026-11-16 + +- Accepted main observed at `f5ba0256f330958dcf35710a822508cdb31fc40b`. PR heads at observation: #154 `f356267558cc8dcfe044dc59feb5a259ffb5613a`; #150 `d2304d2b2e096a097ffa76b79aeaeef85b72d702`; #123 `cf9da472bcb82b044ae6f6a945dc5c1e79a5513d`; #155 `ecf7a57737ebae398d12f4304d5e84963f707bc2`. #152/#153 are closed; do not reopen or duplicate without a demonstrated regression. +- #154 [focused disposable contract 43798995022](https://github.com/SemperSupra/WineBot/actions/runs/43798995022) failed at source contract assertion `test_layered_api_is_enabled_without_unauthenticated_fallback`: expected a single shell dollar while Compose intentionally uses escaped `$$` for runtime shell expansion. Scoped test-only correction on #154 at `312031a5f66c7a67cf459caf1a89bad6c285e74e`; verify its new exact-head CI before accepting. This is not a runtime fix or a composite pass. At observation composite [43798995000](https://github.com/SemperSupra/WineBot/actions/runs/43798995000) and full [43798995153](https://github.com/SemperSupra/WineBot/actions/runs/43798995153) were still running; no terminal conclusion asserted. +- #155 [installer capture 43798802422](https://github.com/SemperSupra/WineBot/actions/runs/43798802422) passed focused synthetic tests at `ecf7a577`; full CI was in progress. #150 focused REL startup/soak passes, but its full conformance remains red; #123 full conformance remains red. Do not treat synthetic inventory or standalone Wine11 soak as composite/hardware readiness. +- Next READY: inspect terminal #154 composite and exact-head test outcome; repair only confirmed startup cause; isolate first frozen legacy conformance mismatch without waiver; continue safe semantic installer reconstruction. All hardware gates remain unchecked: **NOT_READY_FOR_HARDWARE_TEST**. No release digest, hardware candidate or paid/private runner authorized. From e5b8433b1dab12b61fd53d5052790611f2e79895 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:45:52 +0100 Subject: [PATCH 28/87] docs(rdte): reconcile R025 parallel Wine11, installer and conformance evidence gates --- .../2026-11-autonomous-rdte-hardware-gates.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index b00b91e9..df262dcd 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -134,3 +134,14 @@ Next batch after composite is terminal: inspect exact output, fix only verified - #154 [focused disposable contract 43798995022](https://github.com/SemperSupra/WineBot/actions/runs/43798995022) failed at source contract assertion `test_layered_api_is_enabled_without_unauthenticated_fallback`: expected a single shell dollar while Compose intentionally uses escaped `$$` for runtime shell expansion. Scoped test-only correction on #154 at `312031a5f66c7a67cf459caf1a89bad6c285e74e`; verify its new exact-head CI before accepting. This is not a runtime fix or a composite pass. At observation composite [43798995000](https://github.com/SemperSupra/WineBot/actions/runs/43798995000) and full [43798995153](https://github.com/SemperSupra/WineBot/actions/runs/43798995153) were still running; no terminal conclusion asserted. - #155 [installer capture 43798802422](https://github.com/SemperSupra/WineBot/actions/runs/43798802422) passed focused synthetic tests at `ecf7a577`; full CI was in progress. #150 focused REL startup/soak passes, but its full conformance remains red; #123 full conformance remains red. Do not treat synthetic inventory or standalone Wine11 soak as composite/hardware readiness. - Next READY: inspect terminal #154 composite and exact-head test outcome; repair only confirmed startup cause; isolate first frozen legacy conformance mismatch without waiver; continue safe semantic installer reconstruction. All hardware gates remain unchecked: **NOT_READY_FOR_HARDWARE_TEST**. No release digest, hardware candidate or paid/private runner authorized. + +## R025 parallel workcells — 2026-11-16 + +- Authority: accepted `main@f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged at this checkpoint. All principal PRs remain independently draft/unmerged; preserve ownership and do not force integration. +- **Runtime and state (#154)**: prior [composite 43797826726](https://github.com/SemperSupra/WineBot/actions/runs/43797826726) terminated FAIL at `health_initial` **after** app-seed and state-init passed, superseding earlier first-failure guesses. Layered source now makes bootstrap with CAP_CHOWN-only root idempotent on already-UID1000 volumes, refuses unexpected owners, tests repeat initialization after data writes, explicitly enables authenticated API and removes YAML folded-newline ambiguity from authenticated curl healthcheck. Latest observed source `b6ce2b09fadda1a5989edba9944fc1327a5ef06d`: [focused disposable contract 43799214021](https://github.com/SemperSupra/WineBot/actions/runs/43799214021) PASS; [unit/startup 43799213920](https://github.com/SemperSupra/WineBot/actions/runs/43799213920) PASS; [composite 43799213903](https://github.com/SemperSupra/WineBot/actions/runs/43799213903) IN PROGRESS. Do not assert it has passed until terminal. +- **Installer provenance (#155)**: Go stdlib source-only tool adds conservative Wine registry v2 `regdiff` and `regverify` with root/arch guards, typed SHA-256 values, key/timestamp normalization and no overwrite of evidence, alongside filesystem inventory and verify. [Installer Capture RDTE #43799151301](https://github.com/SemperSupra/WineBot/actions/runs/43799151301) PASS including entirely synthetic postcondition fixtures; frozen full CI conformance remains a distinct RED gate. Command usage and limitations in `cmd/installer-capture/README.md`. This is not ordered event recording or installer reconstruction. +- **Conformance (#123)**: bounded source correction to `POST /inspect/window` yields a truthful authorized `invalid_target` response instead of fake inspection success, permits authentic `list_only` enumeration, and preserves broker denial. Repeated graceful shutdown requests reuse the actual pending deadline, delay and operation identity and do not reschedule teardown; synthetic tests explicitly assert no deadline extension. Latest source head at preparation `424ef09d14f5efba12c6e37d34fb12749b5e5997`: [unit/startup #43799800536](https://github.com/SemperSupra/WineBot/actions/runs/43799800536) and [full CI #43799800508](https://github.com/SemperSupra/WineBot/actions/runs/43799800508) IN PROGRESS. Preserve frozen v1 suite; no exceptions, waiver or invented conformance acceptance. +- **Wine 11 standalone (#150)**: original exact [REL #43702228758](https://github.com/SemperSupra/WineBot/actions/runs/43702228758) PASS with 3300-second soak and authenticated service health; does not qualify layered deployment or physical devices. +- **Readiness**: Composite Wine11 startup/health and state replay, frozen legacy conformance, real rights-cleared Windows app/game and installer reconstruction, human/agent input arbitration, accessibility, backup/restore, fault injection, publication provenance and hardware-specific checks are still unqualified. Keep *all* pre-hardware checklist items held until exact-source proof. `NOT_READY_FOR_HARDWARE_TEST`; no candidate image digests, release, paid/private GHA minutes, hardware access or security bypass. + +Next independent READY cells: observe each terminal run; remediate only its first confirmed failure, including auth health vs service readiness; qualify registry equivalence against a rights-cleared actual Wine install, not solely synthetic fixtures; evaluate lifecycle contract with public frozen suite before any merge. Reconcile PR comments and issue states as each cell closes, without deleting RDTE evidence or persisted user state. From 10f112f4a14cd7cde30fe117873c8868b472db78 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:53:13 +0100 Subject: [PATCH 29/87] docs(rdte): reconcile integrated Wine11 composite pass and new fault/conformance batches --- .../2026-11-autonomous-rdte-hardware-gates.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index df262dcd..dad59639 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -145,3 +145,15 @@ Next batch after composite is terminal: inspect exact output, fix only verified - **Readiness**: Composite Wine11 startup/health and state replay, frozen legacy conformance, real rights-cleared Windows app/game and installer reconstruction, human/agent input arbitration, accessibility, backup/restore, fault injection, publication provenance and hardware-specific checks are still unqualified. Keep *all* pre-hardware checklist items held until exact-source proof. `NOT_READY_FOR_HARDWARE_TEST`; no candidate image digests, release, paid/private GHA minutes, hardware access or security bypass. Next independent READY cells: observe each terminal run; remediate only its first confirmed failure, including auth health vs service readiness; qualify registry equivalence against a rights-cleared actual Wine install, not solely synthetic fixtures; evaluate lifecycle contract with public frozen suite before any merge. Reconcile PR comments and issue states as each cell closes, without deleting RDTE evidence or persisted user state. + +## R026 acceptance and ongoing free-tier batches — 2026-11-16 + +- **Integrated Wine11+layers PASS (bounded scope):** [#154 composite 43799213903](https://github.com/SemperSupra/WineBot/actions/runs/43799213903), source `b6ce2b09fadda1a5989edba9944fc1327a5ef06d`, job `133075010569`, is **TERMINAL SUCCESS**. It built the exact independently pinned Wine11 + layered image, authenticated health, verified Wine11 version, persistent writes and immutable app/root refusal, sampled 90s, force-recreated the runtime and verified state replay. [Focused layer 43799214021](https://github.com/SemperSupra/WineBot/actions/runs/43799214021) and [unit/startup 43799213920](https://github.com/SemperSupra/WineBot/actions/runs/43799213920) also PASS. Full [CI 43799213907](https://github.com/SemperSupra/WineBot/actions/runs/43799213907) is terminal FAIL **only frozen conformance**; preflight and integration smoke PASS. These are distinct gates. +- **Fault recovery — independent next acceptance:** draft #154 head `adcec596f90d7aed9fb253b6b521e252e3863e59` adds a synthetic Docker SIGKILL of the disposable WineBot process after successful replay, verifies signal exit, recreates the same digest-pinned runtime, rechecks health and all external user/config/prefix/artifact/app markers. No volumes are removed. [Public composite 43800438352](https://github.com/SemperSupra/WineBot/actions/runs/43800438352) IN PROGRESS at evidence capture; [focused layer 43800439286](https://github.com/SemperSupra/WineBot/actions/runs/43800439286) PASS. Do not declare fault recovery until exact-head terminal PASS. +- **Conformance corrective work:** #123 head `3acc219a1627a74bdcea6388144cc391ec2b57b4` adds authorized `invalid_target` and real `list_only` WinInspect handling and truthful reuse of already pending graceful shutdown metadata, with cancellation/deadline and no-double-worker tests. [Public focused unit/startup 43800228675](https://github.com/SemperSupra/WineBot/actions/runs/43800228675) TERMINAL SUCCESS all three jobs. [Full CI 43800228689](https://github.com/SemperSupra/WineBot/actions/runs/43800228689) IN PROGRESS; no frozen-v1 conformance success yet. +- **Installer/registry:** #155 head before this append `e5b8433b1dab12b61fd53d5052790611f2e79895`. [Installer Capture RDTE 43800108946](https://github.com/SemperSupra/WineBot/actions/runs/43800108946) PASS for Go1.25 confined filesystem snapshot/diff/verify plus conservative Wine registry-v2 regdiff/regverify synthetic postconditions. Does **not** prove real installer reconstruction; full CI's independent frozen conformance remains a hold. +- **Games:** #133/#135/#143/#144 are legitimate, distinct rights-cleared RDTE owners but the existing runner-venue changes did not establish source-exact current Windows-game results. Do not close these active branches or count a historical SHA's game evidence as current hardware admission. + +**Pre-hardware checklist remains UNCHECKED.** Integrated 90-second PASS is progress, but layered 55-minute soak, fault/recovery terminal acceptance, native Windows app/game, actual installer & rollback, accessible human/agent handoff, trusted backup/restore, security custody and real hardware capabilities remain. **NOT_READY_FOR_HARDWARE_TEST**. No promotion digest, production merge, private minutes or hardware action is authorized. + +Next wake: retrieve terminal fault, conformance and installer CI results; correct precise first failures. Reconcile existing draft PRs and latest source heads before any new mutation, and avoid reopening already-closed resolved work. From 3dd0f34ba895e1dbf7a0610eced2cf78877a1e65 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:15:57 +0100 Subject: [PATCH 30/87] feat(rdte): add rights-cleared WinAPI file and HKCU installer fixture --- cmd/windows-installer-fixture/main_windows.go | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 cmd/windows-installer-fixture/main_windows.go diff --git a/cmd/windows-installer-fixture/main_windows.go b/cmd/windows-installer-fixture/main_windows.go new file mode 100644 index 00000000..41967cf3 --- /dev/null +++ b/cmd/windows-installer-fixture/main_windows.go @@ -0,0 +1,101 @@ +//go:build windows + +// A deliberately tiny Windows-API installation fixture. It is original source +// for RDTE, NOT an arbitrary third-party installer or production application. +// The opt-in guard prevents inadvertent execution outside isolated CI. +package main + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "syscall" + "unsafe" +) + +const ( + fixtureKey = `Software\WineBotInstallerFixture` + fixtureDir = "WineBotInstallerFixture" + fixtureValue = "InstallState" + fixtureVersion = "synthetic-v1" + hkeyCurrentUser = uintptr(0x80000001) + keySetValue = uintptr(0x0002) + regSZ = uintptr(1) +) + +var ( + advapi32 = syscall.NewLazyDLL("advapi32.dll") + regCreateKeyExW = advapi32.NewProc("RegCreateKeyExW") + regSetValueExW = advapi32.NewProc("RegSetValueExW") + regCloseKey = advapi32.NewProc("RegCloseKey") + regDeleteKeyW = advapi32.NewProc("RegDeleteKeyW") +) + +func pathForFixture() (string,error) { + base:=os.Getenv("APPDATA") + if base=="" {return "",errors.New("missing APPDATA")} + // Only a fixed subdirectory, never user-supplied paths. + return filepath.Join(base,fixtureDir),nil +} +func writeKey() error { + keyName,err:=syscall.UTF16PtrFromString(fixtureKey) + if err!=nil {return errors.New("bad key")} + var key uintptr + status,_,_:=regCreateKeyExW.Call(hkeyCurrentUser,uintptr(unsafe.Pointer(keyName)),0,0,0,keySetValue,0,uintptr(unsafe.Pointer(&key)),0) + if status!=0 {return errors.New("registry key create failed")} + defer regCloseKey.Call(key) + valueName,err:=syscall.UTF16PtrFromString(fixtureValue) + if err!=nil {return errors.New("bad value name")} + data,err:=syscall.UTF16FromString(fixtureVersion) + if err!=nil {return errors.New("bad value contents")} + status,_,_=regSetValueExW.Call(key,uintptr(unsafe.Pointer(valueName)),0,regSZ,uintptr(unsafe.Pointer(&data[0])),uintptr(len(data)*2)) + if status!=0 {return errors.New("registry value write failed")} + return nil +} +func removeKey() error { + name,err:=syscall.UTF16PtrFromString(fixtureKey) + if err!=nil {return errors.New("bad key")} + code,_,_:=regDeleteKeyW.Call(hkeyCurrentUser,uintptr(unsafe.Pointer(name))) + if code!=0 {return errors.New("registry key delete failed")} + return nil +} +func install() error { + dir,err:=pathForFixture() + if err!=nil {return err} + if err:=os.Mkdir(dir,0700);err!=nil {return errors.New("fixture path already exists or not writable")} + // An installation has both filesystem and registry postconditions. + if err:=os.WriteFile(filepath.Join(dir,"installed.txt"),[]byte(fixtureVersion+"\n"),0600);err!=nil {return errors.New("fixture file failed")} + return writeKey() +} +func uninstall() error { + dir,err:=pathForFixture() + if err!=nil {return err} + proof:=filepath.Join(dir,"installed.txt") + b,err:=os.ReadFile(proof) + if err!=nil || string(b)!=fixtureVersion+"\n" {return errors.New("missing fixture identity; refusing cleanup")} + entries,err:=os.ReadDir(dir) + if err!=nil || len(entries)!=1 || entries[0].Name()!="installed.txt" {return errors.New("unexpected files; refusing cleanup")} + if err:=removeKey();err!=nil{return err} + if err:=os.Remove(proof);err!=nil{return errors.New("file delete failed")} + if err:=os.Remove(dir);err!=nil{return errors.New("directory delete failed")} + return nil +} +func main() { + if os.Getenv("WINEBOT_FIXTURE_PERMIT")!="synthetic-ci" || len(os.Args)!=2 { + fmt.Fprintln(os.Stderr,"WIN_INSTALL_FIXTURE stage=not_authorized") + os.Exit(2) + } + var err error + var stage string + switch os.Args[1] { + case "install":stage="installed";err=install() + case "uninstall":stage="uninstalled";err=uninstall() + default:stage="invalid";err=errors.New("invalid command") + } + if err!=nil { + fmt.Fprintln(os.Stderr,"WIN_INSTALL_FIXTURE stage=failed") + os.Exit(1) + } + fmt.Printf("WIN_INSTALL_FIXTURE stage=%s\n",stage) +} From dc59854fd51195b72e48475426c950ef4a296f9e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:16:12 +0100 Subject: [PATCH 31/87] build(rdte): pin standalone standard-library Windows fixture module --- cmd/windows-installer-fixture/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cmd/windows-installer-fixture/go.mod diff --git a/cmd/windows-installer-fixture/go.mod b/cmd/windows-installer-fixture/go.mod new file mode 100644 index 00000000..07568255 --- /dev/null +++ b/cmd/windows-installer-fixture/go.mod @@ -0,0 +1,3 @@ +module github.com/SemperSupra/WineBot/cmd/windows-installer-fixture + +go 1.25.0 From 54ca65d52e5a5c9c32e1f5c0c704f5ca3d4ea0a7 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:16:43 +0100 Subject: [PATCH 32/87] feat(capture): project semantic Wine registry deltas into path-free count evidence --- .github/workflows/installer-capture-rdte.yml | 13 ++++++ cmd/installer-capture/README.md | 7 ++++ cmd/installer-capture/main.go | 22 ++++++++++ cmd/installer-capture/registry.go | 43 ++++++++++++++++++++ cmd/installer-capture/registry_test.go | 38 +++++++++++++++++ 5 files changed, 123 insertions(+) diff --git a/.github/workflows/installer-capture-rdte.yml b/.github/workflows/installer-capture-rdte.yml index 0d6c6d4e..b23913e0 100644 --- a/.github/workflows/installer-capture-rdte.yml +++ b/.github/workflows/installer-capture-rdte.yml @@ -89,6 +89,19 @@ jobs: "State"=dword:00000002 REG_AFTER "$RUNNER_TEMP/winebot-capture" regdiff -before "$work/registry-before.reg" -after "$work/registry-after.reg" -out "$work/registry-delta.json" + "$RUNNER_TEMP/winebot-capture" regsummary -before "$work/registry-before.reg" -after "$work/registry-after.reg" -out "$work/registry-summary.json" + python3 - "$work/registry-summary.json" <<'PY' + import json, sys + data = json.load(open(sys.argv[1], encoding="utf-8")) + assert data["schema"] == 1 + assert data["groups"] == [ + {"operation": "added", "keys": 0, "values": 0}, + {"operation": "removed", "keys": 0, "values": 0}, + {"operation": "changed", "keys": 0, "values": 1}, + ] + assert "Software" not in json.dumps(data) + assert "State" not in json.dumps(data) + PY "$RUNNER_TEMP/winebot-capture" regverify -actual "$work/registry-after.reg" -expected "$work/registry-after.reg" if "$RUNNER_TEMP/winebot-capture" regverify -actual "$work/registry-before.reg" -expected "$work/registry-after.reg" >/dev/null 2>&1; then echo 'INSTALLER_CAPTURE_RDTE stage=registry_postcondition_false_positive' diff --git a/cmd/installer-capture/README.md b/cmd/installer-capture/README.md index c9933b5b..0e161e48 100644 --- a/cmd/installer-capture/README.md +++ b/cmd/installer-capture/README.md @@ -17,10 +17,17 @@ installer, application-launcher, or a privilege boundary. `verify -root RECONSTRUCTED_PREFIX -manifest PRIVATE_AFTER.json` checks byte-for-byte filesystem metadata/content hashes against the intended post-installation state without displaying changed file contents. + For a **path-free summary** suitable for guarded review, use + `summary -before PRIVATE_BEFORE.json -after PRIVATE_AFTER.json -out PRIVATE_SUMMARY.json`. + This counts only fixed file-installation categories, not individual paths. 4. Copy Wine's native `system.reg`, `user.reg`, or `userdef.reg` to *private evidence outside the source prefix* before and after. Use `regdiff -before PRIVATE_BEFORE.reg -after PRIVATE_AFTER.reg -out PRIVATE_REG_DELTA.json`. Do not mix files with different Wine registry roots or architectures. + Use `regsummary -before PRIVATE_BEFORE.reg -after PRIVATE_AFTER.reg + -out PRIVATE_REG_SUMMARY.json` for fixed counts of added/removed/changed + registry keys and values. Unlike `regdiff`, the summary contains no + names, paths, root identity, or value digests. 5. Compare application-level postconditions with the original installer and reconstructed install. Only then propose a versioned, declarative recipe. diff --git a/cmd/installer-capture/main.go b/cmd/installer-capture/main.go index 28ee5367..f920e662 100644 --- a/cmd/installer-capture/main.go +++ b/cmd/installer-capture/main.go @@ -293,6 +293,28 @@ func run(argv []string) error { if err != nil { return err } if len(d.Changes) != 0 { return errors.New("registry postcondition mismatch") } return nil + case "regsummary": + // Aggregate semantic key/value additions, removals and changes without + // publishing registry names or value hashes. Detailed output stays private. + flags:=flag.NewFlagSet("regsummary",flag.ContinueOnError) + flags.SetOutput(io.Discard) + before:=flags.String("before","","private before Wine registry") + after:=flags.String("after","","private after Wine registry") + out:=flags.String("out","","private path-free summary output") + if err:=flags.Parse(argv[1:]);err!=nil||flags.NArg()!=0|| + *before==""||*after==""||*out=="" { + return errors.New("invalid regsummary arguments") + } + if *out==*before||*out==*after {return errors.New("refuse registry input overwrite")} + a,err:=readPrivateRegistry(*before) + if err!=nil {return err} + b,err:=readPrivateRegistry(*after) + if err!=nil {return err} + d,err:=diffRegistry(a,b) + if err!=nil {return err} + summary,err:=registrySummary(d) + if err!=nil {return err} + return writeJSON(*out,summary) case "regdiff": // Compare Wine-native registry v2 files after a quiesced installer replay. // Value bytes never enter the emitted record; this remains private evidence. diff --git a/cmd/installer-capture/registry.go b/cmd/installer-capture/registry.go index 29ee5261..22be5184 100644 --- a/cmd/installer-capture/registry.go +++ b/cmd/installer-capture/registry.go @@ -181,6 +181,49 @@ func parseRegistryValue(v string) (string,string,error) { return "","",errors.New("unsupported registry value encoding") } +// RegistrySummary exposes only fixed-domain counts for safe public review. +// The original registry delta retains full private keys and value names. +type RegistrySummaryRow struct { + Operation string `json:"operation"` + Keys int `json:"keys"` + Values int `json:"values"` +} +type RegistrySummary struct { + Schema int `json:"schema"` + Groups []RegistrySummaryRow `json:"groups"` +} + +func registrySummary(d RegistryDelta) (RegistrySummary, error) { + out := RegistrySummary{Schema:schemaVersion,Groups:[]RegistrySummaryRow{}} + if d.Schema!=schemaVersion || len(d.Changes)>registryMaxRecords*2 { + return out, errors.New("invalid registry delta") + } + for _,operation := range []string{"added","removed","changed"} { + row:=RegistrySummaryRow{Operation:operation} + for _,change:=range d.Changes { + if change.Operation!=operation {continue} + var record *RegistryRecord + if change.After!=nil {record=change.After} else {record=change.Before} + if record==nil || record.Key=="" || change.Key!=record.Key || + change.Name!=record.Name { + return out, errors.New("invalid registry summary source") + } + switch record.Kind { + case "key": row.Keys++ + case "value": row.Values++ + default: return out, errors.New("invalid registry record class") + } + } + out.Groups=append(out.Groups,row) + } + // No silent omission of unsupported operation labels. + for _,change:=range d.Changes { + if change.Operation!="added" && change.Operation!="removed" && + change.Operation!="changed" {return out,errors.New("invalid registry operation")} + } + return out,nil +} + func registryID(r RegistryRecord) string { return r.Kind+"\x00"+r.Key+"\x00"+r.Name } diff --git a/cmd/installer-capture/registry_test.go b/cmd/installer-capture/registry_test.go index 04c7aad2..fd5fb09d 100644 --- a/cmd/installer-capture/registry_test.go +++ b/cmd/installer-capture/registry_test.go @@ -59,6 +59,44 @@ func TestWineRegistryRejectsBadOrAmbiguousInput(t *testing.T) { } } +func TestRegistrySummaryFixedCategoriesWithoutSensitiveData(t *testing.T) { + before:=strings.NewReader("WINE REGISTRY Version 2\n;; All keys relative to \\Machine\n#arch=win64\n[Software\\SensitiveKey] 100\n\"PRIVATE_NAME\"=dword:00000001\n") + after:=strings.NewReader("WINE REGISTRY Version 2\n;; All keys relative to \\Machine\n#arch=win64\n[Software\\SensitiveKey] 200\n\"PRIVATE_NAME\"=dword:00000002\n[Software\\NewKey] 300\n\"SecretName\"=\"PRIVATE_VALUE\"\n") + a,err:=parseWineRegistry(before);if err!=nil {t.Fatal(err)} + b,err:=parseWineRegistry(after);if err!=nil {t.Fatal(err)} + delta,err:=diffRegistry(a,b);if err!=nil {t.Fatal(err)} + summary,err:=registrySummary(delta);if err!=nil {t.Fatal(err)} + if len(summary.Groups)!=3 || + summary.Groups[0].Operation!="added" || + summary.Groups[0].Keys!=1 || + summary.Groups[0].Values!=1 || + summary.Groups[2].Operation!="changed" || + summary.Groups[2].Values!=1 {t.Fatalf("incorrect registry summary: %+v",summary)} + raw,err:=json.Marshal(summary);if err!=nil {t.Fatal(err)} + for _,canary:=range []string{"SensitiveKey","PRIVATE_NAME","SecretName","PRIVATE_VALUE","Software","Machine","dword"} { + if strings.Contains(string(raw),canary) {t.Fatal("sensitive registry name leaked")} + } +} + +func TestRegistrySummaryCLIIsPrivateAndFailClosed(t *testing.T) { + dir:=t.TempDir() + src:=filepath.Join(dir,"before.reg") + dst:=filepath.Join(dir,"after.reg") + output:=filepath.Join(dir,"summary.json") + before:="WINE REGISTRY Version 2\n;; All keys relative to \\Machine\n#arch=win64\n[Software\\Example] 100\n\"SENSITIVE\"=dword:00000001\n" + after:="WINE REGISTRY Version 2\n;; All keys relative to \\Machine\n#arch=win64\n[Software\\Example] 200\n\"SENSITIVE\"=dword:00000002\n" + if err:=os.WriteFile(src,[]byte(before),0600);err!=nil {t.Fatal(err)} + if err:=os.WriteFile(dst,[]byte(after),0600);err!=nil {t.Fatal(err)} + if err:=run([]string{"regsummary","-before",src,"-after",dst,"-out",output});err!=nil {t.Fatal(err)} + got,err:=os.ReadFile(output);if err!=nil {t.Fatal(err)} + for _,private:=range []string{"SENSITIVE","Example","Software","Machine"} { + if strings.Contains(string(got),private) {t.Fatal("private registry metadata escaped")} + } + if err:=run([]string{"regsummary","-before",src,"-after",dst,"-out",output});err==nil { + t.Fatal("overwrote a prior summary") + } +} + func TestWineRegistryRootAndArchMismatchesFailClosed(t *testing.T) { base:="WINE REGISTRY Version 2\n;; All keys relative to \\\\Machine\n#arch=win64\n[Software\\\\X]\n" a,err:=parseWineRegistry(strings.NewReader(base)) From fc966bb5accd0aa01b5ce06732c95b7c551c2032 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:17:54 +0100 Subject: [PATCH 33/87] ci(installer): qualify rights-cleared WinAPI install/uninstall and Wine registry observation on free public runners --- .../windows-installer-fixture-rdte.yml | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 .github/workflows/windows-installer-fixture-rdte.yml diff --git a/.github/workflows/windows-installer-fixture-rdte.yml b/.github/workflows/windows-installer-fixture-rdte.yml new file mode 100644 index 00000000..31981506 --- /dev/null +++ b/.github/workflows/windows-installer-fixture-rdte.yml @@ -0,0 +1,129 @@ +name: Windows Installer Fixture Parity RDTE + +# Original Windows API fixture only. Zero private assets, no uploads or releases. +on: + pull_request: + paths: + - '.github/workflows/windows-installer-fixture-rdte.yml' + - 'cmd/windows-installer-fixture/**' + - 'cmd/installer-capture/**' + +permissions: + contents: read + +concurrency: + group: fixture-parity-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + windows-native-reference: + runs-on: windows-2025 + timeout-minutes: 15 + steps: + - name: Checkout exact public source + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + persist-credentials: false + - name: Pinned Go compiler + uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 + with: + go-version-file: cmd/windows-installer-fixture/go.mod + cache: false + - name: Native WinAPI file and HKCU install/uninstall + shell: pwsh + env: + GOPROXY: 'off' + GOSUMDB: 'off' + GOTOOLCHAIN: 'local' + WINEBOT_FIXTURE_PERMIT: synthetic-ci + run: | + Push-Location cmd/windows-installer-fixture + go build -trimpath -o "$env:RUNNER_TEMP\fixture.exe" . + if ($LASTEXITCODE -ne 0) { throw "WIN_INSTALL_FIXTURE stage=build_failed" } + Pop-Location + & "$env:RUNNER_TEMP\fixture.exe" install + if ($LASTEXITCODE -ne 0) { throw "WIN_INSTALL_FIXTURE stage=native_install_failed" } + $key = 'HKCU:\Software\WineBotInstallerFixture' + $state = (Get-ItemProperty -Path $key -Name InstallState -ErrorAction Stop).InstallState + if ($state -ne 'synthetic-v1') { throw "WIN_INSTALL_FIXTURE stage=native_registry_failed" } + $proof = Join-Path $env:APPDATA 'WineBotInstallerFixture\installed.txt' + if ((Get-Content -Raw -Path $proof).Trim() -ne 'synthetic-v1') { + throw "WIN_INSTALL_FIXTURE stage=native_file_failed" + } + & "$env:RUNNER_TEMP\fixture.exe" uninstall + if ($LASTEXITCODE -ne 0) { throw "WIN_INSTALL_FIXTURE stage=native_uninstall_failed" } + if ((Test-Path $key) -or (Test-Path $proof)) { + throw "WIN_INSTALL_FIXTURE stage=native_cleanup_failed" + } + "WIN_INSTALL_FIXTURE stage=native_pass" + + wine-prefix-registry-observation: + runs-on: ubuntu-24.04 + timeout-minutes: 30 + steps: + - name: Checkout exact public source + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + persist-credentials: false + - name: Pinned Go compiler + uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 + with: + go-version-file: cmd/installer-capture/go.mod + cache: false + - name: Install distro Wine for isolated infrastructure smoke + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update -qq + sudo apt-get install -y --no-install-recommends wine wine64 xvfb xauth + command -v wine + command -v wineboot + - name: Compare actual Wine HKCU before and after PE execution + shell: bash + env: + GOPROXY: 'off' + GOSUMDB: 'off' + GOTOOLCHAIN: 'local' + WINEBOT_FIXTURE_PERMIT: synthetic-ci + WINEDEBUG: '-all' + WINEARCH: win64 + WINEDLLOVERRIDES: 'mscoree,mshtml=' + run: | + set -euo pipefail + work="$(mktemp -d)" + trap 'rm -rf "$work"' EXIT + export WINEPREFIX="$work/prefix" WORK="$work" + mkdir -p "$WINEPREFIX" + (cd cmd/windows-installer-fixture && GOOS=windows GOARCH=amd64 go build -trimpath -o "$work/fixture.exe" .) + (cd cmd/installer-capture && go build -trimpath -o "$work/capture" .) + export WIN_FIXTURE="$work/fixture.exe" + xvfb-run -a /bin/bash -euo pipefail -c ' + timeout 180 wineboot -u >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + test -s "$WINEPREFIX/user.reg" || exit 31 + cp "$WINEPREFIX/user.reg" "$WORK/before.reg" + timeout 120 wine "$WIN_FIXTURE" install >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + test -s "$WINEPREFIX/user.reg" || exit 32 + cp "$WINEPREFIX/user.reg" "$WORK/after.reg" + ' || { echo 'WIN_INSTALL_FIXTURE stage=wine_execution_failed'; exit 1; } + "$work/capture" regdiff -before "$work/before.reg" -after "$work/after.reg" -out "$work/delta.json" || + { echo 'WIN_INSTALL_FIXTURE stage=wine_registry_parse_failed'; exit 1; } + if "$work/capture" regverify -actual "$work/before.reg" -expected "$work/after.reg" >/dev/null 2>&1; then + echo 'WIN_INSTALL_FIXTURE stage=false_registry_equivalence' + exit 1 + fi + python3 - "$work/delta.json" <<'PY' + import json + import sys + with open(sys.argv[1], encoding="utf-8") as f: + data = json.load(f) + assert data["schema"] == 1 + assert any( + "WineBotInstallerFixture" in c["key"] + and c["name"] == "InstallState" + and c["operation"] in ("added", "changed") + for c in data["changes"] + ), "WIN_INSTALL_FIXTURE stage=registry_change_not_observed" + PY + echo 'WIN_INSTALL_FIXTURE stage=wine_registry_observation_pass' From 6e856e7a5d28c6f07fdafcec459016c1618912d9 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:18:51 +0100 Subject: [PATCH 34/87] docs(rdte): bound original WinAPI fixture scope, Linux Wine limitation and CI custody --- cmd/windows-installer-fixture/README.md | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 cmd/windows-installer-fixture/README.md diff --git a/cmd/windows-installer-fixture/README.md b/cmd/windows-installer-fixture/README.md new file mode 100644 index 00000000..8fdd0e1b --- /dev/null +++ b/cmd/windows-installer-fixture/README.md @@ -0,0 +1,50 @@ +# Windows installer fixture — public, original, disposable RDTE + +This fixture is original source in WineBot. It is not a third-party application, +installer-repackaging mechanism, rights-restricted game or production program. + +The Go stdlib `windows` target creates a genuine Windows PE executable using +the Windows file APIs and native Advapi32 registry APIs. It changes only: + +- One newly created fixture-specific directory under the current user's + `%APPDATA%`, containing `installed.txt` with the constant `synthetic-v1`. +- `HKCU\Software\WineBotInstallerFixture\InstallState` as `REG_SZ`, with the + same synthetic value. + +The fixed argument `install` creates both and fails if the directory already +exists. `uninstall` refuses to remove unrecognized content and deletes only +the fixture file/directory and its own key. The binary will not run unless +`WINEBOT_FIXTURE_PERMIT=synthetic-ci` is explicitly supplied. Never use this +fixture against an existing user prefix or persistent personal registry. + +## Qualification + +`.github/workflows/windows-installer-fixture-rdte.yml` executes two isolated +public GitHub Actions workcells: + +1. **Native Windows reference** on the standard public Windows hosted runner: + compile from source; install; verify both HKCU and file postconditions; + uninstall; verify cleanup. Only fixed-category results are printed. +2. **Wine observed compatibility** on a disposable Ubuntu 24.04 public runner: + build the same PE from source, initialize a fresh temporary Wine prefix + using distribution Wine, snapshot Wine's native `user.reg` before and + after executing the PE, then run WineBot's `regdiff` and `regverify`. + Require a changed `InstallState` entry under the fixture's key. Do not + publish the PE, registry files, process traces, or converted snapshot data. + +The Wine runner uses **distribution Wine**, not the independently pinned +Wine 11 candidate. Its result is an infrastructure/semantic fixture test, not +a Wine11 layered-runtime or game/installer-reconstruction acceptance result. +The Ubuntu APT package version is not currently digest-pinned; record this +as a reproducibility limitation until an exact packaged Wine runtime is +qualified in a separate source-bound workflow. + +No actual user hardware, connected local machines, private CI minutes, +secrets, persisted user data, third-party installer downloads, browser +screenshots or image publication are used. Do not interpret a PASS as +eligibility for release or hardware tests. Compare the exact Git commit and +Actions run ID before accepting any claim. + +Future work: actual installer event/process timeline, executable/registry +transaction capture, WinInspect program behavior, independent reconstruction +from a declarative recipe and native Windows vs Wine semantic postconditions. From f27b0a098e196356870aaf83ba969890c52bec2d Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:20:44 +0100 Subject: [PATCH 35/87] docs(rdte): reconcile full frozen conformance PASS, actual runtime fault recovery and installer fixture RDTE --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index dad59639..46c81899 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -157,3 +157,13 @@ Next independent READY cells: observe each terminal run; remediate only its firs **Pre-hardware checklist remains UNCHECKED.** Integrated 90-second PASS is progress, but layered 55-minute soak, fault/recovery terminal acceptance, native Windows app/game, actual installer & rollback, accessible human/agent handoff, trusted backup/restore, security custody and real hardware capabilities remain. **NOT_READY_FOR_HARDWARE_TEST**. No promotion digest, production merge, private minutes or hardware action is authorized. Next wake: retrieve terminal fault, conformance and installer CI results; correct precise first failures. Reconcile existing draft PRs and latest source heads before any new mutation, and avoid reopening already-closed resolved work. + +## R027 source-exact parallel batches — 2026-11-16 + +1. **Accepted main** `f5ba0256f330958dcf35710a822508cdb31fc40b` remains authoritative. Do not merge unrelated draft owners or infer readiness from cross-branch test results. +2. **#123 contract compatibility** at `3acc219a1627a74bdcea6388144cc391ec2b57b4`: [FULL CI 43800228689](https://github.com/SemperSupra/WineBot/actions/runs/43800228689) **TERMINAL SUCCESS**, including independent preflight, frozen legacy-v1 conformance and integration smoke. [Focused 43800228675](https://github.com/SemperSupra/WineBot/actions/runs/43800228675) also PASS. Explicit independent security/owner-promotion holds remain; draft stays unmerged. Other PRs' older independent conformance failures remain real until source-integrated and requalified. +3. **#154 runtime/state fault recovery** at `adcec596f90d7aed9fb253b6b521e252e3863e59`: [COMPOSITE 43800438352](https://github.com/SemperSupra/WineBot/actions/runs/43800438352) **TERMINAL SUCCESS** through actual authenticated Wine 11 layered startup, state/immutable-app enforcement, 90s sampler, runtime recreation, SIGKILL injection and recovery with persistent state. A parallel actor independently advanced #154 to `474b603b2471f0334c4de15fd77317a7f2b8e070`, adding the **55-minute same-layer resource/trace soak** and live Openbox recovery. Its [composite 43837574516](https://github.com/SemperSupra/WineBot/actions/runs/43837574516) was still **IN_PROGRESS** at this checkpoint; do not mark extended layered qualification PASS until terminal. +4. **#150 standalone Wine 11** at `8c5ed8019a3518cf534b158662755172bfce7c59`: [REL 43799408806](https://github.com/SemperSupra/WineBot/actions/runs/43799408806) **TERMINAL SUCCESS** with 3300s soak and native Openbox fault recovery; still not integrated layer, app or hardware acceptance. +5. **#155 installer observation**: original rights-cleared synthetic Windows PE added with true WinAPI file + HKCU registry effects and uninstall negative control, no third-party executables. [Public Windows/native + Ubuntu/Wine fixture 43838629780](https://github.com/SemperSupra/WineBot/actions/runs/43838629780) and [source-only Installer Capture 43838629676](https://github.com/SemperSupra/WineBot/actions/runs/43838629676) **IN_PROGRESS** at write; keep open until first terminal result. Wine test uses distribution Wine, not Wine11, and cannot satisfy installer reconstruction/product qualification. All execution is disposable, public, isolated, no credentials, private artifacts or hardware. + +**Readiness remains `NOT_READY_FOR_HARDWARE_TEST`.** Still unverified: rights-cleared **real** Windows application/game under exact layered Wine11, installer recipe reconstruction with independent postconditions, input arbitration with human/automation/agents and accessibility on actual compatible control interfaces, real user-state backup/restore, security/product publication custody and source-digest-based hardware test manifest. Do not check all pre-hardware boxes from synthetic Go fixture or standalone 55-minute results. Preserve DLE authority, evidence-class distinction, independent PR ownership, and source-bound proof. Next wave: terminal-check 43837574516 and 43838629780; isolate actual first failure; integrate #123 contract corrections into a separately qualified release candidate without bypassing the draft promotion hold. Public GH-hosted runners only. From 60af5a5a64f404e3e774f8baa769cb33695a383a Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:21:38 +0100 Subject: [PATCH 36/87] test(installer): handle key-only Wine registry delta records without rejecting valid values --- .github/workflows/windows-installer-fixture-rdte.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-installer-fixture-rdte.yml b/.github/workflows/windows-installer-fixture-rdte.yml index 31981506..b39cce3f 100644 --- a/.github/workflows/windows-installer-fixture-rdte.yml +++ b/.github/workflows/windows-installer-fixture-rdte.yml @@ -121,7 +121,7 @@ jobs: assert data["schema"] == 1 assert any( "WineBotInstallerFixture" in c["key"] - and c["name"] == "InstallState" + and c.get("name", "") == "InstallState" and c["operation"] in ("added", "changed") for c in data["changes"] ), "WIN_INSTALL_FIXTURE stage=registry_change_not_observed" From 394b1a3b6f52986398995b3999e601f99d06d970 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:25:35 +0100 Subject: [PATCH 37/87] ci(installer): qualify real Windows PE file-hash footprint alongside Wine registry effects --- .../windows-installer-fixture-rdte.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/windows-installer-fixture-rdte.yml b/.github/workflows/windows-installer-fixture-rdte.yml index b39cce3f..e22eaa76 100644 --- a/.github/workflows/windows-installer-fixture-rdte.yml +++ b/.github/workflows/windows-installer-fixture-rdte.yml @@ -102,11 +102,29 @@ jobs: wineserver -k >/dev/null 2>&1 || true test -s "$WINEPREFIX/user.reg" || exit 31 cp "$WINEPREFIX/user.reg" "$WORK/before.reg" + "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/fs-before.json" >/dev/null || exit 33 timeout 120 wine "$WIN_FIXTURE" install >/dev/null 2>&1 wineserver -k >/dev/null 2>&1 || true test -s "$WINEPREFIX/user.reg" || exit 32 cp "$WINEPREFIX/user.reg" "$WORK/after.reg" + "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/fs-after.json" >/dev/null || exit 34 ' || { echo 'WIN_INSTALL_FIXTURE stage=wine_execution_failed'; exit 1; } + "$work/capture" diff -before "$work/fs-before.json" -after "$work/fs-after.json" -out "$work/fs-delta.json" || + { echo 'WIN_INSTALL_FIXTURE stage=filesystem_diff_failed'; exit 1; } + python3 - "$work/fs-delta.json" <<'PY' + import hashlib + import json + import sys + with open(sys.argv[1], encoding="utf-8") as f: + changes = json.load(f)["changes"] + proof_hash = hashlib.sha256(b"synthetic-v1\n").hexdigest() + assert any( + c.get("path", "").endswith("WineBotInstallerFixture/installed.txt") + and c.get("operation") == "added" + and c.get("after", {}).get("sha256") == proof_hash + for c in changes + ), "WIN_INSTALL_FIXTURE stage=installed_file_not_observed" + PY "$work/capture" regdiff -before "$work/before.reg" -after "$work/after.reg" -out "$work/delta.json" || { echo 'WIN_INSTALL_FIXTURE stage=wine_registry_parse_failed'; exit 1; } if "$work/capture" regverify -actual "$work/before.reg" -expected "$work/after.reg" >/dev/null 2>&1; then From 47cf4dbdd9074d40658c96572f9a062ed115a82f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:30:28 +0100 Subject: [PATCH 38/87] ci(installer): qualify Wine native PE uninstall and reversed file/registry postconditions --- .../windows-installer-fixture-rdte.yml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-installer-fixture-rdte.yml b/.github/workflows/windows-installer-fixture-rdte.yml index e22eaa76..cc02223f 100644 --- a/.github/workflows/windows-installer-fixture-rdte.yml +++ b/.github/workflows/windows-installer-fixture-rdte.yml @@ -108,6 +108,11 @@ jobs: test -s "$WINEPREFIX/user.reg" || exit 32 cp "$WINEPREFIX/user.reg" "$WORK/after.reg" "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/fs-after.json" >/dev/null || exit 34 + timeout 120 wine "$WIN_FIXTURE" uninstall >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + test -s "$WINEPREFIX/user.reg" || exit 35 + cp "$WINEPREFIX/user.reg" "$WORK/uninstalled.reg" + "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/fs-uninstalled.json" >/dev/null || exit 36 ' || { echo 'WIN_INSTALL_FIXTURE stage=wine_execution_failed'; exit 1; } "$work/capture" diff -before "$work/fs-before.json" -after "$work/fs-after.json" -out "$work/fs-delta.json" || { echo 'WIN_INSTALL_FIXTURE stage=filesystem_diff_failed'; exit 1; } @@ -144,4 +149,27 @@ jobs: for c in data["changes"] ), "WIN_INSTALL_FIXTURE stage=registry_change_not_observed" PY - echo 'WIN_INSTALL_FIXTURE stage=wine_registry_observation_pass' + "$work/capture" diff -before "$work/fs-after.json" -after "$work/fs-uninstalled.json" -out "$work/fs-uninstall-delta.json" || + { echo 'WIN_INSTALL_FIXTURE stage=filesystem_uninstall_diff_failed'; exit 1; } + "$work/capture" regdiff -before "$work/after.reg" -after "$work/uninstalled.reg" -out "$work/registry-uninstall-delta.json" || + { echo 'WIN_INSTALL_FIXTURE stage=registry_uninstall_diff_failed'; exit 1; } + python3 - "$work/fs-uninstall-delta.json" "$work/registry-uninstall-delta.json" <<'PY' + import json + import sys + with open(sys.argv[1], encoding="utf-8") as f: + files = json.load(f)["changes"] + with open(sys.argv[2], encoding="utf-8") as f: + registry = json.load(f)["changes"] + assert any( + c.get("path", "").endswith("WineBotInstallerFixture/installed.txt") + and c.get("operation") == "removed" + for c in files + ), "WIN_INSTALL_FIXTURE stage=uninstalled_file_not_observed" + assert any( + "WineBotInstallerFixture" in c["key"] + and c.get("name", "") == "InstallState" + and c.get("operation") == "removed" + for c in registry + ), "WIN_INSTALL_FIXTURE stage=uninstalled_registry_not_observed" + PY + echo 'WIN_INSTALL_FIXTURE stage=wine_install_uninstall_roundtrip_pass' From a2d17c13b669904047c63aa0a144482113d16c73 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 13:10:33 +0100 Subject: [PATCH 39/87] docs(rdte): reconcile layered 55m, integrated v1 contracts, synthetic six-volume recovery and PE lifecycle --- .../2026-11-autonomous-rdte-hardware-gates.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 46c81899..94f76c78 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -167,3 +167,16 @@ Next wake: retrieve terminal fault, conformance and installer CI results; correc 5. **#155 installer observation**: original rights-cleared synthetic Windows PE added with true WinAPI file + HKCU registry effects and uninstall negative control, no third-party executables. [Public Windows/native + Ubuntu/Wine fixture 43838629780](https://github.com/SemperSupra/WineBot/actions/runs/43838629780) and [source-only Installer Capture 43838629676](https://github.com/SemperSupra/WineBot/actions/runs/43838629676) **IN_PROGRESS** at write; keep open until first terminal result. Wine test uses distribution Wine, not Wine11, and cannot satisfy installer reconstruction/product qualification. All execution is disposable, public, isolated, no credentials, private artifacts or hardware. **Readiness remains `NOT_READY_FOR_HARDWARE_TEST`.** Still unverified: rights-cleared **real** Windows application/game under exact layered Wine11, installer recipe reconstruction with independent postconditions, input arbitration with human/automation/agents and accessibility on actual compatible control interfaces, real user-state backup/restore, security/product publication custody and source-digest-based hardware test manifest. Do not check all pre-hardware boxes from synthetic Go fixture or standalone 55-minute results. Preserve DLE authority, evidence-class distinction, independent PR ownership, and source-bound proof. Next wave: terminal-check 43837574516 and 43838629780; isolate actual first failure; integrate #123 contract corrections into a separately qualified release candidate without bypassing the draft promotion hold. Public GH-hosted runners only. + +## R030 cross-owner proof — 2026-11-16 + +**Git authority:** protected `main@f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. Four principal #123/#150/#154/#155 PRs remain independent, draft/unmerged; free public GHA only, no private CI minutes, hardware access, image publication or security bypass. + +- **Layered 55-minute acceptance — PASS:** #154@ `474b603b2471f0334c4de15fd77317a7f2b8e070` public [composite 43837574516](https://github.com/SemperSupra/WineBot/actions/runs/43837574516) **terminal SUCCESS**. Actual log confirms `long_soak_passed`, `openbox_recovery_passed` and `qualified_composite`, alongside previously qualified read-only runtime, state replay and SIGKILL recovery. #150 stand-alone Wine11 soak remains separately passed, not double-counted. +- **Frozen-v1 source integration — PASS in disposable test, NOT merged:** #154@ `1e4929ca6703fdf234b60ac277c3dd1b4d22769a` and pinned #123@ `3acc219a1627a74bdcea6388144cc391ec2b57b4` were merged **only inside an isolated public runner** by `.github/workflows/layered-contract-integration-rdte.yml`. It allowed exactly one proven `scripts/ci/test.sh` union conflict, preserving all tests, and failed closed for any other conflict. [Integrated frozen-v1 43862360003](https://github.com/SemperSupra/WineBot/actions/runs/43862360003) **terminal SUCCESS**: merged unit tests, actual WineBot service startup, and pinned frozen legacy contract run. This establishes compatibility of sources, **not PR merging, release qualification or independent security promotion approval**. +- **Six-volume backup/restore — synthetic PASS on isolated child:** #154 added `scripts/ci/qualify-volume-backup-restore.sh` for six distinct externally backed state volumes and an isolated, UID1000-owned archive volume. Real Docker restore, SHA-256 verification and deliberate tamper rejection succeeded in [child #156 backup run 43863371251](https://github.com/SemperSupra/WineBot/actions/runs/43863371251), and independently [#43863362671](https://github.com/SemperSupra/WineBot/actions/runs/43863362671) on public GHA. The parent #154 workflow at `1e4929ca...` still has an outdated source-guard assertion, so [parent run 43862359731](https://github.com/SemperSupra/WineBot/actions/runs/43862359731) RED before executing restore. Child PR #156 presently reduces to **one exact workflow-guard correction**; leave it scoped to draft parent and reconcile after [parent long-run 43862359921](https://github.com/SemperSupra/WineBot/actions/runs/43862359921) is terminal to avoid canceling expensive composite CI. Child is not another product feature or a new release. +- **Real Windows PE lifecycle observation — PASS on synthetic fixture:** #155@ `47cf4dbdd9074d40658c96572f9a062ed115a82f` [public dual-platform 43840589502](https://github.com/SemperSupra/WineBot/actions/runs/43840589502) terminal SUCCESS: native Windows install+uninstall and distro Wine installation effects, exact installed file hash, HKCU typed registry delta, removal of both on uninstall. No binary/registry artifacts were published. This is a rights-cleared original fixture, **not arbitrary MSI/EXE recipe reimplementation**. + +**Remaining hardware holds:** actual Wine11 layered deployment of approved applications/games, recipe compiler and rollback on the target runtime, state-consistent production backup encryption/retention/disaster recovery, human/automation/agent shared ownership and assistive technology acceptance, privacy and security review, pinned distributable image digests, and hardware-specific graphics/input/audio qualification. All pre-hardware acceptance gates remain held in aggregate. **`NOT_READY_FOR_HARDWARE_TEST`**. + +**Next autonomous source-bound actions:** receive terminal #154 latest long composite; reconcile one-file child #156 into draft owner without merging it into main or adding ephemeral branch-only admission to production code; qualify real app postconditions under *actual pinned layered Wine 11*, compare isolated frozen-contract integrated source with security owner, then advance agent/human/a11y and backup/restore. Reconcile resolved child branch/PR once incorporated; preserve accepted evidence and do not claim actual-user backup proof from synthetic fixtures. From 5accaa395f916cc1bf2e032f5bb585b27bf9d2fd Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:05:16 +0100 Subject: [PATCH 40/87] rdte(installer): independent allowlisted declarative WinAPI recipe replay and native/Wine parity --- .../workflows/windows-fixture-recipe-rdte.yml | 143 ++++++++++++++++ cmd/windows-recipe-replayer/go.mod | 3 + cmd/windows-recipe-replayer/main_windows.go | 154 ++++++++++++++++++ cmd/windows-recipe-replayer/recipe.json | 11 ++ 4 files changed, 311 insertions(+) create mode 100644 .github/workflows/windows-fixture-recipe-rdte.yml create mode 100644 cmd/windows-recipe-replayer/go.mod create mode 100644 cmd/windows-recipe-replayer/main_windows.go create mode 100644 cmd/windows-recipe-replayer/recipe.json diff --git a/.github/workflows/windows-fixture-recipe-rdte.yml b/.github/workflows/windows-fixture-recipe-rdte.yml new file mode 100644 index 00000000..065be72f --- /dev/null +++ b/.github/workflows/windows-fixture-recipe-rdte.yml @@ -0,0 +1,143 @@ +name: Declarative Windows Fixture Recipe Parity RDTE +on: + pull_request: + paths: + - '.github/workflows/windows-fixture-recipe-rdte.yml' + - 'cmd/windows-recipe-replayer/**' + - 'cmd/windows-installer-fixture/**' + - 'cmd/installer-capture/**' +permissions: + contents: read +concurrency: + group: synthetic-recipe-${{ github.event.pull_request.number }} + cancel-in-progress: true +jobs: + native-windows-reconstruction: + runs-on: windows-2025 + timeout-minutes: 15 + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + persist-credentials: false + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 + with: + go-version-file: cmd/windows-recipe-replayer/go.mod + cache: false + - name: Original installer versus independent manifest replayer + shell: pwsh + env: + GOTOOLCHAIN: local + GOPROXY: 'off' + GOSUMDB: 'off' + WINEBOT_FIXTURE_PERMIT: synthetic-ci + run: | + Push-Location cmd/windows-installer-fixture + go build -trimpath -o "$env:RUNNER_TEMP\original.exe" . + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=original_build_failed" } + Pop-Location + Push-Location cmd/windows-recipe-replayer + go build -trimpath -o "$env:RUNNER_TEMP\replay.exe" . + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=recipe_build_failed" } + Pop-Location + & "$env:RUNNER_TEMP\original.exe" install + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=original_install_failed" } + $key = 'HKCU:\Software\WineBotInstallerFixture' + $original = (Get-ItemProperty -Path $key -Name InstallState -ErrorAction Stop).InstallState + & "$env:RUNNER_TEMP\original.exe" uninstall + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=original_uninstall_failed" } + & "$env:RUNNER_TEMP\replay.exe" install + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=recipe_install_failed" } + & "$env:RUNNER_TEMP\replay.exe" verify + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=recipe_verify_failed" } + $actual = (Get-ItemProperty -Path $key -Name InstallState -ErrorAction Stop).InstallState + if ($actual -ne $original) { throw "RECIPE_RDTE stage=native_registry_mismatch" } + & "$env:RUNNER_TEMP\replay.exe" install *> $null + if ($LASTEXITCODE -eq 0) { throw "RECIPE_RDTE stage=duplicate_install_accepted" } + & "$env:RUNNER_TEMP\replay.exe" uninstall + if ($LASTEXITCODE -ne 0) { throw "RECIPE_RDTE stage=recipe_uninstall_failed" } + $proof = Join-Path $env:APPDATA 'WineBotInstallerFixture\installed.txt' + if ((Test-Path $key) -or (Test-Path $proof)) { throw "RECIPE_RDTE stage=residual_state" } + 'RECIPE_RDTE stage=native_recipe_parity_pass' + + wine-registry-file-reconstruction: + runs-on: ubuntu-24.04 + timeout-minutes: 30 + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + with: + persist-credentials: false + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 + with: + go-version-file: cmd/installer-capture/go.mod + cache: false + - name: Install distribution Wine for rights-cleared fixture only + run: | + sudo apt-get update -qq + sudo apt-get install -y --no-install-recommends wine wine64 xvfb xauth + - name: Execute original installer, replay separate recipe, compare Wine postconditions + shell: bash + env: + GOTOOLCHAIN: local + GOPROXY: 'off' + GOSUMDB: 'off' + WINEBOT_FIXTURE_PERMIT: synthetic-ci + WINEDEBUG: '-all' + WINEARCH: win64 + WINEDLLOVERRIDES: 'mscoree,mshtml=' + run: | + set -euo pipefail + work="$(mktemp -d)" + trap 'rm -rf "$work"' EXIT + export WINEPREFIX="$work/prefix" WORK="$work" + mkdir -p "$WINEPREFIX" + (cd cmd/windows-installer-fixture && GOOS=windows GOARCH=amd64 go build -trimpath -o "$work/original.exe" .) + (cd cmd/windows-recipe-replayer && GOOS=windows GOARCH=amd64 go build -trimpath -o "$work/replay.exe" .) + (cd cmd/installer-capture && go build -trimpath -o "$work/capture" .) + xvfb-run -a /bin/bash -euo pipefail -c ' + timeout 180 wineboot -u >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + cp "$WINEPREFIX/user.reg" "$WORK/base.reg" + timeout 120 wine "$WORK/original.exe" install >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + cp "$WINEPREFIX/user.reg" "$WORK/original-after.reg" + "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/original-files.json" || exit 31 + timeout 120 wine "$WORK/original.exe" uninstall >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + cp "$WINEPREFIX/user.reg" "$WORK/after-remove.reg" + timeout 120 wine "$WORK/replay.exe" install >/dev/null 2>&1 + timeout 120 wine "$WORK/replay.exe" verify >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + cp "$WINEPREFIX/user.reg" "$WORK/replay-after.reg" + "$WORK/capture" snapshot -root "$WINEPREFIX" -out "$WORK/replay-files.json" || exit 32 + timeout 120 wine "$WORK/replay.exe" uninstall >/dev/null 2>&1 + wineserver -k >/dev/null 2>&1 || true + cp "$WINEPREFIX/user.reg" "$WORK/replay-removed.reg" + ' || { echo 'RECIPE_RDTE stage=wine_run_failed'; exit 1; } + "$work/capture" regdiff -before "$work/base.reg" -after "$work/original-after.reg" -out "$work/original-delta.json" || + { echo 'RECIPE_RDTE stage=original_regdiff_failed'; exit 1; } + "$work/capture" regdiff -before "$work/after-remove.reg" -after "$work/replay-after.reg" -out "$work/replay-delta.json" || + { echo 'RECIPE_RDTE stage=replay_regdiff_failed'; exit 1; } + "$work/capture" regdiff -before "$work/replay-after.reg" -after "$work/replay-removed.reg" -out "$work/removed-delta.json" || + { echo 'RECIPE_RDTE stage=cleanup_regdiff_failed'; exit 1; } + python3 - "$work/original-files.json" "$work/replay-files.json" "$work/original-delta.json" "$work/replay-delta.json" "$work/removed-delta.json" <<'PY' + import hashlib, json, sys + def load(i): + with open(sys.argv[i], encoding="utf-8") as f: return json.load(f) + expected = hashlib.sha256(b"synthetic-v1\n").hexdigest() + def proof(i): + rows = [e for e in load(i)["entries"] if e["path"].endswith("WineBotInstallerFixture/installed.txt")] + assert len(rows) == 1 and rows[0]["sha256"] == expected, "RECIPE_RDTE stage=file_postcondition_invalid" + return (rows[0]["kind"],rows[0]["size"],rows[0]["sha256"]) + assert proof(1) == proof(2), "RECIPE_RDTE stage=file_parity_failed" + def value(i,op): + rows = [c for c in load(i)["changes"] if "WineBotInstallerFixture" in c["key"] + and c.get("name", "") == "InstallState" and c["operation"] == op] + assert len(rows) == 1, "RECIPE_RDTE stage=registry_delta_missing" + return rows[0] + original = value(3,"added") + replay = value(4,"added") + assert original["after"]["type"] == replay["after"]["type"] + assert original["after"]["sha256"] == replay["after"]["sha256"], "RECIPE_RDTE stage=registry_parity_failed" + value(5,"removed") + PY + echo 'RECIPE_RDTE stage=wine_recipe_parity_pass' diff --git a/cmd/windows-recipe-replayer/go.mod b/cmd/windows-recipe-replayer/go.mod new file mode 100644 index 00000000..43f36fb8 --- /dev/null +++ b/cmd/windows-recipe-replayer/go.mod @@ -0,0 +1,3 @@ +module github.com/SemperSupra/WineBot/cmd/windows-recipe-replayer + +go 1.25.0 diff --git a/cmd/windows-recipe-replayer/main_windows.go b/cmd/windows-recipe-replayer/main_windows.go new file mode 100644 index 00000000..e75b90a1 --- /dev/null +++ b/cmd/windows-recipe-replayer/main_windows.go @@ -0,0 +1,154 @@ +//go:build windows + +// Independent original WinAPI recipe replay. Synthetic fixture only. +// The real installer is not imported or executed by this process. +package main + +import ( + "bytes" + "crypto/sha256" + "embed" + "encoding/binary" + "encoding/json" + "errors" + "fmt" + "io" + "os" + "path/filepath" + "strings" + "syscall" + "unicode/utf16" + "unsafe" +) + +//go:embed recipe.json +var recipeFS embed.FS + +type Recipe struct { + Schema int `json:"schema"` + ID string `json:"id"` + AppdataSubdir string `json:"appdata_subdir"` + FileName string `json:"file_name"` + FileContent string `json:"file_content"` + RegistryKey string `json:"registry_key"` + RegistryValueName string `json:"registry_value_name"` + RegistryValueType string `json:"registry_value_type"` + RegistryData string `json:"registry_data"` +} + +var ( + advapi = syscall.NewLazyDLL("advapi32.dll") + createKey = advapi.NewProc("RegCreateKeyExW") + setValue = advapi.NewProc("RegSetValueExW") + queryValue = advapi.NewProc("RegQueryValueExW") + openKey = advapi.NewProc("RegOpenKeyExW") + closeKey = advapi.NewProc("RegCloseKey") + deleteKey = advapi.NewProc("RegDeleteKeyW") +) +const hkcu = uintptr(0x80000001) +const keySetValue = uintptr(0x0002) +const keyQueryValue = uintptr(0x0001) +const regSZ = uint32(1) + +func loadRecipe() (Recipe,error) { + var r Recipe + raw,err:=recipeFS.ReadFile("recipe.json") + if err!=nil {return r,errors.New("recipe missing")} + d:=json.NewDecoder(bytes.NewReader(raw));d.DisallowUnknownFields() + if err:=d.Decode(&r);err!=nil{return r,errors.New("recipe invalid")} + if err:=d.Decode(new(any));err!=io.EOF{return r,errors.New("trailing recipe data")} + // Fail closed on any different path, key or operation: this is not a + // general-purpose recipe runner and cannot touch an arbitrary prefix. + if r.Schema!=1 || r.ID!="winebot.synthetic.winapi.fixture" || + r.AppdataSubdir!="WineBotInstallerFixture" || r.FileName!="installed.txt" || + r.FileContent!="synthetic-v1\n" || + r.RegistryKey!=`Software\WineBotInstallerFixture` || + r.RegistryValueName!="InstallState" || r.RegistryValueType!="REG_SZ" || + r.RegistryData!="synthetic-v1" {return r,errors.New("recipe not allowlisted")} + return r,nil +} +func fixturePath(r Recipe)(string,string,error){ + dir:=os.Getenv("APPDATA") + if dir==""{return "","",errors.New("APPDATA unavailable")} + out:=filepath.Join(dir,r.AppdataSubdir) + return out,filepath.Join(out,r.FileName),nil +} +func utf16Pointer(s string)(*uint16,error){return syscall.UTF16PtrFromString(s)} +func regWrite(r Recipe)error{ + key,err:=utf16Pointer(r.RegistryKey);if err!=nil{return err} + name,err:=utf16Pointer(r.RegistryValueName);if err!=nil{return err} + val,err:=syscall.UTF16FromString(r.RegistryData);if err!=nil{return err} + var handle uintptr + result,_,_:=createKey.Call(hkcu,uintptr(unsafe.Pointer(key)),0,0,0,keySetValue,0,uintptr(unsafe.Pointer(&handle)),0) + if result!=0{return errors.New("registry key create failed")} + defer closeKey.Call(handle) + result,_,_=setValue.Call(handle,uintptr(unsafe.Pointer(name)),0,uintptr(regSZ),uintptr(unsafe.Pointer(&val[0])),uintptr(len(val)*2)) + if result!=0{return errors.New("registry value write failed")} + return nil +} +func regRead(r Recipe)(string,error){ + key,err:=utf16Pointer(r.RegistryKey);if err!=nil{return "",err} + name,err:=utf16Pointer(r.RegistryValueName);if err!=nil{return "",err} + var handle uintptr + result,_,_:=openKey.Call(hkcu,uintptr(unsafe.Pointer(key)),0,keyQueryValue,uintptr(unsafe.Pointer(&handle))) + if result!=0{return "",errors.New("registry key unavailable")} + defer closeKey.Call(handle) + var kind uint32; var length uint32 + result,_,_=queryValue.Call(handle,uintptr(unsafe.Pointer(name)),0,uintptr(unsafe.Pointer(&kind)),0,uintptr(unsafe.Pointer(&length))) + if result!=0 || kind!=regSZ || length<2 || length>4096 || length%2!=0{return "",errors.New("registry type/length mismatch")} + data:=make([]byte,length) + result,_,_=queryValue.Call(handle,uintptr(unsafe.Pointer(name)),0,uintptr(unsafe.Pointer(&kind)),uintptr(unsafe.Pointer(&data[0])),uintptr(unsafe.Pointer(&length))) + if result!=0 || kind!=regSZ || length%2!=0 || length>uint32(len(data)){return "",errors.New("registry query failed")} + chars:=make([]uint16,length/2) + for i:=range chars{chars[i]=binary.LittleEndian.Uint16(data[i*2:])} + if len(chars)==0 || chars[len(chars)-1]!=0{return "",errors.New("unterminated registry string")} + return string(utf16.Decode(chars[:len(chars)-1])),nil +} +func verify(r Recipe)error{ + _,f,err:=fixturePath(r);if err!=nil{return err} + info,err:=os.Lstat(f) + if err!=nil || !info.Mode().IsRegular(){return errors.New("fixture file invalid")} + got,err:=os.ReadFile(f);if err!=nil{return err} + expected:=sha256.Sum256([]byte(r.FileContent));actual:=sha256.Sum256(got) + if actual!=expected{return errors.New("fixture file digest mismatch")} + value,err:=regRead(r);if err!=nil{return err} + if value!=r.RegistryData{return errors.New("registry value mismatch")} + return nil +} +func install(r Recipe)error{ + dir,f,err:=fixturePath(r);if err!=nil{return err} + if _,err:=os.Lstat(dir);err==nil{return errors.New("fixture directory exists")} + if _,err:=regRead(r);err==nil{return errors.New("fixture registry value exists")} + if err:=os.Mkdir(dir,0700);err!=nil{return errors.New("cannot create fixture directory")} + if err:=os.WriteFile(f,[]byte(r.FileContent),0600);err!=nil{return errors.New("fixture file write failed")} + if err:=regWrite(r);err!=nil{return err} + return verify(r) +} +func uninstall(r Recipe)error{ + dir,f,err:=fixturePath(r);if err!=nil{return err} + if err:=verify(r);err!=nil{return err} + items,err:=os.ReadDir(dir) + if err!=nil || len(items)!=1 || items[0].Name()!=r.FileName || !items[0].Type().IsRegular(){return errors.New("unexpected fixture contents")} + key,err:=utf16Pointer(r.RegistryKey);if err!=nil{return err} + result,_,_:=deleteKey.Call(hkcu,uintptr(unsafe.Pointer(key))) + if result!=0{return errors.New("registry delete failed")} + if err:=os.Remove(f);err!=nil{return errors.New("file delete failed")} + if err:=os.Remove(dir);err!=nil{return errors.New("directory delete failed")} + return nil +} +func main(){ + if os.Getenv("WINEBOT_FIXTURE_PERMIT")!="synthetic-ci" || len(os.Args)!=2{ + fmt.Fprintln(os.Stderr,"RECIPE_REPLAY stage=not_authorized");os.Exit(2) + } + r,err:=loadRecipe() + if err!=nil{fmt.Fprintln(os.Stderr,"RECIPE_REPLAY stage=invalid_recipe");os.Exit(1)} + var stage string + switch strings.ToLower(os.Args[1]){ + case "install":stage="installed";err=install(r) + case "verify":stage="verified";err=verify(r) + case "uninstall":stage="uninstalled";err=uninstall(r) + default:stage="invalid";err=errors.New("invalid operation") + } + if err!=nil{fmt.Fprintln(os.Stderr,"RECIPE_REPLAY stage=failed");os.Exit(1)} + fmt.Printf("RECIPE_REPLAY stage=%s\n",stage) +} diff --git a/cmd/windows-recipe-replayer/recipe.json b/cmd/windows-recipe-replayer/recipe.json new file mode 100644 index 00000000..64528c1f --- /dev/null +++ b/cmd/windows-recipe-replayer/recipe.json @@ -0,0 +1,11 @@ +{ + "schema": 1, + "id": "winebot.synthetic.winapi.fixture", + "appdata_subdir": "WineBotInstallerFixture", + "file_name": "installed.txt", + "file_content": "synthetic-v1\n", + "registry_key": "Software\\WineBotInstallerFixture", + "registry_value_name": "InstallState", + "registry_value_type": "REG_SZ", + "registry_data": "synthetic-v1" +} From 7da671f946c0a801f6090e152fd137a9e2726b4b Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:08:00 +0100 Subject: [PATCH 41/87] docs(rdte): scope independent allowlisted WinAPI recipe reconstruction and acceptance gates --- cmd/windows-recipe-replayer/README.md | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 cmd/windows-recipe-replayer/README.md diff --git a/cmd/windows-recipe-replayer/README.md b/cmd/windows-recipe-replayer/README.md new file mode 100644 index 00000000..8096262d --- /dev/null +++ b/cmd/windows-recipe-replayer/README.md @@ -0,0 +1,33 @@ +# WineBot synthetic declarative recipe RDTE + +This is an **independent source implementation** of the tiny rights-cleared +Windows API fixture. It is designed to prove the possibility of replacing an +installer with a versioned, inspectable recipe, not to replace general-purpose +Windows installers or become a production package manager. + +- `recipe.json` names exactly one synthetic fixture, a relative `%APPDATA%` + file and a single HKCU REG_SZ value, plus their expected literal contents. +- `main_windows.go` parses the JSON, rejects additional/unrecognized fields, + validates every value against a fixed fixture allowlist, and directly invokes + WinAPI file and registry functions. It **does not call** the original + installer. A synthetic-CI-only environment gate prevents casual execution. +- `install` refuses an existing fixture directory or registry value; + `verify` checks file SHA-256 and typed registry contents; + `uninstall` refuses unexpected files and removes only its own fixture. + This is not transactional and does not yet handle installer dependencies, + scheduled reboot actions, privileges, services, DLL registration or rollback + after partial failure. +- `.github/workflows/windows-fixture-recipe-rdte.yml` compares the original + fixture and this recipe replayer on **native Windows** and on an **isolated + distribution-Wine public runner** using the existing WineBot file snapshot + and native-Wine-registry semantic delta tooling. No user prefixes, binaries, + registry contents or other artifacts are uploaded. + +The CI result must be tied to an exact source SHA. Only a successful terminal +Windows and Wine result warrants a **bounded synthetic reconstruction** claim. +Distro Wine is not the pinned Wine11 layered runtime. A general reusable +recipe engine, installer dependency graph, side-effect/event capture, +production restore, digital-signature verification and real application/game +compatibility qualification remain separate development and security gates. + +Do not run this fixture on actual user hardware or profiles. From 8d5ff84756b88de59f6941e3cc4d35fc7ca5a7ac Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:18:35 +0100 Subject: [PATCH 42/87] docs(rdte): reconcile R029 exact-head qualification and hardware holds --- .../2026-11-autonomous-rdte-hardware-gates.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 94f76c78..04ccf7bc 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -180,3 +180,16 @@ Next wake: retrieve terminal fault, conformance and installer CI results; correc **Remaining hardware holds:** actual Wine11 layered deployment of approved applications/games, recipe compiler and rollback on the target runtime, state-consistent production backup encryption/retention/disaster recovery, human/automation/agent shared ownership and assistive technology acceptance, privacy and security review, pinned distributable image digests, and hardware-specific graphics/input/audio qualification. All pre-hardware acceptance gates remain held in aggregate. **`NOT_READY_FOR_HARDWARE_TEST`**. **Next autonomous source-bound actions:** receive terminal #154 latest long composite; reconcile one-file child #156 into draft owner without merging it into main or adding ephemeral branch-only admission to production code; qualify real app postconditions under *actual pinned layered Wine 11*, compare isolated frozen-contract integrated source with security owner, then advance agent/human/a11y and backup/restore. Reconcile resolved child branch/PR once incorporated; preserve accepted evidence and do not claim actual-user backup proof from synthetic fixtures. + + +## R029 source-exact CI reconciliation — 2026-11-16 + +- Accepted main: `f5ba0256f330958dcf35710a822508cdb31fc40b` (source-exact comparison); independent draft branches remain unmerged. +- PR #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`: full public CI [43800228689](https://github.com/SemperSupra/WineBot/actions/runs/43800228689) PASS, including frozen conformance. No cross-branch acceptance inference. +- PR #154 `474b603b2471f0334c4de15fd77317a7f2b8e070`: layered Wine 11 composite [43837574516](https://github.com/SemperSupra/WineBot/actions/runs/43837574516) PASS; disposable-layer contract [43837574808](https://github.com/SemperSupra/WineBot/actions/runs/43837574808) PASS; full CI [43837574794](https://github.com/SemperSupra/WineBot/actions/runs/43837574794) FAIL at first failing step **Run conformance tests**, while preflight and integration smoke PASS. +- PR #150 `8c5ed8019a3518cf534b158662755172bfce7c59`: standalone REL [43799408806](https://github.com/SemperSupra/WineBot/actions/runs/43799408806) PASS, full CI [43799408893](https://github.com/SemperSupra/WineBot/actions/runs/43799408893) FAIL. Standalone Wine 11 is not integrated acceptance. +- PR #155 `47cf4dbdd9074d40658c96572f9a062ed115a82f`: installer capture [43840589740](https://github.com/SemperSupra/WineBot/actions/runs/43840589740) PASS and Windows fixture parity [43840589502](https://github.com/SemperSupra/WineBot/actions/runs/43840589502) PASS; full CI [43840589649](https://github.com/SemperSupra/WineBot/actions/runs/43840589649) FAIL at first failing step **Run conformance tests**, while preflight and smoke PASS. Fixture parity is not proof of real installer reconstruction. + +Independent READY workcells: (1) compare exact failing frozen-contract assertions against #123 and apply only verified corrections without changing frozen expectations; (2) requalify an integrated layered Wine11 candidate on public Actions, including startup, SIGKILL recovery, state and immutable-app boundaries; (3) independently test real rights-cleared Windows application/game and installer replay/rollback; (4) validate accessible human/automation/agent control handoff, trusted backup/restore, security/provenance and publication custody. Reconcile evidence per PR and do not conflate independently passing heads. + +**Pre-hardware checklist remains UNCHECKED. NOT_READY_FOR_HARDWARE_TEST.** No release candidate digests, merges, private/paid runner minutes, hardware actions, security hold bypasses or promotion. From 96cedc8975a14af7e42f17363ae3701a398dd266 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:35:34 +0100 Subject: [PATCH 43/87] docs(mvp): adopt executable IC1 critical-path plan with public free-tier workcells and gates --- .../2026-11-mvp-ic1-zero-cost-execution.md | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md diff --git a/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md new file mode 100644 index 00000000..1dd2c38e --- /dev/null +++ b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md @@ -0,0 +1,84 @@ +# WineBot MVP-IC1 — zero-cost public-cloud executable delivery plan + +**Owner intent:** narrow the existing WineBot effort to the shortest path to one usable, reproducible MVP, retaining the three-layer disposable runtime, lawful Windows application/game workloads, shared human/automation/agent control, persistent user state, and accessible user experience. Do **not** expand the MVP to universal installer reconstruction, advanced Ghidra/SMAC instrumentation, GPU parity, or autonomous Wine patch development. + +**Status:** OWNER-APPROVED PRIORITIZATION / PLANNED EXECUTION; not a release decision. **Hardware:** `NOT_READY_FOR_HARDWARE_TEST`. **DLE:** Durable / Legible / Executable. This file describes actions, not proof that those actions have happened. + +**Cold-start authority at plan creation (2026-11-17):** accepted `SemperSupra/WineBot@main f5ba0256f330958dcf35710a822508cdb31fc40b`; draft #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`, #154 `913f08b517a580484c7b1a55ced0c17e98e92c1b`, #155 `8d5ff84756b88de59f6941e3cc4d35fc7ca5a7ac`. Another actor may update heads; reread live refs and workflows before each write. Independent source-exact proofs already exist; **none of these draft components is merged into main**. + +## Mission and minimum acceptance contract + +An agent or a human can reproducibly create a disposable Wine11 WineBot session from pinned images; acquire and exercise exclusive input; install or provision one rights-cleared genuine Windows GUI application and one genuine Windows game; see meaningful observable results; save and recover user state across disposable-runtime replacement; and reproduce deployment, recovery and known failures using safe, source-bound evidence. + +Every MVP acceptance claim must name the **same integration commit**, the runtime/app image *digests* or local no-publication content IDs, source/fixture hashes, GitHub run/job IDs, test stages, evidence type and security disposition. Never combine independently green PR runs into a synthetic release PASS. No frozen contract waiver. No scope expansion because a new reverse-engineering capability becomes interesting. + +The minimum acceptance suite, `mvp-ic1`, must test on an integration commit: +- full required CI lint, real startup and **pinned frozen-v1** API conformance; +- immutable runtime/application boundaries; state/app initialization; 55-minute layered trace/resource/health soak; SIGKILL/Openbox fault recovery and runtime destroy/recreate without deleting named volumes; +- one real rights-cleared Windows GUI application and one Windows game: exact upstream acquisition/hash/license, startup, deterministic input action, visible/semantic effect, save/reopen/persistence and no artifact leak; note CPU software-rendering limits and unqualified GPU features; +- human, automation and agent as distinct consumers: same-session read-only observation, one active writer, reject unauthorized/conflicting commands, bounded human takeover, clean release and keyboard-only/focus/accessible Web UI automation. Manual real screen-reader/device checks are explicitly **hardware gates**, not fabricated public-GHA passes; +- app setup/restore and versioned payload/recipe proof, backup/restore of a *Wine-generated disposable prefix* (not merely the already-passed synthetic six-volume fixture), fail-closed corrupt archive and rollback for a failed migration; +- clean source provenance, no private artifacts or raw logs uploaded, source license/privacy review, dependency/security scans, deployment/start/teardown runbook, image hashes and rollback manifest. + +## Exactly free cloud venues and custody policy + +1. **Primary execution: public GitHub standard hosted GHA** `ubuntu-24.04` / `windows-2025`, with isolated jobs and `contents: read` by default; pinned action SHAs, pinned upstream fixture hashes, short step budgets and `timeout-minutes`. Standard public runners are free; **larger runners and private-repository jobs are excluded**. Expected public runner resources are 4 vCPU / 16 GB RAM / 14 GB disk; avoid large game packs, GPU-dependent jobs, OS snapshot uploads and self-hosted/paid resources. +2. Build + run locally **inside ephemeral GHA runner containers**. Use local Docker images/Compose for all work prior to publication review. Native Windows hosted runner is an *independent Windows reference oracle*, not the remote deployment host. CPU rendering: Xvfb + explicit Mesa LLVMpipe/Lavapipe; no hardware GPU claims. +3. Cache only public licensed dependencies after source/hash checks. Prefer per-run recomputation or validated public caches when small; do not put private prefixes, installed game assets, identifiers, screenshots or raw traces into GitHub cache, Actions artifacts or public GHCR. +4. **Only after security/publication approval**, public GHCR may carry approved, redistribution-permitted OCI runtime and application images by immutable digest. Until then image publication is **DENIED**; use job-local content-addressed images. GHCR current public-container storage/bandwidth policy must be rechecked before promotion. Never publish a Wine prefix containing secrets or personal state. +5. Existing free-tier external VPS infrastructure is **optional and not a prerequisite**. Do not rely on unverified Oracle/other free VM capacity, private credentials, tunnels, free LLM model quotas, or user hardware to claim cloud acceptance. Hosted GHA runners are ephemeral and **cannot be treated as a persistent interactive 24/7 service**. A continuously hosted interactive offering requires a separately authorized and verified always-free host or later local/hardware deployment. The cloud-only outcome is a tested deployable bundle plus temporary acceptance instances, not a falsely claimed hosted product. +6. No private GHA minutes, paid GPU, paid API calls, unpinned proprietary downloads, secret-bearing public issues, uncontrolled upload, unattended external side effects or private machine identifiers. Any violation is a release-blocking failure, not an exception. + +## Parallel execution workcells + +| Cell | Owner/source | Apply (work) | Verify (exit evidence) | Dependency | +| --- | --- | --- | --- | --- | +| **A — IC1 integrator / top priority** | New **dedicated draft candidate** from exact #154 head, do not mutate main or the running long-soak branch; use independently qualified #150 and #123 SHAs | Create fail-closed bounded cherry-pick/merge plan; union conflicting test manifests without omissions; fold only the minimum #155 installer tooling needed; fix source-only Ruff import order at `scripts/ci/resolve-conformance-units.py` first; keep commit ancestry and exact fixture pins; design minimal build/test/release manifest | Entire ordinary CI GREEN on same commit, pinned frozen-v1 GREEN, regression focused GREEN; no waiver and no unknown merge conflicts | Highest-priority, serial integration of dependencies, runs parallel to B/C/D fixture preparation | +| **B — real GUI and game** | New focused PR based on a pin of IC1 candidate, reuse prior #133 OpenTTD and bounded GUI app evidence without inheriting their old RDTE-only branches | Choose one small rights-cleared Windows **GUI app** (e.g. upstream signed/hashed Notepad++ portable or another license-cleared fixture) and **OpenTTD Windows** game with redistributable graphics; inspect licenses and artifacts, pin exact SHA and versions; boot under **same layered Wine11+Xvfb**; scripted input through WineBot broker, WinInspect observation, deterministic content/save/relaunch; force runtime replacement and confirm save | Stage-gated public replay: acquisition hash → app-layer seed → executable launch → real input → program-specific effect → persistent save/reopen. No mere “visible window=PASS” | Candidate runtime API and writable application state | +| **C — input / 3-audience / accessibility** | Independent branch and existing broker/UI owner | Enforce exactly one writer lease, authenticated audit trail, observer read-only semantics, takeover priority for human, stale lease expiry and emergency stop. Add both API race tests and real UI-driven synthetic task with two competing clients; use browser accessibility audit, keyboard-only focus order and no inaccessible takeover path | Deterministic no-double-writer, blocked nonowner effects, human emergency takeover, focus/readability/a11y automated gates on public runner; reserve real assistive device/screen reader manual qualification for hardware gate | API model established; independent test design in parallel with A/B | +| **D — installer + real-prefix recovery + release evidence** | Narrow selected #155 components, existing #154 state/recovery owner | Run the already qualified synthetic independent WinAPI recipe on the **exact layered Wine11 candidate**; compare genuine Windows PE original vs independent recipe, one clean prefix and recovered prefix; quiesce via wineserver, take six-volume backup, verify hash/tamper, restore into fresh state volumes, test failed app update rollback and idempotency. Add SBOM/license scan, provenance ledger, digest manifest and guarded cleanup | Windows/Wine11 file/registry/postconditions match on exact runtime; meaningful Wine prefix opens after restore; no destructive mount or owner change; public-safe acceptance manifest and rollback recipe | Selected candidate/image, approved fixture and security review for anything publishable | + +**Independent tasks:** acquisition/legal fixture matrix; broker negative tests; backup/tamper oracle; static security/provenance; contract conflict resolution. **Serial dependencies:** source-integrated candidate → full CI → real workload + control/recovery convergence → frozen commit/digests → whole-system acceptance → security admission → preview or release decision. + +## Test/run topology and work batching + +- Run static Go/Python/shell source tests and broker concurrency first, usually as 5–15-minute bounded standard runners; use matrix axes for independently fail-able fixtures, not sequential per-file commits. +- Run real GUI/game/Windows native parity in independent 15–45-minute bounded public standard jobs; initialize one new ephemeral prefix per matrix cell, not the user's existing prefix. Default no network during executable runtime; allow temporary network only to fetch pinned public source/artifacts before isolation. +- Only after source+unit+workload checks on exact candidate SHA are green, run one expensive **55-minute** layered-soak/fault test; do **not** restart this test on documentation-only changes. Use workflow path restrictions, actor-safe concurrency keys, `cancel-in-progress` for superseded short runs, but do not cancel a still-relevant exact-source expensive run merely to edit DLE metadata. +- Emit fixed-category stage verdicts, integer counts and hashes only; raw screenshots/registry contents/trace/host identity and tokens remain runner-local; verify zero unapproved artifacts. Publish no registry secrets. +- For each workcell use Discover → Observe → Plan → Apply → Verify. CI first-failure must be classified (source/test/env/dependency/runtime/product/security); a different unrelated PR's PASS cannot unblock a failing current head. +- Keep **one** active candidate integration branch plus focused experimental PRs. When a child is proven and integrated into its owning draft, close it with a receipt; avoid proliferation of unresolved PRs and worktrees. Preserve independent security and owner-promotion holds. + +## Minimal release gates + +| Gate | Required before moving forward | +| --- | --- | +| **G0 — source authority** | Pin main + owners, first failures, frozen contracts; PR/DLE status current; disclose only public-safe details | +| **G1 — candidate builds** | One composite head compiles, lint/unit/CI/conformance pass, immutable runtime/app state verified; all known source errors fixed | +| **G2 — real product tasks** | Real Windows GUI app + game pass input/action/output/save/relaunch on **same exact candidate**; repeatability and precise failure taxonomies | +| **G3 — safe operation** | Three-audience leases/takeover/a11y automated tests, nonroot persisted state restoration, corrupted-backup rejection, installer replay and rollback | +| **G4 — distributable candidate** | Fully pinned build/image hash manifest, SBOM/license/security review and clean install/upgrade/rollback docs; release authority explicitly granted; no secret/publication incidents | +| **G5 — hardware-admission** | Existing roadmap's complete pre-hardware checklist with exact proof, expected GPU/input/audio/display/assistive-device matrix and rollback instructions. Mark `READY_FOR_HARDWARE_TEST` only when every G0–G5 prerequisite is met; **not** a release decision | +| **G6 — MVP release** | Human-approved tagged immutable release, repeatable clean deployment, product security/privacy checks, supported workload declarations, rollback and operational O&M. Manual device/hardware testing cannot be claimed under cloud-only execution | + +Developer preview is a *separate*, explicitly labeled milestone after G1/G2 and reviewed distribution constraints; it is never silently treated as a supported MVP release. A fail at G0–G4 means no tag/push or `READY_FOR_RELEASE`. + +## Roadmap reprioritization and exclusions + +**70% engineering attention:** A+B+C together, measured by closure of integrated acceptance gates, not repeated synthetic fixtures. **20%:** D reliability, security and release docs. **10%:** research such as Freeciv/Ghidra, generic reversing, novel critics, universal installer synthesis, model benchmarking, GPU optimization, additional engines. These RDTE PRs may proceed in isolated public free-tier jobs without modifying the IC1 candidate or stealing its long-build acceptance venue. + +Do not block IC1 on general-purpose MSI/EXE reconstitution, perfect graphics, CV model training, hardware FPS or all Windows application compatibility. One explicitly supported application and game with rigorous input/output/postconditions is sufficient to establish a narrow MVP envelope. + +## DLE receipt schema and actionable follow-through + +For each merged/closed/held workcell write: +`{owner, source_sha, base_sha, workflow_run_id, job_id, test/fixture_sha, environment, result(PASS|FAIL|UNQUALIFIED), first_failure, evidence_class, public_custody_check, next_READY, blocker, PR/issue_disposition}`. + +First independent READY actions: +1. **A:** lint-only fix in a bounded candidate, pinned source merge from #154 and #123; do not edit their existing held branches. Fail closed for unexpected conflicts. +2. **B:** build a low-disk, verified rights-cleared Windows GUI + OpenTTD fixture matrix on new disposable standard Ubuntu runners; program postconditions, not just windows. +3. **C:** broker takeover/concurrent observers/keyboard UI race test against frozen API. +4. **D:** rerun verified original-vs-declarative fixture under exact layered Wine11, plus quiesced Wine-created state backup/restore and tamper/rollback. +5. **Acceptance:** freeze integration SHA after source tests, run full suite, 55m soak and release/publication guards; report pass/fail per gate and keep release blocked until verified. + +Authority remains owning Git/DLE and live CI—not this plan's historical SHAs. No background tasks promised without an existing enabled scheduler/explicit workflow execution; all published claims must be actual terminal results. From 9deed096eea97180719c2a502ef31196b823a8db Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:08:15 +0100 Subject: [PATCH 44/87] docs(mvp): reconcile R035 integrated candidate and parallel public-runner acceptance evidence --- .../2026-11-mvp-ic1-zero-cost-execution.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md index 1dd2c38e..7664a76c 100644 --- a/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md +++ b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md @@ -82,3 +82,18 @@ First independent READY actions: 5. **Acceptance:** freeze integration SHA after source tests, run full suite, 55m soak and release/publication guards; report pass/fail per gate and keep release blocked until verified. Authority remains owning Git/DLE and live CI—not this plan's historical SHAs. No background tasks promised without an existing enabled scheduler/explicit workflow execution; all published claims must be actual terminal results. + +## R035 executable candidate acceptance and independent batches — 2026-11-17 + +The plan above has moved into **actual execution**. Current exact Git heads and run IDs below are receipts, not estimates. This file is coordination on draft #155; **protected main remains unchanged**. + +| Cell | Source exact | Observed qualification | Hold | +| --- | --- | --- | --- | +| **A integrator** | [draft #158](https://github.com/SemperSupra/WineBot/pull/158), `cff1ff7429fbbd6f604100061e03e3b2ccec8e1e`; actual two-parent source merge of #154 + #123 | [Full CI #44107081794](https://github.com/SemperSupra/WineBot/actions/runs/44107081794) **PASS** including lint, unit, frozen-v1 conformance and smoke. Other source/privacy and synthetic recovery guards PASS. | [55-minute layered exact-head composite #44107081011](https://github.com/SemperSupra/WineBot/actions/runs/44107081011) **IN PROGRESS** at evidence capture; no production/security promotion | +| **B rights-cleared GUI/game** | [draft #160](https://github.com/SemperSupra/WineBot/pull/160), first head `73e75e40df6aeb71b59e33e3e6ef4bccb606a4ee`; corrected `d47799a3d6e37c94f1796f45192f281765cb6577` | [First GHA #44108798235](https://github.com/SemperSupra/WineBot/actions/runs/44108798235) FAIL **at editor_gui_save**, after official Notepad++/OpenTTD/OpenGFX acquisition hashes and actual layered Wine11 health PASS. Updated Notepad++ writable config via documented `-settingsDir`, zero raw disclosure classifier. | [New exact-head #44110637470](https://github.com/SemperSupra/WineBot/actions/runs/44110637470) **IN PROGRESS**; no acceptance of editor save, game save or broker-mediated input | +| **C shared input safety** | [draft #159](https://github.com/SemperSupra/WineBot/pull/159), `5a37f9b0a947846b334663dece8fd4217b51b690` | [Full CI #44107631258](https://github.com/SemperSupra/WineBot/actions/runs/44107631258) **PASS**, focused safety tests PASS: stop priority, no second grant of active lease, deny expired renewal | Distinct authenticated agent identity, real independent human ack, broker-mediated GUI and accessible shared UI still **UNQUALIFIED** | +| **D actual prefix recovery** | [draft #161](https://github.com/SemperSupra/WineBot/pull/161), `a886ddef5e39e7e5d0fc9a05c0901f9b08d7b50d` | [Public real distro-Wine prefix #44109424752](https://github.com/SemperSupra/WineBot/actions/runs/44109424752) **PASS**: native Wine registry and file state, quiesced archive, SHA-256 tamper negative, fresh restore and Wine readback | Exact layered Wine11 six-volume restore, nonroot archive authority, upgrade/rollback and production backup custody still **UNQUALIFIED** | + +**Reprioritized next work:** do not edit the candidate parent #158 while its exact 55m composite runs. Diagnose B first program-level save failure before broadening tests; complete C distinct-agent/human acknowledgement and UI control after all mandatory frozen contracts; port D actual prefix recovery to external volumes under the integrated Wine11 runtime; source-merge verified child changes into a **new** frozen candidate only after their complete source-bound checks and explicit security review. Keep Freeciv/reversing #157 and unrelated Ghidra/critic RDTE off the MVP critical path. + +**Release gate:** no hardware testing and no MVP release yet. No private GHA minutes, local hardware, paid models/GPU, unreviewed public GHCR images, raw prefix/screenshot uploads, or force/merge-to-main operations. DLE remains Durable / Legible / Executable. Subsequent wake MUST reread heads and terminal runs before claiming anything or writing. From 97a283421a19a2dbbd3c08d5b0f395e2c430ba7b Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:28:21 +0100 Subject: [PATCH 45/87] docs(mvp): reconcile R040 real GUI PASS, game save and Wine11 restore first failures --- docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md index 7664a76c..b7875bb9 100644 --- a/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md +++ b/docs/roadmaps/2026-11-mvp-ic1-zero-cost-execution.md @@ -97,3 +97,15 @@ The plan above has moved into **actual execution**. Current exact Git heads and **Reprioritized next work:** do not edit the candidate parent #158 while its exact 55m composite runs. Diagnose B first program-level save failure before broadening tests; complete C distinct-agent/human acknowledgement and UI control after all mandatory frozen contracts; port D actual prefix recovery to external volumes under the integrated Wine11 runtime; source-merge verified child changes into a **new** frozen candidate only after their complete source-bound checks and explicit security review. Keep Freeciv/reversing #157 and unrelated Ghidra/critic RDTE off the MVP critical path. **Release gate:** no hardware testing and no MVP release yet. No private GHA minutes, local hardware, paid models/GPU, unreviewed public GHCR images, raw prefix/screenshot uploads, or force/merge-to-main operations. DLE remains Durable / Legible / Executable. Subsequent wake MUST reread heads and terminal runs before claiming anything or writing. + +## R040 G2/G3 acceptance convergence — November 17, 2026 + +**Cold-start source custody, not a release claim.** Protected `main@f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. Candidate owner [#158](https://github.com/SemperSupra/WineBot/pull/158) source `cff1ff7429fbbd6f604100061e03e3b2ccec8e1e` has [full CI #44107081794](https://github.com/SemperSupra/WineBot/actions/runs/44107081794) **PASS** (lint/unit, frozen-v1 and integration smoke) while source-exact [55-minute Wine11 HIL #44107081011](https://github.com/SemperSupra/WineBot/actions/runs/44107081011) is **IN PROGRESS** at this checkpoint. Do not change the candidate parent during that expensive run. + +**G2 real Windows app/game workcell:** [#160](https://github.com/SemperSupra/WineBot/pull/160) source `d47799a3d6e37c94f1796f45192f281765cb6577`, [public source-exact workload #44110637470](https://github.com/SemperSupra/WineBot/actions/runs/44110637470) **PASS** (publisher SHA256 Notepad++ x64/OpenTTD x64/OpenGFX, actual Wine11 runtime, immutable separate app pack, editor GUI edit/save, seeded OpenTTD window and input, persisted editor document after runtime replacement); [full CI #44110637344](https://github.com/SemperSupra/WineBot/actions/runs/44110637344) **PASS**. Deeper source `8ac29e71218cf2a0998d528e84cf2a49f8cff805` requires actual OpenTTD console-generated **.sav**, nontrivial file size, SHA256 and OpenTTD `-q` decoder, then re-run after runtime replacement using `-g`; [public #44113670119](https://github.com/SemperSupra/WineBot/actions/runs/44113670119) **IN PROGRESS**. No broker-mediated in-game action or real game-save gate pass yet. Official OpenTTD [console guidance](https://wiki.openttd.org/en/Manual/Console) and [CLI guidance](https://wiki.openttd.org/en/Manual/Command%20line) ground the procedure; screen captures and assets remain runner-local. + +**G3 control workcell:** [#159](https://github.com/SemperSupra/WineBot/pull/159), source `5faf8df27e2500c8bf7bdb1c05353af94e061ad0` adds real FastAPI TestClient tests of authenticated `/sessions/*/control` and `/input/key` positive/negative sequences on top of the `STOP_NOW` / lease hardening already passing at its prior head. Focused [unit/startup #44113116862](https://github.com/SemperSupra/WineBot/actions/runs/44113116862) PASS; broad [CI #44113116958](https://github.com/SemperSupra/WineBot/actions/runs/44113116958) **IN PROGRESS**. Security remains unqualified for distinct agent actors, independent human confirmation, keyboard/screen-reader e2e and actual shared-session control. + +**G3 layered recovery:** [#161](https://github.com/SemperSupra/WineBot/pull/161) prior distro-Wine original prefix #44109424752 **PASS**, broad #44109424917 **PASS**. New exact-layered six-volume Wine11 workcell `dc496947e165c22380ba5d6a95ae06ec971addfc` reached real Wine11 HKCU/file state mutation and stopped at first nonroot backup `source_archive`, [public #44112415190](https://github.com/SemperSupra/WineBot/actions/runs/44112415190) **TERMINAL FAIL**. A new correction `8e804fc9d5e69665936f2de1e574d6ab3eb8ef24` classifies the failing volume and worker category using *only* an allowlist, with the raw log remaining on the disposable runner; [public exact-head #44114403085](https://github.com/SemperSupra/WineBot/actions/runs/44114403085) **IN PROGRESS**. Do not broaden privileges or attest recovery of an untested runtime. Encrypted/retained user backup and migration rollback remain separate holds. + +**Executable next decision:** wait for *actual exact-head terminal evidence*, repair B/D first measured failure without touching A, then integrate reviewed child source onto a new frozen IC1 head, test its full standard CI and long HIL one time; progress actor-separated auth, accessible human takeover, application broker input, game-specific postconditions and release security. Keep high-throughput parallel batches and close only child PRs proven incorporated, preserving source-exact receipts. No release, hardware, private minutes, image push, raw screenshots, actual-user data or force merge. **`NOT_READY_FOR_MVP_RELEASE`; `NOT_READY_FOR_HARDWARE_TEST`.** From 3f7bccd9089a098d73ebb5c6089c66c1d446c513 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 17 Nov 2026 22:17:32 +0100 Subject: [PATCH 46/87] docs(rdte): reconcile exact-source IC1 integrated CI and remaining hardware holds --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 04ccf7bc..2ed1284a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -193,3 +193,13 @@ Next wake: retrieve terminal fault, conformance and installer CI results; correc Independent READY workcells: (1) compare exact failing frozen-contract assertions against #123 and apply only verified corrections without changing frozen expectations; (2) requalify an integrated layered Wine11 candidate on public Actions, including startup, SIGKILL recovery, state and immutable-app boundaries; (3) independently test real rights-cleared Windows application/game and installer replay/rollback; (4) validate accessible human/automation/agent control handoff, trusted backup/restore, security/provenance and publication custody. Reconcile evidence per PR and do not conflate independently passing heads. **Pre-hardware checklist remains UNCHECKED. NOT_READY_FOR_HARDWARE_TEST.** No release candidate digests, merges, private/paid runner minutes, hardware actions, security hold bypasses or promotion. + + +## R030 integrated IC1 qualification evidence — 2026-11-17 + +- **Integration candidate #158**: source-exact merge commit `cff1ff7429fbbd6f604100061e03e3b2ccec8e1e`, merging qualified #154 parent `913f08b517a580484c7b1a55ced0c17e98e92c1b` and #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` in draft, without promoting main. At this SHA public full [CI 44107081794](https://github.com/SemperSupra/WineBot/actions/runs/44107081794), [layered frozen conformance 44107080945](https://github.com/SemperSupra/WineBot/actions/runs/44107080945), [Wine11 layered composite 44107081011](https://github.com/SemperSupra/WineBot/actions/runs/44107081011), [disposable layer contracts 44107081404](https://github.com/SemperSupra/WineBot/actions/runs/44107081404), and [synthetic external-state backup/restore 44107080960](https://github.com/SemperSupra/WineBot/actions/runs/44107080960) are all TERMINAL SUCCESS. This resolves the previously cross-branch-only frozen-conformance integration uncertainty for **this exact source**, not for #150/#154/#155 individual draft heads or hardware. +- **Independent safety child #159** at `5a37f9b0a947846b334663dece8fd4217b51b690`: [full CI 44107631258](https://github.com/SemperSupra/WineBot/actions/runs/44107631258) PASS and [focused unit/startup 44107633530](https://github.com/SemperSupra/WineBot/actions/runs/44107633530) PASS. Single-writer lease and STOP_NOW fixes remain separately qualified; do not assume included in #158 or claim authenticated distinct-agent identities or human-origin confirmation. +- **Parallel workcells #160 and #161**: source-known actual Notepad++/OpenTTD layered workload and real Wine-generated prefix archive/restore are drafted independently. Their PR descriptions do not establish terminal exact-head acceptance; check their latest heads and public runs before integrating or claiming either gate. +- **Remaining critical pre-hardware gates**: actual Windows editor/game save and relaunch through appropriate brokered control; real layered Wine11 backup/restore with integrity/corruption refusal; verified exclusive writer/human emergency takeover and accessibility; installer reconstruction and rollback with independent postconditions; source/payload provenance, release/security custody and hardware-specific checks. No public release image digest or hardware candidate exists from this evidence. + +**Hardware-readiness checklist remains held; `NOT_READY_FOR_HARDWARE_TEST`.** No private/paid GHA, forced merge, security bypass, real hardware action or promotion. Next READY: inspect exact-head #160/#161 first failures and #159 safety acceptance, then stage reviewed integration into #158 and rerun all affected public gates. Keep previous R029 evidence as historical branch-specific results. From 1a3db886436adcf3bb7e97ee8f5c2f983c4eb4b4 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:09:06 +0100 Subject: [PATCH 47/87] docs(rdte): reconcile R031 real workload first failure and source-exact recovery evidence --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 2ed1284a..3c3afc89 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -203,3 +203,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - **Remaining critical pre-hardware gates**: actual Windows editor/game save and relaunch through appropriate brokered control; real layered Wine11 backup/restore with integrity/corruption refusal; verified exclusive writer/human emergency takeover and accessibility; installer reconstruction and rollback with independent postconditions; source/payload provenance, release/security custody and hardware-specific checks. No public release image digest or hardware candidate exists from this evidence. **Hardware-readiness checklist remains held; `NOT_READY_FOR_HARDWARE_TEST`.** No private/paid GHA, forced merge, security bypass, real hardware action or promotion. Next READY: inspect exact-head #160/#161 first failures and #159 safety acceptance, then stage reviewed integration into #158 and rerun all affected public gates. Keep previous R029 evidence as historical branch-specific results. + + +## R031 actual-workload replay corrective batch — 2026-11-18 + +- Exact accepted main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #158 integration source `cff1ff7429fbbd6f604100061e03e3b2ccec8e1e` retains previously accepted source-exact synthetic/composite qualifications, not a hardware candidate. +- #159 current head `99de3d75b527868f0b362de4bc832173b9788e9f`: full public [CI 44194594415](https://github.com/SemperSupra/WineBot/actions/runs/44194594415) and [layer contracts 44194594525](https://github.com/SemperSupra/WineBot/actions/runs/44194594525) TERMINAL SUCCESS, separately from #158. +- #161 current head `b48b5b43e9108464d1b6f97b06fb4d0f527ba67e`: [real Wine prefix RDTE 44193589007](https://github.com/SemperSupra/WineBot/actions/runs/44193589007), [layered Wine11 six-volume recovery 44193588999](https://github.com/SemperSupra/WineBot/actions/runs/44193588999), and [full CI 44193588951](https://github.com/SemperSupra/WineBot/actions/runs/44193588951) TERMINAL SUCCESS. These remain branch-specific; not production backup, security or release acceptance. +- #160 source `f9983e343ef7159ad518b45e3daf0e5179c05653`: [full CI 44196284388](https://github.com/SemperSupra/WineBot/actions/runs/44196284388) PASS but [actual workload 44196284413](https://github.com/SemperSupra/WineBot/actions/runs/44196284413) FAIL. First failing step: `Run disposable app and game within exact layered Wine11`; logs show `wine11_layered_ready`, `real_windows_editor_gui_save`, `windows_game_save_validated`, `workload_state_replay`, then exit 1. Code inspection found `$config` referenced before initialization inside the fresh post-recreate shell when decoding the saved game. Fixed initialization order in #160 commit `1a31e2d46c36c704ca41d91aa6b71cb3bf6e893d`. **No terminal rerun acceptance at this checkpoint**; inspect exact-head public Actions and first failure next wake. +- Preserve independent PR ownership, no production merge, no public secrets, no private/paid Actions minutes, no physical hardware. **All pre-hardware checklist gates remain held; NOT_READY_FOR_HARDWARE_TEST.** Next READY: terminal-check #160 corrected head; if passing, stage controlled integration of #159/#160/#161 with #158 and rerun all impacted frozen, layered, real-workload, control, backup and security gates. Installer recipe reconstruction, independent rollback, authenticated multi-actor takeover, accessibility and publication custody still require qualification. From 47944f7947ede28419c411234f631ceeb800d70c Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Wed, 18 Nov 2026 16:25:14 +0100 Subject: [PATCH 48/87] docs(rdte): reconcile R032 integrated real-workload evidence and remaining gates --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 3c3afc89..3e08bf0a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -212,3 +212,13 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #161 current head `b48b5b43e9108464d1b6f97b06fb4d0f527ba67e`: [real Wine prefix RDTE 44193589007](https://github.com/SemperSupra/WineBot/actions/runs/44193589007), [layered Wine11 six-volume recovery 44193588999](https://github.com/SemperSupra/WineBot/actions/runs/44193588999), and [full CI 44193588951](https://github.com/SemperSupra/WineBot/actions/runs/44193588951) TERMINAL SUCCESS. These remain branch-specific; not production backup, security or release acceptance. - #160 source `f9983e343ef7159ad518b45e3daf0e5179c05653`: [full CI 44196284388](https://github.com/SemperSupra/WineBot/actions/runs/44196284388) PASS but [actual workload 44196284413](https://github.com/SemperSupra/WineBot/actions/runs/44196284413) FAIL. First failing step: `Run disposable app and game within exact layered Wine11`; logs show `wine11_layered_ready`, `real_windows_editor_gui_save`, `windows_game_save_validated`, `workload_state_replay`, then exit 1. Code inspection found `$config` referenced before initialization inside the fresh post-recreate shell when decoding the saved game. Fixed initialization order in #160 commit `1a31e2d46c36c704ca41d91aa6b71cb3bf6e893d`. **No terminal rerun acceptance at this checkpoint**; inspect exact-head public Actions and first failure next wake. - Preserve independent PR ownership, no production merge, no public secrets, no private/paid Actions minutes, no physical hardware. **All pre-hardware checklist gates remain held; NOT_READY_FOR_HARDWARE_TEST.** Next READY: terminal-check #160 corrected head; if passing, stage controlled integration of #159/#160/#161 with #158 and rerun all impacted frozen, layered, real-workload, control, backup and security gates. Installer recipe reconstruction, independent rollback, authenticated multi-actor takeover, accessibility and publication custody still require qualification. + + +## R032 source-exact public qualification reconciliation — 2026-11-18 + +- #158 current integration head `d5bf81b4270d11e7b45cc79767a907032229306c`: full [CI 44321596254](https://github.com/SemperSupra/WineBot/actions/runs/44321596254), [actual Windows GUI/OpenTTD 44321595431](https://github.com/SemperSupra/WineBot/actions/runs/44321595431), [frozen conformance 44321595387](https://github.com/SemperSupra/WineBot/actions/runs/44321595387), [Wine11 composite 44321595243](https://github.com/SemperSupra/WineBot/actions/runs/44321595243), [six-volume prefix recovery 44321595350](https://github.com/SemperSupra/WineBot/actions/runs/44321595350), [layer contracts 44321595226](https://github.com/SemperSupra/WineBot/actions/runs/44321595226), and [synthetic backup/restore 44321595071](https://github.com/SemperSupra/WineBot/actions/runs/44321595071) terminal PASS. Independent [real prefix restore 44321595398](https://github.com/SemperSupra/WineBot/actions/runs/44321595398) CANCELLED: do not count it as accepted at this source head. +- #160 is CLOSED at `03332cd95edf577d6b0b292ee7a345997a008bf6`, with [real workload 44318649236](https://github.com/SemperSupra/WineBot/actions/runs/44318649236) and [full CI 44318649302](https://github.com/SemperSupra/WineBot/actions/runs/44318649302) terminal PASS. #159 and #161 are CLOSED, but closed does not itself mean merged or production-qualified. +- #154 head `913f08b517a580484c7b1a55ced0c17e98e92c1b`: [integrated frozen contract 43893738333](https://github.com/SemperSupra/WineBot/actions/runs/43893738333), [composite 43893738355](https://github.com/SemperSupra/WineBot/actions/runs/43893738355), and [layer contracts 43893738351](https://github.com/SemperSupra/WineBot/actions/runs/43893738351) PASS, but [full CI 43893738366](https://github.com/SemperSupra/WineBot/actions/runs/43893738366) FAIL. Do not substitute #158's success for this draft's full CI. +- #155 pre-reconciliation head `1a3db886436adcf3bb7e97ee8f5c2f983c4eb4b4`: [declarative Windows fixture recipe parity 44273239154](https://github.com/SemperSupra/WineBot/actions/runs/44273239154), [installer capture 44273239098](https://github.com/SemperSupra/WineBot/actions/runs/44273239098), [Windows fixture parity 44273239035](https://github.com/SemperSupra/WineBot/actions/runs/44273239035) PASS; [full CI 44273239116](https://github.com/SemperSupra/WineBot/actions/runs/44273239116) FAIL. Synthetic fixture recipe parity is not real installer reconstruction/rollback. + +**All pre-hardware checklist gates remain held; NOT_READY_FOR_HARDWARE_TEST.** Outstanding: exact-source uncancelled real prefix restore, independent real installer reconstruction and rollback, authenticated human/agent input arbitration and accessibility, security/publication custody and hardware-specific verification. Next READY: inspect cancelled prefix test and installer CI first failure; qualify remaining capabilities without private/paid runners, forced merge, hardware action, or security bypass. From 287518bbbc62dc8e56be35da5de20e6238f95b5d Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:18:20 +0100 Subject: [PATCH 49/87] docs(rdte): reconcile cancelled real-prefix retry and CI holds R033 --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 3e08bf0a..e24d5fe0 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -222,3 +222,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #155 pre-reconciliation head `1a3db886436adcf3bb7e97ee8f5c2f983c4eb4b4`: [declarative Windows fixture recipe parity 44273239154](https://github.com/SemperSupra/WineBot/actions/runs/44273239154), [installer capture 44273239098](https://github.com/SemperSupra/WineBot/actions/runs/44273239098), [Windows fixture parity 44273239035](https://github.com/SemperSupra/WineBot/actions/runs/44273239035) PASS; [full CI 44273239116](https://github.com/SemperSupra/WineBot/actions/runs/44273239116) FAIL. Synthetic fixture recipe parity is not real installer reconstruction/rollback. **All pre-hardware checklist gates remain held; NOT_READY_FOR_HARDWARE_TEST.** Outstanding: exact-source uncancelled real prefix restore, independent real installer reconstruction and rollback, authenticated human/agent input arbitration and accessibility, security/publication custody and hardware-specific verification. Next READY: inspect cancelled prefix test and installer CI first failure; qualify remaining capabilities without private/paid runners, forced merge, hardware action, or security bypass. + + +## R033 independent real-prefix recovery retry — 2026-11-18 + +- Source-exact integrated draft #158 `d5bf81b4270d11e7b45cc79767a907032229306c`: public full CI 44321596254, real Windows GUI/OpenTTD 44321595431, frozen conformance 44321595387, layered Wine11 composite 44321595243 and six-volume recovery 44321595350 remain terminal SUCCESS, independently scoped. Real Wine-generated prefix restore 44321595398 was CANCELLED, not a pass. +- Inspected cancelled job `134861688415` logs: GitHub-hosted `ubuntu-24.04` runner, read-only GITHUB_TOKEN and pinned checkout of #158 exact SHA. Requested a **single-job rerun** of that cancelled job using GitHub Actions connector; request accepted. **Rerun outcome PENDING**: no new acceptance until terminal job conclusion and exact source verification. This is a retry, not a source fix or proof of security/publication readiness. +- #155 previous full CI 44273239116 independently fails at `Run conformance tests`, with preflight and smoke PASS; its fixture workflow passes do not qualify arbitrary installer reconstruction. Keep draft; do not waive frozen contracts or infer #158's passing contracts onto #155. +- Next READY: inspect terminal real-prefix retry, isolate first failing assertion if red; independently develop real installer recipe/rollback, authenticated human/agent arbitration, accessibility and publication custody. Keep distinct owners and preserve all evidence. **Pre-hardware checklist remains UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No merge, release, hardware, private/paid runners or security bypass. From 77101a6fa71ccbe52d6cd983d8acc7d17d313fcc Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 19 Nov 2026 04:06:39 +0100 Subject: [PATCH 50/87] docs(rdte): reconcile terminal real Wine-prefix retry and retain hardware holds --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index e24d5fe0..0f0a880a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -230,3 +230,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Inspected cancelled job `134861688415` logs: GitHub-hosted `ubuntu-24.04` runner, read-only GITHUB_TOKEN and pinned checkout of #158 exact SHA. Requested a **single-job rerun** of that cancelled job using GitHub Actions connector; request accepted. **Rerun outcome PENDING**: no new acceptance until terminal job conclusion and exact source verification. This is a retry, not a source fix or proof of security/publication readiness. - #155 previous full CI 44273239116 independently fails at `Run conformance tests`, with preflight and smoke PASS; its fixture workflow passes do not qualify arbitrary installer reconstruction. Keep draft; do not waive frozen contracts or infer #158's passing contracts onto #155. - Next READY: inspect terminal real-prefix retry, isolate first failing assertion if red; independently develop real installer recipe/rollback, authenticated human/agent arbitration, accessibility and publication custody. Keep distinct owners and preserve all evidence. **Pre-hardware checklist remains UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No merge, release, hardware, private/paid runners or security bypass. + + +## R034 source-exact real-prefix retry acceptance — 2026-11-19 + +- Verified main `f5ba0256f330958dcf35710a822508cdb31fc40b` and integrated draft #158 head `d5bf81b4270d11e7b45cc79767a907032229306c`; neither head changed during this reconciliation. [Real Wine-generated prefix restore run 44321595398](https://github.com/SemperSupra/WineBot/actions/runs/44321595398) is now terminal **SUCCESS** after the authorized single-job retry; latest job `135140316559` (`real-wine-generated-prefix`) completed SUCCESS. This supersedes R032/R033's cancelled/pending observation **for this run and source only**. The earlier cancellation remains historical evidence, not a successful first attempt. +- At the same #158 head, [full CI 44321596254](https://github.com/SemperSupra/WineBot/actions/runs/44321596254), [real Windows GUI/OpenTTD 44321595431](https://github.com/SemperSupra/WineBot/actions/runs/44321595431), [frozen conformance 44321595387](https://github.com/SemperSupra/WineBot/actions/runs/44321595387), [Wine11 composite 44321595243](https://github.com/SemperSupra/WineBot/actions/runs/44321595243), [six-volume prefix recovery 44321595350](https://github.com/SemperSupra/WineBot/actions/runs/44321595350), [layer contracts 44321595226](https://github.com/SemperSupra/WineBot/actions/runs/44321595226), and [synthetic backup/restore 44321595071](https://github.com/SemperSupra/WineBot/actions/runs/44321595071) remain terminal SUCCESS. Distinguish the real-prefix qualification from synthetic backup and actual hardware qualification. +- Separate drafts #154 `913f08b517a580484c7b1a55ced0c17e98e92c1b`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, and #155 pre-update `287518bbbc62dc8e56be35da5de20e6238f95b5d` still have failed full CI at their exact source heads. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` passes full CI independently. Do not conflate branch results or treat successor merge history as main acceptance. +- **NOT_READY_FOR_HARDWARE_TEST.** Pre-hardware holds remain for real installer reconstruction/rollback, authenticated multi-actor control and STOP_NOW takeover integration, accessibility, security/publication custody and hardware-specific verification. No candidate release, physical action, paid/private Actions minutes, forced merge, or security bypass is authorized by these results. Next READY workcells: independent installer reconstruction/rollback and authenticated control/accessibility qualification; maintain evidence and gate separation. From 59fbb81cb71cb7959108e9b834e9623a3417b42d Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:16:16 +0100 Subject: [PATCH 51/87] docs(rdte): reconcile R035 lint first failure and source-exact correction --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 0f0a880a..7cee6c62 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -238,3 +238,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - At the same #158 head, [full CI 44321596254](https://github.com/SemperSupra/WineBot/actions/runs/44321596254), [real Windows GUI/OpenTTD 44321595431](https://github.com/SemperSupra/WineBot/actions/runs/44321595431), [frozen conformance 44321595387](https://github.com/SemperSupra/WineBot/actions/runs/44321595387), [Wine11 composite 44321595243](https://github.com/SemperSupra/WineBot/actions/runs/44321595243), [six-volume prefix recovery 44321595350](https://github.com/SemperSupra/WineBot/actions/runs/44321595350), [layer contracts 44321595226](https://github.com/SemperSupra/WineBot/actions/runs/44321595226), and [synthetic backup/restore 44321595071](https://github.com/SemperSupra/WineBot/actions/runs/44321595071) remain terminal SUCCESS. Distinguish the real-prefix qualification from synthetic backup and actual hardware qualification. - Separate drafts #154 `913f08b517a580484c7b1a55ced0c17e98e92c1b`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, and #155 pre-update `287518bbbc62dc8e56be35da5de20e6238f95b5d` still have failed full CI at their exact source heads. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` passes full CI independently. Do not conflate branch results or treat successor merge history as main acceptance. - **NOT_READY_FOR_HARDWARE_TEST.** Pre-hardware holds remain for real installer reconstruction/rollback, authenticated multi-actor control and STOP_NOW takeover integration, accessibility, security/publication custody and hardware-specific verification. No candidate release, physical action, paid/private Actions minutes, forced merge, or security bypass is authorized by these results. Next READY workcells: independent installer reconstruction/rollback and authenticated control/accessibility qualification; maintain evidence and gate separation. + + +## R035 independent lint-first-failure correction — 2026-11-19 + +- Revalidated main `f5ba0256f330958dcf35710a822508cdb31fc40b` and PR heads #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, #155 `77101a6fa71ccbe52d6cd983d8acc7d17d313fcc`, #158 `d5bf81b4270d11e7b45cc79767a907032229306c`. #158's terminal integrated qualifications remain passing, but do not satisfy outstanding hardware gates. +- #154 prior source `913f08b517a580484c7b1a55ced0c17e98e92c1b`: [CI 43893738366](https://github.com/SemperSupra/WineBot/actions/runs/43893738366) first failed in Pre-flight / Containerized Linting. Job `133391531820` exposes Ruff `I001` at `scripts/ci/resolve-conformance-units.py:7`, due solely to import ordering; downstream conformance and smoke were skipped. Applied narrow import-order-only fix on #154 in commit `c0ea638100cec10940b73deefae2a46eb2e9e4b3`. No logic, test coverage, security policy or merge behavior was changed. **New-head CI terminal evidence pending**; no passing claim. +- #150 [CI 43799408893](https://github.com/SemperSupra/WineBot/actions/runs/43799408893) and #155 [CI 44449109231](https://github.com/SemperSupra/WineBot/actions/runs/44449109231) independently fail at `Run conformance tests`; their preflight and smoke jobs pass. No waiver or unrelated source mutation. +- Next READY: collect terminal CI for corrected #154, diagnose any subsequent first failure, and advance independent real installer reconstruction/rollback and authenticated multi-actor control/accessibility qualification. All pre-hardware holds remain; **NOT_READY_FOR_HARDWARE_TEST**. No merge, release, private/paid runner, physical hardware operation or security bypass. From 04ca05b8de92622d044701586d937c5140fa4358 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:03:15 +0100 Subject: [PATCH 52/87] docs(rdte): reconcile R036 post-lint exact-head qualification and hardware holds --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 7cee6c62..55495a6d 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -246,3 +246,9 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #154 prior source `913f08b517a580484c7b1a55ced0c17e98e92c1b`: [CI 43893738366](https://github.com/SemperSupra/WineBot/actions/runs/43893738366) first failed in Pre-flight / Containerized Linting. Job `133391531820` exposes Ruff `I001` at `scripts/ci/resolve-conformance-units.py:7`, due solely to import ordering; downstream conformance and smoke were skipped. Applied narrow import-order-only fix on #154 in commit `c0ea638100cec10940b73deefae2a46eb2e9e4b3`. No logic, test coverage, security policy or merge behavior was changed. **New-head CI terminal evidence pending**; no passing claim. - #150 [CI 43799408893](https://github.com/SemperSupra/WineBot/actions/runs/43799408893) and #155 [CI 44449109231](https://github.com/SemperSupra/WineBot/actions/runs/44449109231) independently fail at `Run conformance tests`; their preflight and smoke jobs pass. No waiver or unrelated source mutation. - Next READY: collect terminal CI for corrected #154, diagnose any subsequent first failure, and advance independent real installer reconstruction/rollback and authenticated multi-actor control/accessibility qualification. All pre-hardware holds remain; **NOT_READY_FOR_HARDWARE_TEST**. No merge, release, private/paid runner, physical hardware operation or security bypass. + +## R036 exact-head post-lint qualification — 2026-11-19 + +- #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3`: [layered + frozen integration 44494851959](https://github.com/SemperSupra/WineBot/actions/runs/44494851959), [Wine11 composite 44494851958](https://github.com/SemperSupra/WineBot/actions/runs/44494851958), [layer contracts 44494852052](https://github.com/SemperSupra/WineBot/actions/runs/44494852052), [backup/restore 44494851986](https://github.com/SemperSupra/WineBot/actions/runs/44494851986), and [unit/startup 44494851975](https://github.com/SemperSupra/WineBot/actions/runs/44494851975) are terminal SUCCESS. Full [CI 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045) remains FAILURE: preflight and integration smoke PASS, frozen `Conformance (Contracts)` first fails at `Run conformance tests`. Thus R035 import-order correction cleared lint, but does not close branch-local frozen conformance; integrated pinned-source conformance is distinct evidence, not a waiver. +- #155 `59fbb81cb71cb7959108e9b834e9623a3417b42d`: [declarative Windows fixture recipe parity 44494885936](https://github.com/SemperSupra/WineBot/actions/runs/44494885936), [Windows installer fixture parity 44494885929](https://github.com/SemperSupra/WineBot/actions/runs/44494885929), and [installer capture 44494885935](https://github.com/SemperSupra/WineBot/actions/runs/44494885935) terminal SUCCESS. Full [CI 44494885953](https://github.com/SemperSupra/WineBot/actions/runs/44494885953) FAILURE solely in frozen conformance step; preflight and smoke PASS. Synthetic and fixture parity do not establish arbitrary real installer reconstruction/rollback. +- READY independent cells: (A) diagnose #154 and #155 first frozen conformance assertions using sanitized public summaries and #123 source-known corrections; (B) real installer recipe/rollback and independent postconditions; (C) authenticated human/agent STOP_NOW, accessibility and publication custody. Keep PR owners independent and only source-exact acceptance. All pre-hardware holds remain **UNCHECKED / NOT_READY_FOR_HARDWARE_TEST**. No release, hardware, paid/private runners, force merge or security bypass. From dccaf63598ae0868a03cdc9e0aa4e763d630a570 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:21:23 +0100 Subject: [PATCH 53/87] docs(rdte): capture first failing conformance command and sanitized-evidence boundary --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 55495a6d..7aaf3fe4 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -252,3 +252,9 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3`: [layered + frozen integration 44494851959](https://github.com/SemperSupra/WineBot/actions/runs/44494851959), [Wine11 composite 44494851958](https://github.com/SemperSupra/WineBot/actions/runs/44494851958), [layer contracts 44494852052](https://github.com/SemperSupra/WineBot/actions/runs/44494852052), [backup/restore 44494851986](https://github.com/SemperSupra/WineBot/actions/runs/44494851986), and [unit/startup 44494851975](https://github.com/SemperSupra/WineBot/actions/runs/44494851975) are terminal SUCCESS. Full [CI 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045) remains FAILURE: preflight and integration smoke PASS, frozen `Conformance (Contracts)` first fails at `Run conformance tests`. Thus R035 import-order correction cleared lint, but does not close branch-local frozen conformance; integrated pinned-source conformance is distinct evidence, not a waiver. - #155 `59fbb81cb71cb7959108e9b834e9623a3417b42d`: [declarative Windows fixture recipe parity 44494885936](https://github.com/SemperSupra/WineBot/actions/runs/44494885936), [Windows installer fixture parity 44494885929](https://github.com/SemperSupra/WineBot/actions/runs/44494885929), and [installer capture 44494885935](https://github.com/SemperSupra/WineBot/actions/runs/44494885935) terminal SUCCESS. Full [CI 44494885953](https://github.com/SemperSupra/WineBot/actions/runs/44494885953) FAILURE solely in frozen conformance step; preflight and smoke PASS. Synthetic and fixture parity do not establish arbitrary real installer reconstruction/rollback. - READY independent cells: (A) diagnose #154 and #155 first frozen conformance assertions using sanitized public summaries and #123 source-known corrections; (B) real installer recipe/rollback and independent postconditions; (C) authenticated human/agent STOP_NOW, accessibility and publication custody. Keep PR owners independent and only source-exact acceptance. All pre-hardware holds remain **UNCHECKED / NOT_READY_FOR_HARDWARE_TEST**. No release, hardware, paid/private runners, force merge or security bypass. + +## R037 frozen conformance first-failure boundary — 2026-11-19 + +- Inspected raw job logs for #154 [CI 44494852045, job 135460820503](https://github.com/SemperSupra/WineBot/actions/runs/44494852045) and #155 [CI 44494885953, job 135461776024](https://github.com/SemperSupra/WineBot/actions/runs/44494885953). Both complete dependency installation, image build, service startup, health wait and masked API-token acquisition. The first failing command in each is `python -m pytest contracts/tests/conformance/ --api-url ... --api-token ... --results-file conformance-results.json -q --tb=no --show-capture=no -rN`, exit 1. The workflow intentionally redirects raw pytest diagnostics to a local log, suppressing failure/environment detail in public logs. Therefore the exact failed assertion is **not established** from logs and must not be guessed. +- Both runs successfully generate the allowlisted `conformance-summary-public-v1` artifact: #154 artifact `14514986656`; #155 artifact `14515840043`. Inspect these sanitized summaries before any source edit. Preserve the redaction boundary: do not publish raw pytest logs, tokens, unfiltered environment or private fixture data. The conformance workflow uses a separately checked-out `mark-e-deyoung/winebot-contracts` repository without a pinned commit in `.github/workflows/ci.yml`; acceptance must record both source heads, not only the WineBot SHA. Do not weaken or bypass frozen contracts. +- Independent READY workcells remain (A) read sanitized per-contract counts and isolate a reproducible contract-level regression, (B) real installer reconstruction/rollback with independent postconditions, (C) authenticated STOP_NOW control and accessibility/publication custody. Until exact assertion and source pair are known, do not apply speculative fixes or rerun unchanged failed jobs. Hardware checklist remains **NOT_READY_FOR_HARDWARE_TEST**; all prior security, publication, hardware and runner restrictions remain binding. From 3f418c19e117267d7363c39bf7dbb5135c93c244 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 19 Nov 2026 22:21:41 +0100 Subject: [PATCH 54/87] docs(rdte): record sanitized conformance counts and R038 CI evidence --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 7aaf3fe4..3cc6e525 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -258,3 +258,9 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Inspected raw job logs for #154 [CI 44494852045, job 135460820503](https://github.com/SemperSupra/WineBot/actions/runs/44494852045) and #155 [CI 44494885953, job 135461776024](https://github.com/SemperSupra/WineBot/actions/runs/44494885953). Both complete dependency installation, image build, service startup, health wait and masked API-token acquisition. The first failing command in each is `python -m pytest contracts/tests/conformance/ --api-url ... --api-token ... --results-file conformance-results.json -q --tb=no --show-capture=no -rN`, exit 1. The workflow intentionally redirects raw pytest diagnostics to a local log, suppressing failure/environment detail in public logs. Therefore the exact failed assertion is **not established** from logs and must not be guessed. - Both runs successfully generate the allowlisted `conformance-summary-public-v1` artifact: #154 artifact `14514986656`; #155 artifact `14515840043`. Inspect these sanitized summaries before any source edit. Preserve the redaction boundary: do not publish raw pytest logs, tokens, unfiltered environment or private fixture data. The conformance workflow uses a separately checked-out `mark-e-deyoung/winebot-contracts` repository without a pinned commit in `.github/workflows/ci.yml`; acceptance must record both source heads, not only the WineBot SHA. Do not weaken or bypass frozen contracts. - Independent READY workcells remain (A) read sanitized per-contract counts and isolate a reproducible contract-level regression, (B) real installer reconstruction/rollback with independent postconditions, (C) authenticated STOP_NOW control and accessibility/publication custody. Until exact assertion and source pair are known, do not apply speculative fixes or rerun unchanged failed jobs. Hardware checklist remains **NOT_READY_FOR_HARDWARE_TEST**; all prior security, publication, hardware and runner restrictions remain binding. + +## R038 sanitized conformance artifact triage — 2026-11-19 + +- Retrieved and inspected the **public allowlisted** `conformance-summary-public-v1` ZIP artifacts from #154 [CI 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045), artifact `14514986656`, and #155 [CI 44494885953](https://github.com/SemperSupra/WineBot/actions/runs/44494885953), artifact `14515840043`. Both independently report identical counts: **71 total; 55 passed, 7 failed, 9 skipped, 0 errors, 0 xfailed, 0 xpassed**. Every failed test ID is intentionally `redacted`; the artifacts do **not** identify the seven assertions. Same counts are a diagnostic correlation, not proof of the same underlying cause or an accepted conformance result. Do not weaken the sanitizer or publish raw diagnostics. +- After the R036/R037 documentation-only changes, #155 [CI 44550463440](https://github.com/SemperSupra/WineBot/actions/runs/44550463440) and [CI 44553873499](https://github.com/SemperSupra/WineBot/actions/runs/44553873499) remain terminal FAILURE; latest job census shows preflight PASS, smoke PASS, conformance first failure `Run conformance tests`. Fixture and installer-capture workflows on the same documentation revisions remain successful, but cannot clear real installer or hardware gates. +- Next bounded READY cell: determine **both** WineBot and `mark-e-deyoung/winebot-contracts` checked-out source commits for each failing job, then reproduce the 7 contract failures in a safe isolated ephemeral workcell, emitting only preapproved diagnostic categories and counts. Do not infer assertion names from redacted public data. Independent real installer/rollback and broker STOP_NOW/accessibility/security work remain held to their own evidence gates. **NOT_READY_FOR_HARDWARE_TEST**; no release, merge, hardware, private/paid runner or security bypass. From 2f476df754a900345ecdc2c5285ef5702d8dd0e2 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 20 Nov 2026 04:21:59 +0100 Subject: [PATCH 55/87] docs(rdte): reconcile R039 source-pair conformance and independent IC1 successor gates --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 3cc6e525..94f803de 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -264,3 +264,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Retrieved and inspected the **public allowlisted** `conformance-summary-public-v1` ZIP artifacts from #154 [CI 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045), artifact `14514986656`, and #155 [CI 44494885953](https://github.com/SemperSupra/WineBot/actions/runs/44494885953), artifact `14515840043`. Both independently report identical counts: **71 total; 55 passed, 7 failed, 9 skipped, 0 errors, 0 xfailed, 0 xpassed**. Every failed test ID is intentionally `redacted`; the artifacts do **not** identify the seven assertions. Same counts are a diagnostic correlation, not proof of the same underlying cause or an accepted conformance result. Do not weaken the sanitizer or publish raw diagnostics. - After the R036/R037 documentation-only changes, #155 [CI 44550463440](https://github.com/SemperSupra/WineBot/actions/runs/44550463440) and [CI 44553873499](https://github.com/SemperSupra/WineBot/actions/runs/44553873499) remain terminal FAILURE; latest job census shows preflight PASS, smoke PASS, conformance first failure `Run conformance tests`. Fixture and installer-capture workflows on the same documentation revisions remain successful, but cannot clear real installer or hardware gates. - Next bounded READY cell: determine **both** WineBot and `mark-e-deyoung/winebot-contracts` checked-out source commits for each failing job, then reproduce the 7 contract failures in a safe isolated ephemeral workcell, emitting only preapproved diagnostic categories and counts. Do not infer assertion names from redacted public data. Independent real installer/rollback and broker STOP_NOW/accessibility/security work remain held to their own evidence gates. **NOT_READY_FOR_HARDWARE_TEST**; no release, merge, hardware, private/paid runner or security bypass. + +## R039 independent successor admission and provenance review — 2026-11-20 + +- Rechecked protected main against `f5ba0256f330958dcf35710a822508cdb31fc40b`: identical, no accepted source promotion. #123 remains an independently passing frozen-conformance candidate; #150 and #154 are separate drafts; #155 remains the roadmap owner. The exact failed #154/#155 public artifacts previously yielded 55 PASS / 7 FAIL / 9 SKIP; test identities are intentionally redacted. No assertion-level fix is justified from these counts. +- Inspected current CI source on #154: `.github/workflows/ci.yml` uses pinned WineBot checkout action but the separate `mark-e-deyoung/winebot-contracts` checkout specifies **no `ref`**. Consequently a single WineBot SHA does not fully identify the conformance input pair. Before reproducing or accepting a result, record the actual contracts checkout commit from the job's Git checkout metadata, or pin a reviewed contracts commit in a dedicated change; preserve raw-log redaction and frozen test semantics. Do not claim exact contract provenance from the GitHub Actions run's WineBot head alone. +- New independent critical-path successor drafts identified: [#165 live Notepad++ broker keyboard + STOP_NOW](https://github.com/SemperSupra/WineBot/pull/165), [#166 native read-only WinInspect window observation](https://github.com/SemperSupra/WineBot/pull/166), and [#167 WinInspect observer v0 adapter](https://github.com/SemperSupra/WineBot/pull/167). Their PR descriptions specify source-dependent terminal public-runner qualifications, not accepted proof. #165 explicitly does **not** prove separate live server, concurrent readers, or in-flight cancellation; #166 explicitly does **not** prove screenshot or accessibility; #167 synthetic tests do **not** prove actual Wine daemon end-to-end observation. Preserve independent owners and do not combine partial passes into multi-actor/hardware readiness. +- READY parallel workcells: (A) source-pair-provenanced frozen conformance reproduction with only allowlisted diagnostic categories, (B) #165 live keyboard/STOP_NOW terminal evidence and concurrent-reader/in-flight cancellation negatives, (C) #166/#167 real native WinInspect observation and read-only custody, (D) installer reconstruction/rollback, accessibility, security/publication and candidate digest gates. No hardware candidate is accepted. **NOT_READY_FOR_HARDWARE_TEST**; no merge, release, private/paid runner, security bypass, or physical action. From 5faeb29fe63cc1f50ec5a4204b920892368226c5 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:41:14 +0100 Subject: [PATCH 56/87] docs(rdte): reconcile R040 exact-head IC1 and fail-closed observer qualification --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 94f803de..770280ef 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -271,3 +271,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Inspected current CI source on #154: `.github/workflows/ci.yml` uses pinned WineBot checkout action but the separate `mark-e-deyoung/winebot-contracts` checkout specifies **no `ref`**. Consequently a single WineBot SHA does not fully identify the conformance input pair. Before reproducing or accepting a result, record the actual contracts checkout commit from the job's Git checkout metadata, or pin a reviewed contracts commit in a dedicated change; preserve raw-log redaction and frozen test semantics. Do not claim exact contract provenance from the GitHub Actions run's WineBot head alone. - New independent critical-path successor drafts identified: [#165 live Notepad++ broker keyboard + STOP_NOW](https://github.com/SemperSupra/WineBot/pull/165), [#166 native read-only WinInspect window observation](https://github.com/SemperSupra/WineBot/pull/166), and [#167 WinInspect observer v0 adapter](https://github.com/SemperSupra/WineBot/pull/167). Their PR descriptions specify source-dependent terminal public-runner qualifications, not accepted proof. #165 explicitly does **not** prove separate live server, concurrent readers, or in-flight cancellation; #166 explicitly does **not** prove screenshot or accessibility; #167 synthetic tests do **not** prove actual Wine daemon end-to-end observation. Preserve independent owners and do not combine partial passes into multi-actor/hardware readiness. - READY parallel workcells: (A) source-pair-provenanced frozen conformance reproduction with only allowlisted diagnostic categories, (B) #165 live keyboard/STOP_NOW terminal evidence and concurrent-reader/in-flight cancellation negatives, (C) #166/#167 real native WinInspect observation and read-only custody, (D) installer reconstruction/rollback, accessibility, security/publication and candidate digest gates. No hardware candidate is accepted. **NOT_READY_FOR_HARDWARE_TEST**; no merge, release, private/paid runner, security bypass, or physical action. + +## R040 current-source successor observer gate — 2026-11-20 + +- Revalidated protected `main@f5ba0256f330958dcf35710a822508cdb31fc40b`, independent #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3`, and roadmap owner #155 pre-reconciliation `2f476df754a900345ecdc2c5285ef5702d8dd0e2`. Successor #158 integrated head is now `9809519b94b9074ed681b297237f6dec89d43186`, not the older `d5bf81b` source. At this new exact head, full [CI 44666519926](https://github.com/SemperSupra/WineBot/actions/runs/44666519926), [real GUI/OpenTTD 44666520011](https://github.com/SemperSupra/WineBot/actions/runs/44666520011), [real prefix restore 44666519765](https://github.com/SemperSupra/WineBot/actions/runs/44666519765), [six-volume recovery 44666520026](https://github.com/SemperSupra/WineBot/actions/runs/44666520026) and [layered frozen conformance 44666519777](https://github.com/SemperSupra/WineBot/actions/runs/44666519777) are terminal SUCCESS. They remain source-scoped, not accepted hardware evidence. +- Independent #166 observer head `bc8e8db78435d540e7984a91f14107153c928935`: full [CI 44705835390](https://github.com/SemperSupra/WineBot/actions/runs/44705835390) SUCCESS, but [real Windows workload 44705835479](https://github.com/SemperSupra/WineBot/actions/runs/44705835479) FAILURE in job `136185079811` at explicit `Fail early on the known-unqualified WinInspect observer binary` guard. Sanitized terminal cause is `IC1_OBSERVER_CAUSE=upstream_binary_unqualified`; required gate is `await_corrected_source_qualified_artifact`. This is an **intentional fail-closed upstream binary qualification hold**, not a generic flaky workload or permission to bypass the guard. Its Wine11 composite run `44705835565` was still in progress at observation. Do not rerun the known-failing binary without a corrected, independently qualified and digest-pinned WinInspect asset. +- #167 observer adapter remains independent and does not substitute synthetic adapter success for #166 native observer acceptance. #165, #168 and #169 are now closed; preserve their qualified changes only through source-exact #158 integration and separate live multi-actor/STOP_NOW tests. #155 latest [CI 44667233981](https://github.com/SemperSupra/WineBot/actions/runs/44667233981) FAILURE while installer capture/fixture parity workflows PASS; frozen conformance branch-local failure remains open. +- Next READY: upstream WinInspect asset source/build/qualification and digest custody, then requalify #166 without weakening its early-fail guard; independent source-pair-pinned conformance diagnostics for #154/#155; real installer rollback, authenticated human-agent control, accessibility and publication/security evidence. Pre-hardware checklist remains **UNCHECKED / NOT_READY_FOR_HARDWARE_TEST**. No release, merge, hardware action, paid/private Actions minutes, force merge, or security bypass. From 22c788bef156e7752b3dd03d81415cf61119a0a4 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 20 Nov 2026 16:44:49 +0100 Subject: [PATCH 57/87] docs(rdte): reconcile R041 terminal observer composite and fail-closed upstream asset gate --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 770280ef..5b5e30ff 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -278,3 +278,9 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Independent #166 observer head `bc8e8db78435d540e7984a91f14107153c928935`: full [CI 44705835390](https://github.com/SemperSupra/WineBot/actions/runs/44705835390) SUCCESS, but [real Windows workload 44705835479](https://github.com/SemperSupra/WineBot/actions/runs/44705835479) FAILURE in job `136185079811` at explicit `Fail early on the known-unqualified WinInspect observer binary` guard. Sanitized terminal cause is `IC1_OBSERVER_CAUSE=upstream_binary_unqualified`; required gate is `await_corrected_source_qualified_artifact`. This is an **intentional fail-closed upstream binary qualification hold**, not a generic flaky workload or permission to bypass the guard. Its Wine11 composite run `44705835565` was still in progress at observation. Do not rerun the known-failing binary without a corrected, independently qualified and digest-pinned WinInspect asset. - #167 observer adapter remains independent and does not substitute synthetic adapter success for #166 native observer acceptance. #165, #168 and #169 are now closed; preserve their qualified changes only through source-exact #158 integration and separate live multi-actor/STOP_NOW tests. #155 latest [CI 44667233981](https://github.com/SemperSupra/WineBot/actions/runs/44667233981) FAILURE while installer capture/fixture parity workflows PASS; frozen conformance branch-local failure remains open. - Next READY: upstream WinInspect asset source/build/qualification and digest custody, then requalify #166 without weakening its early-fail guard; independent source-pair-pinned conformance diagnostics for #154/#155; real installer rollback, authenticated human-agent control, accessibility and publication/security evidence. Pre-hardware checklist remains **UNCHECKED / NOT_READY_FOR_HARDWARE_TEST**. No release, merge, hardware action, paid/private Actions minutes, force merge, or security bypass. + +## R041 observer upstream hold and terminal CI reconciliation — 2026-11-20 + +- Rechecked source-exact public workflow evidence at #166 `bc8e8db78435d540e7984a91f14107153c928935`: [Wine11 disposable-layer composite 44705835565](https://github.com/SemperSupra/WineBot/actions/runs/44705835565) has now reached terminal **SUCCESS**; [full CI 44705835390](https://github.com/SemperSupra/WineBot/actions/runs/44705835390) also SUCCESS. Neither overrides [real Windows workload 44705835479](https://github.com/SemperSupra/WineBot/actions/runs/44705835479) FAILURE. Inspected failing job `136185079811`: guard checks that `scripts/ci/qualify-mvp-wininspect-live.py` exists while `docker/Dockerfile` still references `WinInspectPortable-v0.4.4.zip`; emits `IC1_OBSERVER_CAUSE=upstream_binary_unqualified` and `IC1_OBSERVER_GATE=await_corrected_source_qualified_artifact`. This is a deterministic asset-custody gate, not evidence of a new native runtime regression. Preserve it until a corrected independently qualified digest-pinned upstream binary is admitted. Do not remove guard or rerun unchanged source. +- Rechecked #158 `9809519b94b9074ed681b297237f6dec89d43186`: full CI, real GUI/OpenTTD, real prefix restore, six-volume recovery and layered frozen-conformance all remain terminal SUCCESS at that exact source. #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` still has branch-local frozen-conformance FAILURE (CI `44494852045`), while independent layered/frozen integration succeeds. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` CI `43799408893` remains FAILURE. Do not project integrated evidence onto separate branches. +- First failure on #166 remains qualified-binary admission; independent #154/#155 branch-local conformance remains redacted 7-failure diagnostic work. Upstream WinInspect has separate public RDTE/Windows executable qualification PRs; no WinInspect artifact digest, verified replacement or approved source-to-asset custody proof was established in this workcell. Next READY: obtain upstream exact source/build digest and independent Wine/native qualification, then replace pinned asset through review and rerun #166; in parallel resolve source-pair-provenanced conformance and installer rollback/control/accessibility/publication custody. **All pre-hardware holds remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No release, merge, private/paid runner, security bypass or physical action. From 2a868445c60bfcb5711d4fbb286cdc81adfc817e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 20 Nov 2026 22:39:49 +0100 Subject: [PATCH 58/87] docs(rdte): intake R042 formal and crash-recovery successor qualification gates --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 5b5e30ff..227bd818 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -284,3 +284,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Rechecked source-exact public workflow evidence at #166 `bc8e8db78435d540e7984a91f14107153c928935`: [Wine11 disposable-layer composite 44705835565](https://github.com/SemperSupra/WineBot/actions/runs/44705835565) has now reached terminal **SUCCESS**; [full CI 44705835390](https://github.com/SemperSupra/WineBot/actions/runs/44705835390) also SUCCESS. Neither overrides [real Windows workload 44705835479](https://github.com/SemperSupra/WineBot/actions/runs/44705835479) FAILURE. Inspected failing job `136185079811`: guard checks that `scripts/ci/qualify-mvp-wininspect-live.py` exists while `docker/Dockerfile` still references `WinInspectPortable-v0.4.4.zip`; emits `IC1_OBSERVER_CAUSE=upstream_binary_unqualified` and `IC1_OBSERVER_GATE=await_corrected_source_qualified_artifact`. This is a deterministic asset-custody gate, not evidence of a new native runtime regression. Preserve it until a corrected independently qualified digest-pinned upstream binary is admitted. Do not remove guard or rerun unchanged source. - Rechecked #158 `9809519b94b9074ed681b297237f6dec89d43186`: full CI, real GUI/OpenTTD, real prefix restore, six-volume recovery and layered frozen-conformance all remain terminal SUCCESS at that exact source. #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` still has branch-local frozen-conformance FAILURE (CI `44494852045`), while independent layered/frozen integration succeeds. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` CI `43799408893` remains FAILURE. Do not project integrated evidence onto separate branches. - First failure on #166 remains qualified-binary admission; independent #154/#155 branch-local conformance remains redacted 7-failure diagnostic work. Upstream WinInspect has separate public RDTE/Windows executable qualification PRs; no WinInspect artifact digest, verified replacement or approved source-to-asset custody proof was established in this workcell. Next READY: obtain upstream exact source/build digest and independent Wine/native qualification, then replace pinned asset through review and rerun #166; in parallel resolve source-pair-provenanced conformance and installer rollback/control/accessibility/publication custody. **All pre-hardware holds remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No release, merge, private/paid runner, security bypass or physical action. + +## R042 new formal and crash-recovery successor intake — 2026-11-20 + +- Revalidated repository main `f5ba0256f330958dcf35710a822508cdb31fc40b` and open successor drafts [#170](https://github.com/SemperSupra/WineBot/pull/170) and [#171](https://github.com/SemperSupra/WineBot/pull/171). Main is unchanged. This is source/plan intake, **not** an assertion of current CI acceptance for either new draft. +- #170 branch `formal/cross-layer-atomicity-mvp-20261120` adds bounded TLA+/TLC control-lease/STOP_NOW, session handover, and release-admission models, public-runner workflow, and negative controls. Comparison with main shows 26 commits ahead, including `formal/tla/*` and `tests/test_input_revocation_interleaving.py`. Required before acceptance: real exact-head TLC model checking, full CI, counterexample-to-runtime refinement review. Abstract proof does **not** qualify Wine effects or native observer. +- #171 branch `fix/crash-handover-recovery-20261120` adds `api/core/handover_recovery.py`, lifecycle/server integration, and `tests/test_handover_restart_recovery.py`; comparison with main shows 9 commits ahead. Acceptance requires exact-head public CI and crash-point/negative tests, followed by durability/rollback review. Scope excludes orphan Wine processes and in-flight recorder effects. +- Treat #170 and #171 as **independent READY review/qualification workcells**. Do not merge, waive holds, or treat model/synthetic tests as native/hardware qualification. #166 remains blocked on source-qualified WinInspect binary; #154/#155 frozen-conformance failures, installer rollback, authenticated multi-actor control, accessibility, publication custody and hardware-specific verification remain open. **NOT_READY_FOR_HARDWARE_TEST.** From 734c07ba8747dc46f2051f11e887f3be1bcf8849 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 21 Nov 2026 04:16:08 +0100 Subject: [PATCH 59/87] docs(rdte): reconcile R043 successor TLC and crash-recovery CI without lifting hardware holds --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 227bd818..25237d75 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -291,3 +291,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #170 branch `formal/cross-layer-atomicity-mvp-20261120` adds bounded TLA+/TLC control-lease/STOP_NOW, session handover, and release-admission models, public-runner workflow, and negative controls. Comparison with main shows 26 commits ahead, including `formal/tla/*` and `tests/test_input_revocation_interleaving.py`. Required before acceptance: real exact-head TLC model checking, full CI, counterexample-to-runtime refinement review. Abstract proof does **not** qualify Wine effects or native observer. - #171 branch `fix/crash-handover-recovery-20261120` adds `api/core/handover_recovery.py`, lifecycle/server integration, and `tests/test_handover_restart_recovery.py`; comparison with main shows 9 commits ahead. Acceptance requires exact-head public CI and crash-point/negative tests, followed by durability/rollback review. Scope excludes orphan Wine processes and in-flight recorder effects. - Treat #170 and #171 as **independent READY review/qualification workcells**. Do not merge, waive holds, or treat model/synthetic tests as native/hardware qualification. #166 remains blocked on source-qualified WinInspect binary; #154/#155 frozen-conformance failures, installer rollback, authenticated multi-actor control, accessibility, publication custody and hardware-specific verification remain open. **NOT_READY_FOR_HARDWARE_TEST.** + +## R043 successor acceptance reconciliation — 2026-11-21 + +- Exact repository main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. Independent branch heads: #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`, #155 pre-reconciliation `2a868445c60bfcb5711d4fbb286cdc81adfc817e`, integrated #158 `9809519b94b9074ed681b297237f6dec89d43186`. Do not transfer CI acceptance between branches or imply main integration. +- #170 predecessor `d00d2110c5d40d7f8862063a3d7901f215da96bd`: [TLC 44839600564](https://github.com/SemperSupra/WineBot/actions/runs/44839600564) SUCCESS, [full CI 44839600357](https://github.com/SemperSupra/WineBot/actions/runs/44839600357) FAILURE in frozen conformance; preflight/smoke PASS. Successor #173 branch `formal/mvp-control-reconciliation-20261121` exact head `d254dd9a6912d0a37929710588aff76d08245aaa`: [TLC 44843910305](https://github.com/SemperSupra/WineBot/actions/runs/44843910305), [full CI 44843910364](https://github.com/SemperSupra/WineBot/actions/runs/44843910364) and [publication guard 44843910200](https://github.com/SemperSupra/WineBot/actions/runs/44843910200) terminal SUCCESS. This qualifies bounded formal-model and CI scope at the successor head, not real STOP_NOW arbitration, accessibility or hardware. +- #171 predecessor `720f1dbe73b51f3bad5b85caddf62f168f359e2a`: [full CI 44795909932](https://github.com/SemperSupra/WineBot/actions/runs/44795909932) FAILURE in frozen conformance, preflight/smoke PASS. Successor #174 branch `fix/mvp-handover-recovery-reconciliation-20261121` exact head `0e6b8d16f0ceee422853e77d26d20f26a1eef9b9`: [full CI 44844739774](https://github.com/SemperSupra/WineBot/actions/runs/44844739774), [unit/startup 44844739725](https://github.com/SemperSupra/WineBot/actions/runs/44844739725), [layer contracts 44844739682](https://github.com/SemperSupra/WineBot/actions/runs/44844739682), and [public conformance evidence guard 44844739782](https://github.com/SemperSupra/WineBot/actions/runs/44844739782) terminal SUCCESS. These are bounded source-exact acceptance signals; orphan Wine processes, recorder effects, physical crash recovery and native observer remain unqualified. +- #155 [full CI 44822321819](https://github.com/SemperSupra/WineBot/actions/runs/44822321819) still FAILURE at branch-local frozen conformance, while [installer capture 44822321665](https://github.com/SemperSupra/WineBot/actions/runs/44822321665), [fixture parity 44822321933](https://github.com/SemperSupra/WineBot/actions/runs/44822321933) and [declarative recipe parity 44822321763](https://github.com/SemperSupra/WineBot/actions/runs/44822321763) pass. No real arbitrary-installer reconstruction/rollback proof. +- READY: review successor #173 model-to-runtime refinement and STOP_NOW negatives, #174 durable crash/rollback evidence, and independently qualify WinInspect source/binary custody, real installer rollback, authenticated multi-actor control, accessibility, public publication/security and hardware-specific scope. Frozen conformance needs source-pair provenance, including the separate contracts checkout. **All pre-hardware gates remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST**. No release, forced merge, paid/private runner, security bypass or physical hardware action. From 5caa589a91475d2a29ae5e7abd2046fdacf644d9 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 21 Nov 2026 10:24:04 +0100 Subject: [PATCH 60/87] docs(rdte): reconcile R044 successor checks and #180 executable-mode correction --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 25237d75..a1508c60 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -299,3 +299,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #171 predecessor `720f1dbe73b51f3bad5b85caddf62f168f359e2a`: [full CI 44795909932](https://github.com/SemperSupra/WineBot/actions/runs/44795909932) FAILURE in frozen conformance, preflight/smoke PASS. Successor #174 branch `fix/mvp-handover-recovery-reconciliation-20261121` exact head `0e6b8d16f0ceee422853e77d26d20f26a1eef9b9`: [full CI 44844739774](https://github.com/SemperSupra/WineBot/actions/runs/44844739774), [unit/startup 44844739725](https://github.com/SemperSupra/WineBot/actions/runs/44844739725), [layer contracts 44844739682](https://github.com/SemperSupra/WineBot/actions/runs/44844739682), and [public conformance evidence guard 44844739782](https://github.com/SemperSupra/WineBot/actions/runs/44844739782) terminal SUCCESS. These are bounded source-exact acceptance signals; orphan Wine processes, recorder effects, physical crash recovery and native observer remain unqualified. - #155 [full CI 44822321819](https://github.com/SemperSupra/WineBot/actions/runs/44822321819) still FAILURE at branch-local frozen conformance, while [installer capture 44822321665](https://github.com/SemperSupra/WineBot/actions/runs/44822321665), [fixture parity 44822321933](https://github.com/SemperSupra/WineBot/actions/runs/44822321933) and [declarative recipe parity 44822321763](https://github.com/SemperSupra/WineBot/actions/runs/44822321763) pass. No real arbitrary-installer reconstruction/rollback proof. - READY: review successor #173 model-to-runtime refinement and STOP_NOW negatives, #174 durable crash/rollback evidence, and independently qualify WinInspect source/binary custody, real installer rollback, authenticated multi-actor control, accessibility, public publication/security and hardware-specific scope. Frozen conformance needs source-pair provenance, including the separate contracts checkout. **All pre-hardware gates remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST**. No release, forced merge, paid/private runner, security bypass or physical hardware action. + +## R044 successor triage and executable-mode correction — 2026-11-21 + +- Revalidated protected main `f5ba0256f330958dcf35710a822508cdb31fc40b`. Successor #176 exact `3cdfdc2299f732d2d2e23139b6a05a919e4106b5` has terminal SUCCESS full CI 44872891236, TLC 44872891144, layer contracts 44872891139 and unit/startup 44872891142; bounded model and synthetic acceptance only. #177 `1ad26d6ea66c44cc109baf99fed8ad2971c15eb9` full CI 44865205705 SUCCESS. #179 `5271b6040d78de6cb3cf7a40e7ce612f70ebed7b` full CI 44873076259 and TLC 44873076199 SUCCESS; real subprocess cancellation scope requires independent scrutiny, not hardware acceptance. +- New observer consumer #180 initial exact `b4083ed6f352b2e1df2c7b78caf3e9bcf125cc8d`: full CI 44873217386 and unit-isolation 44873217322 both FAIL at runtime-independent unit entrypoint. First error in jobs 136752145828 and 136752145668: OCI `exec: \"scripts/ci/test.sh\": permission denied`. This is an executable-bit regression, not evidence of a failing observer assertion. Independently successful observer/error-redaction 44873217378, TLC 44873217328, layer contracts 44873217337 and publication guard 44873217317 remain scoped to initial head. +- Corrected #180 **file mode only** (`scripts/ci/test.sh` existing blob `4123eb629c6debe4d25e7e6370fa082df2359681`, mode `100755`) in commit `1c78994b334dc07ade047e2ecc2819003598cd5f`, advanced branch with exact expected-head lease. No test contents, runtime semantics, guard or permissions policy changed. New-head public CI outcome **PENDING**; do not promote or merge until exact-head terminal checks. This corrects only an executable entrypoint and does not qualify the upstream WinInspect native binary. +- Remaining holds: branch-local frozen conformance on #154/#150/#155, two-repository contract provenance, real installer rollback, native source-qualified WinInspect binary, authenticated multi-actor STOP_NOW, accessibility, security/publication custody, and hardware-specific verification. Keep all hardware gates UNCHECKED; **NOT_READY_FOR_HARDWARE_TEST**. No force merge, release, paid/private runners, bypass or physical operation. From a8ba34c35e72cdc23adfb3bdd2c4be15062d99f4 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 21 Nov 2026 16:08:12 +0100 Subject: [PATCH 61/87] docs(rdte): reconcile R045 two-writer admission exact-source evidence and entrypoint hold --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index a1508c60..9935f15d 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -306,3 +306,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - New observer consumer #180 initial exact `b4083ed6f352b2e1df2c7b78caf3e9bcf125cc8d`: full CI 44873217386 and unit-isolation 44873217322 both FAIL at runtime-independent unit entrypoint. First error in jobs 136752145828 and 136752145668: OCI `exec: \"scripts/ci/test.sh\": permission denied`. This is an executable-bit regression, not evidence of a failing observer assertion. Independently successful observer/error-redaction 44873217378, TLC 44873217328, layer contracts 44873217337 and publication guard 44873217317 remain scoped to initial head. - Corrected #180 **file mode only** (`scripts/ci/test.sh` existing blob `4123eb629c6debe4d25e7e6370fa082df2359681`, mode `100755`) in commit `1c78994b334dc07ade047e2ecc2819003598cd5f`, advanced branch with exact expected-head lease. No test contents, runtime semantics, guard or permissions policy changed. New-head public CI outcome **PENDING**; do not promote or merge until exact-head terminal checks. This corrects only an executable entrypoint and does not qualify the upstream WinInspect native binary. - Remaining holds: branch-local frozen conformance on #154/#150/#155, two-repository contract provenance, real installer rollback, native source-qualified WinInspect binary, authenticated multi-actor STOP_NOW, accessibility, security/publication custody, and hardware-specific verification. Keep all hardware gates UNCHECKED; **NOT_READY_FOR_HARDWARE_TEST**. No force merge, release, paid/private runners, bypass or physical operation. + +## R045 source-exact two-writer admission and successor qualification — 2026-11-21 + +- Protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` has [full CI PASS 43800228689](https://github.com/SemperSupra/WineBot/actions/runs/43800228689). #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` [full CI FAIL 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045), #150 `8c5ed8019a3518cf534b158662755172bfce7c59` [full CI FAIL 43799408893](https://github.com/SemperSupra/WineBot/actions/runs/43799408893), and #155 pre-this-update `5caa589a91475d2a29ae5e7abd2046fdacf644d9` [full CI FAIL 44889414847](https://github.com/SemperSupra/WineBot/actions/runs/44889414847) remain separate conformance holds. #158 `9809519b94b9074ed681b297237f6dec89d43186` [full CI PASS 44666519926](https://github.com/SemperSupra/WineBot/actions/runs/44666519926) and [real GUI/OpenTTD PASS 44666520011](https://github.com/SemperSupra/WineBot/actions/runs/44666520011) do not waive these holds. +- New stacked #181 `eda01696f297b930185546993a2f5184e340603c`: [full CI PASS 44912186223](https://github.com/SemperSupra/WineBot/actions/runs/44912186223), [TLC PASS 44912186227](https://github.com/SemperSupra/WineBot/actions/runs/44912186227). #182 `638f3cacd0451009fa39371af4d4451e2cdd5a02`: [full CI PASS 44912931120](https://github.com/SemperSupra/WineBot/actions/runs/44912931120), [TLC PASS 44912931173](https://github.com/SemperSupra/WineBot/actions/runs/44912931173), including an intentionally unsafe two-writer counterexample. #183 `04aa0061a008563d04dda5b4755b8bbe42d9a5c8`: [full CI PASS 44913386995](https://github.com/SemperSupra/WineBot/actions/runs/44913386995), [TLC PASS 44913387071](https://github.com/SemperSupra/WineBot/actions/runs/44913387071), [unit/startup PASS 44913387059](https://github.com/SemperSupra/WineBot/actions/runs/44913387059), [publication guard PASS 44913387014](https://github.com/SemperSupra/WineBot/actions/runs/44913387014). Exact heads only; these are not a hardware candidate. +- Inspected actual `docker/entrypoint.sh` and `api/core/writer_admission.py` at #183. The POSIX `flock` is acquired in API lifespan, **after shell entrypoint initialization can mutate session files and launch services**. Therefore the production single-writer invariant is not established by green CI/TLC; this is an explicit entrypoint-to-API FD-handoff critical-path blocker. No release or cross-process/cross-host atomicity claim. READY corrective workcell: secure session-root validation and exclusive lock **before first mutable entrypoint operation**, retain FD across exec to API without releasing it or creating a split-brain handoff window; fail closed on symlink/ownership/contended lock/unsupported filesystem; test two simultaneous containers sharing a root, crash/restart, stale generations, and process orphan behavior on public synthetic runners. Review descriptor inheritance, `CLOEXEC`, root identity and mount semantics before implementing; never simply remove `CLOEXEC` without a deliberate authenticated handoff design. +- Independent READY cells remain source-qualified WinInspect native binary custody (#166's real Windows workflow remains red), arbitrary real installer reconstruction and rollback, contract-repo source pinning, accessibility, multi-actor STOP_NOW and publication custody. Hardware checklist **ALL UNCHECKED; NOT_READY_FOR_HARDWARE_TEST**. No merge, hardware action, paid/private Actions, force push or bypass. From a59a836b56eb8cc40d39a2bc131c5eeb2a1841d2 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 21 Nov 2026 22:25:57 +0100 Subject: [PATCH 62/87] docs: reconcile R046 exact-head CI and hardware holds --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 9935f15d..33894b4a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -313,3 +313,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - New stacked #181 `eda01696f297b930185546993a2f5184e340603c`: [full CI PASS 44912186223](https://github.com/SemperSupra/WineBot/actions/runs/44912186223), [TLC PASS 44912186227](https://github.com/SemperSupra/WineBot/actions/runs/44912186227). #182 `638f3cacd0451009fa39371af4d4451e2cdd5a02`: [full CI PASS 44912931120](https://github.com/SemperSupra/WineBot/actions/runs/44912931120), [TLC PASS 44912931173](https://github.com/SemperSupra/WineBot/actions/runs/44912931173), including an intentionally unsafe two-writer counterexample. #183 `04aa0061a008563d04dda5b4755b8bbe42d9a5c8`: [full CI PASS 44913386995](https://github.com/SemperSupra/WineBot/actions/runs/44913386995), [TLC PASS 44913387071](https://github.com/SemperSupra/WineBot/actions/runs/44913387071), [unit/startup PASS 44913387059](https://github.com/SemperSupra/WineBot/actions/runs/44913387059), [publication guard PASS 44913387014](https://github.com/SemperSupra/WineBot/actions/runs/44913387014). Exact heads only; these are not a hardware candidate. - Inspected actual `docker/entrypoint.sh` and `api/core/writer_admission.py` at #183. The POSIX `flock` is acquired in API lifespan, **after shell entrypoint initialization can mutate session files and launch services**. Therefore the production single-writer invariant is not established by green CI/TLC; this is an explicit entrypoint-to-API FD-handoff critical-path blocker. No release or cross-process/cross-host atomicity claim. READY corrective workcell: secure session-root validation and exclusive lock **before first mutable entrypoint operation**, retain FD across exec to API without releasing it or creating a split-brain handoff window; fail closed on symlink/ownership/contended lock/unsupported filesystem; test two simultaneous containers sharing a root, crash/restart, stale generations, and process orphan behavior on public synthetic runners. Review descriptor inheritance, `CLOEXEC`, root identity and mount semantics before implementing; never simply remove `CLOEXEC` without a deliberate authenticated handoff design. - Independent READY cells remain source-qualified WinInspect native binary custody (#166's real Windows workflow remains red), arbitrary real installer reconstruction and rollback, contract-repo source pinning, accessibility, multi-actor STOP_NOW and publication custody. Hardware checklist **ALL UNCHECKED; NOT_READY_FOR_HARDWARE_TEST**. No merge, hardware action, paid/private Actions, force push or bypass. + +## R046 terminal successor qualification reconciliation — 2026-11-21 + +- Protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. Exact #180 head `1c78994b334dc07ade047e2ecc2819003598cd5f` now passes [full CI 44889403077](https://github.com/SemperSupra/WineBot/actions/runs/44889403077), [unit/startup 44889403040](https://github.com/SemperSupra/WineBot/actions/runs/44889403040), [WinInspect redaction 44889403082](https://github.com/SemperSupra/WineBot/actions/runs/44889403082), [TLC 44889403064](https://github.com/SemperSupra/WineBot/actions/runs/44889403064), [layer contracts 44889403057](https://github.com/SemperSupra/WineBot/actions/runs/44889403057), and publication/provenance guards. This closes the executable-mode CI regression only, **not** native observer binary qualification. +- Exact #183 head `04aa0061a008563d04dda5b4755b8bbe42d9a5c8` remains terminal green ([CI 44913386995](https://github.com/SemperSupra/WineBot/actions/runs/44913386995)); R045's entrypoint-before-API writer-admission race remains open. Require fail-closed pre-mutation admission, secure FD custody and cross-process shared-root fault tests; green synthetic checks cannot waive this. +- #155 pre-update head `a8ba34c35e72cdc23adfb3bdd2c4be15062d99f4`: [full CI 44917565410](https://github.com/SemperSupra/WineBot/actions/runs/44917565410) FAILURE, while [installer capture 44917565330](https://github.com/SemperSupra/WineBot/actions/runs/44917565330), [fixture parity 44917565323](https://github.com/SemperSupra/WineBot/actions/runs/44917565323), [recipe parity 44917565414](https://github.com/SemperSupra/WineBot/actions/runs/44917565414) and [publication guard 44917565326](https://github.com/SemperSupra/WineBot/actions/runs/44917565326) SUCCESS. Frozen conformance and real installer rollback remain unqualified. +- Independent READY workcells: pre-mutation single-writer handoff; source-pinned WineBot/contracts conformance diagnostics; qualified native WinInspect custody; real installer rollback; authenticated multi-actor STOP_NOW and accessibility. **All pre-hardware gates UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No redundant CI dispatch, merge, release, paid/private runner, bypass or hardware action. From e039c67bae3e354841274682eb3b03ded7188656 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 22 Nov 2026 10:18:44 +0100 Subject: [PATCH 63/87] docs(rdte): reconcile R047 early admission and persistent owner exact-head gates --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 33894b4a..07ccc216 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -320,3 +320,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Exact #183 head `04aa0061a008563d04dda5b4755b8bbe42d9a5c8` remains terminal green ([CI 44913386995](https://github.com/SemperSupra/WineBot/actions/runs/44913386995)); R045's entrypoint-before-API writer-admission race remains open. Require fail-closed pre-mutation admission, secure FD custody and cross-process shared-root fault tests; green synthetic checks cannot waive this. - #155 pre-update head `a8ba34c35e72cdc23adfb3bdd2c4be15062d99f4`: [full CI 44917565410](https://github.com/SemperSupra/WineBot/actions/runs/44917565410) FAILURE, while [installer capture 44917565330](https://github.com/SemperSupra/WineBot/actions/runs/44917565330), [fixture parity 44917565323](https://github.com/SemperSupra/WineBot/actions/runs/44917565323), [recipe parity 44917565414](https://github.com/SemperSupra/WineBot/actions/runs/44917565414) and [publication guard 44917565326](https://github.com/SemperSupra/WineBot/actions/runs/44917565326) SUCCESS. Frozen conformance and real installer rollback remain unqualified. - Independent READY workcells: pre-mutation single-writer handoff; source-pinned WineBot/contracts conformance diagnostics; qualified native WinInspect custody; real installer rollback; authenticated multi-actor STOP_NOW and accessibility. **All pre-hardware gates UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No redundant CI dispatch, merge, release, paid/private runner, bypass or hardware action. + +## R047 early-admission and persistent-owner convergence — 2026-11-22 + +- Source heads freshly read: protected main remains the previously accepted `f5ba0256f330958dcf35710a822508cdb31fc40b` (base reported by open PR metadata; no main promotion). #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` [full CI 44494852045](https://github.com/SemperSupra/WineBot/actions/runs/44494852045) FAIL, while layered composite and layered/frozen integration workflows PASS. #166 `1fc40fa93a1a979126e5950ee53817a5233c1806` [real native observer workload 44872961557](https://github.com/SemperSupra/WineBot/actions/runs/44872961557) FAIL, although full CI and composite HIL PASS. Neither failure may be waived by green adjacent jobs. #123, #150 and #155 remain separate draft sources with previously recorded branch-local qualification holds. +- New corrective #184 `b76846de498f28f3a26ef4bfcf23d7fef3078746` has terminal exact-head [full CI 44983585073](https://github.com/SemperSupra/WineBot/actions/runs/44983585073), [TLC 44983585058](https://github.com/SemperSupra/WineBot/actions/runs/44983585058), [unit/startup 44983585097](https://github.com/SemperSupra/WineBot/actions/runs/44983585097), and [Wine11 layered composite HIL 44983585085](https://github.com/SemperSupra/WineBot/actions/runs/44983585085) SUCCESS. This source introduces early shell entrypoint admission and inherited kernel lock FD before initialization; it supersedes #183's API-only admission *for this draft branch*. Real two competing complete entrypoints, root-to-gosu-to-API descriptor custody, SIGKILL/orphan effects and shared-volume behavior remain separate acceptance requirements. Prior #184 HIL failure 44982148266 must not be relabeled as passing. +- Independent #185 `56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3` specifies a persistent-owner TLC model and unsafe orphaned-intent counterexample. #186 was superseded without merge; its strict generation-CAS storage primitive is incorporated in #187. Combined #187 `71412921868f1f52cdf459c33ead40ca23d3e47b` has terminal exact-head [full CI 44983177659](https://github.com/SemperSupra/WineBot/actions/runs/44983177659), [unit/startup 44983177662](https://github.com/SemperSupra/WineBot/actions/runs/44983177662), [five-blue/four-red TLC 44983177712](https://github.com/SemperSupra/WineBot/actions/runs/44983177712) and public source/provenance guards SUCCESS. No exact-head composite HIL run was returned for #187; parent #184's HIL is not interchangeable with combined-source qualification. +- **Critical remaining production gap:** #187's storage CAS module is not wired into the live entrypoint, API or lifecycle; the active-session pointer remains volatile under `/tmp`. A successful model check and storage unit suite cannot establish orphaned-intent recovery across disposable restarts. Sequential READY workcell: integrate persistent active-owner generation CAS under the already admitted writer lock; replay/quarantine stale intent before reporting ready; then qualify two full containers on a shared durable root with crash-point injection, restart, rollback, and durable fsync evidence. Independently continue contract provenance/frozen-conformance, qualified WinInspect native binary, installer rollback, authenticated STOP_NOW, accessibility and publication custody. +- All hardware-readiness checkboxes remain **UNCHECKED**. Status **NOT_READY_FOR_HARDWARE_TEST**. No merge, image publication, hardware action, private/paid runner use or security bypass. Existing successful synthetic CI is not hardware evidence. From 6cc4b45a2652908344cb37cb469c66150c23abf2 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:43:57 +0100 Subject: [PATCH 64/87] docs(rdte): reconcile R049 stacked admission security evidence and hardware holds --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 07ccc216..f1d4fc73 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -328,3 +328,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Independent #185 `56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3` specifies a persistent-owner TLC model and unsafe orphaned-intent counterexample. #186 was superseded without merge; its strict generation-CAS storage primitive is incorporated in #187. Combined #187 `71412921868f1f52cdf459c33ead40ca23d3e47b` has terminal exact-head [full CI 44983177659](https://github.com/SemperSupra/WineBot/actions/runs/44983177659), [unit/startup 44983177662](https://github.com/SemperSupra/WineBot/actions/runs/44983177662), [five-blue/four-red TLC 44983177712](https://github.com/SemperSupra/WineBot/actions/runs/44983177712) and public source/provenance guards SUCCESS. No exact-head composite HIL run was returned for #187; parent #184's HIL is not interchangeable with combined-source qualification. - **Critical remaining production gap:** #187's storage CAS module is not wired into the live entrypoint, API or lifecycle; the active-session pointer remains volatile under `/tmp`. A successful model check and storage unit suite cannot establish orphaned-intent recovery across disposable restarts. Sequential READY workcell: integrate persistent active-owner generation CAS under the already admitted writer lock; replay/quarantine stale intent before reporting ready; then qualify two full containers on a shared durable root with crash-point injection, restart, rollback, and durable fsync evidence. Independently continue contract provenance/frozen-conformance, qualified WinInspect native binary, installer rollback, authenticated STOP_NOW, accessibility and publication custody. - All hardware-readiness checkboxes remain **UNCHECKED**. Status **NOT_READY_FOR_HARDWARE_TEST**. No merge, image publication, hardware action, private/paid runner use or security bypass. Existing successful synthetic CI is not hardware evidence. + + +## R049 stacked deployment-admission security qualification — 2026-11-23 + +- Authoritative protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4`, #150 `8c5ed8019a3518cf534b158662755172bfce7c59`, #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3`, and this roadmap #155 retain independent branch-local gates. This entry records *draft* successors, not accepted main. +- #200 `158cf3d0e02990f0fb67acb3b1bcd43e6bc4dd09` [CI PASS 45170950495](https://github.com/SemperSupra/WineBot/actions/runs/45170950495), [Wine11 composite HIL PASS 45170950443](https://github.com/SemperSupra/WineBot/actions/runs/45170950443). #201 `2159807b731ba757e2104be8cf1308665d3d426c` [CI PASS 45171800284](https://github.com/SemperSupra/WineBot/actions/runs/45171800284), [composite PASS 45171800176](https://github.com/SemperSupra/WineBot/actions/runs/45171800176). #205 `b520f5c419d1199ff536d5c6f8260dcadd2bc5ed` [CI PASS 45174538414](https://github.com/SemperSupra/WineBot/actions/runs/45174538414), [composite PASS 45174538382](https://github.com/SemperSupra/WineBot/actions/runs/45174538382). #207 `702eb98ec07cc7b17c49ebc01ad2690b776b5a0e` [CI PASS 45175214275](https://github.com/SemperSupra/WineBot/actions/runs/45175214275), [composite PASS 45175214365](https://github.com/SemperSupra/WineBot/actions/runs/45175214365). These are source-exact synthetic qualifications of successive admission/state-init work, not hardware acceptance. +- New independent adversarial/security workcells: #209 `2fda447a8fe8bd1abbd8a78767ec104e5f2be53a` [formal PASS 45176419487](https://github.com/SemperSupra/WineBot/actions/runs/45176419487); #210 `8a8a3b94147e45fdf9540f34d3e8a8876f42e1b4` [CI PASS 45177312388](https://github.com/SemperSupra/WineBot/actions/runs/45177312388); #211 `55593c91b4bb5d0191f283130a891ba7d166b93b` [CI PASS 45194276606](https://github.com/SemperSupra/WineBot/actions/runs/45194276606), [composite PASS 45194276124](https://github.com/SemperSupra/WineBot/actions/runs/45194276124); #212 `01cf4c7d2b59a49d22563df56152b1c24455fc64` [protected-owner CAS offline PASS 45195410806](https://github.com/SemperSupra/WineBot/actions/runs/45195410806), [CI PASS 45195411900](https://github.com/SemperSupra/WineBot/actions/runs/45195411900); #213 `2d73be45361be8fa379c39d0a77083f9379c79e9` [volume-identity offline PASS 45196489591](https://github.com/SemperSupra/WineBot/actions/runs/45196489591), [CI PASS 45196489513](https://github.com/SemperSupra/WineBot/actions/runs/45196489513), [composite PASS 45196489364](https://github.com/SemperSupra/WineBot/actions/runs/45196489364). **Do not infer #212 and #213 are integrated together**: both base on #211 and must be converged and requalified at an exact combined head. +- READY critical-path workcell: reconcile #209's unsafe two-deployment interleavings and #210's lock-inode replacement witness with #211 root-owned gate and #212 generation CAS, then integrate #213 fail-closed external-volume identity validation; prove full-container shared-root adversarial concurrency, crash/restart/orphan and rollback at a *single combined source head*, including composite HIL, without trusting independently green sibling branches. In parallel pursue branch-local frozen conformance (#123/#154/#155), real Wine11 recovery (#150), native WinInspect custody, real installer rollback, authenticated STOP_NOW, accessibility and publication provenance. No new workflow dispatch was necessary for already-terminal exact-head checks. +- **ALL pre-hardware gates remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No hardware candidate digest, merge, release, security waiver or private/paid runner authorization. From cc7aebfe9855098b051e70559e3a255ad83d9fb6 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 24 Nov 2026 04:28:17 +0100 Subject: [PATCH 65/87] docs: reconcile R051 terminal integration and conformance evidence --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index f1d4fc73..feabab11 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -337,3 +337,9 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - New independent adversarial/security workcells: #209 `2fda447a8fe8bd1abbd8a78767ec104e5f2be53a` [formal PASS 45176419487](https://github.com/SemperSupra/WineBot/actions/runs/45176419487); #210 `8a8a3b94147e45fdf9540f34d3e8a8876f42e1b4` [CI PASS 45177312388](https://github.com/SemperSupra/WineBot/actions/runs/45177312388); #211 `55593c91b4bb5d0191f283130a891ba7d166b93b` [CI PASS 45194276606](https://github.com/SemperSupra/WineBot/actions/runs/45194276606), [composite PASS 45194276124](https://github.com/SemperSupra/WineBot/actions/runs/45194276124); #212 `01cf4c7d2b59a49d22563df56152b1c24455fc64` [protected-owner CAS offline PASS 45195410806](https://github.com/SemperSupra/WineBot/actions/runs/45195410806), [CI PASS 45195411900](https://github.com/SemperSupra/WineBot/actions/runs/45195411900); #213 `2d73be45361be8fa379c39d0a77083f9379c79e9` [volume-identity offline PASS 45196489591](https://github.com/SemperSupra/WineBot/actions/runs/45196489591), [CI PASS 45196489513](https://github.com/SemperSupra/WineBot/actions/runs/45196489513), [composite PASS 45196489364](https://github.com/SemperSupra/WineBot/actions/runs/45196489364). **Do not infer #212 and #213 are integrated together**: both base on #211 and must be converged and requalified at an exact combined head. - READY critical-path workcell: reconcile #209's unsafe two-deployment interleavings and #210's lock-inode replacement witness with #211 root-owned gate and #212 generation CAS, then integrate #213 fail-closed external-volume identity validation; prove full-container shared-root adversarial concurrency, crash/restart/orphan and rollback at a *single combined source head*, including composite HIL, without trusting independently green sibling branches. In parallel pursue branch-local frozen conformance (#123/#154/#155), real Wine11 recovery (#150), native WinInspect custody, real installer rollback, authenticated STOP_NOW, accessibility and publication provenance. No new workflow dispatch was necessary for already-terminal exact-head checks. - **ALL pre-hardware gates remain UNCHECKED; NOT_READY_FOR_HARDWARE_TEST.** No hardware candidate digest, merge, release, security waiver or private/paid runner authorization. + +## R051 terminal integration evidence — 2026-11-24 + +- #220 exact head `8c869a1d1b1ffe6f158bbc233f9eb4d46f5927a3`: [composite HIL 45266386143](https://github.com/SemperSupra/WineBot/actions/runs/45266386143) now terminal SUCCESS, as are [CI 45266386008](https://github.com/SemperSupra/WineBot/actions/runs/45266386008), TLC 45266385829 and six other checks. The mandatory unsafe writer-inode witness is intentionally a passing counterexample, not a fix. Runtime writer custody remains a release STOP. #219 exact head `6a1a2ec46321ddb2ac4fc5d52188299d52e3337a` CI 45265055432 and effect replay 45265055473 pass; protected broker remains undeployed. +- Primary heads unchanged: #123 CI 43800228689 PASS; #150 CI 43799408893, #154 CI 44494852045, #155 pre-update head `6cc4b45a2652908344cb37cb469c66150c23abf2` CI 45208518068, and #218 head `fa3993b189a188c3638507a5f854aba748bf6e2f` CI 45266488562 FAIL at Run conformance tests, with preflight and smoke passing. #218 offline census 45266488436 passes. Job 138016838106 confirms pytest exit 1 and successful sanitized summary artifact 14863712019; raw assertion intentionally suppressed. Next diagnostic cell: consume only sanitized summary and compare exact contracts checkout and runtime source against #123/#220 passing runs; do not expose raw logs or weaken mandatory tests. +- No new source fix or explicit workflow dispatch in this reconciliation. No merge, release, hardware or private runner action. All pre-hardware gates remain unchecked; NOT_READY_FOR_HARDWARE_TEST. From a5e4b0e070ff8697d9efd49af701077b35378282 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 26 Nov 2026 16:48:43 +0100 Subject: [PATCH 66/87] docs: reconcile R060 real Wine workload, lint correction and wire admission evidence --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index feabab11..4f3aaa60 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -343,3 +343,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #220 exact head `8c869a1d1b1ffe6f158bbc233f9eb4d46f5927a3`: [composite HIL 45266386143](https://github.com/SemperSupra/WineBot/actions/runs/45266386143) now terminal SUCCESS, as are [CI 45266386008](https://github.com/SemperSupra/WineBot/actions/runs/45266386008), TLC 45266385829 and six other checks. The mandatory unsafe writer-inode witness is intentionally a passing counterexample, not a fix. Runtime writer custody remains a release STOP. #219 exact head `6a1a2ec46321ddb2ac4fc5d52188299d52e3337a` CI 45265055432 and effect replay 45265055473 pass; protected broker remains undeployed. - Primary heads unchanged: #123 CI 43800228689 PASS; #150 CI 43799408893, #154 CI 44494852045, #155 pre-update head `6cc4b45a2652908344cb37cb469c66150c23abf2` CI 45208518068, and #218 head `fa3993b189a188c3638507a5f854aba748bf6e2f` CI 45266488562 FAIL at Run conformance tests, with preflight and smoke passing. #218 offline census 45266488436 passes. Job 138016838106 confirms pytest exit 1 and successful sanitized summary artifact 14863712019; raw assertion intentionally suppressed. Next diagnostic cell: consume only sanitized summary and compare exact contracts checkout and runtime source against #123/#220 passing runs; do not expose raw logs or weaken mandatory tests. - No new source fix or explicit workflow dispatch in this reconciliation. No merge, release, hardware or private runner action. All pre-hardware gates remain unchecked; NOT_READY_FOR_HARDWARE_TEST. + +## R060 exact-head workload and wire admission reconciliation — 2026-11-26 + +- Protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. Primary draft #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` CI 43800228689 PASS; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` CI 43799408893, #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` CI 44494852045, and #155 pre-update `cc7aebfe9855098b051e70559e3a255ad83d9fb6` CI 45319745299 FAIL at mandatory Run conformance tests. Preflight and smoke pass on each. #155 installer capture 45319745344, Windows fixture parity 45319745287 and declarative fixture replay 45319745685 PASS; no arbitrary installer rollback qualification inferred. +- #243 `4be1ed2fdb75f95aeb75b0812e219217242466fb` [real workload 45747423570](https://github.com/SemperSupra/WineBot/actions/runs/45747423570) failed the broker-mediated save postcondition. Successor #245 `b3e281e85f1a6c57a26401e202bd6af0b3b761ac` [real workload 45831557843](https://github.com/SemperSupra/WineBot/actions/runs/45831557843) PASS: actual Wine11 editor save, broker keyboard and STOP, game save, quiesce/recreate, editor state replay and game reload. No focused differential marker was observed; XSendEvent versus XTEST causal hypothesis remains unconfirmed. Do not infer atomic focus binding or deterministic delivery from a single green workload. #245 [CI 45831557904](https://github.com/SemperSupra/WineBot/actions/runs/45831557904) failed preflight lint at two Ruff I001 local import blocks; downstream jobs skipped. Corrected only those two import separators in `tests/test_input_keyboard_conformance.py` at `6c2d5a3d1b574c789b60aa969320b6883c7d07b1`. Automatic verification queued: [CI 45852709684](https://github.com/SemperSupra/WineBot/actions/runs/45852709684), [real workload 45852709813](https://github.com/SemperSupra/WineBot/actions/runs/45852709813), formal 45852709709 and publication guard 45852709745; no terminal result inferred. +- #244 `48c2335b3d21eb1d67c61594f37873a48de5823a` observation consumer 45747774516 and CI 45747774409 PASS. #246 `4d101f138febe8f9cf3ef562bdf93bcc46c1a72f` CI 45831839655 and RPC redaction 45831839447 PASS: strict existing wire admission, not actual WinInspect v0.5.0 interop or native provider custody. +- Independent next gates: exact-head rerun of #245; branch-local frozen contract diagnosis/integration without waiver; combine trusted custody, STOP, observation and actual workloads at one source head; digest-pinned qualified WinInspect v0.5.0 provider/real daemon transport; real installer rollback, accessibility, publication and security authority. Existing holds remain in force. All pre-hardware checklist items remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, main merge, private/paid runner or user hardware action. From d359ce1dd940c5e26bf3ddc9dae7fb8bebdde690 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:38:22 +0100 Subject: [PATCH 67/87] ci: pin installer roadmap conformance to qualified contracts source --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47b8b4cf..df6e12ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: repository: mark-e-deyoung/winebot-contracts + ref: 205666f7f0235cb0fc51ca8a5af84f9f67831a74 path: contracts - uses: actions/setup-python@v5 From 2af011b9ccf2a72169beab3742080985bee2500f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:38:52 +0100 Subject: [PATCH 68/87] docs: reconcile R064 source-pinned conformance and Wine11 successor evidence --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 4f3aaa60..81587eb4 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -350,3 +350,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #243 `4be1ed2fdb75f95aeb75b0812e219217242466fb` [real workload 45747423570](https://github.com/SemperSupra/WineBot/actions/runs/45747423570) failed the broker-mediated save postcondition. Successor #245 `b3e281e85f1a6c57a26401e202bd6af0b3b761ac` [real workload 45831557843](https://github.com/SemperSupra/WineBot/actions/runs/45831557843) PASS: actual Wine11 editor save, broker keyboard and STOP, game save, quiesce/recreate, editor state replay and game reload. No focused differential marker was observed; XSendEvent versus XTEST causal hypothesis remains unconfirmed. Do not infer atomic focus binding or deterministic delivery from a single green workload. #245 [CI 45831557904](https://github.com/SemperSupra/WineBot/actions/runs/45831557904) failed preflight lint at two Ruff I001 local import blocks; downstream jobs skipped. Corrected only those two import separators in `tests/test_input_keyboard_conformance.py` at `6c2d5a3d1b574c789b60aa969320b6883c7d07b1`. Automatic verification queued: [CI 45852709684](https://github.com/SemperSupra/WineBot/actions/runs/45852709684), [real workload 45852709813](https://github.com/SemperSupra/WineBot/actions/runs/45852709813), formal 45852709709 and publication guard 45852709745; no terminal result inferred. - #244 `48c2335b3d21eb1d67c61594f37873a48de5823a` observation consumer 45747774516 and CI 45747774409 PASS. #246 `4d101f138febe8f9cf3ef562bdf93bcc46c1a72f` CI 45831839655 and RPC redaction 45831839447 PASS: strict existing wire admission, not actual WinInspect v0.5.0 interop or native provider custody. - Independent next gates: exact-head rerun of #245; branch-local frozen contract diagnosis/integration without waiver; combine trusted custody, STOP, observation and actual workloads at one source head; digest-pinned qualified WinInspect v0.5.0 provider/real daemon transport; real installer rollback, accessibility, publication and security authority. Existing holds remain in force. All pre-hardware checklist items remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, main merge, private/paid runner or user hardware action. + + +## R064 frozen-contract provenance and converged workload reconciliation — 2026-11-26 + +- Protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #245 corrected exact head `6c2d5a3d1b574c789b60aa969320b6883c7d07b1` now passes [CI 45852709684](https://github.com/SemperSupra/WineBot/actions/runs/45852709684), [real Windows GUI/OpenTTD 45852709813](https://github.com/SemperSupra/WineBot/actions/runs/45852709813), formal and publication guard. This closes the lint regression and confirms workload replay at the corrected source; the previous event-delivery failure's causal hypothesis is not established. +- #247 `eb2303813bce84b92af7864f5c02d934e4ea61de`: [CI 45860562816](https://github.com/SemperSupra/WineBot/actions/runs/45860562816), [real workloads 45860562728](https://github.com/SemperSupra/WineBot/actions/runs/45860562728), observation consumer 45860562893, formal 45860563162, RPC redaction and publication guard all SUCCESS. #248 `3178c57e21cea3716a10f0cecc3964cfd4c46592`: [CI 45861492342](https://github.com/SemperSupra/WineBot/actions/runs/45861492342), [composite 45861492477](https://github.com/SemperSupra/WineBot/actions/runs/45861492477), real workloads 45861492325, startup safety, layer contracts and publication guard all SUCCESS. #249 `5e975c5312b37debc29499ad264a34d10b065413`: ten terminal SUCCESS workflows including [CI 45870144586](https://github.com/SemperSupra/WineBot/actions/runs/45870144586), [composite 45870144638](https://github.com/SemperSupra/WineBot/actions/runs/45870144638), [real Windows workloads 45870144515](https://github.com/SemperSupra/WineBot/actions/runs/45870144515), formal 45870144526 and layer contracts 45870144670. Composite workflow explicitly checks out separate Wine11 source `8c5ed8019a3518cf534b158662755172bfce7c59`; do not claim a single standalone release artifact or native WinInspect v0.5.0 transport from these runs. Existing security holds remain in force. +- #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` CI 43800228689 PASS with frozen contracts `205666f7f0235cb0fc51ca8a5af84f9f67831a74`; #150 CI 43799408893, #154 CI 44494852045 and #155 prior head `a5e4b0e070ff8697d9efd49af701077b35378282` CI 45852782234 FAIL at mandatory conformance, preflight and smoke PASS. Fresh checkout receipts in jobs 133077095885, 135460820503 and 140025477807 establish that **all three failing runs actually used the identical contracts SHA**, despite their floating checkout declarations. Thus pinning fixes reproducibility, not the observed assertion failures; no drift-based root-cause claim. #155 sanitized artifact 15135061706 SHA-256 `4ef82a99f31191bd2a1ea47240484d636e8b50f7490f4a16ffcab2d67d59ddef`; raw assertion remains unavailable and must not be published. Source compare to #123 identifies changes to automation/window behavior and lifecycle replay/cancel semantics as candidates for independent diagnosis, not verified causes. +- Corrected #155 workflow only by adding the established public contracts commit pin at `d359ce1dd940c5e26bf3ddc9dae7fb8bebdde690`, without removing or relaxing any tests or publication guards. Both repositories verified public; CI uses standard ubuntu-24.04. Exact-head workflow results at time of reconciliation: Declarative Windows Fixture Recipe Parity RDTE 45899524367 in_progress; CI Unit Isolation and Startup Safety 45899524253 in_progress; Windows Installer Fixture Parity RDTE 45899524365 in_progress; CI 45899524369 in_progress; Installer Capture RDTE 45899524327 in_progress; BuildKit Automatic Record Publication Guard 45899524292 success; Public Conformance Evidence Safety Regression 45899524316 success. #150/#154 retained unchanged as historical failing branches; #249 uses pinned workflow already. Next: isolate behavioral regressions and converge installer capture on qualified source without discarding mandatory checks. #155 specialized fixture/capture checks at prior head pass; real arbitrary installer rollback still open. +- No accepted integrated security clearance, native WinInspect v0.5.0 provider custody, real installer rollback, complete accessibility and authenticated multi-actor control evidence, or hardware-specific acceptance. All pre-hardware checkboxes remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, merge, private/paid runner, security waiver or physical hardware action. From 400e80dc122613dc954eb9a5d6a504da8766301f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 27 Nov 2026 04:09:27 +0100 Subject: [PATCH 69/87] fix(rdte): converge frozen v1 behavior and regression tests into installer draft Source-exact transplant from #123 at 3acc219a1627a74bdcea6388144cc391ec2b57b4. Installer branch retained main's original runtime blobs. Preserve mandatory contract gate and all evidence guards; do not infer success until exact-head verification. Draft only; existing security holds remain. --- api/core/models.py | 3 +- api/routers/automation.py | 36 +++++- api/routers/lifecycle.py | 151 ++++++++++++++++++------ scripts/ci/test.sh | 4 + tests/test_api_contracts.py | 13 +- tests/test_lifecycle_cancel_window.py | 129 ++++++++++++++++++++ tests/test_lifecycle_hardened.py | 13 +- tests/test_window_focus_contract.py | 88 ++++++++++++++ tests/test_window_inspect_contract.py | 74 ++++++++++++ tests/test_window_inventory_contract.py | 31 +++++ 10 files changed, 497 insertions(+), 45 deletions(-) create mode 100644 tests/test_lifecycle_cancel_window.py create mode 100644 tests/test_window_focus_contract.py create mode 100644 tests/test_window_inspect_contract.py create mode 100644 tests/test_window_inventory_contract.py diff --git a/api/core/models.py b/api/core/models.py index 8334000d..f7bd018f 100644 --- a/api/core/models.py +++ b/api/core/models.py @@ -131,7 +131,8 @@ class InspectWindowModel(BaseModel): class FocusModel(BaseModel): - window_id: str + window_id: str | None = None + title: str | None = None class RecordingStartModel(BaseModel): diff --git a/api/routers/automation.py b/api/routers/automation.py index 720e6549..7ba45f93 100644 --- a/api/routers/automation.py +++ b/api/routers/automation.py @@ -168,7 +168,7 @@ async def list_windows(): parts = line.strip().split(" ", 1) if len(parts) == 2: windows.append({"id": parts[0], "title": parts[1]}) - return {"windows": windows} + return {"windows": windows, "count": len(windows)} @router.get("/wininspect/capabilities") @@ -313,11 +313,32 @@ async def wininspect_pick(x: int = Query(ge=0), y: int = Query(ge=0)): @router.post("/windows/focus") async def focus_window(data: FocusModel): - """Focus a window by ID.""" + """Focus an X11 window by validated ID or exact visible title.""" if not await broker.check_access(): raise HTTPException(status_code=423, detail="Agent control denied by policy") - safe_command(["/automation/bin/x11.sh", "focus-window", data.window_id]) - return {"status": "focused"} + + target_id = (data.window_id or "").strip() + if not target_id: + title = (data.title or "").strip() + if not title: + return {"status": "invalid_target"} + listing = safe_command(["/automation/bin/x11.sh", "list-windows"]) + if not listing.get("ok"): + return {"status": "unavailable"} + # Deterministic exact match: never pass user-provided title to a shell, + # regex or xdotool argument. X11 IDs are not Wine HWNDs. + for line in listing.get("stdout", "").splitlines(): + fields = line.strip().split(" ", 1) + if len(fields) == 2 and fields[1] == title and re.fullmatch(r"[0-9]+", fields[0]): + target_id = fields[0] + break + if not target_id: + return {"status": "not_found"} + + if not re.fullmatch(r"(?:[0-9]+|0[xX][0-9a-fA-F]+)", target_id): + return {"status": "invalid_target"} + focused = safe_command(["/automation/bin/x11.sh", "focus", target_id]) + return {"status": "focused" if focused.get("ok") else "failed"} @router.post("/run/ahk") @@ -484,8 +505,11 @@ async def inspect_window(data: InspectWindowModel): if not await broker.check_access(): raise HTTPException(status_code=423, detail="Agent control denied by policy") - if not data.title and not data.handle: - raise HTTPException(status_code=400, detail="Must provide title or handle") + if not data.title and not data.handle and not data.list_only: + # Preserve the frozen v1 read response envelope, but never claim + # inspection occurred without a target. Broker authorization is + # checked above and no WinInspect process is started for this case. + return {"status": "invalid_target", "detail": "Must provide title or handle"} _wininspect_or_503() try: diff --git a/api/routers/lifecycle.py b/api/routers/lifecycle.py index f6d98cc9..ffbc712b 100644 --- a/api/routers/lifecycle.py +++ b/api/routers/lifecycle.py @@ -58,6 +58,11 @@ _shutdown_in_progress = False _shutdown_mode = "" _shutdown_started_at = 0.0 +_shutdown_due_at = 0.0 +_shutdown_requested_delay = 0.0 +_shutdown_generation = 0 +_pending_shutdown_task: asyncio.Task[None] | None = None +_pending_shutdown_operation: str | None = None _TRANSITION_MARKER_FILE = "session.transition.json" _process_state_lock = threading.Lock() _process_pid_snapshot: dict[str, set[int]] = {} @@ -293,7 +298,7 @@ async def lifecycle_status(): # Contract-required fields (override health status with lifecycle status) "status": "pending" if _shutdown_in_progress else "idle", "pending_action": "shutdown" if _shutdown_in_progress else None, - "remaining_seconds": max(0, int(_shutdown_started_at + float(config.WINEBOT_SHUTDOWN_GUARD_TTL_SECONDS) - time.time())) if _shutdown_in_progress else None, + "remaining_seconds": max(0, int(_shutdown_due_at - time.time())) if _shutdown_in_progress else None, } emit_operation_timing( session_dir, @@ -472,9 +477,57 @@ async def operations_list(limit: int = 50): return {"operations": items} +async def _commit_graceful_shutdown( + operation_id: str, + session_dir: str | None, + delay: float, + wine_shutdown: bool, + generation: int, +) -> None: + """Wait for the cancellable grace period before touching running components.""" + global _shutdown_in_progress, _shutdown_mode, _pending_shutdown_task + try: + await asyncio.sleep(delay) + # The cancellation decision and transition to non-cancellable teardown + # share a lock. A cancelled generation can never later kill PID 1. + async with shutdown_transition_lock: + if not _shutdown_in_progress or _shutdown_mode != "graceful" or generation != _shutdown_generation: + return + _shutdown_mode = "committing" + write_instance_state("shutting_down", reason="api_lifecycle_shutdown") + await heartbeat_operation( + operation_id, + phase="atomic_shutdown", + message="grace period expired; stopping components", + progress=40, + ) + results = await atomic_shutdown(session_dir, wine_shutdown=wine_shutdown) + if not bool(results.get("ok", True)): + await fail_operation(operation_id, error="atomic shutdown failed", result=results) + async with shutdown_transition_lock: + if generation == _shutdown_generation: + _shutdown_in_progress = False + _shutdown_mode = "" + return + await complete_operation(operation_id, result={"status": "shutting_down", "results": results}) + schedule_shutdown(session_dir, 0.0, signal.SIGTERM) + except asyncio.CancelledError: + # Cancel was accepted before the teardown commit. No signal is sent. + return + except Exception: + await fail_operation(operation_id, error="deferred shutdown failed") + async with shutdown_transition_lock: + if generation == _shutdown_generation: + _shutdown_in_progress = False + _shutdown_mode = "" + finally: + if generation == _shutdown_generation: + _pending_shutdown_task = None + + @router.post("/lifecycle/shutdown") async def lifecycle_shutdown( - delay: float = 0.5, + delay: float = 10.0, wine_shutdown: bool = True, power_off: bool = False, ): @@ -484,6 +537,8 @@ async def lifecycle_shutdown( if delay > 300: raise HTTPException(status_code=422, detail="delay must not exceed 300 seconds") global _shutdown_in_progress, _shutdown_mode, _shutdown_started_at + global _shutdown_due_at, _shutdown_requested_delay, _shutdown_generation + global _pending_shutdown_task, _pending_shutdown_operation op_started = time.perf_counter() session_dir = read_session_dir() operation_id = await create_operation( @@ -493,9 +548,30 @@ async def lifecycle_shutdown( ) async with shutdown_transition_lock: now = time.time() - if _shutdown_in_progress and ( - now - _shutdown_started_at - ) <= float(config.WINEBOT_SHUTDOWN_GUARD_TTL_SECONDS): + if _shutdown_in_progress: + if _shutdown_mode == "graceful": + # Frozen v1 clients expect the original pending shutdown + # envelope on repeated requests, not a new shutdown. Return + # the actual pending deadline and action identity unchanged. + # Never restart the grace timer, schedule another task, or + # claim teardown already happened. + payload = { + "status": "shutting_down", + "delay_seconds": _shutdown_requested_delay, + "cancel_before": int(_shutdown_due_at), + "cancel_command": "POST /lifecycle/cancel", + "human_present": False, + "operation_id": _pending_shutdown_operation, + "reused_pending": True, + } + await complete_operation( + operation_id, + result={ + "status": "already_shutting_down", + "pending_operation_id": _pending_shutdown_operation, + }, + ) + return payload payload = { "status": "already_shutting_down", "mode": _shutdown_mode or "unknown", @@ -506,6 +582,11 @@ async def lifecycle_shutdown( _shutdown_in_progress = True _shutdown_mode = "power_off" if power_off else "graceful" _shutdown_started_at = now + _shutdown_due_at = now + delay + _shutdown_requested_delay = delay + _shutdown_generation += 1 + generation = _shutdown_generation + _pending_shutdown_operation = operation_id append_lifecycle_event( session_dir, "shutdown_requested", "Shutdown requested via API", source="api" ) @@ -546,39 +627,26 @@ async def lifecycle_shutdown( ) return {"status": "powering_off", "delay_seconds": delay, "operation_id": operation_id} - write_instance_state("shutting_down", reason="api_lifecycle_shutdown") - await heartbeat_operation( - operation_id, - phase="atomic_shutdown", - message="stopping recorder and core components", - progress=40, - ) - results = await atomic_shutdown(session_dir, wine_shutdown=wine_shutdown) - if not bool(results.get("ok", True)): - await fail_operation( - operation_id, - error="atomic shutdown failed", - result=results, - ) - raise HTTPException( - status_code=500, - detail="Shutdown aborted due to component stop failures", + # Return before teardown: /lifecycle/cancel must be able to keep all + # running components alive throughout the advertised grace window. + _pending_shutdown_task = asyncio.create_task( + _commit_graceful_shutdown( + operation_id, session_dir, delay, wine_shutdown, generation ) + ) await heartbeat_operation( operation_id, - phase="signal_schedule", - message="scheduling termination signal", - progress=90, + phase="grace_period", + message="cancellable shutdown pending", + progress=10, ) - schedule_shutdown(session_dir, delay, signal.SIGTERM) shutdown_payload: dict[str, Any] = { "status": "shutting_down", "delay_seconds": delay, - "cancel_before": int(time.time() + delay), + "cancel_before": int(_shutdown_due_at), "cancel_command": "POST /lifecycle/cancel", "human_present": False, - "results": results } emit_operation_timing( session_dir, @@ -591,20 +659,33 @@ async def lifecycle_shutdown( source="api", metric_name="lifecycle.shutdown.latency", ) - await complete_operation(operation_id, result=shutdown_payload) shutdown_payload["operation_id"] = operation_id return shutdown_payload @router.post("/lifecycle/cancel") async def lifecycle_cancel(): - """Cancel a pending shutdown. Returns cancelled or no_pending.""" + """Cancel only a pending graceful transition, never committed teardown.""" global _shutdown_in_progress, _shutdown_mode, _shutdown_started_at - if not _shutdown_in_progress: - return {"status": "no_pending"} - _shutdown_in_progress = False - _shutdown_mode = "" - _shutdown_started_at = 0.0 + global _shutdown_due_at, _shutdown_requested_delay, _shutdown_generation + global _pending_shutdown_task, _pending_shutdown_operation + async with shutdown_transition_lock: + if not _shutdown_in_progress or _shutdown_mode != "graceful": + return {"status": "no_pending"} + _shutdown_generation += 1 + task = _pending_shutdown_task + operation_id = _pending_shutdown_operation + _shutdown_in_progress = False + _shutdown_mode = "" + _shutdown_started_at = 0.0 + _shutdown_due_at = 0.0 + _shutdown_requested_delay = 0.0 + _pending_shutdown_task = None + _pending_shutdown_operation = None + if task is not None: + task.cancel() + if operation_id is not None: + await complete_operation(operation_id, result={"status": "cancelled"}) return {"status": "cancelled"} diff --git a/scripts/ci/test.sh b/scripts/ci/test.sh index b4931410..680713ae 100755 --- a/scripts/ci/test.sh +++ b/scripts/ci/test.sh @@ -4,6 +4,10 @@ echo "--- Running Unit Tests ---" pytest \ tests/test_api.py \ tests/test_api_contracts.py \ + tests/test_window_inventory_contract.py \ + tests/test_window_focus_contract.py \ + tests/test_window_inspect_contract.py \ + tests/test_lifecycle_cancel_window.py \ tests/test_conformance_runtime_policy.py \ tests/test_config_strict_validation.py \ tests/test_invariants.py \ diff --git a/tests/test_api_contracts.py b/tests/test_api_contracts.py index d62d97f5..7afed32e 100644 --- a/tests/test_api_contracts.py +++ b/tests/test_api_contracts.py @@ -204,7 +204,7 @@ def test_windows_focus_endpoint(): assert response.status_code == 200 assert response.json()["status"] == "focused" mock_safe.assert_called_once_with( - ["/automation/bin/x11.sh", "focus-window", "0x1234"] + ["/automation/bin/x11.sh", "focus", "0x1234"] ) @@ -461,9 +461,18 @@ def test_lifecycle_shutdown_exposes_operation_status(tmp_path): op_res = client.get(f"/operations/{op_id}", headers=_auth()) assert op_res.status_code == 200 op = op_res.json() - assert op["status"] == "succeeded" + # A cancellable graceful request is not a completed shutdown. + assert op["status"] == "running" assert op["kind"] == "lifecycle_shutdown" + cancelled = client.post("/lifecycle/cancel", headers=_auth()) + assert cancelled.status_code == 200 + assert cancelled.json()["status"] == "cancelled" + finished = client.get(f"/operations/{op_id}", headers=_auth()) + assert finished.status_code == 200 + assert finished.json()["status"] == "succeeded" + assert finished.json()["result"]["status"] == "cancelled" + def test_resume_session_rolls_back_state_on_broker_failure(tmp_path): current_dir = tmp_path / "session-current" diff --git a/tests/test_lifecycle_cancel_window.py b/tests/test_lifecycle_cancel_window.py new file mode 100644 index 00000000..05c89005 --- /dev/null +++ b/tests/test_lifecycle_cancel_window.py @@ -0,0 +1,129 @@ +"""Regression for cancellable, deferred graceful shutdown. + +No test sends a real process signal or stops live Wine services. +""" + +import asyncio +from contextlib import ExitStack +from unittest.mock import AsyncMock, patch + +from api.routers import lifecycle + + +def _mock_shutdown_side_effects(stack: ExitStack): + """Guard every external effect, especially PID 1 signalling.""" + stack.enter_context(patch.object(lifecycle, "read_session_dir", return_value=None)) + stack.enter_context(patch.object(lifecycle, "append_lifecycle_event")) + stack.enter_context(patch.object(lifecycle, "write_instance_state")) + stack.enter_context(patch.object(lifecycle, "emit_operation_timing")) + stack.enter_context( + patch.object(lifecycle, "create_operation", new=AsyncMock(return_value="synthetic-op")) + ) + stack.enter_context(patch.object(lifecycle, "heartbeat_operation", new=AsyncMock())) + complete = stack.enter_context( + patch.object(lifecycle, "complete_operation", new=AsyncMock()) + ) + stack.enter_context(patch.object(lifecycle, "fail_operation", new=AsyncMock())) + atomic = stack.enter_context( + patch.object(lifecycle, "atomic_shutdown", new=AsyncMock(return_value={"ok": True})) + ) + signal = stack.enter_context(patch.object(lifecycle, "schedule_shutdown")) + return atomic, signal, complete + + +def _reset_synthetic_transition(): + task = lifecycle._pending_shutdown_task + if task is not None and not task.done(): + task.cancel() + lifecycle._pending_shutdown_task = None + lifecycle._pending_shutdown_operation = None + lifecycle._shutdown_in_progress = False + lifecycle._shutdown_mode = "" + lifecycle._shutdown_started_at = 0.0 + lifecycle._shutdown_due_at = 0.0 + lifecycle._shutdown_requested_delay = 0.0 + lifecycle._shutdown_generation += 1 + + +def test_cancel_before_expiry_does_not_teardown_or_signal(): + async def scenario(): + _reset_synthetic_transition() + with ExitStack() as stack: + atomic, signal, complete = _mock_shutdown_side_effects(stack) + response = await lifecycle.lifecycle_shutdown(delay=0.04) + assert response["status"] == "shutting_down" + atomic.assert_not_awaited() + signal.assert_not_called() + cancelled = await lifecycle.lifecycle_cancel() + assert cancelled == {"status": "cancelled"} + await asyncio.sleep(0.06) + atomic.assert_not_awaited() + signal.assert_not_called() + assert await lifecycle.lifecycle_cancel() == {"status": "no_pending"} + assert any( + call.kwargs.get("result", {}).get("status") == "cancelled" + for call in complete.await_args_list + ) + _reset_synthetic_transition() + + asyncio.run(scenario()) + + +def test_grace_period_commits_teardown_only_after_expiry(): + async def scenario(): + _reset_synthetic_transition() + with ExitStack() as stack: + atomic, signal, _ = _mock_shutdown_side_effects(stack) + response = await lifecycle.lifecycle_shutdown(delay=0.04) + assert response["delay_seconds"] == 0.04 + atomic.assert_not_awaited() + signal.assert_not_called() + await asyncio.sleep(0.08) + atomic.assert_awaited_once() + signal.assert_called_once_with(None, 0.0, lifecycle.signal.SIGTERM) + assert await lifecycle.lifecycle_cancel() == {"status": "no_pending"} + _reset_synthetic_transition() + + asyncio.run(scenario()) + + +def test_duplicate_shutdown_does_not_schedule_second_worker(): + async def scenario(): + _reset_synthetic_transition() + with ExitStack() as stack: + atomic, signal, _ = _mock_shutdown_side_effects(stack) + first = await lifecycle.lifecycle_shutdown(delay=0.08) + original_due_at = lifecycle._shutdown_due_at + # A second request must not extend the original grace period. + duplicate = await lifecycle.lifecycle_shutdown(delay=0.5) + assert lifecycle._shutdown_due_at == original_due_at + assert first["status"] == "shutting_down" + assert duplicate["status"] == "shutting_down" + assert duplicate["reused_pending"] is True + assert duplicate["operation_id"] == first["operation_id"] + assert duplicate["delay_seconds"] == first["delay_seconds"] + assert duplicate["cancel_before"] == first["cancel_before"] + assert await lifecycle.lifecycle_cancel() == {"status": "cancelled"} + await asyncio.sleep(0.09) + atomic.assert_not_awaited() + signal.assert_not_called() + _reset_synthetic_transition() + + asyncio.run(scenario()) + + +def test_default_graceful_shutdown_advertises_real_cancel_window(): + async def scenario(): + _reset_synthetic_transition() + with ExitStack() as stack: + atomic, signal, _ = _mock_shutdown_side_effects(stack) + response = await lifecycle.lifecycle_shutdown() + assert response["delay_seconds"] >= 10 + assert response["cancel_command"] == "POST /lifecycle/cancel" + assert response["cancel_before"] >= lifecycle.time.time() + 9 + assert await lifecycle.lifecycle_cancel() == {"status": "cancelled"} + atomic.assert_not_awaited() + signal.assert_not_called() + _reset_synthetic_transition() + + asyncio.run(scenario()) diff --git a/tests/test_lifecycle_hardened.py b/tests/test_lifecycle_hardened.py index 37e43369..24aad16f 100644 --- a/tests/test_lifecycle_hardened.py +++ b/tests/test_lifecycle_hardened.py @@ -188,11 +188,22 @@ def test_lifecycle_shutdown_idempotent_guard(tmp_path): "/lifecycle/shutdown", headers={"X-API-Key": "test-token"}, ) + cancelled = client.post( + "/lifecycle/cancel", + headers={"X-API-Key": "test-token"}, + ) assert res1.status_code == 200 assert res1.json()["status"] == "shutting_down" assert res2.status_code == 200 - assert res2.json()["status"] == "already_shutting_down" + # Existing pending operation is replayed; never schedule a second worker + # or pretend the request has already torn down any components. + assert res2.json()["status"] == "shutting_down" + assert res2.json()["reused_pending"] is True + assert res2.json()["operation_id"] == res1.json()["operation_id"] + assert res2.json()["cancel_before"] == res1.json()["cancel_before"] + assert cancelled.status_code == 200 + assert cancelled.json()["status"] == "cancelled" @pytest.mark.anyio diff --git a/tests/test_window_focus_contract.py b/tests/test_window_focus_contract.py new file mode 100644 index 00000000..d1c95d5a --- /dev/null +++ b/tests/test_window_focus_contract.py @@ -0,0 +1,88 @@ +"""Fail-closed, X11-only window focus qualification with no Wine/X server.""" +from __future__ import annotations + +import asyncio +from unittest.mock import AsyncMock, patch + +import pytest +from fastapi import HTTPException + +from api.core.models import FocusModel +from api.routers import automation + + +def _run(data: FocusModel, listing: dict | None = None, focus: dict | None = None): + responses = [] + if listing is not None: + responses.append(listing) + if focus is not None: + responses.append(focus) + with patch.object(automation.broker, "check_access", new_callable=AsyncMock, return_value=True), \ + patch.object(automation, "safe_command", side_effect=responses) as command: + return asyncio.run(automation.focus_window(data)), command.call_args_list + + +def test_focus_by_id_uses_existing_x11_helper_subcommand(): + result, calls = _run(FocusModel(window_id="12345"), focus={"ok": True}) + assert result == {"status": "focused"} + assert calls[0].args[0] == ["/automation/bin/x11.sh", "focus", "12345"] + + +def test_focus_hex_xid_is_accepted_for_existing_clients(): + result, calls = _run(FocusModel(window_id="0x1234"), focus={"ok": True}) + assert result == {"status": "focused"} + assert calls[0].args[0] == ["/automation/bin/x11.sh", "focus", "0x1234"] + + +def test_focus_exact_title_resolves_visible_x11_id_without_regex_interpretation(): + result, calls = _run( + FocusModel(title="Window (Test)"), + listing={"ok": True, "stdout": "123 Other Window\n456 Window (Test)\n"}, + focus={"ok": True}, + ) + assert result == {"status": "focused"} + assert len(calls) == 2 + assert calls[0].args[0] == ["/automation/bin/x11.sh", "list-windows"] + assert calls[1].args[0] == ["/automation/bin/x11.sh", "focus", "456"] + + +def test_missing_or_empty_target_is_noop_without_command(): + for data in (FocusModel(), FocusModel(title="")): + result, calls = _run(data) + assert result == {"status": "invalid_target"} + assert calls == [] + + +def test_nonexistent_title_and_failed_lookup_do_not_focus(): + result, calls = _run( + FocusModel(title="missing"), listing={"ok": True, "stdout": "123 Present\n"} + ) + assert result == {"status": "not_found"} + assert len(calls) == 1 + result, calls = _run(FocusModel(title="missing"), listing={"ok": False}) + assert result == {"status": "unavailable"} + assert len(calls) == 1 + + +def test_non_numeric_window_id_rejected_without_process_invocation(): + result, calls = _run(FocusModel(window_id="123;touch /tmp/nope")) + assert result == {"status": "invalid_target"} + assert calls == [] + + +def test_failed_focus_never_reports_success_or_leaks_command_stderr(): + result, calls = _run( + FocusModel(window_id="123"), focus={"ok": False, "stderr": "HOST_PRIVATE_SENTINEL"} + ) + assert result == {"status": "failed"} + assert "HOST_PRIVATE_SENTINEL" not in str(result) + assert len(calls) == 1 + + +def test_policy_denial_still_blocks_focus(): + with patch.object(automation.broker, "check_access", new_callable=AsyncMock, return_value=False): + with patch.object(automation, "safe_command") as cmd: + with pytest.raises(HTTPException) as exc: + asyncio.run(automation.focus_window(FocusModel(window_id="123"))) + assert exc.value.status_code == 423 + cmd.assert_not_called() diff --git a/tests/test_window_inspect_contract.py b/tests/test_window_inspect_contract.py new file mode 100644 index 00000000..3bfeb802 --- /dev/null +++ b/tests/test_window_inspect_contract.py @@ -0,0 +1,74 @@ +"""Preserve truthful WineBot inspect responses without bypassing broker policy. + +These are isolated offline tests; no WinInspect daemon or X11/Wine process starts. +""" + +import asyncio +from unittest.mock import AsyncMock, patch + +import pytest +from fastapi import HTTPException + +from api.core.models import InspectWindowModel +from api.routers import automation + + +def test_empty_inspect_returns_contract_response_not_fake_success(): + with patch.object( + automation.broker, "check_access", new_callable=AsyncMock, return_value=True + ), patch.object(automation, "_wininspect_or_503") as daemon: + result = asyncio.run(automation.inspect_window(InspectWindowModel())) + assert result == { + "status": "invalid_target", + "detail": "Must provide title or handle", + } + daemon.assert_not_called() + + +def test_broker_denial_still_precedes_invalid_target_response(): + with patch.object( + automation.broker, "check_access", new_callable=AsyncMock, return_value=False + ), patch.object(automation, "_wininspect_or_503") as daemon: + with pytest.raises(HTTPException) as exc: + asyncio.run(automation.inspect_window(InspectWindowModel())) + assert exc.value.status_code == 423 + daemon.assert_not_called() + + +def test_authorized_list_only_inspection_is_real_read_only_enumeration(): + with patch.object( + automation.broker, "check_access", new_callable=AsyncMock, return_value=True + ), patch.object(automation, "_wininspect_or_503") as daemon, patch.object( + automation.wininspect, + "list_top_windows", + return_value=[{"hwnd": "101"}], + ) as listing: + result = asyncio.run( + automation.inspect_window(InspectWindowModel(list_only=True)) + ) + assert result == { + "status": "ok", + "backend": "wininspect", + "windows": [{"hwnd": "101"}], + "count": 1, + } + daemon.assert_called_once() + listing.assert_called_once() + + +def test_real_handle_info_is_not_synthesized(): + with patch.object( + automation.broker, "check_access", new_callable=AsyncMock, return_value=True + ), patch.object(automation, "_wininspect_or_503"), patch.object( + automation.wininspect, + "window_info", + return_value={"title": "fixture"}, + ) as info: + result = asyncio.run( + automation.inspect_window( + InspectWindowModel(handle="101", include_controls=False) + ) + ) + assert result["status"] == "ok" + assert result["details"] == {"title": "fixture"} + info.assert_called_once_with("101") diff --git a/tests/test_window_inventory_contract.py b/tests/test_window_inventory_contract.py new file mode 100644 index 00000000..f97a05c7 --- /dev/null +++ b/tests/test_window_inventory_contract.py @@ -0,0 +1,31 @@ +"""Portable /windows inventory contract, independent of running X11/Wine.""" + +from __future__ import annotations + +import asyncio +from unittest.mock import patch + +from api.routers import automation + + +def test_window_inventory_has_exact_count_and_unmodified_entries() -> None: + with patch.object(automation, "safe_command", return_value={ + "ok": True, "stdout": "0x0001 First Window\n0x0002 Second Window\n" + }): + result = asyncio.run(automation.list_windows()) + assert result == { + "windows": [ + {"id": "0x0001", "title": "First Window"}, + {"id": "0x0002", "title": "Second Window"}, + ], + "count": 2, + } + + +def test_window_inventory_failure_is_empty_without_false_count() -> None: + with patch.object(automation, "safe_command", return_value={ + "ok": False, "stdout": "", "stderr": "SENSITIVE_HOST_SENTINEL" + }): + result = asyncio.run(automation.list_windows()) + assert result == {"windows": [], "count": 0} + assert "SENSITIVE_HOST_SENTINEL" not in str(result) From aa13b675474d598f2e6c63f3ec0a56edb234c549 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 27 Nov 2026 04:09:52 +0100 Subject: [PATCH 70/87] docs(rdte): record R065 frozen-v1 convergence and exact verification queue --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 81587eb4..2b8363f7 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -359,3 +359,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` CI 43800228689 PASS with frozen contracts `205666f7f0235cb0fc51ca8a5af84f9f67831a74`; #150 CI 43799408893, #154 CI 44494852045 and #155 prior head `a5e4b0e070ff8697d9efd49af701077b35378282` CI 45852782234 FAIL at mandatory conformance, preflight and smoke PASS. Fresh checkout receipts in jobs 133077095885, 135460820503 and 140025477807 establish that **all three failing runs actually used the identical contracts SHA**, despite their floating checkout declarations. Thus pinning fixes reproducibility, not the observed assertion failures; no drift-based root-cause claim. #155 sanitized artifact 15135061706 SHA-256 `4ef82a99f31191bd2a1ea47240484d636e8b50f7490f4a16ffcab2d67d59ddef`; raw assertion remains unavailable and must not be published. Source compare to #123 identifies changes to automation/window behavior and lifecycle replay/cancel semantics as candidates for independent diagnosis, not verified causes. - Corrected #155 workflow only by adding the established public contracts commit pin at `d359ce1dd940c5e26bf3ddc9dae7fb8bebdde690`, without removing or relaxing any tests or publication guards. Both repositories verified public; CI uses standard ubuntu-24.04. Exact-head workflow results at time of reconciliation: Declarative Windows Fixture Recipe Parity RDTE 45899524367 in_progress; CI Unit Isolation and Startup Safety 45899524253 in_progress; Windows Installer Fixture Parity RDTE 45899524365 in_progress; CI 45899524369 in_progress; Installer Capture RDTE 45899524327 in_progress; BuildKit Automatic Record Publication Guard 45899524292 success; Public Conformance Evidence Safety Regression 45899524316 success. #150/#154 retained unchanged as historical failing branches; #249 uses pinned workflow already. Next: isolate behavioral regressions and converge installer capture on qualified source without discarding mandatory checks. #155 specialized fixture/capture checks at prior head pass; real arbitrary installer rollback still open. - No accepted integrated security clearance, native WinInspect v0.5.0 provider custody, real installer rollback, complete accessibility and authenticated multi-actor control evidence, or hardware-specific acceptance. All pre-hardware checkboxes remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, merge, private/paid runner, security waiver or physical hardware action. + +## R065 frozen-v1 behavioral convergence into installer draft — 2026-11-27 + +- Protected main freshly verified at `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` full CI 43800228689 PASS; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` CI 43799408893 and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` CI 44494852045 FAIL mandatory conformance; preflight/smoke PASS. Latest open successor remains #249 `5e975c5312b37debc29499ad264a34d10b065413` with ten successful exact-head workflows. No promotion or discharge of inherited holds. +- #155 pre-correction head `2af011b9ccf2a72169beab3742080985bee2500f`: [CI 45899580274](https://github.com/SemperSupra/WineBot/actions/runs/45899580274) terminal FAIL at mandatory Run conformance tests; all six other workflows PASS. Job 140183303401 confirms frozen contracts checkout `205666f7f0235cb0fc51ca8a5af84f9f67831a74`, safe aggregate artifact 15156030832, SHA-256 `238b6c844d0cb74ec731d02f24eb1194aa96c12f69cf0194e1e7a45a76d3d697`. Pinning alone demonstrably did not correct behavior. Raw failing assertions unavailable. +- Differential source diagnosis: #155 retained main-identical blobs for api/core/models.py, api/routers/automation.py, api/routers/lifecycle.py, tests/test_api_contracts.py and tests/test_lifecycle_hardened.py; its branch diff against main contains no runtime or regression-test changes. #123 provides qualified corrections to window inventory/focus, truthful inspect responses, and cancellable pending graceful shutdown identity/deadline. Converged those nine exact public source/test blobs into #155 in one non-force, expected-head commit `400e80dc122613dc954eb9a5d6a504da8766301f`, enrolling four new focused tests in the existing executable test script without removing any. No changes to installer implementation, mandatory contract workflow, or evidence guards; no provisional vNext classifier transplant. Source compare verifies only the ten intended paths changed. This is a bounded compatibility hypothesis and correction, not confirmed failing-assertion attribution. +- Automatic exact-head verification observed queued: [CI 45932520564](https://github.com/SemperSupra/WineBot/actions/runs/45932520564), [installer capture 45932520532](https://github.com/SemperSupra/WineBot/actions/runs/45932520532), Windows fixture 45932520491, declarative recipe 45932520610, startup/unit isolation 45932520499, provenance 45932520484, public conformance guard 45932520461, publication guard 45932520463, RPC redaction 45932520489. Await terminal receipts before accepting correction; reconcile subsequent documentation head separately. Existing public standard hosted runner policy unchanged. +- Next: inspect exact-head first failures or terminal results, then converge installer changes onto qualified integrated baseline and requalify. Retain #150/#154 historical source evidence; no redundant reruns. Native WinInspect v0.5.0 custody, real installer rollback, accessibility, authenticated multi-actor control and independent integrated security clearance still open. All pre-hardware checklist items remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, protected-main merge, security waiver, private/paid runner or user hardware action. From 08da547c68612080365991966666ae228dc3a3cc Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 27 Nov 2026 10:03:24 +0100 Subject: [PATCH 71/87] docs: reconcile R066 exact conformance recovery and installer integration --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 2b8363f7..0ba1cd1e 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -367,3 +367,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Differential source diagnosis: #155 retained main-identical blobs for api/core/models.py, api/routers/automation.py, api/routers/lifecycle.py, tests/test_api_contracts.py and tests/test_lifecycle_hardened.py; its branch diff against main contains no runtime or regression-test changes. #123 provides qualified corrections to window inventory/focus, truthful inspect responses, and cancellable pending graceful shutdown identity/deadline. Converged those nine exact public source/test blobs into #155 in one non-force, expected-head commit `400e80dc122613dc954eb9a5d6a504da8766301f`, enrolling four new focused tests in the existing executable test script without removing any. No changes to installer implementation, mandatory contract workflow, or evidence guards; no provisional vNext classifier transplant. Source compare verifies only the ten intended paths changed. This is a bounded compatibility hypothesis and correction, not confirmed failing-assertion attribution. - Automatic exact-head verification observed queued: [CI 45932520564](https://github.com/SemperSupra/WineBot/actions/runs/45932520564), [installer capture 45932520532](https://github.com/SemperSupra/WineBot/actions/runs/45932520532), Windows fixture 45932520491, declarative recipe 45932520610, startup/unit isolation 45932520499, provenance 45932520484, public conformance guard 45932520461, publication guard 45932520463, RPC redaction 45932520489. Await terminal receipts before accepting correction; reconcile subsequent documentation head separately. Existing public standard hosted runner policy unchanged. - Next: inspect exact-head first failures or terminal results, then converge installer changes onto qualified integrated baseline and requalify. Retain #150/#154 historical source evidence; no redundant reruns. Native WinInspect v0.5.0 custody, real installer rollback, accessibility, authenticated multi-actor control and independent integrated security clearance still open. All pre-hardware checklist items remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No release, protected-main merge, security waiver, private/paid runner or user hardware action. + + +## R066 mandatory-conformance recovery and installer integration — 2026-11-27 + +- Exact #155 head `aa13b675474d598f2e6c63f3ec0a56edb234c549` now has nine terminal SUCCESS workflows: [mandatory CI 45932554943](https://github.com/SemperSupra/WineBot/actions/runs/45932554943), installer capture 45932554927, native fixture parity 45932554912, declarative recipe parity 45932554929, startup/unit 45932554964, public conformance 45932554944, publication guard 45932554961, RPC redaction 45932554932 and provenance 45932554935. CI job 140289431952 explicitly passes Run conformance tests; preflight and integration smoke pass. The earlier intermediate commit 400e80dc122613dc954eb9a5d6a504da8766301f had cancelled workflows after the documentation successor; its results are not substituted for the exact qualified head. This supports the combined behavioral correction, not attribution of each formerly failing assertion. No waiver. +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; historical #123 full CI passes at 3acc219a1627a74bdcea6388144cc391ec2b57b4. #150 and #154 retain their existing failures at mandatory conformance (jobs 133077095885 and 135460820503), not corrected or closed by this result. #249 exact head 5e975c5312b37debc29499ad264a34d10b065413 retains ten terminal successful workflows. +- Opened [draft #250](https://github.com/SemperSupra/WineBot/pull/250) at `35476bcc12bf356dac90a9c4fd2ba1adcb48daf9`, one commit directly atop #249. Verified exact compare: 16 new files only, comprising three public hosted Ubuntu/Windows workflows and 13 Go installer/capture/recipe sources; all blob IDs taken from qualified #155. No runtime, mandatory CI, security gate or parent branch changes. Existing roadmap remains canonical on #155. Public repository verified; fixture workflows use standard ubuntu-24.04/windows-2025, contents:read, isolated synthetic input and no artifact uploads. PR created; workflow receipts not yet visible at first query. Do not infer qualification from creation. +- Next: inspect #250 exact-head mandatory CI and fixture workflows, then qualify a rights-cleared real installer, independently reconstructed recipe and rollback on the exact layered Wine11 environment, with persistent user-state negatives. Distro Wine and native synthetic fixtures do not establish that result. Existing integrated security holds, native WinInspect v0.5.0 custody, authenticated multi-actor control, accessibility and hardware candidate evidence remain open. All pre-hardware checkboxes remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, paid/private runner, security waiver or physical hardware action. From 2d5935d11dd36e7ce35fd6a880f16df19d55a1e0 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 27 Nov 2026 16:38:05 +0100 Subject: [PATCH 72/87] DLE: record integrated fixture passes and original MSI workcell R067 --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 0ba1cd1e..98462a4a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -375,3 +375,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; historical #123 full CI passes at 3acc219a1627a74bdcea6388144cc391ec2b57b4. #150 and #154 retain their existing failures at mandatory conformance (jobs 133077095885 and 135460820503), not corrected or closed by this result. #249 exact head 5e975c5312b37debc29499ad264a34d10b065413 retains ten terminal successful workflows. - Opened [draft #250](https://github.com/SemperSupra/WineBot/pull/250) at `35476bcc12bf356dac90a9c4fd2ba1adcb48daf9`, one commit directly atop #249. Verified exact compare: 16 new files only, comprising three public hosted Ubuntu/Windows workflows and 13 Go installer/capture/recipe sources; all blob IDs taken from qualified #155. No runtime, mandatory CI, security gate or parent branch changes. Existing roadmap remains canonical on #155. Public repository verified; fixture workflows use standard ubuntu-24.04/windows-2025, contents:read, isolated synthetic input and no artifact uploads. PR created; workflow receipts not yet visible at first query. Do not infer qualification from creation. - Next: inspect #250 exact-head mandatory CI and fixture workflows, then qualify a rights-cleared real installer, independently reconstructed recipe and rollback on the exact layered Wine11 environment, with persistent user-state negatives. Distro Wine and native synthetic fixtures do not establish that result. Existing integrated security holds, native WinInspect v0.5.0 custody, authenticated multi-actor control, accessibility and hardware candidate evidence remain open. All pre-hardware checkboxes remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, paid/private runner, security waiver or physical hardware action. + + +## R067 original-installer Wine11 workcell — 2026-11-27 + +- Accepted main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. Exact #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` retains seven green workflows. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` first failure remains mandatory Run conformance tests (43799408893, 44494852045); both preflight and smoke pass. Retain those source-scoped negative receipts, do not rerun unchanged. #220 `8c869a1d1b1ffe6f158bbc233f9eb4d46f5927a3` remains security-held despite nine passing checks; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. +- #155 exact documentation successor `08da547c68612080365991966666ae228dc3a3cc` all nine workflows terminal SUCCESS, including [mandatory CI 45970529165](https://github.com/SemperSupra/WineBot/actions/runs/45970529165). #250 integrated source `35476bcc12bf356dac90a9c4fd2ba1adcb48daf9` all five workflows terminal SUCCESS: [CI 45970482697](https://github.com/SemperSupra/WineBot/actions/runs/45970482697), installer 45970482677, native parity 45970482576, recipe parity 45970482443 and publication guard 45970482809. Confirmed mandatory conformance, preflight and smoke on both. This proves integrated synthetic fixture acceptance, not real installer/recipe parity. +- Added one isolated public-runner workflow to #250 at `2250985efc2ce27064fcfb9793b99a15e645f149`: `.github/workflows/real-installer-wine11-rdte.yml`. Source compare confirms only this new file; no runtime or security policy modifications. Uses original GPL Notepad++ v8.9.9.1 x64 MSI, upstream [release](https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.9.1), SHA-256 `e3b0607a092ce2604fbdac027db2c94915995e8e568ebd226f8c5493c2f61a80` pinned from upstream asset metadata. Builds the capture CLI from exact source and the real layered runtime using the established separate Wine11 source pin. Unique fixture volumes, UID1000 read-only runtime, actual runtime health and local image admission, network disconnect before executing the installer, isolated experimental prefix, local quiesced file/registry inventory before/after and after uninstall, actual GUI document save, app-executable absence after uninstall, and user-file preservation through runtime recreation are required. Only fixed-category receipts; no raw manifests, screenshots, installer binaries or images uploaded. This is an unverified bounded original-installer/uninstall workcell, not independent recipe reconstruction, full rollback equivalence, native MSI parity, or a qualified release. +- [Real installer 46026593350](https://github.com/SemperSupra/WineBot/actions/runs/46026593350), [mandatory CI 46026593150](https://github.com/SemperSupra/WineBot/actions/runs/46026593150), fixture 46026593189, recipe 46026593190, capture 46026593161 and publication guard 46026593475 were queued/in progress at observation. Verify first failures and correct the bounded harness; then independently reconstruct the real installer effects and validate rollback against a quiesced baseline. No synthetic PASS substitution. Do not discharge security, native WinInspect provider, multi-actor control or accessibility holds. All pre-hardware gates remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main merge, paid/private runner or physical hardware operation. From 35bf70b679f0cc6859327ef05b326e5d4fdf939a Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Fri, 27 Nov 2026 22:28:19 +0100 Subject: [PATCH 73/87] DLE: record real MSI receipt and checkpoint rollback workcell R068 --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 98462a4a..e32f19a7 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -383,3 +383,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #155 exact documentation successor `08da547c68612080365991966666ae228dc3a3cc` all nine workflows terminal SUCCESS, including [mandatory CI 45970529165](https://github.com/SemperSupra/WineBot/actions/runs/45970529165). #250 integrated source `35476bcc12bf356dac90a9c4fd2ba1adcb48daf9` all five workflows terminal SUCCESS: [CI 45970482697](https://github.com/SemperSupra/WineBot/actions/runs/45970482697), installer 45970482677, native parity 45970482576, recipe parity 45970482443 and publication guard 45970482809. Confirmed mandatory conformance, preflight and smoke on both. This proves integrated synthetic fixture acceptance, not real installer/recipe parity. - Added one isolated public-runner workflow to #250 at `2250985efc2ce27064fcfb9793b99a15e645f149`: `.github/workflows/real-installer-wine11-rdte.yml`. Source compare confirms only this new file; no runtime or security policy modifications. Uses original GPL Notepad++ v8.9.9.1 x64 MSI, upstream [release](https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.9.1), SHA-256 `e3b0607a092ce2604fbdac027db2c94915995e8e568ebd226f8c5493c2f61a80` pinned from upstream asset metadata. Builds the capture CLI from exact source and the real layered runtime using the established separate Wine11 source pin. Unique fixture volumes, UID1000 read-only runtime, actual runtime health and local image admission, network disconnect before executing the installer, isolated experimental prefix, local quiesced file/registry inventory before/after and after uninstall, actual GUI document save, app-executable absence after uninstall, and user-file preservation through runtime recreation are required. Only fixed-category receipts; no raw manifests, screenshots, installer binaries or images uploaded. This is an unverified bounded original-installer/uninstall workcell, not independent recipe reconstruction, full rollback equivalence, native MSI parity, or a qualified release. - [Real installer 46026593350](https://github.com/SemperSupra/WineBot/actions/runs/46026593350), [mandatory CI 46026593150](https://github.com/SemperSupra/WineBot/actions/runs/46026593150), fixture 46026593189, recipe 46026593190, capture 46026593161 and publication guard 46026593475 were queued/in progress at observation. Verify first failures and correct the bounded harness; then independently reconstruct the real installer effects and validate rollback against a quiesced baseline. No synthetic PASS substitution. Do not discharge security, native WinInspect provider, multi-actor control or accessibility holds. All pre-hardware gates remain unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main merge, paid/private runner or physical hardware operation. + + +## R068 real MSI acceptance and checkpoint rollback workcell — 2026-11-27 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` retains seven terminal green workflows; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance first failures (jobs 133077095885 and 135460820503, Run conformance tests); preserve unchanged historical branches. #155 `2d5935d11dd36e7ce35fd6a880f16df19d55a1e0` all nine green, including CI 46026663689. #249 `5e975c5312b37debc29499ad264a34d10b065413` retains ten green. +- #250 exact head `2250985efc2ce27064fcfb9793b99a15e645f149` six terminal SUCCESS workflows. [Real original MSI 46026593350](https://github.com/SemperSupra/WineBot/actions/runs/46026593350), job 140599454605, standard ubuntu-24.04 hosted runner; actual emitted receipts (not shell command echo) confirm original MSI/capture pin, isolated layered runtime, GUI save/capture/uninstall, persistent state after recreation. [Mandatory CI 46026593150](https://github.com/SemperSupra/WineBot/actions/runs/46026593150) all three jobs pass, including contracts 140602174467. Native synthetic parity 46026593189, declarative synthetic parity 46026593190, capture 46026593161 and publication guard 46026593475 pass. This qualifies the bounded original installer journey, not independently reconstructed real recipe or complete rollback. +- Implemented next bounded workcell on draft #250 at `4e0811a90739d685a456de773713d242b2c83aa3` (only .github/workflows/real-installer-wine11-rdte.yml changed): quiesced baseline checkpoint on same isolated fixture volume; copy preserving symlinks without following them, exact-inventory positive and extra-file negative, real original installer and uninstall preserved, checkpoint replacement via same-volume rename retaining retired fixture prefix, exact prefix inventory and semantic system registry verification, preserved user files, private manifest verified again after recreation. No raw state uploaded. This is a test of checkpoint restore in a disposable fixture, not a production rollback implementation or an independently reconstructed installer. Inventory covers names/types/bytes/link targets, not all metadata, runtime behavior or external side effects. No existing admission or CI guard relaxed. +- Exact-head automatic verification at observation: Windows Installer Fixture Parity RDTE 46070488998: in_progress; Declarative Windows Fixture Recipe Parity RDTE 46070489238: in_progress; Real Notepad++ MSI installer on layered Wine11 RDTE 46070489016: in_progress; CI 46070489027: in_progress; BuildKit Automatic Record Publication Guard 46070488986: in_progress; Installer Capture RDTE 46070488988: in_progress. Await terminal receipts. If failure, diagnose first failing assertion without relaxing baseline verification. Independent recipe reconstruction still requires a distinct declarative recipe, no original installer execution in the replay, and independent application-level postconditions. Integrated security review, native WinInspect provider custody, authenticated multi-actor control, accessibility, soak and hardware manifest remain open. All mandatory pre-hardware gates stay unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, security bypass, paid/private runner or physical hardware action. From c4ef2cb15fe8e588aa3a30cd10f35f82416b1885 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 28 Nov 2026 04:14:51 +0100 Subject: [PATCH 74/87] DLE R069: reconcile verified rollback and static payload replay workcell --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index e32f19a7..8010a951 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -391,3 +391,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #250 exact head `2250985efc2ce27064fcfb9793b99a15e645f149` six terminal SUCCESS workflows. [Real original MSI 46026593350](https://github.com/SemperSupra/WineBot/actions/runs/46026593350), job 140599454605, standard ubuntu-24.04 hosted runner; actual emitted receipts (not shell command echo) confirm original MSI/capture pin, isolated layered runtime, GUI save/capture/uninstall, persistent state after recreation. [Mandatory CI 46026593150](https://github.com/SemperSupra/WineBot/actions/runs/46026593150) all three jobs pass, including contracts 140602174467. Native synthetic parity 46026593189, declarative synthetic parity 46026593190, capture 46026593161 and publication guard 46026593475 pass. This qualifies the bounded original installer journey, not independently reconstructed real recipe or complete rollback. - Implemented next bounded workcell on draft #250 at `4e0811a90739d685a456de773713d242b2c83aa3` (only .github/workflows/real-installer-wine11-rdte.yml changed): quiesced baseline checkpoint on same isolated fixture volume; copy preserving symlinks without following them, exact-inventory positive and extra-file negative, real original installer and uninstall preserved, checkpoint replacement via same-volume rename retaining retired fixture prefix, exact prefix inventory and semantic system registry verification, preserved user files, private manifest verified again after recreation. No raw state uploaded. This is a test of checkpoint restore in a disposable fixture, not a production rollback implementation or an independently reconstructed installer. Inventory covers names/types/bytes/link targets, not all metadata, runtime behavior or external side effects. No existing admission or CI guard relaxed. - Exact-head automatic verification at observation: Windows Installer Fixture Parity RDTE 46070488998: in_progress; Declarative Windows Fixture Recipe Parity RDTE 46070489238: in_progress; Real Notepad++ MSI installer on layered Wine11 RDTE 46070489016: in_progress; CI 46070489027: in_progress; BuildKit Automatic Record Publication Guard 46070488986: in_progress; Installer Capture RDTE 46070488988: in_progress. Await terminal receipts. If failure, diagnose first failing assertion without relaxing baseline verification. Independent recipe reconstruction still requires a distinct declarative recipe, no original installer execution in the replay, and independent application-level postconditions. Integrated security review, native WinInspect provider custody, authenticated multi-actor control, accessibility, soak and hardware manifest remain open. All mandatory pre-hardware gates stay unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, security bypass, paid/private runner or physical hardware action. + + +## R069 verified checkpoint restoration and independent static payload replay — 2026-11-28 + +- Main `f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven terminal green; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance failures 43799408893 and 44494852045; no reruns or promotion. #155 `35bf70b679f0cc6859327ef05b326e5d4fdf939a` all nine green including CI 46070521939; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. #250 `4e0811a90739d685a456de773713d242b2c83aa3` all six green including mandatory CI 46070489027 and [real MSI checkpoint 46070489016](https://github.com/SemperSupra/WineBot/actions/runs/46070489016). Job 140745993457 actual emitted receipts at 21:34:09Z and 21:35:13Z on 27 Nov confirm restored inventory/system registry and inventory plus preserved user data after recreation; source includes extra-file rejection. This is bounded checkpoint equivalence, not production transactional rollback, complete metadata or external side-effect equivalence. +- Next independent workcell implemented on draft #250 at `bdafdc5c4d817090cbe4272791234014c39ecf4e`: compare confirms one workflow file, 63 additions, zero deletions. Public ubuntu-24.04 runner installs msitools, extracts static application payload from the already SHA-256-pinned original MSI without executing it, admits only a uniquely identified regular-file/directory application tree; replays it into a fresh isolated Wine prefix and separate HOME, verifies main executable hash against original installation and an independent GUI save, then checks replay document and executable after recreation. Existing R67/R68 assertions retained; replay executes no MSI or captured registry import. This is an intentionally narrow static file-placement recipe experiment, not complete declarative installer parity (registry, MSI custom actions, shortcuts, all files and metadata not proven); extraction tool version not pinned. No raw manifests, extracted binaries or logs uploaded. Source-exact public runner verification BuildKit Automatic Record Publication Guard 46101897202: in_progress; Declarative Windows Fixture Recipe Parity RDTE 46101897208: in_progress; Windows Installer Fixture Parity RDTE 46101897226: in_progress; Installer Capture RDTE 46101897214: in_progress; Real Notepad++ MSI installer on layered Wine11 RDTE 46101897262: in_progress; CI 46101897211: in_progress. Diagnose first failures before accepting. +- Integrated security clearance, native WinInspect provider custody, authenticated multi-actor control, accessibility, production rollback, full real installer recipe parity, soak and hardware manifest remain open. All mandatory pre-hardware gates stay unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, security bypass, paid/private runner or physical hardware operation. From e19dd7f3fd1c0a7e762a00d566727c0ee62fd504 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 28 Nov 2026 10:27:09 +0100 Subject: [PATCH 75/87] DLE R073: reconcile qualified resource envelope and static MSI subset workcell --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 8010a951..33b37fac 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -398,3 +398,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Main `f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven terminal green; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance failures 43799408893 and 44494852045; no reruns or promotion. #155 `35bf70b679f0cc6859327ef05b326e5d4fdf939a` all nine green including CI 46070521939; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. #250 `4e0811a90739d685a456de773713d242b2c83aa3` all six green including mandatory CI 46070489027 and [real MSI checkpoint 46070489016](https://github.com/SemperSupra/WineBot/actions/runs/46070489016). Job 140745993457 actual emitted receipts at 21:34:09Z and 21:35:13Z on 27 Nov confirm restored inventory/system registry and inventory plus preserved user data after recreation; source includes extra-file rejection. This is bounded checkpoint equivalence, not production transactional rollback, complete metadata or external side-effect equivalence. - Next independent workcell implemented on draft #250 at `bdafdc5c4d817090cbe4272791234014c39ecf4e`: compare confirms one workflow file, 63 additions, zero deletions. Public ubuntu-24.04 runner installs msitools, extracts static application payload from the already SHA-256-pinned original MSI without executing it, admits only a uniquely identified regular-file/directory application tree; replays it into a fresh isolated Wine prefix and separate HOME, verifies main executable hash against original installation and an independent GUI save, then checks replay document and executable after recreation. Existing R67/R68 assertions retained; replay executes no MSI or captured registry import. This is an intentionally narrow static file-placement recipe experiment, not complete declarative installer parity (registry, MSI custom actions, shortcuts, all files and metadata not proven); extraction tool version not pinned. No raw manifests, extracted binaries or logs uploaded. Source-exact public runner verification BuildKit Automatic Record Publication Guard 46101897202: in_progress; Declarative Windows Fixture Recipe Parity RDTE 46101897208: in_progress; Windows Installer Fixture Parity RDTE 46101897226: in_progress; Installer Capture RDTE 46101897214: in_progress; Real Notepad++ MSI installer on layered Wine11 RDTE 46101897262: in_progress; CI 46101897211: in_progress. Diagnose first failures before accepting. - Integrated security clearance, native WinInspect provider custody, authenticated multi-actor control, accessibility, production rollback, full real installer recipe parity, soak and hardware manifest remain open. All mandatory pre-hardware gates stay unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, release, security bypass, paid/private runner or physical hardware operation. + + +## R073 source-exact resource-envelope convergence and real MSI static subset parity — 2026-11-28 + +- Main `f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain first failing mandatory conformance runs 43799408893 and 44494852045; preserve source-scoped failures. #155 `c4ef2cb15fe8e588aa3a30cd10f35f82416b1885` nine green including CI 46101922018; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. +- Reconciled owning #250 at `ac830ff54b1c853efe2a95f96845097b7227241d`: all 13 workflows terminal SUCCESS, including mandatory CI 46115913242 (contracts job 140890444155) and [actual MSI replay and exact retained bytes](https://github.com/SemperSupra/WineBot/actions/runs/46115913228), job 140889592174. Actual emitted R69/R70 receipts verify static executable parity, GUI save, mutation-negative rejection and full retained application inventory/document bytes after recreation. R072 also enrolls WinInspect framing/denial tests, not native provider interoperability. +- #252 exact `305dc47f86f8d80a581b31cc28849ecc0e1c72b0` five terminal SUCCESS workflows: [real app/game workload](https://github.com/SemperSupra/WineBot/actions/runs/46115999480), composite 46115999514, mandatory CI 46115999551, publication guard 46115999487 and layer contract 46115999505. Job 140889868186 emitted effective resource-envelope PASS before and after recreation, real editor GUI save, broker keyboard/STOP, game save and replay. Compare confirmed one commit ahead, zero behind, four intended paths. Following #250 R072 DLE, expected-head non-force fast-forward of owning draft from ac830ff to 305dc47 succeeded; #252 auto-closed merged into #250 only. No protected-main merge or security hold discharge. Static leaf caps/permissions are not stress or trusted writer fencing. +- Next bounded workcell on #250: `5d49139791a52a6576e272cdbad2982fdd1063af` (supersedes intermediate `1f8e82f7cd7d25c3e6f6e6736dc877a2bc5733d4` with corrected heredoc failure classification). Exact compare against 305dc47 confirms only existing real MSI workflow changed (33 additions, 3 deletions). Pin msitools to observed public Ubuntu version 0.103+repack-1build3 and assert dpkg version; require every extracted regular file in static MSI application payload to exist as a regular non-symlink and match bytes in original installation before first application launch. More than one file must match; report fixed failure categories only, no raw paths/state. Existing independent replay, mutation negatives, GUI and recreation acceptance retained. This is a subset oracle, not parity of additional installed files, registry/custom actions/metadata or arbitrary MSI semantics. Exact-head automatic workflows not yet visible at first query; do not accept intermediate or previous-head receipts for this change. +- Next: observe final-head automatic CI/HIL and first failures, retain all checks; if static subset differs investigate MSI destination/component semantics without silently excluding files. Keep integrating independently qualified lifecycle/pressure work with deliberate overlap resolution. Integrated security clearance, native WinInspect provider custody, authenticated multi-actor control, accessibility, production rollback, full installer recipe equivalence, exact integrated soak and hardware manifest remain open. All eight mandatory pre-hardware checkboxes remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**; no release, candidate publication, paid/private runners, security waiver or physical hardware action. From b94f38d5a523c48190f94febf124614a43003202 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 28 Nov 2026 16:47:16 +0100 Subject: [PATCH 76/87] docs: reconcile R074 exact-head Wine11 qualification and hardware publication boundary --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 33b37fac..8fc7188a 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -407,3 +407,13 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #252 exact `305dc47f86f8d80a581b31cc28849ecc0e1c72b0` five terminal SUCCESS workflows: [real app/game workload](https://github.com/SemperSupra/WineBot/actions/runs/46115999480), composite 46115999514, mandatory CI 46115999551, publication guard 46115999487 and layer contract 46115999505. Job 140889868186 emitted effective resource-envelope PASS before and after recreation, real editor GUI save, broker keyboard/STOP, game save and replay. Compare confirmed one commit ahead, zero behind, four intended paths. Following #250 R072 DLE, expected-head non-force fast-forward of owning draft from ac830ff to 305dc47 succeeded; #252 auto-closed merged into #250 only. No protected-main merge or security hold discharge. Static leaf caps/permissions are not stress or trusted writer fencing. - Next bounded workcell on #250: `5d49139791a52a6576e272cdbad2982fdd1063af` (supersedes intermediate `1f8e82f7cd7d25c3e6f6e6736dc877a2bc5733d4` with corrected heredoc failure classification). Exact compare against 305dc47 confirms only existing real MSI workflow changed (33 additions, 3 deletions). Pin msitools to observed public Ubuntu version 0.103+repack-1build3 and assert dpkg version; require every extracted regular file in static MSI application payload to exist as a regular non-symlink and match bytes in original installation before first application launch. More than one file must match; report fixed failure categories only, no raw paths/state. Existing independent replay, mutation negatives, GUI and recreation acceptance retained. This is a subset oracle, not parity of additional installed files, registry/custom actions/metadata or arbitrary MSI semantics. Exact-head automatic workflows not yet visible at first query; do not accept intermediate or previous-head receipts for this change. - Next: observe final-head automatic CI/HIL and first failures, retain all checks; if static subset differs investigate MSI destination/component semantics without silently excluding files. Keep integrating independently qualified lifecycle/pressure work with deliberate overlap resolution. Integrated security clearance, native WinInspect provider custody, authenticated multi-actor control, accessibility, production rollback, full installer recipe equivalence, exact integrated soak and hardware manifest remain open. All eight mandatory pre-hardware checkboxes remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**; no release, candidate publication, paid/private runners, security waiver or physical hardware action. + + +## R074 exact-head qualification and publication-boundary reconciliation — 2026-11-28 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven terminal green; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` still fail at mandatory Run conformance tests (jobs 133077095885 and 135460820503; preflight and smoke PASS). No redundant reruns. #155 `e19dd7f3fd1c0a7e762a00d566727c0ee62fd504` nine green including CI 46130546143; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. +- R073 #250 exact `5d49139791a52a6576e272cdbad2982fdd1063af` all fifteen workflows terminal SUCCESS, including [mandatory CI 46130521658](https://github.com/SemperSupra/WineBot/actions/runs/46130521658) and [real MSI subset parity 46130521729](https://github.com/SemperSupra/WineBot/actions/runs/46130521729). This validates the pinned extractor and static extracted-file subset oracle, not complete installer semantics. +- Owning #250 advanced independently to `e4ad84c6ffe1081b25013d91261856b0f107d2b3`, introducing distinct runtime/instrumented modes, candidate image workflow, Wine11 CI alignment and dashboard changes. At observation: 14 of 19 PR workflows green, 4 active (mandatory CI 46160862996, composite 46160862884, Windows fixture 46160863110, recipe parity 46160863046), one skipped (candidate images 46160863115). [Real MSI 46160862949](https://github.com/SemperSupra/WineBot/actions/runs/46160862949) job 141027639024 contains actual emitted `INSTALLER_R73 stage=original_static_file_subset_parity` and R69 independent GUI-save receipts; real Wine11 prefix restore 46160863032 and real app/game 46160863014 green. Preflight job 141027639626 green; mandatory contracts and smoke still active at last read. Do not cancel or duplicate these jobs, or infer all-head success. +- Publication boundary: inspection of exact `.github/workflows/wine11-candidate-images.yml` shows PR qualification explicitly excludes the owning integration branch, and the separate push-triggered publish job has package-write/OIDC permissions. It builds/scans and qualifies a bounded single-operator disposable OCI envelope, not the full eight pre-hardware gates. The inspected PR run has both jobs skipped; the available commit-workflow listing is PR-only and does not establish status of any separate push run or registry publication. Do not trigger this path, designate its output a hardware candidate, or infer security clearance. No package publication or hardware action initiated by this workcell. Other actors' independent development-image work is not accepted as hardware evidence. +- Next bounded gate workcell after active runs settle: make a read-only, source-exact local image qualification path available on the owning PR, without package credentials or registry mutation. Keep publication as a separate fail-closed promotion step requiring all eight source/digest-bound gate receipts, explicit security/publication clearance, and tested-object identity; verify negative cases for missing/stale receipt, mismatched digest and unapproved security status before enabling promotion. Candidate evidence can be evaluated locally before any hardware designation; no circular requirement to publish an unqualified hardware candidate to satisfy the first checklist item. No new screenshot or raw inventory publication. Do not overwrite concurrently modified runtime/workflow files or bypass independent holds. +- Remaining: mandatory CI/composite/fixture terminal results, native WinInspect provider custody, trusted multi-actor authority, pressure and 55-minute soak, accessible human control, complete installer/production rollback equivalence, integrated supply-chain and security clearance, and bounded hardware manifest. All eight pre-hardware checklist items remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, paid/private runner use, candidate promotion, security waiver or user hardware operation. From 6ac66df68b7230ed5d579da88d3bea55f7475000 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sat, 28 Nov 2026 22:45:49 +0100 Subject: [PATCH 77/87] R075: reconcile development image custody and enforce pre-hardware publication hold --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 8fc7188a..6ef64100 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -417,3 +417,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Publication boundary: inspection of exact `.github/workflows/wine11-candidate-images.yml` shows PR qualification explicitly excludes the owning integration branch, and the separate push-triggered publish job has package-write/OIDC permissions. It builds/scans and qualifies a bounded single-operator disposable OCI envelope, not the full eight pre-hardware gates. The inspected PR run has both jobs skipped; the available commit-workflow listing is PR-only and does not establish status of any separate push run or registry publication. Do not trigger this path, designate its output a hardware candidate, or infer security clearance. No package publication or hardware action initiated by this workcell. Other actors' independent development-image work is not accepted as hardware evidence. - Next bounded gate workcell after active runs settle: make a read-only, source-exact local image qualification path available on the owning PR, without package credentials or registry mutation. Keep publication as a separate fail-closed promotion step requiring all eight source/digest-bound gate receipts, explicit security/publication clearance, and tested-object identity; verify negative cases for missing/stale receipt, mismatched digest and unapproved security status before enabling promotion. Candidate evidence can be evaluated locally before any hardware designation; no circular requirement to publish an unqualified hardware candidate to satisfy the first checklist item. No new screenshot or raw inventory publication. Do not overwrite concurrently modified runtime/workflow files or bypass independent holds. - Remaining: mandatory CI/composite/fixture terminal results, native WinInspect provider custody, trusted multi-actor authority, pressure and 55-minute soak, accessible human control, complete installer/production rollback equivalence, integrated supply-chain and security clearance, and bounded hardware manifest. All eight pre-hardware checklist items remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, paid/private runner use, candidate promotion, security waiver or user hardware operation. + + +## R075 publication hold enforcement and exact-head image qualification — 2026-11-28 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green; #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance failures 43799408893 and 44494852045 at Run conformance tests (jobs 133077095885 and 135460820503; preflight and smoke green). #155 pre-reconciliation `b94f38d5a523c48190f94febf124614a43003202` nine green including CI 46161703448; #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. Preserve historical branches. +- Independent #250 development head `3eb403a998484fc2b89273fa3edfbf7601f1324b` has 18 successful PR workflows, one intentionally skipped image workflow; [mandatory CI](https://github.com/SemperSupra/WineBot/actions/runs/46165231905) all three jobs green, [real application and game](https://github.com/SemperSupra/WineBot/actions/runs/46165231868), [real MSI](https://github.com/SemperSupra/WineBot/actions/runs/46165231807) and [composite 55-minute soak/recovery](https://github.com/SemperSupra/WineBot/actions/runs/46165231940) terminal success. Composite soak applies to intent-rel/layered recipe with pinned Wine11 base source, not the two distinct final mode images. Separate push [development-image publication 46165227087](https://github.com/SemperSupra/WineBot/actions/runs/46165227087) succeeded; job steps and artifact metadata confirm actual publication/launcher tests and exact source. Historical artifact 15271593425 has archive SHA-256 5ef26847ad8cf954e7d9ae19d59e93398087e1b80492350486ca57740209f599. PR body reports published digest identities and successful scanner/signature checks; those are bounded development objects, not admitted hardware candidates. Do not re-designate, deploy, delete, retag or republish these objects on this basis. The prior scan gate ignores unfixed findings and does not constitute integrated security clearance. +- Root cause of premature publication path: a push trigger on the integration branch granted packages:write and id-token:write before the mandatory readiness checklist was enforced, while the read-only PR image job deliberately excluded that branch. Corrected atomically in four files by expected-head non-force fast-forward to `8efcc5133dd773af9bae0d9b9555bbab0c011a65`. Removed push publication trigger/job; restored same-repo owning PR eligibility with contents:read and no persisted checkout credentials. Existing build/unit/real GUI/recreate/scan assertions remain. Direct publication helper fails closed before any registry/authentication action with pre_hardware_admission_required; retained implementation is not enabled by an environment flag. Public artifact allowlist narrowed to successful bounded qualification JSON only; screenshot hashes/size retained while screenshot bytes and SBOMs stay on runner. Deployment docs distinguish historical development objects and hardware authorization. +- New source-exact [read-only image qualification 46193146510](https://github.com/SemperSupra/WineBot/actions/runs/46193146510), job 141128297070: checkout and explicit negative publication guard already PASS; build/real qualification and scan still pending. Only qualify job exists. [Mandatory CI 46193146525](https://github.com/SemperSupra/WineBot/actions/runs/46193146525), composite 46193146500, real MSI 46193146338 and real app/game 46193146459 among 19 queued/active exact-head PR runs. No terminal acceptance inferred. Public standard hosted runners only; no new registry publication by R075, protected-main merge, paid/private runner or physical hardware operation. +- Next independent READY cells: observe final source CI and first failed job/step before correcting; implement a read-only, source/object-bound admission verifier and negative fixtures for absent, stale, mismatched, duplicated or untrusted gate receipts, without opening publication; qualify compatible native WinInspect provider custody, protected lifecycle and authenticated multi-actor emergency arbitration, keyboard-only accessible journey, complete real installer semantics/production rollback and pressure/repeated soak on intended image envelope. Independent integrated security clearance and bounded hardware test manifest remain mandatory. Do not infer clearance from historical scan results or an asserted PR body. All eight pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No owner authorization needed for the hold or continued public qualification. From 75bfc58167341c85cef77c2cb8f170d0b03d652c Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 29 Nov 2026 04:13:50 +0100 Subject: [PATCH 78/87] R076 reconcile read-only exact-head qualification and bounded review verifier --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 6ef64100..1d63de2c 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -426,3 +426,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Root cause of premature publication path: a push trigger on the integration branch granted packages:write and id-token:write before the mandatory readiness checklist was enforced, while the read-only PR image job deliberately excluded that branch. Corrected atomically in four files by expected-head non-force fast-forward to `8efcc5133dd773af9bae0d9b9555bbab0c011a65`. Removed push publication trigger/job; restored same-repo owning PR eligibility with contents:read and no persisted checkout credentials. Existing build/unit/real GUI/recreate/scan assertions remain. Direct publication helper fails closed before any registry/authentication action with pre_hardware_admission_required; retained implementation is not enabled by an environment flag. Public artifact allowlist narrowed to successful bounded qualification JSON only; screenshot hashes/size retained while screenshot bytes and SBOMs stay on runner. Deployment docs distinguish historical development objects and hardware authorization. - New source-exact [read-only image qualification 46193146510](https://github.com/SemperSupra/WineBot/actions/runs/46193146510), job 141128297070: checkout and explicit negative publication guard already PASS; build/real qualification and scan still pending. Only qualify job exists. [Mandatory CI 46193146525](https://github.com/SemperSupra/WineBot/actions/runs/46193146525), composite 46193146500, real MSI 46193146338 and real app/game 46193146459 among 19 queued/active exact-head PR runs. No terminal acceptance inferred. Public standard hosted runners only; no new registry publication by R075, protected-main merge, paid/private runner or physical hardware operation. - Next independent READY cells: observe final source CI and first failed job/step before correcting; implement a read-only, source/object-bound admission verifier and negative fixtures for absent, stale, mismatched, duplicated or untrusted gate receipts, without opening publication; qualify compatible native WinInspect provider custody, protected lifecycle and authenticated multi-actor emergency arbitration, keyboard-only accessible journey, complete real installer semantics/production rollback and pressure/repeated soak on intended image envelope. Independent integrated security clearance and bounded hardware test manifest remain mandatory. Do not infer clearance from historical scan results or an asserted PR body. All eight pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No owner authorization needed for the hold or continued public qualification. + + +## R076 exact-head read-only image qualification and review consistency workcell — 2026-11-29 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green, #155 pre-reconciliation `6ac66df68b7230ed5d579da88d3bea55f7475000` nine green, #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance failures at Run conformance tests, jobs 133077095885 and 135460820503; preflight and integration smoke pass. Do not rerun unchanged historical failures. +- Owning #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65`: all 19 PR workflows terminal SUCCESS, including [mandatory CI](https://github.com/SemperSupra/WineBot/actions/runs/46193146525) (all three jobs), [composite](https://github.com/SemperSupra/WineBot/actions/runs/46193146500), real MSI 46193146338, real app/game 46193146459, and [read-only final-mode image qualification](https://github.com/SemperSupra/WineBot/actions/runs/46193146510). Image job 141128297070 terminal green across exact checkout, negative publication guard, complete unit suite, both image builds/qualification, scan and bounded receipt upload. Artifact 15282598696 archive digest sha256:d7ad24184f77cbb4daf10312fda5d6e449a214c4a8635e085be36ca38034c2cd; this is an archive digest, NOT an OCI candidate digest. No receipt contents independently retrieved in this workcell. Image qualification has bounded single-operator scope; it is not native WinInspect, integrated security approval, physical hardware or multi-actor qualification. +- Independent draft [#253](https://github.com/SemperSupra/WineBot/pull/253) source `080418f2237999dbeac603121114d018cd7c997a`, based on exact #250 head, adds offline hardware review consistency verifier and 14 synthetic unit fixtures with a read-only standard public ubuntu-24.04 workflow. Verifies complete unique eight-gate set, trusted ledger digest supplied separately, source/local image IDs/application manifest identity, evidence class, positive run/job IDs, evidence hashes and explicit reviewed security state; rejects stale or unreviewed records and malformed/duplicate JSON keys. No registry access or promotion integration. A submitter-provided ledger digest is not a trust anchor; this verifier does not itself authenticate reviewers, retrieve CI evidence or establish security clearance. It checks local image IDs, not OCI manifest digests. Publication remains unconditionally blocked. [Focused verification 46219352192](https://github.com/SemperSupra/WineBot/actions/runs/46219352192), mandatory CI 46219352218 and publication guard 46219352137 queued at inspection; do not infer PASS. +- Next: verify #253 exact head, fix any first failed step, keep independent review ledger custody and actual GitHub run/job/artifact verification separate from consistency checks. Bind local image identity to immutable OCI manifest and application manifest through an independently verified mapping before any promotion; require real evidence and explicit security clearance. Continue native WinInspect, protected lifecycle/multi-actor/a11y, complete installer/production rollback and pressure/soak on exact intended modes; prepare hardware manifest. All eight mandatory gates remain unchecked, **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, new registry publication, hardware candidate, paid/private runners, security bypass or physical hardware operation. No owner authorization decision required. From 3511a488e095af1273092ce014a4dbe7ea080d3f Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:23:05 +0100 Subject: [PATCH 79/87] R077 reconcile source-exact consistency and historical candidate custody audit --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 1d63de2c..c9cdf95b 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -434,3 +434,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Owning #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65`: all 19 PR workflows terminal SUCCESS, including [mandatory CI](https://github.com/SemperSupra/WineBot/actions/runs/46193146525) (all three jobs), [composite](https://github.com/SemperSupra/WineBot/actions/runs/46193146500), real MSI 46193146338, real app/game 46193146459, and [read-only final-mode image qualification](https://github.com/SemperSupra/WineBot/actions/runs/46193146510). Image job 141128297070 terminal green across exact checkout, negative publication guard, complete unit suite, both image builds/qualification, scan and bounded receipt upload. Artifact 15282598696 archive digest sha256:d7ad24184f77cbb4daf10312fda5d6e449a214c4a8635e085be36ca38034c2cd; this is an archive digest, NOT an OCI candidate digest. No receipt contents independently retrieved in this workcell. Image qualification has bounded single-operator scope; it is not native WinInspect, integrated security approval, physical hardware or multi-actor qualification. - Independent draft [#253](https://github.com/SemperSupra/WineBot/pull/253) source `080418f2237999dbeac603121114d018cd7c997a`, based on exact #250 head, adds offline hardware review consistency verifier and 14 synthetic unit fixtures with a read-only standard public ubuntu-24.04 workflow. Verifies complete unique eight-gate set, trusted ledger digest supplied separately, source/local image IDs/application manifest identity, evidence class, positive run/job IDs, evidence hashes and explicit reviewed security state; rejects stale or unreviewed records and malformed/duplicate JSON keys. No registry access or promotion integration. A submitter-provided ledger digest is not a trust anchor; this verifier does not itself authenticate reviewers, retrieve CI evidence or establish security clearance. It checks local image IDs, not OCI manifest digests. Publication remains unconditionally blocked. [Focused verification 46219352192](https://github.com/SemperSupra/WineBot/actions/runs/46219352192), mandatory CI 46219352218 and publication guard 46219352137 queued at inspection; do not infer PASS. - Next: verify #253 exact head, fix any first failed step, keep independent review ledger custody and actual GitHub run/job/artifact verification separate from consistency checks. Bind local image identity to immutable OCI manifest and application manifest through an independently verified mapping before any promotion; require real evidence and explicit security clearance. Continue native WinInspect, protected lifecycle/multi-actor/a11y, complete installer/production rollback and pressure/soak on exact intended modes; prepare hardware manifest. All eight mandatory gates remain unchecked, **NOT_READY_FOR_HARDWARE_TEST**. No protected-main merge, new registry publication, hardware candidate, paid/private runners, security bypass or physical hardware operation. No owner authorization decision required. + + +## R077 historical public candidate receipt custody audit — 2026-11-29 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green; #155 pre-reconciliation `75bfc58167341c85cef77c2cb8f170d0b03d652c` nine green, including CI 46219406900. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` remain red at mandatory Run conformance tests, jobs 133077095885 and 135460820503. Re-read both step lists and logs: pytest exits 1; raw test output was intentionally redirected to local log, only sanitized public summary projected. Exact failing assertions remain unattributed. No weakening of redaction, no rerun of unchanged historical failures. +- #250 remains `8efcc5133dd773af9bae0d9b9555bbab0c011a65`, all 19 workflows green. #253 R076 source `080418f2237999dbeac603121114d018cd7c997a` all three workflows terminal SUCCESS: [synthetic consistency](https://github.com/SemperSupra/WineBot/actions/runs/46219352192), mandatory CI 46219352218 and publication guard 46219352137. This is consistency-only evidence, not independently authenticated review or readiness. +- Verified historical read-only image run 46193146510 and job 141128297070 metadata, all required steps green. Artifact 15282598696, name wine11-candidate-qualification-46193146510, metadata binds exact repository/source/run, archive SHA-256 d7ad24184f77cbb4daf10312fda5d6e449a214c4a8635e085be36ca38034c2cd, 775 bytes, expiry 2026-12-12. These are connector-retrieved metadata, not yet independently verified ZIP bytes, receipt contents or OCI manifest identity. +- Bounded #253 audit workcell: added one temporary read-only workflow .github/workflows/historical-candidate-custody.yml; initial commit `c929dd7c2eef561848b0faa003fc0f9d03a39981` had malformed expression delimiters identified by readback, corrected immediately on final `bd5bd50ce1603006d4cbdbf699771dc517117bcb`. Public standard ubuntu-24.04 only, contents/actions read, fixed public IDs; retrieves actual run/job/artifact and ZIP to disposable runner, verifies exact source, same repository, workflow, run attempt, job, mandatory successful steps, artifact metadata, independently pinned archive digest, sole bounded qualification.json entry, exact receipt fields/checks, explicit non-qualification flags, and distinct local image IDs/size budgets. Five negative mutations: stale head, wrong job/run, failed step, expired artifact, changed ZIP. No raw receipt publication or execution of archive contents. Scope is a historical single-operator custody audit, not generic gate receipt verification, OCI mapping, current-head or security approval. Remove temporary audit workflow after reconciliation; do not depend on expiring fixture as permanent gate. +- Final exact-head [historical audit 46247046987](https://github.com/SemperSupra/WineBot/actions/runs/46247046987) in progress, mandatory CI 46247046986 pending, consistency 46247046984 and publication guard 46247046939 green at observation. Verify terminal receipt and first failing step; do not accept prior-head or merely synthetic results. Publication still unconditionally blocked. Continue native WinInspect custody/interoperability, protected lifecycle and authenticated multi-actor control, accessibility, production rollback/full real installer replay, exact-image pressure and soak, independently authenticated review and security clearance, OCI subject mapping and hardware manifest. All eight mandatory pre-hardware checkboxes remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new image publication, protected-main merge, paid/private runners, security bypass or physical hardware operations. No owner authorization decision required. From 47c871fb0d22ae06e063062d649267de8c5ded16 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 29 Nov 2026 16:48:14 +0100 Subject: [PATCH 80/87] R078 reconcile verified historical custody and publication hold --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index c9cdf95b..cae8ba69 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -443,3 +443,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Verified historical read-only image run 46193146510 and job 141128297070 metadata, all required steps green. Artifact 15282598696, name wine11-candidate-qualification-46193146510, metadata binds exact repository/source/run, archive SHA-256 d7ad24184f77cbb4daf10312fda5d6e449a214c4a8635e085be36ca38034c2cd, 775 bytes, expiry 2026-12-12. These are connector-retrieved metadata, not yet independently verified ZIP bytes, receipt contents or OCI manifest identity. - Bounded #253 audit workcell: added one temporary read-only workflow .github/workflows/historical-candidate-custody.yml; initial commit `c929dd7c2eef561848b0faa003fc0f9d03a39981` had malformed expression delimiters identified by readback, corrected immediately on final `bd5bd50ce1603006d4cbdbf699771dc517117bcb`. Public standard ubuntu-24.04 only, contents/actions read, fixed public IDs; retrieves actual run/job/artifact and ZIP to disposable runner, verifies exact source, same repository, workflow, run attempt, job, mandatory successful steps, artifact metadata, independently pinned archive digest, sole bounded qualification.json entry, exact receipt fields/checks, explicit non-qualification flags, and distinct local image IDs/size budgets. Five negative mutations: stale head, wrong job/run, failed step, expired artifact, changed ZIP. No raw receipt publication or execution of archive contents. Scope is a historical single-operator custody audit, not generic gate receipt verification, OCI mapping, current-head or security approval. Remove temporary audit workflow after reconciliation; do not depend on expiring fixture as permanent gate. - Final exact-head [historical audit 46247046987](https://github.com/SemperSupra/WineBot/actions/runs/46247046987) in progress, mandatory CI 46247046986 pending, consistency 46247046984 and publication guard 46247046939 green at observation. Verify terminal receipt and first failing step; do not accept prior-head or merely synthetic results. Publication still unconditionally blocked. Continue native WinInspect custody/interoperability, protected lifecycle and authenticated multi-actor control, accessibility, production rollback/full real installer replay, exact-image pressure and soak, independently authenticated review and security clearance, OCI subject mapping and hardware manifest. All eight mandatory pre-hardware checkboxes remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new image publication, protected-main merge, paid/private runners, security bypass or physical hardware operations. No owner authorization decision required. + +## R078 historical receipt custody closure and PR status reconciliation — 2026-11-29 + +- Main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green; #155 pre-reconciliation `3511a488e095af1273092ce014a4dbe7ea080d3f` nine green (CI 46247146547). #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain mandatory conformance failure runs 43799408893 and 44494852045; no redundant reruns or raw evidence disclosure. #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65` all 19 PR workflows green, including CI 46193146525 and read-only image qualification 46193146510. +- #253 exact `bd5bd50ce1603006d4cbdbf699771dc517117bcb` all four workflows terminal SUCCESS: review consistency 46247046984, guard 46247046939, CI 46247046986 and [historical custody 46247046987](https://github.com/SemperSupra/WineBot/actions/runs/46247046987). Job 141296428068 actual emitted terminal line at 2026-11-29T09:22:18.9147981Z: HISTORICAL_CUSTODY result=pass receipt_sha256=sha256:e656d837e47cf8b024a2d0c08aa5341b13a1ac184e7ae2ec52f32d546358fc29 negatives=5 scope=single_operator publication=blocked. Retrieval, validation and cleanup all passed. This establishes bounded historical receipt-byte custody, not reviewer authentication, OCI manifest mapping or integrated security clearance. Archive hash remains separately recorded above; receipt hash is not an image digest. +- Retired the expiring temporary audit workflow on #253 only, commit `bc529db4a6d5773c84d96c4f211415c2c4404eee`; source and historical audit remain accessible by immutable revision. Automatic final-head workflows not yet observed. Reconciled #250 PR body to explicitly distinguish current read-only qualification and unconditional publication hold from superseded development-image evidence. No change to #250 source or protected main. +- Next READY: verify #253 cleanup head, advance independent evidence authority/subject binding without enabling publication, and prioritize actual compatible native WinInspect custody, protected multi-actor lifecycle, accessible control, exact-mode stress/soak and complete real installer/production rollback qualification. Do not treat historical successful runs as qualification of changed sources. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new registry publication, security bypass, paid/private runner or hardware operation. No owner authorization decision required. From 107fee0332c1672e5e30635860e87925aa337f81 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Sun, 29 Nov 2026 22:48:29 +0100 Subject: [PATCH 81/87] DLE R079: reconcile receipt cleanup and enroll exact-mode observer pressure --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index cae8ba69..bcbfa205 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -450,3 +450,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #253 exact `bd5bd50ce1603006d4cbdbf699771dc517117bcb` all four workflows terminal SUCCESS: review consistency 46247046984, guard 46247046939, CI 46247046986 and [historical custody 46247046987](https://github.com/SemperSupra/WineBot/actions/runs/46247046987). Job 141296428068 actual emitted terminal line at 2026-11-29T09:22:18.9147981Z: HISTORICAL_CUSTODY result=pass receipt_sha256=sha256:e656d837e47cf8b024a2d0c08aa5341b13a1ac184e7ae2ec52f32d546358fc29 negatives=5 scope=single_operator publication=blocked. Retrieval, validation and cleanup all passed. This establishes bounded historical receipt-byte custody, not reviewer authentication, OCI manifest mapping or integrated security clearance. Archive hash remains separately recorded above; receipt hash is not an image digest. - Retired the expiring temporary audit workflow on #253 only, commit `bc529db4a6d5773c84d96c4f211415c2c4404eee`; source and historical audit remain accessible by immutable revision. Automatic final-head workflows not yet observed. Reconciled #250 PR body to explicitly distinguish current read-only qualification and unconditional publication hold from superseded development-image evidence. No change to #250 source or protected main. - Next READY: verify #253 cleanup head, advance independent evidence authority/subject binding without enabling publication, and prioritize actual compatible native WinInspect custody, protected multi-actor lifecycle, accessible control, exact-mode stress/soak and complete real installer/production rollback qualification. Do not treat historical successful runs as qualification of changed sources. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new registry publication, security bypass, paid/private runner or hardware operation. No owner authorization decision required. + + +## R079 exact-mode bounded observer pressure workcell — 2026-11-29 + +- Live main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` seven green; #155 pre-reconciliation `47c871fb0d22ae06e063062d649267de8c5ded16` all nine green (CI 46280454305); #249 `5e975c5312b37debc29499ad264a34d10b065413` ten green. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain historical mandatory CI failures 43799408893 and 44494852045 respectively, first failing step Run conformance tests, jobs 133077095885 and 135460820503; preflight and smoke green. Preserve historical branches; no unchanged reruns. +- #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65` all 19 workflows green, including read-only image 46193146510; #253 cleanup `bc529db4a6d5773c84d96c4f211415c2c4404eee` all three workflows terminal SUCCESS: [CI 46280368595](https://github.com/SemperSupra/WineBot/actions/runs/46280368595), guard 46280368594 and review consistency 46280368598. CI preflight, contracts and smoke all green. Historical audit remains immutable; cleanup is complete. No current-image receipt or reviewer-authority inference from historical audit. +- New independent draft [#254](https://github.com/SemperSupra/WineBot/pull/254) exact head `98afdfd35d11495d017e4d4fba90fe924f1fbeaa` directly on #250: two files only, tests/qualification/candidate_runtime_probe.py and scripts/ci/qualify-candidate-images.sh. After real GUI save and STOP, four bounded concurrent clients per actual runtime/instrumented image issue 480 requests (960 total intended), check source/mode observer responses, read-only 403 and writer post-STOP 423, unchanged persistent file hash, no new cgroup v2 memory/pid limit events, healthy invariants and no OOM/restart. Hard outer timeout 120s per mode, no new credentials, existing browser/recreation tests retained; receipt explicitly adds bounded-stop-observer-contention. Source readback checked. Existing read-only public standard ubuntu-24.04 image workflow triggers on these paths; no package-write or promotion path. Automatic runs not yet visible at first query. This is an implementation and initiated PR qualification, not a verified pass. Check final-head CI and actual two pressure markers before accepting, classify first failure without weakening existing tests. +- This test does not prove hostile actor containment, independently authenticated writers, actual absence of transient unsaved input, saturation behavior, 55-minute exact-mode soak, or complete security clearance. Continue native WinInspect provider interoperability and custody, protected multi-actor lifecycle, accessible control, exact-mode long soak, complete production rollback and installer semantics, independently authenticated review/OCI mapping and hardware test manifest. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**; no new registry publication, protected-main merge, paid/private runners, security bypass or physical hardware action. No owner authorization required. From 57e60a5439c8a8158fd043280a0a7c6432d5f812 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 30 Nov 2026 04:49:04 +0100 Subject: [PATCH 82/87] docs: reconcile R080 exact-mode pressure evidence and bounded soak workcell --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index bcbfa205..4ad06c8f 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -458,3 +458,10 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65` all 19 workflows green, including read-only image 46193146510; #253 cleanup `bc529db4a6d5773c84d96c4f211415c2c4404eee` all three workflows terminal SUCCESS: [CI 46280368595](https://github.com/SemperSupra/WineBot/actions/runs/46280368595), guard 46280368594 and review consistency 46280368598. CI preflight, contracts and smoke all green. Historical audit remains immutable; cleanup is complete. No current-image receipt or reviewer-authority inference from historical audit. - New independent draft [#254](https://github.com/SemperSupra/WineBot/pull/254) exact head `98afdfd35d11495d017e4d4fba90fe924f1fbeaa` directly on #250: two files only, tests/qualification/candidate_runtime_probe.py and scripts/ci/qualify-candidate-images.sh. After real GUI save and STOP, four bounded concurrent clients per actual runtime/instrumented image issue 480 requests (960 total intended), check source/mode observer responses, read-only 403 and writer post-STOP 423, unchanged persistent file hash, no new cgroup v2 memory/pid limit events, healthy invariants and no OOM/restart. Hard outer timeout 120s per mode, no new credentials, existing browser/recreation tests retained; receipt explicitly adds bounded-stop-observer-contention. Source readback checked. Existing read-only public standard ubuntu-24.04 image workflow triggers on these paths; no package-write or promotion path. Automatic runs not yet visible at first query. This is an implementation and initiated PR qualification, not a verified pass. Check final-head CI and actual two pressure markers before accepting, classify first failure without weakening existing tests. - This test does not prove hostile actor containment, independently authenticated writers, actual absence of transient unsaved input, saturation behavior, 55-minute exact-mode soak, or complete security clearance. Continue native WinInspect provider interoperability and custody, protected multi-actor lifecycle, accessible control, exact-mode long soak, complete production rollback and installer semantics, independently authenticated review/OCI mapping and hardware test manifest. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**; no new registry publication, protected-main merge, paid/private runners, security bypass or physical hardware action. No owner authorization required. + +## R080 exact-mode pressure verified; sustained observation workcell — 2026-11-30 + +- Accepted main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`; #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 green; #155 pre-reconciliation `107fee0332c1672e5e30635860e87925aa337f81` 9/9 green (CI 46314205287); #249 `5e975c5312b37debc29499ad264a34d10b065413` 10/10 green; #250 `8efcc5133dd773af9bae0d9b9555bbab0c011a65` 19/19 green; #253 cleanup `bc529db4a6d5773c84d96c4f211415c2c4404eee` 3/3 green. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` retain historical mandatory CI failures 43799408893 and 44494852045: verified first failed step Run conformance tests (jobs 133077095885 and 135460820503), preflight and smoke green. Preserve historical branches; no unchanged reruns. +- #254 exact `98afdfd35d11495d017e4d4fba90fe924f1fbeaa`: both workflows terminal SUCCESS, [mandatory CI 46314153305](https://github.com/SemperSupra/WineBot/actions/runs/46314153305) all three jobs green and [image qualification 46314153340/job 141507060786](https://github.com/SemperSupra/WineBot/actions/runs/46314153340/job/141507060786). Actual job logs show runtime pressure pass at 2026-11-29T21:55:01Z and instrumented pressure pass at 21:57:29Z, 4 clients/480 requests each, real journey, trace and post-SIGKILL replay pass in both modes, scan steps pass. Final local image sizes 3421254811 and 3525516452 bytes respectively; not OCI manifest digests. This is bounded single-operator public-runner evidence, not independently authenticated writers, long soak, integrated security approval or hardware. +- Independent draft [#255](https://github.com/SemperSupra/WineBot/pull/255) exact `70237f55a4f6a482d56ec047007aee7d9821423b` based on #254, two changed files only: scripts/ci/qualify-candidate-images.sh and .github/workflows/wine11-candidate-images.yml. Adds at least 3300 elapsed seconds per exact image after STOP, 55 periodic replay/health/source/mode and persistent file/profile/config checks, unchanged cgroup memory/pid limit counters, no OOM/restart, then another four-client pressure probe; original journey/browser/recreation/scan/guard remain. Job hard timeout 180 minutes for two sequential modes on standard public ubuntu-24.04. Pre-PR source readback caught a literal regex replacement error and corrected it before opening PR; no intermediate-head verification claimed. Publication remains blocked; no raw data upload. [Image qualification 46349343936](https://github.com/SemperSupra/WineBot/actions/runs/46349343936) and [CI 46349344006](https://github.com/SemperSupra/WineBot/actions/runs/46349344006) in progress, publication guard 46349343930 queued. Require exact terminal success plus both 55-sample >=3300-second markers, no counter increments and successful post-soak pressure/recreation. Sampled post-STOP soak is not active sustained saturation, repeated independent trials, or memory-leak proof. +- Next: verify #255 first failure or terminal evidence; preserve one coherent MVP delivery line and avoid redundant standalone STOP work. Advance native WinInspect custody/interoperability, protected independently authenticated multi-actor lifecycle, accessible control, complete installer/production rollback, independent review authority and OCI subject mapping, security clearance and hardware manifest. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new image publication, protected-main merge, paid/private runners, security bypass or physical hardware action. No owner decision required. From 291928eb1f4a8695c19379b06358af90afee5819 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:03:59 +0100 Subject: [PATCH 83/87] Reconcile integrated repeated soak, venue and bridge evidence; track live keyboard qualification --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 4ad06c8f..565d0eac 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -465,3 +465,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #254 exact `98afdfd35d11495d017e4d4fba90fe924f1fbeaa`: both workflows terminal SUCCESS, [mandatory CI 46314153305](https://github.com/SemperSupra/WineBot/actions/runs/46314153305) all three jobs green and [image qualification 46314153340/job 141507060786](https://github.com/SemperSupra/WineBot/actions/runs/46314153340/job/141507060786). Actual job logs show runtime pressure pass at 2026-11-29T21:55:01Z and instrumented pressure pass at 21:57:29Z, 4 clients/480 requests each, real journey, trace and post-SIGKILL replay pass in both modes, scan steps pass. Final local image sizes 3421254811 and 3525516452 bytes respectively; not OCI manifest digests. This is bounded single-operator public-runner evidence, not independently authenticated writers, long soak, integrated security approval or hardware. - Independent draft [#255](https://github.com/SemperSupra/WineBot/pull/255) exact `70237f55a4f6a482d56ec047007aee7d9821423b` based on #254, two changed files only: scripts/ci/qualify-candidate-images.sh and .github/workflows/wine11-candidate-images.yml. Adds at least 3300 elapsed seconds per exact image after STOP, 55 periodic replay/health/source/mode and persistent file/profile/config checks, unchanged cgroup memory/pid limit counters, no OOM/restart, then another four-client pressure probe; original journey/browser/recreation/scan/guard remain. Job hard timeout 180 minutes for two sequential modes on standard public ubuntu-24.04. Pre-PR source readback caught a literal regex replacement error and corrected it before opening PR; no intermediate-head verification claimed. Publication remains blocked; no raw data upload. [Image qualification 46349343936](https://github.com/SemperSupra/WineBot/actions/runs/46349343936) and [CI 46349344006](https://github.com/SemperSupra/WineBot/actions/runs/46349344006) in progress, publication guard 46349343930 queued. Require exact terminal success plus both 55-sample >=3300-second markers, no counter increments and successful post-soak pressure/recreation. Sampled post-STOP soak is not active sustained saturation, repeated independent trials, or memory-leak proof. - Next: verify #255 first failure or terminal evidence; preserve one coherent MVP delivery line and avoid redundant standalone STOP work. Advance native WinInspect custody/interoperability, protected independently authenticated multi-actor lifecycle, accessible control, complete installer/production rollback, independent review authority and OCI subject mapping, security clearance and hardware manifest. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No new image publication, protected-main merge, paid/private runners, security bypass or physical hardware action. No owner decision required. + + +## R085 live dashboard keyboard-focus workcell and integrated evidence reconciliation — 2026-11-30 + +- Protected main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 green; #155 before reconciliation `57e60a5439c8a8158fd043280a0a7c6432d5f812` 9/9 green (CI 46349409200); #249 `5e975c5312b37debc29499ad264a34d10b065413` 10/10 green; #253 `bc529db4a6d5773c84d96c4f211415c2c4404eee` 3/3 green. Historical #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` remain red at mandatory Run conformance tests (runs 43799408893/44494852045; jobs 133077095885/135460820503). First steps rechecked; preflight and smoke green. No rerun of unchanged historical failures or weakening of evidence redaction. +- Owning #250 and #255 now share exact source `70237f55a4f6a482d56ec047007aee7d9821423b`. Connector census returns 22 successful PR-triggered runs across the two PRs; #250's new integration CI 46362512760 and exact-mode image run 46362512740 green. Independently retrieved actual [first sustained observation job 141619001891](https://github.com/SemperSupra/WineBot/actions/runs/46349343936/job/141619001891) and [integrated repeat job 141660637411](https://github.com/SemperSupra/WineBot/actions/runs/46362512740/job/141660637411): both modes 55 samples each, 3329 s each in first run and 3331 s each in integrated repeat, actual pressure and live browser markers green. Repeated post-STOP observation is not active workload saturation or integrated security clearance; no gate auto-checked. #254 remains exact historical pressure source `98afdfd35d11495d017e4d4fba90fe924f1fbeaa` 2/2 green. +- Concurrent independent venue and bridge lanes observed, not modified: #256 `e9d9731766cda25099bc9fe78c0919e71e3e99dd` 9/9 green (synthetic venue plan); #257 `f2e218f11e815283fdd591a1e07fba38e1fcc929` 3/3 green, actual [QEMU TCG witness](https://github.com/SemperSupra/WineBot/actions/runs/46363848286/job/141664858929) confirms emulated inventory, synthetic serial boot and cleanup; hardware_ready=false, no Wine-in-VM claim. #258 `a7aedeec8158c476c9579fcb934c3a31c6ee67d5` 3/3 green (CI 46381086861 all three jobs); actual [bridge run 46381086896](https://github.com/SemperSupra/WineBot/actions/runs/46381086896) logs jobs 141720088968 and 141720089509 confirm both real modes, actuation, observation, STOP, independent bytes, cleanup/retirement; instrumented sensor off/on pass. Public OCI interface only, not native WinInspect, trusted human authority, or private CRE execution. Preserve separate owning PRs and do not infer integration from a child PASS. +- Implemented independent [#259](https://github.com/SemperSupra/WineBot/pull/259), exact `e526f3272c561b6ea00f792a36ef954fedacc5cb`, one changed file tests/qualification/candidate_browser_probe.py, disjoint from #258's four paths. After live RFB pixel match and view-only admission, actual keyboard Tab/Shift+Tab, Enter/Space and native select arrow/Home traversal must reach visible focus, open settings, change CV/human presentations, close settings, retain observer mode and connection. Existing geometry, mouse, live pixel and soak checks preserved. Bounded fixed markers, no new raw evidence upload; readback verified. Existing standard public ubuntu-24.04 read-only [image qualification 46386947155](https://github.com/SemperSupra/WineBot/actions/runs/46386947155) and [mandatory CI 46386947350](https://github.com/SemperSupra/WineBot/actions/runs/46386947350) in progress. Require exact-head terminal results and both WINE11_CANDIDATE_KEYBOARD mode markers; diagnose any first failure without relaxing criteria. Not a screen reader, complete accessibility, guest keyboard path, or independently authenticated multi-actor qualification. +- Next READY: verify #259, reconcile with concurrent #258 owner before integrating; retain no-publication boundary. Native compatible WinInspect provider custody, complete independently authenticated multi-actor lifecycle, real installer independent recipe reconstruction/production rollback, independent evidence authority and OCI mapping, integrated security review and bounded hardware manifest remain. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate, protected-main merge, paid/private runners, security bypass or physical hardware operation. No owner authorization decision needed. From 0401c7eadf038c0bb7f973bd85fe19ca6f231515 Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:38:45 +0100 Subject: [PATCH 84/87] R086 reconcile keyboard projection and exact bridge negative-test failure --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 565d0eac..58e46848 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -474,3 +474,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Concurrent independent venue and bridge lanes observed, not modified: #256 `e9d9731766cda25099bc9fe78c0919e71e3e99dd` 9/9 green (synthetic venue plan); #257 `f2e218f11e815283fdd591a1e07fba38e1fcc929` 3/3 green, actual [QEMU TCG witness](https://github.com/SemperSupra/WineBot/actions/runs/46363848286/job/141664858929) confirms emulated inventory, synthetic serial boot and cleanup; hardware_ready=false, no Wine-in-VM claim. #258 `a7aedeec8158c476c9579fcb934c3a31c6ee67d5` 3/3 green (CI 46381086861 all three jobs); actual [bridge run 46381086896](https://github.com/SemperSupra/WineBot/actions/runs/46381086896) logs jobs 141720088968 and 141720089509 confirm both real modes, actuation, observation, STOP, independent bytes, cleanup/retirement; instrumented sensor off/on pass. Public OCI interface only, not native WinInspect, trusted human authority, or private CRE execution. Preserve separate owning PRs and do not infer integration from a child PASS. - Implemented independent [#259](https://github.com/SemperSupra/WineBot/pull/259), exact `e526f3272c561b6ea00f792a36ef954fedacc5cb`, one changed file tests/qualification/candidate_browser_probe.py, disjoint from #258's four paths. After live RFB pixel match and view-only admission, actual keyboard Tab/Shift+Tab, Enter/Space and native select arrow/Home traversal must reach visible focus, open settings, change CV/human presentations, close settings, retain observer mode and connection. Existing geometry, mouse, live pixel and soak checks preserved. Bounded fixed markers, no new raw evidence upload; readback verified. Existing standard public ubuntu-24.04 read-only [image qualification 46386947155](https://github.com/SemperSupra/WineBot/actions/runs/46386947155) and [mandatory CI 46386947350](https://github.com/SemperSupra/WineBot/actions/runs/46386947350) in progress. Require exact-head terminal results and both WINE11_CANDIDATE_KEYBOARD mode markers; diagnose any first failure without relaxing criteria. Not a screen reader, complete accessibility, guest keyboard path, or independently authenticated multi-actor qualification. - Next READY: verify #259, reconcile with concurrent #258 owner before integrating; retain no-publication boundary. Native compatible WinInspect provider custody, complete independently authenticated multi-actor lifecycle, real installer independent recipe reconstruction/production rollback, independent evidence authority and OCI mapping, integrated security review and bounded hardware manifest remain. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate, protected-main merge, paid/private runners, security bypass or physical hardware operation. No owner authorization decision needed. + + +## R086 keyboard evidence projection correction and CRE regression triage — 2026-11-30 + +- Live main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 green; #155 pre-reconciliation `291928eb1f4a8695c19379b06358af90afee5819` 9/9 green (CI 46387100136); #250/#255 `70237f55a4f6a482d56ec047007aee7d9821423b` 22 successful runs combined. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` historical first failure rechecked: mandatory Run conformance tests, jobs 133077095885 and 135460820503 respectively; preflight and smoke green. Preserve historical branches and do not rerun without correction. +- #259 `e526f3272c561b6ea00f792a36ef954fedacc5cb` both workflows terminal SUCCESS: [CI 46386947350](https://github.com/SemperSupra/WineBot/actions/runs/46386947350) all three jobs, [image run 46386947155/job 141739556179](https://github.com/SemperSupra/WineBot/actions/runs/46386947155/job/141739556179) actual browser PASS and 55 samples/3331 s per mode, replay, scan and bounded receipt custody PASS. However, the required dedicated KEYBOARD markers were not publicly projected. Source inspection confirms the wrapper captures browser stdout to a local log and validates/projects only the generic BROWSER marker. Do not equate generic success with independently observable keyboard evidence. The keyboard assertions precede the browser PASS in source; no observed keyboard-specific assertion failure. +- Corrective #259 commit `6fe9536cef078253dd1e36dd89aaf772cc8946b3` changes only scripts/ci/qualify-candidate-images.sh: require exactly one fixed mode-bound KEYBOARD success marker in the local browser log, project only that fixed marker, fail closed on missing/duplicate markers, retain all existing acceptance tests and raw-log privacy. Readback verified. Existing public standard ubuntu-24.04 read-only [image qualification 46452532157](https://github.com/SemperSupra/WineBot/actions/runs/46452532157) and [mandatory CI 46452532101](https://github.com/SemperSupra/WineBot/actions/runs/46452532101) in progress. No terminal claim for changed source. #258 owns four different files; this correction does not overlap them. +- Independent #258 advanced to `69a3771079c1e9cb680fabb294b3ea5a3fd425b3`; guard 46423854557 green, CI 46423854582 in progress, [bridge 46423854595](https://github.com/SemperSupra/WineBot/actions/runs/46423854595) terminal FAIL in both actual mode jobs 141865672837 and 141865673200, first failing step Build exact Wine 11 mode and exercise separate CRE-compatible sidecar. Actual allowlisted logs first failure missing_ahk_refusal in both modes, also missing_ahk_hook_absence in instrumented, then missing_target_sibling_unchanged and sibling_after_stop. This is a material missing-target negative-test regression or harness defect requiring source-level diagnosis; not yet an attributed root cause. Prior-head positive bridge evidence is historical only. Route to owning #258 workcell, do not edit concurrently or promote. No raw evidence disclosed. +- Next READY: observe #259 exact terminal markers and CI, reconcile #258 missing-target regression before integrating, continue native WinInspect custody/interoperability, independently authenticated multi-actor control, real installer independent recipe reconstruction and production rollback, independent evidence authority/OCI mapping and integrated security review. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main merge, security bypass, paid/private runners or physical hardware operation. No owner authorization decision required. From 4d4ce0b7c92865f2806b4c8b51dc44bd56ff461e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:20:43 +0100 Subject: [PATCH 85/87] R087 reconcile exact keyboard evidence and qualify focus cue follow-on --- .../roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index 58e46848..c088b577 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -483,3 +483,13 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Corrective #259 commit `6fe9536cef078253dd1e36dd89aaf772cc8946b3` changes only scripts/ci/qualify-candidate-images.sh: require exactly one fixed mode-bound KEYBOARD success marker in the local browser log, project only that fixed marker, fail closed on missing/duplicate markers, retain all existing acceptance tests and raw-log privacy. Readback verified. Existing public standard ubuntu-24.04 read-only [image qualification 46452532157](https://github.com/SemperSupra/WineBot/actions/runs/46452532157) and [mandatory CI 46452532101](https://github.com/SemperSupra/WineBot/actions/runs/46452532101) in progress. No terminal claim for changed source. #258 owns four different files; this correction does not overlap them. - Independent #258 advanced to `69a3771079c1e9cb680fabb294b3ea5a3fd425b3`; guard 46423854557 green, CI 46423854582 in progress, [bridge 46423854595](https://github.com/SemperSupra/WineBot/actions/runs/46423854595) terminal FAIL in both actual mode jobs 141865672837 and 141865673200, first failing step Build exact Wine 11 mode and exercise separate CRE-compatible sidecar. Actual allowlisted logs first failure missing_ahk_refusal in both modes, also missing_ahk_hook_absence in instrumented, then missing_target_sibling_unchanged and sibling_after_stop. This is a material missing-target negative-test regression or harness defect requiring source-level diagnosis; not yet an attributed root cause. Prior-head positive bridge evidence is historical only. Route to owning #258 workcell, do not edit concurrently or promote. No raw evidence disclosed. - Next READY: observe #259 exact terminal markers and CI, reconcile #258 missing-target regression before integrating, continue native WinInspect custody/interoperability, independently authenticated multi-actor control, real installer independent recipe reconstruction and production rollback, independent evidence authority/OCI mapping and integrated security review. All eight mandatory pre-hardware gates remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main merge, security bypass, paid/private runners or physical hardware operation. No owner authorization decision required. + + +## R087 keyboard marker closure, rendered focus-cue qualification and dependency reconciliation — 2026-11-30 + +- Exact main `f5ba0256f330958dcf35710a822508cdb31fc40b` unchanged. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 successful; #155 prior head `0401c7eadf038c0bb7f973bd85fe19ca6f231515` 9/9 successful; #250/#255 shared `70237f55a4f6a482d56ec047007aee7d9821423b` 22 successful runs. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` first failures reconfirmed at Run conformance tests (jobs 133077095885 and 135460820503 respectively); preserve historical evidence, no blind reruns. +- #259 `6fe9536cef078253dd1e36dd89aaf772cc8946b3` terminal SUCCESS both [mandatory CI 46452532101](https://github.com/SemperSupra/WineBot/actions/runs/46452532101) and [actual image job 141966607548](https://github.com/SemperSupra/WineBot/actions/runs/46452532157/job/141966607548). Direct log readback shows one dedicated keyboard PASS for each real mode, and 55 soak samples each (3333 s runtime, 3334 s instrumented). This closes the missing-marker defect for this exact source only. Keyboard focus pseudo-class alone is not proof of a visibly styled indicator. +- Independent follow-on #259 `e11ae97cb99d4afe9316decd76ac8015534ec69a` changes only tests/qualification/candidate_browser_probe.py. Require the actual keyboard-focused control to differ from its unfocused computed outline, non-none shadow, border or background; require a nonempty accessible name for the presentation selector. Existing real navigation, focus-visible, presentation, view-only, pixel, recovery, soak and fixed marker gates preserved; no raw output added. This checks rendered CSS cue and accessibility name, not WCAG contrast, unobscured pixels, all controls or assistive technology. Exact-source [CI 46515642001](https://github.com/SemperSupra/WineBot/actions/runs/46515642001) and [image qualification 46515642011](https://github.com/SemperSupra/WineBot/actions/runs/46515642011) in progress on existing public standard-runner paths. First failure must be diagnosed without weakening prior criteria. +- #258 `69a3771079c1e9cb680fabb294b3ea5a3fd425b3` remains NOT_QUALIFIED: actual [matrix 46423854595](https://github.com/SemperSupra/WineBot/actions/runs/46423854595) failed both modes at missing_ahk_refusal with wrong-window persistent effect; STOP and Docker retirement passed, but no separate proof of post-STOP sibling stability. Guard 46423854557 SUCCESS; generic CI 46423854582 CANCELLED in preflight with downstream skipped. Existing owning production follow-up and staged independent verifier retained; do not rerun known-red production or overlap its files. Source inspection confirms unchecked activation followed by Send; production repair and corrected exact-source negative effect test remain mandatory. +- #260 `7f2443bd0d9db4b7613d2e356366945a8760ade5` remains draft/HOLD: [CI 46456189821](https://github.com/SemperSupra/WineBot/actions/runs/46456189821) failed first at containerized unit tests, downstream skipped; unit isolation and image qualification also failed. Public PR owner has already identified route-discovery assertion and unresolved integration design. Do not waive, merge or treat diagnostic discovery as qualified external protection. +- Next: observe new #259 markers and first failures; reconcile independent owning fixes before any integrated qualification. Native WinInspect, authenticated multi-actor control, independent installer reconstruction/production rollback, evidence authority/OCI mapping, security clearance and bounded hardware manifest remain. All eight mandatory checklist items unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main change, security bypass, paid/private runners or physical hardware operation. No owner decision required. From 2ed8e3f4468433ec7dc59b33084d7977184187eb Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 1 Dec 2026 04:14:53 +0100 Subject: [PATCH 86/87] docs(dle): reconcile R088 exact-mode accessibility and unresolved gates --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index c088b577..f8cc16c1 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -493,3 +493,11 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - #258 `69a3771079c1e9cb680fabb294b3ea5a3fd425b3` remains NOT_QUALIFIED: actual [matrix 46423854595](https://github.com/SemperSupra/WineBot/actions/runs/46423854595) failed both modes at missing_ahk_refusal with wrong-window persistent effect; STOP and Docker retirement passed, but no separate proof of post-STOP sibling stability. Guard 46423854557 SUCCESS; generic CI 46423854582 CANCELLED in preflight with downstream skipped. Existing owning production follow-up and staged independent verifier retained; do not rerun known-red production or overlap its files. Source inspection confirms unchecked activation followed by Send; production repair and corrected exact-source negative effect test remain mandatory. - #260 `7f2443bd0d9db4b7613d2e356366945a8760ade5` remains draft/HOLD: [CI 46456189821](https://github.com/SemperSupra/WineBot/actions/runs/46456189821) failed first at containerized unit tests, downstream skipped; unit isolation and image qualification also failed. Public PR owner has already identified route-discovery assertion and unresolved integration design. Do not waive, merge or treat diagnostic discovery as qualified external protection. - Next: observe new #259 markers and first failures; reconcile independent owning fixes before any integrated qualification. Native WinInspect, authenticated multi-actor control, independent installer reconstruction/production rollback, evidence authority/OCI mapping, security clearance and bounded hardware manifest remain. All eight mandatory checklist items unchecked; **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main change, security bypass, paid/private runners or physical hardware operation. No owner decision required. + +## R088 exact-mode rendered focus closure and live occlusion qualification — 2026-12-01 + +- Live main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 green; #155 prior head `4d4ce0b7c92865f2806b4c8b51dc44bd56ff461e` 9/9 green (CI 46515759833); #250/#255 shared `70237f55a4f6a482d56ec047007aee7d9821423b` 22 successful runs. #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` historical first failure confirmed again: mandatory Run conformance tests, jobs 133077095885 and 135460820503 respectively; preflight and smoke green. No redundant unchanged rerun. +- #259 exact `e11ae97cb99d4afe9316decd76ac8015534ec69a` both workflows terminal SUCCESS: [CI 46515642001](https://github.com/SemperSupra/WineBot/actions/runs/46515642001) all three jobs, and [actual image job 142190355916](https://github.com/SemperSupra/WineBot/actions/runs/46515642011/job/142190355916). Direct log readback shows one dedicated keyboard PASS and browser PASS each, 55 soak samples and 3333 elapsed seconds per mode. Source requires differentiated computed keyboard focus styling and nonempty accessible presentation name; qualification is actual live Chromium/RFB in both Wine 11 modes, not a screen reader or pixel-level contrast proof. +- Successor #259 `512c0bb4c7d93ed305f0c9cf630c2d7293b6c195` only changes tests/qualification/candidate_browser_probe.py (blob 9dfd30b3235de88f813a896be7c8f5d933cc06bf; exact byte readback verified). Require each keyboard-focused control to be entirely inside viewport and hit-test successfully at center plus four interior points; reject overlay or clipping at those sampled points without emitting synthetic clicks or changing guest input. Preserve previous computed focus, accessibility name, live pixels, browser, recovery and soak assertions. This is bounded control occlusion coverage, not proof of all visible focus indicator pixels, all viewports or WCAG compliance. Existing public standard ubuntu-24.04 read-only [image qualification 46566996442](https://github.com/SemperSupra/WineBot/actions/runs/46566996442) and [mandatory CI 46566996485](https://github.com/SemperSupra/WineBot/actions/runs/46566996485) in progress. Do not infer changed-head PASS. Check first failure, or both exact-source keyboard markers and terminal CI before acceptance. +- #258 `69a3771079c1e9cb680fabb294b3ea5a3fd425b3` still RED both actual modes at Build exact Wine 11 mode and exercise separate CRE-compatible sidecar (jobs 141865672837 and 141865673200), CI cancelled, guard green. Owning production fail-closed AHK target identity correction is outstanding; separate staged verifier is not runtime-qualified. #260 `7f2443bd0d9db4b7613d2e356366945a8760ade5` remains draft/HOLD; mandatory CI first failure at Containerized Unit Tests (runtime-independent) job 141979716545, downstream skipped. Architectural disposition remains with its owner; no overlapping edits or blind reruns. +- Next: reconcile exact #259 results with owning #250 before integration; prioritize native WinInspect interoperability, authenticated multi-actor lifecycle and wrong-target correction, independent real-installer reconstruction/production rollback, evidence authority/OCI mapping and integrated security review. All eight mandatory checklist items remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main change, paid/private runners, security bypass, or physical hardware operation. No owner authorization decision required. From 91f4e04b37b03db8e2b20178c2ffb0cfc10119ef Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:58:01 +0100 Subject: [PATCH 87/87] R089 reconcile live focus evidence and bounded AHK target correction --- docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md index f8cc16c1..498ea376 100644 --- a/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md +++ b/docs/roadmaps/2026-11-autonomous-rdte-hardware-gates.md @@ -501,3 +501,12 @@ Independent READY workcells: (1) compare exact failing frozen-contract assertion - Successor #259 `512c0bb4c7d93ed305f0c9cf630c2d7293b6c195` only changes tests/qualification/candidate_browser_probe.py (blob 9dfd30b3235de88f813a896be7c8f5d933cc06bf; exact byte readback verified). Require each keyboard-focused control to be entirely inside viewport and hit-test successfully at center plus four interior points; reject overlay or clipping at those sampled points without emitting synthetic clicks or changing guest input. Preserve previous computed focus, accessibility name, live pixels, browser, recovery and soak assertions. This is bounded control occlusion coverage, not proof of all visible focus indicator pixels, all viewports or WCAG compliance. Existing public standard ubuntu-24.04 read-only [image qualification 46566996442](https://github.com/SemperSupra/WineBot/actions/runs/46566996442) and [mandatory CI 46566996485](https://github.com/SemperSupra/WineBot/actions/runs/46566996485) in progress. Do not infer changed-head PASS. Check first failure, or both exact-source keyboard markers and terminal CI before acceptance. - #258 `69a3771079c1e9cb680fabb294b3ea5a3fd425b3` still RED both actual modes at Build exact Wine 11 mode and exercise separate CRE-compatible sidecar (jobs 141865672837 and 141865673200), CI cancelled, guard green. Owning production fail-closed AHK target identity correction is outstanding; separate staged verifier is not runtime-qualified. #260 `7f2443bd0d9db4b7613d2e356366945a8760ade5` remains draft/HOLD; mandatory CI first failure at Containerized Unit Tests (runtime-independent) job 141979716545, downstream skipped. Architectural disposition remains with its owner; no overlapping edits or blind reruns. - Next: reconcile exact #259 results with owning #250 before integration; prioritize native WinInspect interoperability, authenticated multi-actor lifecycle and wrong-target correction, independent real-installer reconstruction/production rollback, evidence authority/OCI mapping and integrated security review. All eight mandatory checklist items remain unchecked. **NOT_READY_FOR_HARDWARE_TEST**. No candidate publication, protected-main change, paid/private runners, security bypass, or physical hardware operation. No owner authorization decision required. + + +## R089 live occlusion verification and independent fail-closed AHK target repair candidate — 2026-12-01 + +- Live main remains `f5ba0256f330958dcf35710a822508cdb31fc40b`. #123 `3acc219a1627a74bdcea6388144cc391ec2b57b4` 7/7 green; #155 prior head `2ed8e3f4468433ec7dc59b33084d7977184187eb` 9/9 green (CI 46567112900); #250/#255 shared `70237f55a4f6a482d56ec047007aee7d9821423b` 22 successful runs. Historical #150 `8c5ed8019a3518cf534b158662755172bfce7c59` and #154 `c0ea638100cec10940b73deefae2a46eb2e9e4b3` first failures reconfirmed at mandatory Run conformance tests (jobs 133077095885/135460820503), preflight and smoke green. #260 remains draft architectural HOLD at `7f2443bd0d9db4b7613d2e356366945a8760ade5`, first CI failure Containerized Unit Tests, job 141979716545, downstream skipped. No redundant unchanged reruns. +- #259 `512c0bb4c7d93ed305f0c9cf630c2d7293b6c195` **terminal SUCCESS** both [CI 46566996485](https://github.com/SemperSupra/WineBot/actions/runs/46566996485) (all three jobs) and [actual image job 142368357667](https://github.com/SemperSupra/WineBot/actions/runs/46566996442/job/142368357667). Direct log readback shows one dedicated keyboard PASS and browser PASS each, 55 soak samples and 3329 elapsed seconds per mode. Actual rendered control viewport containment and five interior hit-test points now pass in both modes with existing focus styling and name assertions. Do not equate this with assistive technology or full WCAG/viewport compliance. Keep draft; coordinate integration with #250. +- #258 `69a3771079c1e9cb680fabb294b3ea5a3fd425b3` actual matrix 46423854595 still RED both jobs at missing-target actuation; guard green, generic CI cancelled. Original wrong-target file effect and missing AHK refusal are retained. The independent verifier and production owner branches have not moved; no current public repair found in open-PR census. Rather than expand low-risk UI tests or rerun known-red sources, a separate draft repair candidate [#261](https://github.com/SemperSupra/WineBot/pull/261) exact `942afe2cfc5635277ddb4c6e03447d53aca4330d` inherits the four #258 verifier paths byte-for-byte, based on the live #250 delivery branch. Connector comparison/readback confirms only api/routers/input.py (blob 1cf5ad75871ec86f509be514aae6eaf7a6801b24) and tests/test_input_keyboard_conformance.py (blob 47f2ad4bf84ddcfed7553ce4b868c3446434807f) differ from #258. Reject empty/control/oversize titles and ambiguous untyped ID-only AHK calls, keep intentional untargeted input distinct, encode literal prefix as data, require unique visible native HWND, check activation timeout, PID/title and actual focus before Send, map refusal exit code 42 to fixed error. Mandatory tests cover guard order, data encoding, refusal propagation, no launch for invalid targets, and intentional untargeted behavior. This is a candidate correction only, not atomic identity or in-flight STOP proof. ID-only AHK callers must supply a native window title; explicit X11 backend unchanged. No owning branch change, no security-hold override, no merge. +- #261 [actual independent bridge 46621660280](https://github.com/SemperSupra/WineBot/actions/runs/46621660280), [mandatory CI 46621660425](https://github.com/SemperSupra/WineBot/actions/runs/46621660425), [read-only image qualification 46621660116](https://github.com/SemperSupra/WineBot/actions/runs/46621660116), formal 46621660128 and publication guard 46621660275 IN PROGRESS at observation. Existing public standard ubuntu-24.04 bridge and candidate-image workflows were inspected before admission. No verifier relaxation, no new evidence publication. Require actual both-mode missing AHK refusal, hook absence (instrumented), independent original/sibling persisted bytes, successful positive selection, lease and STOP assertions and mandatory CI; diagnose first failure. Retain #258 staged verifier independently; do not merge repair or integrate #259 until owners reconcile exact ancestry and evidence. +- All eight mandatory pre-hardware gates remain unchecked. Native WinInspect interoperability, independently authenticated multi-actor control and stronger target-incarnation/STOP semantics, independent real-installer reconstruction/production rollback, evidence authority/OCI mapping and integrated security clearance remain. **NOT_READY_FOR_HARDWARE_TEST**. No release candidate publication, protected-main modification, paid/private runners, security bypass or physical hardware operation. No owner authorization decision required.