Repository navigation
Agent: add experimental remote update controls - #1256
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paired computers expose task control but not their running application version or update readiness. This adds per-computer version/status visibility and an experimental action to install the exact signed update already prepared on the execution computer.
The controller keeps running and updates/restarts only when its user chooses. Password-protected execution hosts refuse remote installation even while unlocked. Confirmation names the computer and target version, explains that work and remote access stop, and warns that direct access may be needed for recovery.
Implementation
6.1.0management capabilities through a bounded probe. Older wire-6 peers keep ordinary task access.Busywhile the guard is held and successful reacquisition after it drops; no Windows exclusion or relaxed ownership assertion.Validation
nix develop --no-update-lock-file -c just cipassed: formatting, 9 Git metadata tests, all four strict Clippy configurations, warning-denied workspace builds/tests, 896 desktop-app tests, 260 headless-app tests and 65 updater tests. Existing ignored tests remain unchanged.fab616fdpassed: mismatched-response-ID fixture 40/40, valid install-response/FIN delivery 40/40, rejected-delivery/no-install-ack 10/10, and normal 10 MiB ranged transfer 10/10. These are transport checks, not actual application installations.86be316c: Agent CI (Windows/macOS/Linux, providers and Linux release binary), Dev packaging (unsigned macOS, Linux bundle and downloaded Linux verification), and store performance.Regressions cover durable success across startup and later upgrades, mismatched running identities, interrupted requests without replay, idempotent completion, dropped completion writes/acknowledgements, account/lease changes, explicit refusal versus uncertain local IPC shutdown, safe readiness restoration, unavailable journals and stale UI outcomes. The deliberately wrong-response-ID fixture permits the transport's valid rejection race while retaining strict delivery, reset, FIN and identity checks.
Preview limits
Remote installation requires the execution desktop running (including background mode) and its prepared signed candidate. Daemon-only hosts remain manual; feed checks and downloads use that computer's existing schedule and preference. Client updates stay manual across multiple remotes.
The existing 512-receipt cap is unchanged. Safe retention is a follow-up; forgetting an old nonce while its target is still installable would permit replay.
A signed packaged cross-computer update rehearsal remains a rollout qualification step for macOS and Linux. This PR changes no app version, Research updater/release, signing keys, production resources or publication workflow.
Need help on this PR? Tag
@codesmith-botwith what you need.