Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: driver-controlled runtimes do not apply live policy revisions

オープン
#3,077 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend, security

調査の方向性

まず、ValidateSandboxCreate と CreateSandbox を通じて MxcComputeBackend を追跡し、次に既存の GetSandboxConfig と ReportPolicyStatus のコントラクトを調べます。再現手順と openshell policy status/--wait の動作を使って、リビジョンがどのように配信され、確認応答されるかを検証します。列挙されたライブ適用、失敗、拒否、確認応答、再接続、再起動、ドキュメントのケースがテストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area:compute area:policy state:stale

User Story

As an OpenShell operator, I want policy updates accepted for a running sandbox to be applied live by its active compute runtime, so that the policy reported by the gateway always matches the policy the workload is actually enforcing.

Problem Statement

PR #2823 gives driver-controlled runtimes the canonical create-time policy in DriverSandboxSpec.policy and removes the MXC-specific rejection for live policy mutations. The MXC backend reads and maps that policy only during ValidateSandboxCreate and CreateSandbox; it does not fetch later revisions or report their load status.

The gateway can therefore accept and persist a later policy revision for a running driver-controlled sandbox without the runtime consuming it. The desired policy returned by the gateway then differs from the policy enforced by the workload.

The existing sandbox configuration contract already exposes later revisions through GetSandboxConfig and load acknowledgement through ReportPolicyStatus. This bug does not require a compute-driver reconcile RPC.

Impact / Why This Matters

A tightening update can appear accepted while the workload continues under the previous policy. A loosening update remains unavailable even though the gateway records it. --wait can time out because the driver never reports the revision as loaded.

The current workaround is to delete and recreate the sandbox so the policy is delivered again at creation. That interrupts the workload, discards runtime state, and violates the expected live policy-update workflow.

Acceptance Criteria

  • A driver-controlled runtime without the standard supervisor observes every new effective policy revision for each running sandbox.
  • The runtime applies supported live policy changes without deleting or recreating the sandbox.
  • The runtime calls ReportPolicyStatus with the exact revision and reports loaded only after enforcement has switched to that revision.
  • A load or enforcement failure is reported as failed and is visible through openshell policy status and --wait.
  • A policy change the selected runtime cannot enforce live is rejected before it can be mistaken for an applied revision.
  • Reconnects, gateway restarts, and temporarily missed notifications converge the runtime to the latest effective revision.
  • Tests cover successful live application, rejected unsupported changes, failed application, acknowledgement, and catch-up after reconnect/restart.
  • MXC documentation no longer claims live revision support unless the MXC runtime implements and validates this behavior.

Reproduction Steps

  1. Build the Windows gateway from PR #2823 with the MXC driver enabled.
  2. Create and start an MXC sandbox with a policy that the driver maps successfully.
  3. Submit an otherwise valid live policy replacement or merge update with openshell policy set --wait or openshell policy update --wait.
  4. Observe that the gateway persists the new revision, while MxcComputeBackend continues using only the policy captured during CreateSandbox and never acknowledges the later revision.
  5. Observe that --wait cannot confirm the revision as loaded and the running workload remains governed by its create-time policy.

Environment

  • OpenShell: PR #2823 at d26297a214b40809e4b4dfcd5513e3e257b0552c
  • OS: Windows 11 Insider build supported by MXC
  • Runtime, deployment, or integration: in-process openshell-driver-mxc, without the standard sandbox supervisor
  • Verification note: identified through code review; native Windows execution was not available on the review host

Related Work

  • #2417
  • #2823
主要言語
Rust
スター
8.7k
フォーク
1.3k
平均マージ
2日 6時間
マージ済み PR(30日)
297

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/OpenShell のほかの issue

NVIDIA/OpenShell の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。