Skip to content

feat: own Mac computer-use episodes through confirmed release - #51

Merged
Brian Krabach (bkrabach) merged 14 commits into
mainfrom
feat/49-computer-use-episodes
Nov 13, 2026
Merged

Brian Krabach (bkrabach) merged 14 commits into
mainfrom
feat/49-computer-use-episodes

Conversation

@bkrabach

@bkrabach Brian Krabach (bkrabach) commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What does this change?

First Mac-focused increment for #49 (not closing the issue): persistent target-side nonactivating activity panel plus owner/target/generation-bound episodes across computer, desktop, batches and observed capture. End fences admission before waiting, drains real workers, reconciles held-input custody and requires explicit indicator/process settlement. Expiry, helper/transport loss, interrupted startup and failed cleanup remain interrupted/unconfirmed rather than Done.

Public cooperative host capability: computer_use.episodes exposes async begin/heartbeat/end/status, sync bind(generation)/fence/cached_status. No model-supplied owner, approval bypass, durable-halt clearing or desktop-wide exclusion claim. Direct tools have explicit desktop begin/end/status and a finite call-renewed fallback lease; mounting a process does not renew it forever. Linux/Windows renderer behavior is preserved, not newly qualified.

Renderer contribution is the exact reviewed source from 0686505 plus b1375b6, cherry-picked as 50123a3 + 872fcad. Unified bounded-task/Stop sponsorship is a separate coordinated consumer change; no invented execution:end completion inference.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / internal change (no behavior change)
  • Other

Testing

  • Exact 619ebb3, Python 3.12 current SDK row: tests/ 2208 passed, 8 skipped, one existing event-loop deprecation warning; retained unclosed protocol-fd ResourceWarning separately.
  • Ruff 0.16.1 check and format check pass.
  • Normal non-editable wheel in an isolated Python 3.12 environment: all tool Python/PowerShell source bytes match; deployed payload contains episode and both renderer resources, byte-identical; imports/capability surface and dependency check pass.
  • Exact 619ebb3 ordinary GitHub CI: Python 3.11, Python 3.12, Ruff and CLA passed, run 43369562668.
  • Native integrated lifecycle qualification / one parent-owned cross-repository DTU (parent-owned, not claimed by this worker).
  • New coexistence/native-input campaign. NOT RUN; no GUARD_MEASURED or presence/backend timing change.

Evidence checklist

  • Platform behavior is in scope; this draft is explicitly NOT a native qualification claim.
  • GUARD_MEASURED changed to True (no flags changed).
  • Neither applies.

Maintained headless production-function regressions cover reasoning gaps/capture-only, desktop/batches, cancellation with a live worker, wrong/stale owner, queued replacement-generation calls, transport response-lock-independent revoke, revoke overtaking pending begin, failed release custody, helper/lease loss, expired end before watchdog tick, lost begin replies queried without replay, pending startup cleanup and failed indicator settlement custody. Original failed checks/review findings were preserved, repaired and tested, not relabeled.

Parent reports separate renderer-only Mac no-input pixel/focus/exit qualification; it is not integrated native input-release or full platform acceptance. Parent owns exact retained native evidence and acceptance. No desktop/SSH/provider/DTU activity was run by this lifecycle worker.

Reviewer focus and deliberate limits

  • Cooperative channel/agent ownership only; independent target processes are not desktop-wide arbitrated.
  • Ordinary backend-return release evidence, not a universal physical-device proof.
  • Synchronous OS calls cannot be undone or claimed promptly stopped; fenced pending workers remain stopping/unconfirmed until actual drain.
  • release_confirmed is input custody evidence; indicator_settled separately gates cleanup.
  • Independent changed-risk review cleared its exact latest 619ebb3 startup/controller-drain schedules (24 maintained tests plus five independent barriers), reusing the six unchanged repair decisions; parent separately cleared the late-begin-reply fence at 8dec99a and startup/indicator-custody fixes at 7463728. Earlier blockers remain failed evidence, not accepted checkpoints.
  • Draft pending parent native/consumer/DTU join; do not merge/release or close Show target-side computer-use activity and confirmed control release for the full task #49 from unit passes.

Use the prepared target Python and bounded payload-free pipes, with main-loop and own-window metadata readiness, automatic health supervision, sticky interruption, and explicit terminal teardown acknowledgements. Preserve one-time modal disclosure; lifecycle integration decides actual release separately. Add headless inert-process and fake-AppKit regressions, including lost replies and concurrent interruption races. Native rendering remains separately qualified.
Check the old helper lease before accepting commands and again before renewal. Monitor and close exchanges now enforce prior health and retain the prior deadline across write and reply waits, including terminal acknowledgements. Keep failures sticky with no mutation replay; preserve timeout values. Add pre-tick, validation, monitor, close and in-flight expiry regressions.
@bkrabach

Copy link
Copy Markdown
Collaborator Author

Parent integration checkpoint for exact 619ebb3960779cca55aabf2ab00e73323dde66a6 (candidate, not merged/released):

  • The unchanged final b1375b6 renderer was exercised on the authorized macOS 27.2 / arm64 Mac. A separate verifier received and inspected actual canonical screenshot pixels for Amplifier viewing this Mac, Stopping — please wait, Control released, and subsequent panel absence. The approximately 95-second run retained an unchanged foreground PID, non-key/non-main panel properties, helper exit 0, process settlement and own-surface absence. This is renderer/no-input evidence, not a physical-input release test.
  • The normally installed exact619 wheel was then exercised through the public mount, a real Core coordinator, ordinary SSH payload deployment/bootstrap and existing disclosure, with read_only=true. All 38 installed runtime files and deployed payload member bytes matched the candidate; the actual sent payload SHA matched the remote handshake.
  • Actual canonical screenshot capture succeeded. The admitted viewing episode remained open through 45 heartbeat observations with no queued work. Public end returned released, admission closed, workers 0, release confirmed and indicator settled. A read under the ended bound generation was refused. Mount and session cleanup returned; the managed probe completed exit 0 at approximately 77 seconds, empty stderr.
  • The normal-path screenshot is retained privately; its saved-output pixel delivery could not be independently re-inspected, so capture success is not presented as an additional pixel acceptance. The separate native renderer pixel result above remains the visual evidence for unchanged renderer bytes.
  • Own helpers exited, the exact owned preparation directory was exported/hash-verified and removed, and absence was checked. No keyboard/mouse/focus/clipboard injection, permission changes, R13 use, provider calls or live installation/adoption occurred.

Private renderer archive SHA256 1f6d8696941de4addc2e64b6b834abdc1efae8d1b10268a1dcef8129b308f382; normal public-path log SHA256 b80ff7c5c3e3061c76e9076d63dded3ceccf283042ff7b61838334beb437e13e. No desktop content is uploaded here.

Unified consumer draft #1989 and one isolated cross-repository candidate environment remain under qualification. A real standalone-worker startup import regression in that consumer was reproduced and narrowly repaired; failed revisions and native Windows CI remain retained until the new exact-head checks finish. This is not a blanket consumer/DTU pass or an instruction to merge.

Still outside this acceptance: actual physical input release/click-through interaction, desktop-wide arbitration, fullscreen/Spaces, display changes, lock/sleep/wake, native network-partition/crash trials and live adoption. Linux/Windows renderer parity is not newly claimed. Keep #49 open for the stated first-increment/coverage boundary.

@bkrabach
Brian Krabach (bkrabach) marked this pull request as ready for review November 13, 2026 05:52
@bkrabach

Copy link
Copy Markdown
Collaborator Author

Final consumer qualification is complete at Unified87e01fc; all reported CI checks succeeded (two optional/dispatch skips remain). The original startup regression and failed identities were retained, repaired and independently checked. Both PRs are ready for review, not merged or released. Exact installed14+25 passing checks, upstream-first acceptance boundary, native no-input scope and verified zero-owned-DTU cleanup are recorded in the parent qualification comment on Unified PR1989. No physical-input release or live-adoption claim.

@bkrabach

Copy link
Copy Markdown
Collaborator Author

Independent model review: Fable (fable/claude-fable-5-2) — REQUEST CHANGES. This is an attributed agent review report, not a submitted human GitHub approval.

Frozen inputs reviewed: computer-use #51 619ebb3960779cca55aabf2ab00e73323dde66a6 and Unified #1989 87e01fc05be3da48db2d8660894abd46dac10a2c. Unified advanced to 1c74e2e77ba067acf2489f5ecb73395f09f7a2d0 during review. Static read-only code traces, not executed reproductions:

  1. P1, bundle / affects host integration: interruption or failed startup can leave a settled episode permanently unable to begin a fresh generation. Several replacement/retarget/registry gates accept only released, not a safely settled interrupted terminal.
  2. P2, bundle: indicator faults can leave renderer cleanup unresolved even after the dedicated helper is reaped or never launched. Resource settlement must remain distinct from healthy rendering, native metadata absence and successful input release.
  3. P2, bundle: revoke tombstones accumulate to the 128-entry limit during normal ended generations, latching the remote agent disconnected. History retirement must preserve queued-begin/late-revoke fencing.
  4. P2, Unified: failed status with stale outstanding workers can keep settlement and worker shutdown/remount waits unbounded, repeatedly publishing unknown state. Bounded caller waits must retain actual cleanup custody and never manufacture release.
  5. P2, old Unified 87e: passive desktop metadata/release routes acquire episodes. The 1c74 repair has Astra's source-level clearance; Fable still needs to review the final affected revision.

