Skip to content

perf(guest): stream whole operations through admitted workers - #36

Draft
Horcag wants to merge 59 commits into
mainfrom
perf/vm-operation-throughput
Draft

Horcag wants to merge 59 commits into
mainfrom
perf/vm-operation-throughput

Conversation

@Horcag

@Horcag Horcag commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Guest uploads, downloads, commands, and owned-file removal now share an admitted persistent worker and a framed binary SSH channel through CLI and MCP. Whole transfers verify SHA-256; batch removal checks original ownership and confirms absence. Fresh target, caller, approval, workspace, generation, and retirement checks remain immediately before dispatch, and the direct recovery path stays independent.

This revision also retains each native bootstrap input/output stream through hello and worker execution, selects synchronous or asynchronous mode from the original pipe handle, and avoids checkpoint lookup when issuing an approval for an explicitly uncontained guest operation. Dispatch safety checks remain unchanged.

Native validation at c6a11360fff9e6faf76b2f21bddec38ba4d84a71 confirmed all six whole transfers (64 KiB, 1 MiB, 64 MiB in both directions), ten commands with distinct expected output, and a separate three-file cleanup with confirmed absence. Current measurements, excluding approval issuance:

Operation CLI wall time Operation receipt time
Warm command, median of 10 5.37 s 2.06 s
Upload, 64 MiB 6.20 s 4.14 s
Download, 64 MiB 9.15 s 4.16 s
Batch removal, 3 owned files 5.27 s 2.12 s

Earlier paired measurements at 8306bdffecbf and 42b38dbb5d7b showed faster commands and batch removal; the current sample has different conditions and does not establish a final comparative speedup. The benchmark's final status read failed, while the individual operation receipts and separate cleanup remain verified.

Validation: make quality, independent code/security and architecture review, and all 16 CI checks pass at the current revision. The installed CLI, daemon, and MCP hashes were read back. Full clipboard/UAC acceptance and final fixture cleanup are pending; this PR remains a draft.

Horcag added 30 commits October 11, 2026 10:40
Horcag and others added 27 commits October 11, 2026 15:55
Raise the Go minimum to1.26.10 to address GO-2026-6809 in the standard library.
fix: persist enrolled VM authority and clarify guest failures
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