Skip to content

Fix release-tag ordering and pane polling; add bounded vCPU MCP management - #67

Merged
candlelightner merged 4 commits into
mainfrom
feat/vcpu-policy-mcp-65
Oct 23, 2026
Merged

candlelightner merged 4 commits into
mainfrom
feat/vcpu-policy-mcp-65

Conversation

@candlelightner

@candlelightner candlelightner commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Main image builds can finish out of order and regress shared tags, stopped-worker pane discovery can flood logs and overwrite runtime state, and management MCP cannot administer VM vCPUs. This change addresses all three in separate commits.

  • Prevent stale main builds from overwriting current image release tags #57: Publish full/short commit manifests before serialized per-image main promotion. Check current main HEAD inside the promotion lock, then update main/latest together. Preserve semver behavior and PR/publication credential separation.
  • Pane polling of stopped/unavailable workers floods server logs with unhandled HTTP 500 errors #62: Return structured 409/503 pane lifecycle responses, preserve confirmed stopped state, and discard probes from older lifecycle generations. Suspend discovery using shared running inventory and back off failed polls without automatic HTTP retries.
  • Management MCP lacks vCPU inspection and resize operations already available in the UI and REST API #65: Add CPU inspect/set/reconcile MCP tools for ordinary and administrative VMs. Groups inherit a per-worker maximum; there is no cumulative pool. Global administrators configure group ceilings, and group administrators can configure descendants within parent limits, never their own ceiling. Enforce allocation and membership/reparent boundaries server-side, retain protection locks and stopped-only CPU updates, and reconcile recorded operations without replaying mutation. Inject controller policy into native runtimes to preserve standalone recovery-helper isolation and forward live authorization to the final CPU submission boundary.

Validation:

  • Orchestrator Vue/TypeScript checking passed.
  • 128 targeted follow-up cases passed, including native runtime policy injection, authorization forwarding, standalone restore-helper isolation, privileged archive fixtures, and CPU/MCP boundaries. The earlier focused lifecycle and workflow checks also passed.
  • Three synthetic registry-free promotion regressions passed for both image paths.
  • An existing disposable Incus VM passed real one-vCPU definition update/readback, running/capacity rejection, restart, guest CPU count, and persisted-marker checks. The fixture was stopped afterward.
  • Diff whitespace checks passed.

Limits: the fixture has one effective CPU, so an actual increase to multiple vCPUs was not verified. Full-stack live REST/MCP, browser acceptance, and the full CI/build matrix remain unverified locally. Semver publication behavior is preserved; the ordering guarantee added here covers concurrent main promotions.

Fixes #57
Fixes #62
Fixes #65

candlelightner and others added 4 commits October 23, 2026 18:30
Serialize current-head promotion for both images while retaining immutable commit manifests and existing release tags. Cover reverse completion and publication boundaries.

Co-authored-by: Codex <noreply@openai.com>
Keep stopped and unknown compute distinct, discard probes from older lifecycle generations, and suspend or back off pane discovery using verified shared inventory.

Co-authored-by: Codex <noreply@openai.com>
Expose stopped-VM CPU inspection, resizing and observational reconciliation for ordinary and administrative workspaces. Enforce inherited per-worker ceilings across allocation and membership paths; group admins may configure descendants within parent authority, with no cumulative CPU pool.

Co-authored-by: Codex <noreply@openai.com>
Inject controller-owned allocation policy into native runtimes, preserving standalone restore dependency boundaries and group authorization. Exercise missing-policy rejection, preflight limits, final CPU authorization and wrapper forwarding; update isolated module fixtures.

Co-authored-by: Codex <noreply@openai.com>
@candlelightner
candlelightner marked this pull request as ready for review October 23, 2026 17:30
@candlelightner
candlelightner merged commit 1a9ffdc into main Oct 23, 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

1 participant