Skip to content

chore(core): track v0.1.12-pre.3 - #82

Open
ai-openshell-sdk-python[bot] wants to merge 1 commit into
mainfrom
core/v0.1.12-pre.3
Open

ai-openshell-sdk-python[bot] wants to merge 1 commit into
mainfrom
core/v0.1.12-pre.3

Conversation

@ai-openshell-sdk-python

Copy link
Copy Markdown
Contributor

Move the core pin from v0.1.11 to v0.1.12-pre.3 (prerelease).

  • Core changes: v0.1.11...v0.1.12-pre.3
  • Regenerated bindings: no generated files changed
  • E2E runs against quay.io/ai-openshell/gateway:0.1.12-pre.3
  • Files copied from core:
  • tests/e2e/Dockerfile.workload is not in core v0.1.12-pre.3 yet, left unchanged

Proto changes

diff --git a/proto/README.md b/proto/README.md
index 7a31300..2330683 100644
--- a/proto/README.md
+++ b/proto/README.md
@@ -111,7 +111,12 @@ served on the gateway listener but authorized only for the gateway-minted
 supervisor token (`auth_mode: "supervisor"`). It is not imported by
 `openshell.proto`, so SDK generation and
 gRPC reflection exclude it; the server's schema inventory test classifies it
-explicitly. `SandboxInstanceAssignment.launch_material` carries the existing
+explicitly. `RegisterSupervisor` on the same private service is the deferred dedicated warm
+supervisor exchange. It accepts only a driver-authenticated physical supervisor
+(`auth_mode: "supervisor_registration"`), keeps the response stream pending until
+a claim commits, and returns its canonical launch material once. This bootstrap
+identity is separate from both sandbox credentials and shared-host tokens.
+`SandboxInstanceAssignment.launch_material` carries the existing
 JSON sandbox instance registration of `openshell-supervisor-control` and is
 marked secret.
 
