feat(snapshot): carry provider keyboard observations through acquisition

Merged
TH
2mo ago
+1759-110

Summary

Carry provider keyboard observations through snapshot acquisition and projection. snapshot --json distinguishes measured frames, derived:docked-tree, additive visibility probes, rejected geometry, proven absence, and unknown facts.

Provider acquisition preserves evaluated node ownership: keyboardOwned: false prevents projection from promoting app controls into keyboard-owned controls. Geometry and ownership share one contracts operation; the forwarding capture-kit module and export are removed. Frame derivation no longer collects unused control rectangles. Android Appium retains native package provenance and main's independent display measurements.

Updates ownership metadata docs and the 500 ms snapshot-probe budget. Scope: 27 files across snapshot acquisition/contracts and providers.

Closes #3529.

Validation

Head 7a3e2e932c rebased onto main 590f171c33; linear history preserves the current Android source adapter, field facts, and measured viewport.

Provider regression command: pnpm exec vitest run --project unit-core packages/provider-webdriver/src/webdriver-ios-snapshot.test.ts.

Base a8e8f9ad7Head 7a3e2e932c
3 failed / 8 passed11 passed

Focused seven-file suite on this head: 159 passed. Earlier ownership-reinference mutation: 4 failed / 69 passed; restored code: 73 passed. Goldens cover 53 cases.

pnpm check:affected --run: all runnable checks passed, including 1,152 related files / 9,586 tests; formatting, lint, typecheck, layering, fallow, build, and docs checks passed.

CI: pending on the new head. Live device checks were not repeated; earlier Android/iOS Appium and native XCTest evidence belongs to a8e8f9ad7, not this head. The new projection regression is device-free; its real device layout remains unverified.