Repository navigation
windows: preserve bounded numeric context for invalid UIA RuntimeId errors - #1047
hanklee5677 wants to merge 1 commit into
Conversation
yyjeqhc
left a comment
There was a problem hiding this comment.
The three diagnostic-only hunks retain the existing checked i32 arithmetic, usize conversion and inclusive 1..64 RuntimeId acceptance rule. They still return the original stale_element error, do not skip invalid controls, and add only bounded numeric context without extra UIA calls or UI text. I did not identify a demonstrated production acceptance-policy regression in those hunks.
Changes requested before merging: the PR currently contains no retained regression tests for this Windows error contract. The external/sealed source-artifact checks described in the body are useful provenance, but are not executable regression coverage in this repository.
Please add focused tests in the existing webcodex-computer Windows accessibility test area (a small pure numeric/formatting helper may be extracted if needed). Cover empty/reversed bounds, an over-64 length and checked-i32 overflow; prove valid lengths 1 and 64 retain their existing behavior; verify non-target errors remain byte-for-byte unchanged and the diagnostic contains only the intended numeric fields, never UI text or RuntimeId contents. Run the focused tests and the current-branch Windows package check; a live TeamViewer deployment or a claim of root-cause confirmation is not required for this diagnostic patch.
Please keep these tests with this change in this single focused PR, separate from the unrelated performance series. Maintainer edits are disabled on this branch, so I have not pushed changes to your fork. Enabling that option would allow a maintainer to help implement the follow-up. The draft remains open; this review does not authorize or promise a signed diagnostic binary, production deployment or endpoint-protection changes.
|
Thank you for the detailed review and for confirming that the three
diagnostic-only changes do not appear to alter the existing acceptance
policy.
I understand the requested changes. We will keep this as a focused
diagnostic PR and add executable regression tests in the existing Windows
accessibility test area, covering empty and reversed bounds, lengths above
64, checked-i32 overflow, valid lengths 1 and 64, unchanged non-target
errors, and strict numeric-only diagnostic output without UI text or
RuntimeId contents.
We will also run the focused tests and the current-branch Windows package
check, then update this PR with the results for re-review. We will not mix
in the separate performance work or claim root-cause confirmation, a signed
binary, production deployment, or endpoint-protection changes.
Thank you again for the precise guidance.
Best regards,
Hank Lee
On Sun, 11 Oct 2026 20:30:36 -0700, jialin ***@***.*** wrote:
@yyjeqhc requested changes on this pull request.
The three diagnostic-only hunks retain the existing checked i32 arithmetic,
usize conversion and inclusive 1…64 RuntimeId acceptance rule. They still
return the original stale_element error, do not skip invalid controls, and
add only bounded numeric context without extra UIA calls or UI text. I did
not identify a demonstrated production acceptance-policy regression in
those hunks.
Changes requested before merging: the PR currently contains no retained
regression tests for this Windows error contract. The external/sealed
source-artifact checks described in the body are useful provenance, but are
not executable regression coverage in this repository.
Please add focused tests in the existing webcodex-computer Windows
accessibility test area (a small pure numeric/formatting helper may be
extracted if needed). Cover empty/reversed bounds, an over-64 length and
checked-i32 overflow; prove valid lengths 1 and 64 retain their existing
behavior; verify non-target errors remain byte-for-byte unchanged and the
diagnostic contains only the intended numeric fields, never UI text or
RuntimeId contents. Run the focused tests and the current-branch Windows
package check; a live TeamViewer deployment or a claim of root-cause
confirmation is not required for this diagnostic patch.
Please keep these tests with this change in this single focused PR,
separate from the unrelated performance series. Maintainer edits are
disabled on this branch, so I have not pushed changes to your fork.
Enabling that option would allow a maintainer to help implement the
follow-up. The draft remains open; this review does not authorize or
promise a signed diagnostic binary, production deployment or
endpoint-protection changes.
—
Reply to this email directly, view it on GitHub
<#1047?email_source=notifications&email_token=CDVQPYZ2GUM5VTEAAXASML35TRF5ZA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKNBYGYZDSNZTGI3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-5486297326>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CDVQPY5GYUS4G6LK2GVIPUD5TRF5ZAVCNFSNUABGKJSXA33TNF2G64TZHMYTENJSGMYDMOJZGY5US43TOVSTWNJYGAYTCNJSGM2DRILWAI>
.
You are receiving this because you authored the thread.
|
Target repository: yyjeqhc/webcodex
Source/test baseline: 5072608 (v0.4.6)
PR branch base: current upstream main at d87a963.
The target file has the same baseline blob; the sealed diagnostic change is unchanged.
Changed production path: crates/webcodex-computer/src/platform/windows/accessibility.rs
Scope: one file, three diagnostic-only hunks.
Problem
On an authorized Windows TeamViewer remote-session window, the existing computer_observe
accessibility traversal returns:
stale_element: UI Automation runtime id length is invalid or exceeds the bound
The error does not distinguish empty/negative length, checked arithmetic failure, or over-cap
length, and does not identify the failing control type or traversal depth.
A bounded, read-only traversal differential was observed:
max_depth=0/max_nodes=1: root AXWindow succeeds.
max_depth=1/max_nodes=3: existing RuntimeId length error.
max_depth=0/max_nodes=1: root succeeds again.
max_depth=1/max_nodes=2: root and first AXGroup child succeed.
The next immediate-child fingerprint is a leading hypothesis based on the pinned BFS source,
not an instrumented finding. Actual lower/upper/length/control type remain unknown.
These observations are not simultaneous; dynamic provider state cannot be excluded.
Change
Only on the existing invalid-length error, append lower, upper,
calculated_length_i64 and max_elements from values already in scope.
Append the already-read numeric control_type on that error path.
Append numeric node_depth only where accessibility_tree actually knows its depth.
Use i64 solely for diagnostic arithmetic; retain the exact original checked i32 arithmetic,
usize conversion and inclusive 1..64 acceptance predicate.
Unchanged safety behavior
The error remains an Err with the original stale_element prefix.
Non-targeted errors propagate unchanged.
No invalid node is skipped; no catch-and-ignore or success fallback.
No extra native API call or UI text/value getter.
No RuntimeId contents, prompt, answer, credentials, clipboard, authorization header or corpus logging.
No input_text, key vocabulary, focus/ownership/authority or provider timeout changes.
No clipboard/native typing workaround.
Validation and limits
The existing source-artifact suite passed 15/15 on a fresh offline run.
Previously retained evidence records pure scalar Rust tests 12/12, Windows library cargo check
native exit 0, and source-bound real ToolResult/consumer synthetic error tests 13/13.
Those prior native tests are not live COM/SAFEARRAY/UIA or complete MCP transport acceptance.
The diagnostic has not been loaded into the affected company Runner.
This patch does not fix arbitrary TeamViewer text forwarding or claim a live root cause.
It is not malware clearance or an official/signed Runner attestation.
Review request
Please review the minimal observability-only source diff on its technical merits, advise the
upstream test placement, and indicate whether an official diagnostic build with verifiable
provenance can be supplied after review. No binary signing or certification of our local
candidate is requested through this source PR.
This is separate from the declined release antivirus-submission workflow in issue #898:
#898 (comment)
Patch identity
Sealed patch SHA256:
504a197b2e6de2eb08f5c54f54afbac4274c3b3be7e0fc6ef6294d5ff65e8f50
Baseline Git blob: 9eecf00469f0f2acd0ef675ee42d8c7846d8bfa8
Baseline source SHA256:
85b0026ece6dbbf863a53f8a0980cbeb2cc9be74759a1ee87aa6273ea742d9c0
Candidate source SHA256:
ee2a44cd42fc40dc9be9f1355cd11e20bdbccbc12ba8028d491aa371b656708b
The existing immutable patch is the only proposed production-source change.
No binary, private logs, desktop screenshots, host/client/device IDs, local user paths,
customer names, Microsoft submission identity, credentials or configuration are attached.
Published with the operator's explicit source-only PR authorization. No binary execution,
installation, reload, endpoint-protection or Production change is authorized by this PR.
Current-main validation limits
The fresh 15/15 run validates the unchanged single-file source artifacts, not the whole
current-main workspace. Historical native tests/typecheck were run against the v0.4.6
source baseline. Current-main Windows package tests and cargo fmt have not been run in
this publication step; no Runner rebuild or live diagnostic load occurred. This draft
asks for upstream review and CI evidence, not merge/deployment readiness.