Skip to content

fix(computer-use): enforce observation privacy through acquisition and delivery - #6

Merged
EvilWeasel merged 1 commit into
mainfrom
fix/cu-observation-privacy-20261113
Nov 13, 2026
Merged

EvilWeasel merged 1 commit into
mainfrom
fix/cu-observation-privacy-20261113

Conversation

@EvilWeasel

@EvilWeasel EvilWeasel commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Computer-use reads previously had no native observation permission. Disabling observation now drains in-flight capture and response delivery, blocks screenshot/window/AX acquisition, and purges retained content without changing the task or Stop epoch. Explicit short keyboard input can continue through a structural private target with no content readback.

This extracts the bounded privacy implementation from PR #5 at 6e57f444c519e08b48e3664a4a8c35c617ff44f5 into seven files on current main. It retains the classic indicator, adds generation-bound observing/paint acknowledgements, and fixes two reviewed phase races: failed observing acknowledgement cleanup and stale phase restoration after a newer release. No Pet, assets, styling, pointer behavior, global batch limit, packaging, or CI changes are included.

Validation on the existing isolated Boat:

  • Final focused Rust: 12 privacy tests and 59 release/acknowledgement neighbors pass. Earlier unchanged policy, cancellation, close-window and indicator-lifecycle groups also pass; these are overlapping qualification runs, not an added total.
  • All 39 Python indicator tests pass, including the GTK draw fixture. Classic C renderer compiles with -Wall -Wextra -Werror.
  • Affected nixy-laptop host evaluation passes with the unchanged lock. Normal package CI builds/tests the installed components.
  • Real Niri 26.04 + GTK/AT-SPI: background semantic edit preserves the focused user window, pointer and all concurrent typed characters. Disabled observation refuses screenshot/window/AX paths and purges cached images. Explicit private keyboard input does not capture or echo content; explicit re-enable obtains fresh observations.
  • Real native cancel and controlled kernel-evdev Alt+Escape terminate active actions, clear the queue, confirm release and reject the old scope. Escape uses a marked synthetic evdev device; no physical keyboard or personal laptop was used.

This native component does not establish Sky/harness input ownership, automatic warning before launch/focus changes, Windows behavior, or a laptop deployment. T3 issues #89 and #104 remain open for their remaining acceptance criteria. The Crew consumer/receipt work already landed through T3 PR117.

Implemented with GPT-6.1 Sol in the Codex harness; independent source/completion and actual-image review tracked separately.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@EvilWeasel

Copy link
Copy Markdown
Collaborator Author

Actual isolated native render at head 3b10b3344829c31881c945e824712a1b61a72042: Niri 26.04, real classic GTK indicator and two harmless test apps, 1280×800.

The first pair shows explicitly enabled versus disabled observation. The second pair shows a confirmed active native action and the screen after controlled kernel-evdev Alt+Escape; the native receipt separately confirms release, an empty queue and rejection of the old action scope. This is a marked synthetic evdev source on the remote Boat, not a physical keyboard or personal desktop.

Screenshots use an independent QA observer. They do not imply that the actor can capture while observation is disabled. Only synthetic test text is present. Sky, Windows and automatic pre-focus warning delivery are outside these proofs.

Observation enabled

Observation disabled

Confirmed active action

After controlled Alt+Escape

@EvilWeasel

Copy link
Copy Markdown
Collaborator Author

Independent R2 source/completion and actual-image review found no remaining concrete P1/P2 in this native privacy component. Both R1 findings are addressed: failed observing-paint acknowledgement now runs cleanup, and acquisition cleanup derives the current serialized actor/read/release state instead of restoring a stale phase.

The regressions failed before the fixes and pass afterward. Final focused evidence: 12 privacy tests, 39 indicator tests including GTK drawing, 59 release/acknowledgement neighbors, affected-host evaluation, and both normal package CI runs on 3b10b3344829c31881c945e824712a1b61a72042. The reviewer inspected all six native before/after PNGs and the original native runtime receipts; no tests were redundantly repeated.

The background edit, native observation/private-input boundaries, explicit re-enable and controlled Stop/Escape cases have real isolated Linux evidence. Sky ownership and automatic pre-focus warning delivery, Windows and physical hardware remain separate open issue criteria. The QA runtime is stopped and its original device ACLs were restored. No laptop deployment occurred.

Implementation: GPT-6.1 Sol; independent R2: GPT-6.1 Terra, Codex harness, default service tier.

@EvilWeasel
EvilWeasel marked this pull request as ready for review November 13, 2026 08:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T08:07:43.743903Z 3b10b33 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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