The existing bundle, renderer and host owners are reproducing and correcting these issues in their separate checkouts with maintained inert regression tests. No new native desktop/input campaign, release, live update or safety-state clearing is authorized by this review. Earlier test/native/installed evidence remains attached to its exact revisions; it is not relabeled for forthcoming repairs.

Conditional admin-merge and feature publication remain held. Both original named reviewers must clear the repaired exact source heads before the authorized merge and Release Manager handoff. Read-only review limitations include no Core/loop-live inspection, incomplete tracing of all child/saved-Stop routes, and no independent revalidation of previous qualification artifacts.

Expose fault_settled with explicit never-launched or reaped-helper evidence without inventing healthy disclosure, released input or native surface absence. Retain subprocess custody before pipe configuration, preserve unknown cleanup outcomes for retry, and keep all lease fences sticky. Add unavailable/death/timeout/kill/setup/unknown-wait regressions; helper visuals and timing remain unchanged.
@bkrabach

Copy link
Copy Markdown
Collaborator Author

Cause-matched review repairs — exact 4389e2a

New source checkpoint: 4389e2afe40ef5ab11c9cbffc86ca4c542d218ac, tree e8d210920444acd63acb5a371db044f7e0c1d2df (runtime identical to 15488a5; final commit adds two startup-failure tests only).

  • Fresh explicit generations can follow settled interrupted episodes without reviving old tokens or clearing Stop/durable halts. Zero workers, confirmed input release and settled indicator custody remain mandatory.
  • Failed renderer resource settlement uses the exact renderer-owner f89ac78 delta, keeping interrupted/unhealthy status and separating reaped/never-launched process custody from native surface-absence or input-release claims.
  • Ordered opaque generations plus target high-water fencing remove the normal 129-generation tombstone exhaustion while preserving queued/late/replayed-begin rejection. Shared-transport owner loops and revoke-before-begin loops are maintained tests.
  • Terminal receipts are bound to their exact identity; a previous settled receipt cannot suppress Stop on a replacement pending begin.
  • Retirement is linearized against already-entered old drains, preventing them from releasing a replacement owner's held input.
  • Fully settled interrupted retarget is permitted; unresolved custody is refused. Renderer-close exceptions cannot skip target ledger cleanup. Unsupported-platform explicit begin remains unavailable without allocating disclosure.

Reproductions were executed against production functions with inert backends before fixes. Original RED evidence is retained, including a changed-risk cache regression discovered during worker review. Parent original Astra/Fable review decisions remain distinct from worker narrow reviews.

Checks on exact 4389e2a: 2,249 passed, 8 existing skips, Ruff check/format pass. Normal non-editable wheel (runtime 15488a5) matches every current runtime file and all 24 deployed payload members; wheel SHA-256 7a39496f4d70c403b09bad80bba7550730068f5e05847682ed8bab02522e1f85. Independent narrow worker re-review cleared the cache/F2 join and subsequent old-drain/retarget corrections. Current ordinary CI: https://github.com/microsoft/amplifier-bundle-computer-use/actions/runs/43409955106 (result separately tracked, not presumed green).

Merge remains held for the parent's exact-head original Astra and Fable acceptance. No native/SSH/provider/DTU/new hardware campaign, merge, release or issue closure was performed by this repair worker. Earlier 619ebb3 evidence remains historical for its exact bytes and scope, not automatically transferred to this head.

@bkrabach

Copy link
Copy Markdown
Collaborator Author

Definitive remote-begin refusal correction frozen at 55f95e0 (tree 5375e6edebabe995a9b0375b27c6a97fa64f4c0c), cause-matched delta from 4389e2a.

The additional Fable P2 reproduced in four first/replacement-generation inert production-function cases before edits. The target now provides a typed, exact-identity, request-correlated not adopted rejection only before allocating that generation, after consuming its ordered slot. The controller keeps the task interrupted/fenced while recognizing only its own zero-input/zero-renderer custody. It never releases another owner's held input/window, fabricates native absence, or treats generic errors/timeouts as no-effect proof. Unknown replies remain unconfirmed; no begin replay. Rejected generations remain non-replayable after the current owner settles.

  • 18 new maintained cases cover revoked/other-owner rejection, first/replacement generation, actual mount cleanup, explicit recovery, malformed/lost replies, pending-controller custody and wire proof negatives.
  • Focused set: 208 passed. Full suite: 2,267 passed, 8 existing skips; existing event-loop warning and protocol-fd ResourceWarning retained.
  • Whole-tree Ruff/check-format and diff check passed.
  • Exact-head CI 43412299287: Python 3.11, Python 3.12, Ruff and CLA passed. Ordinary PR release-qualification steps were skipped, not passed.
  • Independent narrow changed-risk review: no findings; independently ran 149 maintained tests plus 20 additional inert production-function probes. This is not a substitute for the parent's original Astra/Fable acceptance.
  • Normal installed wheel/source join: all 38 runtime files and 24 remote payload members match. Wheel SHA-256 91b45a72799e72e5810a58951f5962b6701a3416138f7cb2e6266c171327641f.

No renderer bytes changed, native/SSH/provider/DTU campaign, merge, release or live adoption performed. Earlier 619/4389 evidence and failures remain intact. Parent original named-review acceptance remains held for this new delta.

@bkrabach
Brian Krabach (bkrabach) merged commit f0cb9d9 into main Nov 13, 2026
4 checks passed
@bkrabach

Copy link
Copy Markdown
Collaborator Author

The requested independent named reviews and cause-matched repairs are complete for these exact inputs:

  • computer-use feat: own Mac computer-use episodes through confirmed release #51: reviewed 55f95e0a998a1b1f6048fccc5e1f32cdb80c6b86, tree 5375e6edebabe995a9b0375b27c6a97fa64f4c0c — Astra and Fable both APPROVE.
  • Unified #1989: 10662c2df8940fd1761df35f808c3d8723b26d4f, tree de56e1e89444c628ef6ee00d9cc004f877598910 — Astra and Fable both APPROVE.

These are attributed model reviews, not fabricated human GitHub approvals. Earlier request-changes findings and failed source revisions remain retained.

Under the user's explicit conditional admin-merge authorization, #51 was merged once at f0cb9d99ff6f1016562a58e310d183fb0cef3386 (2026-11-13T11:49:45Z). GitHub main/PR/commit and an independent local fetch/diff verify that its accepted tree is exactly the reviewed tree, with no extras. Branch and repository protections remain unchanged.

Qualification evidence:

  • Exact bundle55 CI 43412299287: Python3.11, Python3.12, Ruff and CLA passed. Exact Unified106 reported checks all passed; default-installed and windows-bootstrap-offline were skipped, not passed.
  • Frozen normal-installed bundle55/Unified693 baseline: 452 distinct maintained passes, with 3 explicit optional skips, joined across retained runs. The specific owner selection is 201 passes +3 skips, not a second fresh 201-case campaign. Current55 Foundation composition preserved the synthetic host root/instruction and provider sentinel.
  • A separate normal, noneditable Unified106 wheel installed into a new target directory in the same isolated DTU passed 67 affected maintained cases, zero failures/errors/skips, including real installed Core/Foundation/UI-use integration with inert fixtures. App origins, source/wheel/RECORD joins and unchanged baseline distributions were checked. This is candidate-graph installed evidence, not native physical input acceptance.
  • Operational deviation retained: a final106 preflight helper rewrote two shared setup-evidence files outside its new directory. One remained byte-identical; the other only added .cache to the synthetic home listing. Original exported setup evidence remains intact. Product, maintained tests, installed baseline and protected harness bytes were verified unchanged. This is not represented as a zero-out-of-scope-write run.

The accepted-source and exact qualification packet is now with the Release Manager, who owns current-main integration, deliberate native-extra lock refresh against the accepted upstream tree, affected preservation review and publication/official installed smoke. Unified publication is not yet complete. Current-main integration must preserve the later credential/identity and ACP/Stop changes; a clean textual merge alone is not behavioral evidence.

The parent is closing the one owned qualification environment with new post-stop exports and verified teardown. No live application update/restart, old-worker tool-mount rewrite, native desktop input, R13 work, or provider campaign was performed. Earlier Mac renderer pixel evidence applies only where its helper bytes and scope remain unchanged.

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.

Show target-side computer-use activity and confirmed control release for the full task

1 participant