Skip to content

feat(computer-use): add native desktop pet and confirmed privacy states - #5

Draft
EvilWeasel wants to merge 14 commits into
mainfrom
feature/cu-responsive-private-overlay-20261107
Draft

EvilWeasel wants to merge 14 commits into
mainfrom
feature/cu-responsive-private-overlay-20261107

Conversation

@EvilWeasel

@EvilWeasel EvilWeasel commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Adds an optional native companion for Desktop Computer Use and parallel Crew agents. The pet follows the focused output, surfaces safe questions and completed answers, and distinguishes confirmed reading from voluntary looking away. This is the native half of Crew PR #106. Both remain drafts for coordinated delivery.

Behavior

  • Built-in weasel is the accepted slender character sudo. An optional fixed species ID follows Crew's existing avatar preference; a validated custom import wins and reset returns to that preference. The decoded startup catalog currently advertises only weasel/sudo. An explicit unavailable animal clears character artwork and reports a recoverable selection error without substituting a weasel or ending Computer Use. The other eleven animal packs remain undelivered.
  • Four-frame gestures are tied to new item ID/kind, increasing work count and actual Actor phases. An approval holds open paws; a question raises one paw beside the head; a completed answer offers its result without asserting task success. Frame 3 is the held pose. Unchanged projections, text refreshes and return from reading do not replay the same reminder. Reduced Motion shows the held state immediately; idle and heartbeats do not cause permanent animation.
  • The deterministic asset build preserves six original sudo rows and replaces only the approved question/answer rows. Cell-local premultiplied interpolation removes low-alpha background noise, registers feet and keeps the character scale consistent. Custom packs retain the bounded, actually decoded RGBA PNG ABI.
  • A warm rounded speech bubble is at most 280 logical pixels, with a tail toward the pet and three preview lines. Message/arrow opens the actual thread; X dismisses only the reminder. Exact Crew thread/kind prefixes are omitted visually while the original remains accessible. The pet body is pointer-through; neither surface takes keyboard focus. Native reading, privacy and Alt+Esc indicators stay separate from message content.
  • Actor-confirmed mode/active/generation controls observation presentation. Disabled and unknown replace all asset pixels with a native opaque eye mask and both covering paws, including frame zero and unavailable-artwork states. Crew can send safe public summaries, work counts and opaque open/dismiss IDs; it cannot change CU policy, phase, task leases or paint acknowledgement.
  • A private same-user bridge shares the task-owned pet with Crew, reconnects without ending CU and suppresses duplicate persistent pets. Persistence defaults off; CU still presents its task-owned pet. Structural focused-output probes recover locally while original target/monitor guards remain authoritative.
  • Explicit observation policy persists across normal actions and MCP reconnect. Disabled rejects screenshot/AT-SPI/content paths, purges observations and fences response delivery. Blind keyboard actions need a fresh task-bound token and explicit no-observation flags. Stable action batches avoid content reads during identity-only validation. Named-output pointer coordinates invert all eight committed Wayland transforms without changing crop, target, Stop or release fences.
  • Niri optionally includes a mutable crew-pet.kdl; bootstrap creates an empty 0600 file only when absent. Existing files, symlinks and manual contents are preserved. Crew owns binding updates and its early single-instance toggle route.

Validation

All builds, tests and desktop acceptance ran on Boat. No laptop test, installation or activation is included.

Current merge head 9d4f16d4e0bae4289a96b864e70ee3ccfe575b79 integrates main bd5c99326c5707a737ecb1b2df272ba375b5bbfc. The only conflict was parallel append-only learning-log entries; both are retained. Main's package/lockfile updates are inherited unchanged. Native/CU/Niri and executable workflow files remain byte-identical to the green 8417f22 head.

For this update, both host drvPath evaluations passed on the existing Boat with --no-write-lock-file --option eval-cache false, and the inherited lockfile stayed unchanged. The actual selected Actor and Indicator derivations and outputs exactly match the qualified 8417f22 packages listed below, so their existing package, test and runtime evidence is reused. No separate manual package build, function-test matrix or GUI run was repeated. All 68 relevant source hashes were independently verified before evaluation. All five normal CI jobs on 9d4f16d have now passed: push package, PR package, laptop evaluation, desktop evaluation and Copilot setup. Every job reports the exact head SHA, an actual ci-weasel-os-* runner with label boat, and a successful source/runner assertion. Both package jobs passed their build/test and tested-closure export steps. Both host jobs passed evaluation and lockfile preservation; their full-host build steps were skipped.

The exported closure for 9d4f16d is available: 319,164,331 bytes, metadata digest sha256:ba95326af8bbb13307a651744735823ca0f8335528ffd8a53ea67a4cd201659c, expiry 2026-11-20. Artifact metadata and successful export/upload steps were verified; the archive was not downloaded or installed.

Previous product-changing merge head 8417f22b7690e7649ec05076023886182adf9bb0 integrates main 43b18e771d6cf22f2fb828d8f5a06345e49165c4, including PR #6's observation-privacy fix. Five overlapping files were resolved by retaining upstream acquisition-phase serialization, restoration from the current read/release state, and failed-paint recovery, together with the feature's four-action/one-pointer batch limits and PetBridge/FocusProbe integration. Both the existing RPC comparison and the new acquisition regressions remain. The pet renderer, companion, catalog, artwork, Niri integration and workflow files are unchanged from 6e57f44.