diff --git a/proto/compute_driver.proto b/proto/compute_driver.proto
index 88d090f..fa51425 100644
--- a/proto/compute_driver.proto
+++ b/proto/compute_driver.proto
@@ -162,6 +162,9 @@ message GetCapabilitiesResponse {
 message AuthenticateSandboxRequest {
   // Opaque credential whose format and verification are owned by the driver.
   string credential = 1 [(openshell.options.v1.secret) = true];
+  // Authenticate only a physical warm supervisor, never a logical sandbox.
+  // Used exclusively by the private deferred RegisterSupervisor exchange.
+  bool supervisor_registration = 2;
 }
 
 message AuthenticateSandboxResponse {
@@ -171,6 +174,16 @@ message AuthenticateSandboxResponse {
   // The gateway compares this with the identity recorded when the sandbox was
   // created to authorize the bootstrap exchange.
   string runtime_identity = 2;
+  // Present only for supervisor_registration requests. No sandbox authority
+  // is granted by this binding, even after the physical runtime is claimed.
+  SupervisorRegistrationIdentity supervisor_registration = 3;
+}
+
+message SupervisorRegistrationIdentity {
+  string route = 1;
+  string generation = 2;
+  string session_id = 3;
+  map<string, string> resource_claims = 4;
 }
 
 // Static portable resource request forms supported by a compute driver.
diff --git a/proto/sandbox_protocol.proto b/proto/sandbox_protocol.proto
index 9538858..2e66118 100644
--- a/proto/sandbox_protocol.proto
+++ b/proto/sandbox_protocol.proto
@@ -85,6 +85,7 @@ message RequestEnvelope {
     LoopbackConnect loopback_connect = 24;
     OpenMediation open_mediation = 25;
     AcceptNetwork accept_network = 26;
+    ReadProcessEvents read_process_events = 27;
   }
 }
 message ResponseEnvelope {
@@ -106,6 +107,7 @@ message ResponseEnvelope {
     MediationReady mediation_ready = 24;
     NetworkConnected network_connected = 25;
     Error error = 26;
+    ProcessEvents process_events = 27;
   }
 }
 // Read-only image-policy discovery, permitted before attachment.
@@ -188,6 +190,16 @@ message LoopbackConnect {
 }
 message OpenMediation {}
 message AcceptNetwork {}
+// Requires the openshell.sandbox.process-events capability. Returns the
+// retained events after after_sequence; an empty response means none arrived.
+// Reading after a sequence acknowledges the events up to it, and a read
+// without after_sequence resumes after the last acknowledged one, so a
+// replacement supervisor does not report events its predecessor read. With
+// wait, a read with nothing to return waits briefly for an event.
+message ReadProcessEvents {
+  optional uint64 after_sequence = 1;
+  bool wait = 2;
+}
 
 // No image policy is yaml absent with invalid=false. invalid=true reports an
 // unreadable or invalid image policy; it must not be treated as missing.
@@ -225,6 +237,27 @@ message ExecStarted {
   bool pty = 2;
 }
 message Resized {}
+// lost counts events after the requested sequence that the runtime no longer
+// retains.
+message ProcessEvents {
+  repeated ProcessEvent events = 1;
+  uint64 lost = 2;
+}
+// A workload process the runtime started directly: the entrypoint or an exec
+// session. `executable` is read just after spawn, so a process that execs
+// at once can report its new program.
+message ProcessEvent {
+  uint64 sequence = 1;
+  ProcessInstance process = 2;
+  string executable = 3;
+  oneof event {
+    ProcessLaunched launched = 4;
+    ExitStatus exited = 5;
+  }
+  // When the runtime observed the launch or exit.
+  google.protobuf.Timestamp time = 6;
+}
+message ProcessLaunched {}
 message LoopbackConnected {}
 message MediationReady {}
 message NetworkConnected {
diff --git a/proto/supervisor_host.proto b/proto/supervisor_host.proto
index f0275a8..95a39ec 100644
--- a/proto/supervisor_host.proto
+++ b/proto/supervisor_host.proto
@@ -25,6 +25,14 @@ import "options.proto";
 // owner fails or leaves. A pool host releases an instance a snapshot omits
 // without stopping its workload; only `stop_routes` stops workloads.
 service SupervisorHost {
+  // Dedicated warm supervisor bootstrap. The stream stays pending until its
+  // physical runtime is claimed, then returns the canonical launch exactly once.
+  // Only driver-authenticated physical supervisor credentials may call it.
+  rpc RegisterSupervisor(RegisterSupervisorRequest) returns (stream RegisterSupervisorResponse) {
+    option (openshell.options.v1.authorization) = {
+      auth_mode: "supervisor_registration"
+    };
+  }
   // Supervisor-initiated assignment stream. Only the gateway-minted
   // supervisor token may call it.
   rpc Attach(stream HostMessage) returns (stream HostGatewayMessage) {
@@ -34,6 +42,14 @@ service SupervisorHost {
   }
 }
 
+message RegisterSupervisorRequest {}
+
+message RegisterSupervisorResponse {
+  // Existing version-locked SandboxInstanceRegistration JSON, including the
+  // assigned identity, credentials, process configuration, and proxy CA.
+  bytes launch_material = 1 [(openshell.options.v1.secret) = true];
+}
+
 // Envelope for host-to-gateway messages.
 message HostMessage {
   oneof payload {
@@ -155,7 +171,8 @@ message RouteOwner {
   string runtime_address = 2;
 }
 
-// One running generation of a stable Sandbox resource, assigned to the host.
+// One runtime generation assigned to the host, either prepared before a claim
+// or registered to a stable Sandbox resource.
 message SandboxInstanceAssignment {
   // Route handle the sandbox runtime names; the instance's key on the host.
   string route = 1;
@@ -164,12 +181,19 @@ message SandboxInstanceAssignment {
   string generation = 3;
   // Trusted launch material for the generation: the JSON-encoded sandbox
   // instance registration (runtime descriptor, gateway-issued credentials,
-  // proxy CA, main process). Never logged or forwarded.
+  // proxy CA, main process), or prepared runtime registration when prepared
+  // is true. Never logged or forwarded.
   bytes launch_material = 4 [(openshell.options.v1.secret) = true];
   // Present when the host supervises the instance under a later ownership
   // term than its launch: it replaces the previous owner with these
   // credentials and adopts the running workload.
   SandboxInstanceTakeover takeover = 5;
+  // Reserve a slot and hold authenticated runtime connections without a
+  // sandbox identity, operational credentials, or workload. launch_material
+  // contains PreparedRuntimeRegistration; sandbox_id is empty and takeover
+  // is absent. Activation replaces this assignment on the same route with a
+  // matching SandboxInstanceRegistration and prepared=false.
+  bool prepared = 6;
 }
 
 // Credentials of one ownership term after the launch term. The gateway
@@ -214,6 +238,9 @@ enum SandboxInstancePhase {
   SANDBOX_INSTANCE_PHASE_STOPPING = 3;
   SANDBOX_INSTANCE_PHASE_EXITED = 4;
   SANDBOX_INSTANCE_PHASE_FAILED = 5;
+  // A capacity reservation holding a runtime route before sandbox assignment.
+  // This does not imply that the runtime is connected or ready for a workload.
+  SANDBOX_INSTANCE_PHASE_PREPARED = 6;
 }
 
 // Observed state of one hosted sandbox instance.
@@ -222,6 +249,8 @@ message SandboxInstanceStatus {
   string sandbox_id = 2;
   SandboxInstancePhase phase = 3;
   // The gateway currently accepts this instance's supervision session.
+  // For PREPARED only: an authenticated runtime connection is parked. This
+  // does not authorize workload execution or imply an assigned Sandbox.
   bool ready = 4;
   // Workload exit code; meaningful only for EXITED.
   int32 exit_code = 5;

Before merging

  • CI and E2E must pass. If the SDK needs changes for this core version, push them to this branch.
  • Pre-release pins are not released; a newer pre-release proposal replaces this one.

Move the core pin from v0.1.11 to v0.1.12-pre.3 and regenerate the bindings.

Signed-off-by: ai-openshell-sdk-python[bot] <354503561+ai-openshell-sdk-python[bot]@users.noreply.github.com>
@ai-openshell-sdk-python
ai-openshell-sdk-python Bot requested review from a team as code owners December 4, 2026 13:22
@ai-openshell-sdk-python ai-openshell-sdk-python Bot added core-bump Update proposal that moves the core pin to a newer NVIDIA/OpenShell release tag prerelease The core tag of this update proposal is a pre-release labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-bump Update proposal that moves the core pin to a newer NVIDIA/OpenShell release tag prerelease The core tag of this update proposal is a pre-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants