Skip to content

[SUPERSEDED / UNMERGED] Observer v0 consumer source integrated via MVP #181 - #167

Closed
mark-e-deyoung wants to merge 8 commits into
mainfrom
integration/wininspect-observer-readonly-v0-20261119
Closed

mark-e-deyoung wants to merge 8 commits into
mainfrom
integration/wininspect-observer-readonly-v0-20261119

Conversation

@mark-e-deyoung

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

Copy link
Copy Markdown
Collaborator

Consumer blocker / source

WinInspect-private #463 implements read-only observer.capabilities, observer.open, observer.poll on protocol 0.4.0; WineBot's public adapter already uses wire protocol 0.4.0 but its explicit READ_ONLY_METHODS denied all three observer methods. This bounded, public WineBot change makes the consumer ready for a future qualified daemon, without claiming v0.5 product acceptance.

Exact diff

Three scoped files: api/core/wininspect.py, new tests/test_wininspect_observer_contract.py, and existing .github/workflows/wininspect-error-redaction.yml updated to run the added tests. Exact integration head dd00716cdfe159b88c5fd3a2e0c88c77c6369796 (two commits ahead of main). No server, package manager, control plane, GUI, permission, listener or actuator changes.

  • Permit only three additional read-only RPC methods (none in MUTATION_METHODS).
  • Add versioned, bounded capability/open/poll wrappers with strict stream/offset (53-bit JSON) and batch 1..128 validation, normalized known event envelopes, independent cursor semantics and fail-closed response checks.
  • Preserve a machine-readable RPC error code via WinInspectRPCError(WinInspectError). For observer methods, redact untrusted daemon error text and unknown codes; do not disclose remote hello identity or target identifiers.
  • Synthetic tests cover allowlist, valid cursor envelope, malformed/event identity injection denial, bad client args without dispatch, code-preserving identity redaction.

Admission/qualification

Use existing free public GitHub Actions (WinInspect RPC identity-redaction test workflow and any regular CI matching changed source). No private hosted minutes or real credentials; this does not start native Wine/Windows processes. Treat source as unqualified until exact PR-head CI succeeds.

Next gate

Follow public WinInspect#45 synthetic event proof with actual validated private #463 constructive projection and Windows/Wine11 daemon RPC, then this adapter's end-to-end consumer readback. Do not merge, deploy, or claim released v0.5 solely from synthetic tests.

2026-11-20 strict event-kind convergence

WinInspect native observer source emits exactly seven portable kind values (window.created/shown/hidden/destroyed/location_changed/focused/foreground_changed). This PR now enforces that exact allowlist in the read-only WineBot observer_poll() parser, while explicitly rejecting actuation-like/unknown values and non-string malicious payloads with WinInspectError rather than a Python type leak. Integration code and negative test head: e5bef7a3dc119556e6b485ee18ff3a3a2ec55ad7.

2026-11-20 observer capability authority enforcement

Follow-on defensive check requires observer.capabilities.actuation_authority to be the literal JSON boolean false, denying missing, true, numeric 0, and string "false" values without exposing untrusted daemon data. Synthetic negative tests added at exact PR head fd439d3c35282589be0bfc14c496c87314551d1f. Latest public observer regression 44682108012, BuildKit publication guard 44682108006, broad CI 44682108040 were queued/in progress at checkpoint. Previous exact-head event-kind allowlist focused 44681878337 PASS. No private Actions minutes, product merge, or native provider acceptance claimed.

Copy link
Copy Markdown
Collaborator Author

2026-11-20 07:40+0100 integration ancestry/hygiene gate

Live Git compare: #166 observer candidate a12edbabab0f440a9eadeaeab5c7fb833d284331 vs owning draft IC1 9809519b94b9074ed681b297237f6dec89d43186 is DIVERGED (ahead 19 / behind 2), even though GitHub may show mergeable. Eight affected paths: workflow, adapter, Dockerfile, workload shell, live-observer script, test.sh, tests/test_wininspect.py, daemon-launch regression. #167 future read-only observer event-consumer PR fd439d3c35282589be0bfc14c496c87314551d1f is ahead 8/behind 0 against main@f5ba0256, touches api/core/wininspect.py, its error-redaction workflow and separate observer contract tests. Both therefore touch same core adapter and must NOT be blindly merged independently; #167 currently full CI 44682108040 FAILED at conformance (sanitized artifact 14605022602: total 71, passed 55, failed 7, skipped 9; test names intentionally redacted). Focused #167 read-only contract PASS, but not broad integration approval.

Safe join order: corrected #468 WinInspect native binary+digest and #166 real HWND acceptance FIRST, reconcile #166 against exact latest owning draft head with no loss of #168 cancellation and #169 deadline tests, independently re-run combined workflow. Only then compose #167 read-only event-consumer contract into freshly accepted adapter, compare complete diffs and run its synthetic negative tests + broad conformance; do not assume product/provider supports v0 event contract simply because synthetic tests are green. Parent #158 remains draft with 14/14 old exact-head passes. No branch force-update or merge before native observer accepted. Failure/DLE lineages preserved; no unnecessary PRs created.

Copy link
Copy Markdown
Collaborator Author

2026-11-20 WineBot broad-conformance baseline attribution — sanitized artifact comparison

Retrieved public-safety sanitized artifacts from earlier WineBot main run 43616100705, artifact 14122332924, and observer PR #167 run 44682108040, artifact 14605022602. Both carry schema winebot.public-conformance.v1 and identical aggregate summary: total=71, passed=55, failed=7, skipped=9, errors=0, xfailed=0, xpassed=0. Both show exactly seven fixed redacted test-ID placeholders.

Therefore it is established that the observer PR did not increase the broad conformance failure count compared with that historical main checkpoint. Since the public reports intentionally hide individual failing test identifiers, this does NOT establish that the same seven assertions failed. No CI waiver, no claim of green broad conformance; the exact test difference is still unknown. Focused observer/identity test 28 PASS is independently recorded 44682108012.

Public WineHQ 11 synthetic 44689542766: full version-matched launcher payload installed, NLS resource located and wine-11.0 gate passed; fresh prefix startup timed out (124) at 150s before any event counters. This is runtime startup blocked, event delivery not adjudicated. New public 44690187443 uses WINEARCH=win64, separate bounded wineboot initialization and synthetic observer probe with diagnostic markers, at checkpoint Ubuntu runtime installation IN PROGRESS. No private GHA action, no release.

mark-e-deyoung added a commit that referenced this pull request Nov 21, 2026
Bring exact existing #167 RPC adapter, synthetic contract regression and
focused CI workflow onto canonical MVP #176 without replacing newer code.
Enroll new tests in mandatory full CI. This is consumer-readiness only;
no native WinInspect release or Wine11 HWND acceptance claimed.

Copy link
Copy Markdown
Collaborator Author

2026-11-21 — final DLE supersession / no source loss

Authoritative single direct review candidate: #181 exact eda01696f297b930185546993a2f5184e340603c, now based directly on owning MVP #158 exact 9809519b94b9074ed681b297237f6dec89d43186 (not on #176). Source/custody proof: its read-only adapter a09209a1276b696d8a63795495922fee55be5589, consumer regression 62a7c2c6c6707773f6754d561f12415e9066dcaa and focused redaction workflow 2d6bb08bbffc9de43edefd1566c61eb8d5fce05d are exact in #181; prior main-based full CI failure is resolved by using owning MVP #158 rather than assuming a contract waiver. Canonical unified #181 source exact full CI #44912186223 and formal TLC #44912186227 SUCCESS, alongside all eight focused guards. No changed source hash from base retarget.

Close this PR as SUPERSEDED / UNMERGED to remove duplicate review and merge paths, preserving the Git commit graph, original branch, PR conversation, evidence/run links and independent source history. Closure is not a claim of integration into protected main, native WinInspect v0.5 qualification, hardware readiness, owner release approval, or cross-host CAS. #181 and owning #158 remain DRAFT; source-only formal/process-admission follow-ons #182/#183 are separate and held for review/qualification. No branch force/deletion, private runner minutes, local hardware, paid service, image promotion or secret/source declassification.

@mark-e-deyoung mark-e-deyoung changed the title feat(winebot): adopt WinInspect read-only observer v0 consumer contract [SUPERSEDED / UNMERGED] Observer v0 consumer source integrated via MVP #181 Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant