Skip to content

fix: persist enrolled VM authority and clarify guest failures - #39

Merged
Horcag merged 4 commits into
perf/vm-operation-throughputfrom
fix/lab-authority-guest-errors
Oct 21, 2026
Merged

Horcag merged 4 commits into
perf/vm-operation-throughputfrom
fix/lab-authority-guest-errors

Conversation

@Horcag

@Horcag Horcag commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

An owner-authorized disposable VM still required a separate one-use approval for every guest or terminal action. Invalid guest requests were also wrapped as uncertain failures and surfaced as generic internal errors, obscuring whether execution had started.

Add an opt-in persistent grant for the exact enrolled VM and beneficiary, covering guest operations, terminal sessions, console/desktop, VM start/stop and checkpoint create/restore until revoked. Retain operation classification, enrollment fencing, actor scopes, deadlines, idempotency and receipts; derive exact approvals from the protected grant. Enrollment replacement or revocation invalidates the authority. Existing bounded grants keep their behavior.

Validate each guest operation at CLI/MCP entry, advertise operation-specific schemas, and propagate redacted typed failures while preserving genuine uncertain outcomes. Negotiate response extensions so existing strict MCP clients continue working after a daemon upgrade. Raise the Go minimum to 1.26.10 for GO-2026-6809.

Validation: full unit and race suites, lint, coverage policy, static/security/documentation checks; independent security and architecture reviews. Installed disposable Windows VM acceptance passed: guest prepare, binary file roundtrip, script execution with administrator privileges, SSH command/output/lifecycle, native desktop input, owned artifact removal and worker retirement. Both persistent grants remained active after daemon restart; pre-existing strict MCP clients also passed validation and desktop discovery checks.

@Horcag
Horcag merged commit 39433bc into perf/vm-operation-throughput Oct 21, 2026
13 checks passed
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