On the existing Boat, both affected host drvPath evaluations and the two actual selected package builds passed. The Actor package passed 194 Core and four Pointer tests. The indicator package passed its strict C builds, motion/montage checks, 15 presentation cases, 26 Python cases and three focused reconnect/focus cases. Two additional targeted regressions passed under an isolated GTK/Xvfb display: phase acknowledgement waits for both phase and privacy drawing, and missing/late/wrong acknowledgements recover to confirmed idle. This is package and isolated draw evidence; no new desktop/E2E acceptance is inferred. The lockfile stayed unchanged. The packaged pet renderer and sudo PNG retain their previously qualified hashes.

Validation commands for the product-changing 8417f22 integration, using Nix 2.34.9 on Boat (the two host-evaluation commands were also rerun for 9d4f16d; the package build was reused):

nix_cli=/nix/store/z4wkkj3ncr69vgrb3020saqx1c8mfsjj-nix-2.34.9/bin/nix
"$nix_cli" --extra-experimental-features "nix-command flakes" eval --no-write-lock-file --option eval-cache false --raw path:/home/user/crew#nixosConfigurations.nixy-laptop.config.system.build.toplevel.drvPath
"$nix_cli" --extra-experimental-features "nix-command flakes" eval --no-write-lock-file --option eval-cache false --raw path:/home/user/crew#nixosConfigurations.nixy-desktop.config.system.build.toplevel.drvPath
"$nix_cli" --extra-experimental-features "nix-command flakes" build --no-link --max-jobs 1 --print-build-logs /nix/store/dha13cbv4s47dwkxdnqwm25kz8s377h6-weasel-computer-use-0.1.0.drv^* /nix/store/p56g8n14w76v6cx1c36jwyna0d2v4k80-weasel-computer-use-indicator-0.1.0.drv^*

The GTK invocation used WEASEL_FRAME_TEST=1 GDK_BACKEND=x11 and a privately extracted Xvfb, running test_indicator.StatusDeadline.test_renderer_ack_follows_real_gtk_draw_and_invalidates_old_transitions and test_indicator.IndicatorLifecycle.test_missing_late_and_wrong_renderer_ack_are_rejected. No existing VM packages were upgraded for that fixture. Full commands, exit files and all 57 new original receipts were exported and individually hash-verified.

All five normal checks passed on 8417f22. Both package jobs, Copilot setup and both host jobs used ci-weasel-os-* runners with label boat, and their source/runner assertions passed. The previous 6e57f44 attempts failed before checkout because Boat's 200-start allowance was exhausted; those infrastructure failures remain historical, with no rerun or extra dispatch.

The qualified 8417f22 push package job and PR package job passed build/tests and tested-closure export. The complete push log confirms 194 Core tests, four Pointer tests, 26 Python cases and 15 presentation cases. Both host evaluations and Copilot setup passed. The host jobs evaluated the locked flake; their full-host build steps were skipped.

The tested closure for 8417f22 was uploaded successfully: 319,164,331 bytes, metadata digest sha256:0bedf9adf9d9cb296887ad4486620f8269befb52effadb319f5d15bd590722fe, expiry 2026-11-20. Artifact metadata and the export/upload steps were verified; the 319 MB archive was not downloaded or installed.

The exact packaged atlas is byte-identical to the viewed 144px light/dark static composition. Questions and answers are visually distinct and no distracting alpha noise was observed. This is static asset evidence; the new sudo player's temporal behavior and real user-thread question/answer/continuation recording are still open.

Existing runtime evidence is retained with its original pins:

  • Real Electron/native checks cover default-OFF, persistence, temporary CU display, Cancel, confirmed disabled/denied observation, reading, safe bubbles, open/dismiss routing, reconnect, custom import/reset, pointer-through and a quiet interval without new damage. The redesigned bubble's Open/X and compact Crew settings were actually exercised; the native screen/eye reading symbol was seen in the real user environment. Those retain their prior renderer/Actor pins.
  • A real three-action batch recorded one active and one release/waiting paint acknowledgement without observation inside the batch. The separate same-actions transport comparison saves two RPC roundtrips: three individual calls versus one batch. Neither result is a GUI speed or latency percentage.
  • The accepted Niri product-hotkey run received outer keymap/keyboard-enter before one physical-code chord, delivered exactly one companion toggle and preserved Mousepad focus. It used a reviewed private Wayland QA sender; the separate Actor GlobalKeyboard path remains unqualified.

Original commands, full logs/exits, source/package hashes and the static matte are retained in the signed private handoff. All five normal checks on the current 9d4f16d head passed on Boat. The separate player/real-user-work gates remain open. No extra dispatch was made.

Integration and remaining delivery

The branch includes the reviewed signed Boat-only CI prerequisite d99f307. Its executable workflow blobs are unchanged. All jobs route to Boat; there is no new workflow/CD implementation or system activation.

configure.preferredSpecies, ready.capabilities.builtinPets and state.character require the paired updated Crew decoder; old strict Crew peers are not claimed compatible. Only sudo is available so far. The eleven other species, actual finite-player/real-thread answer-and-continuation acceptance, multi-monitor runtime qualification and an in-Crew provider generation/import flow remain open. The creation button opens a real agent draft; that alone is not a generated/imported-pet success.

No main push, merge, release, credential transfer or installation is included.

Transplant the unchanged executable CI routing from
62a3ad1 / d0060e6
onto main 5fc96cf.

Preserve the existing triggers, job names, checks, Action pins and
bounded shared queue. Keep managed Copilot limitations explicit.
The signed CD production proposal remains on its existing d835116 branch
and is not included here.

Source transfer and read-only API inventory only: no tests, builds,
Boat resume, workflow run, push or policy/credential mutation.
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